osg::VRMLAppearanceDesc Class Reference
[VRML-specific File Input/Output]

VRML Appearance Desc. More...

#include <OSGVRMLNodeDescs.h>

Inheritance diagram for osg::VRMLAppearanceDesc:

osg::VRMLNodeDesc

List of all members.

Member



FieldNameTypeHash _mFieldTypes
GenericAttPtr _pGenAtt
FieldContainerPtr _pNodeProto
FieldContainerPtr _pNodeCoreProto
Field_pCurrField
std::string _szCurrentName
bool _bSaveOnEnd
static UInt32 _uiIndent = 0
FieldgetField (FieldContainerPtr pFC1, FieldContainerPtr pFC2, GenericAttPtr pGenAtt, const Char8 *szFieldname)

Public Member Functions

Constructors


 VRMLAppearanceDesc (void)
Destructor


virtual ~VRMLAppearanceDesc (void)
Helper


virtual void init (const Char8 *szName)
virtual void setMaterialDesc (VRMLMaterialDesc *pMaterialDesc)
virtual FieldContainerPtr getSaveFieldContainer (void)
Field


virtual bool prototypeAddField (const Char8 *szFieldType, const UInt32 uiFieldTypeId, const Char8 *szFieldName)
virtual void getFieldAndDesc (FieldContainerPtr pFC, const Char8 *szFieldname, Field *&pField, const FieldDescription *&pDesc)
Node


virtual FieldContainerPtr beginNode (const Char8 *szTypename, const Char8 *szName, FieldContainerPtr pCurrentFC)
virtual void endNode (FieldContainerPtr)
Field Value


virtual bool use (FieldContainerPtr pFC)
Dump


virtual void dump (const Char8 *szNodeName)
Helper


virtual void reset (void)
virtual void setOnEndSave (const Char8 *szName)
virtual void clearOnEndSave (void)
virtual bool getOnEndSave (void)
virtual const Char8getSavename (void)
Field


virtual FieldgetField (const Char8 *szFieldname)
Prototypes


virtual void prototypeAddFieldValue (const Char8 *szFieldVal)
virtual void endProtoInterface (void)
FieldValue


virtual void addFieldValue (Field *pField, const Char8 *szFieldVal)

Static Public Member Functions

Class Get


static UInt32 getIndent (void)
static void incIndent (void)
static void decIndent (void)
static void resetIndent (void)

Protected Types

typedef std::map< const Char8
*, UInt32, LTString
FieldNameTypeHash

Protected Attributes

Member


VRMLMaterialDesc_pMaterialDesc

Private Types

typedef VRMLNodeDesc Inherited

Private Member Functions

 VRMLAppearanceDesc (const VRMLAppearanceDesc &source)
 prohibit default function (move to 'public' if needed)
void operator= (const VRMLAppearanceDesc &source)
 prohibit default function (move to 'public' if needed)


Detailed Description

VRML Appearance description

Definition at line 810 of file OSGVRMLNodeDescs.h.


Member Typedef Documentation

Definition at line 893 of file OSGVRMLNodeDescs.h.

typedef std::map< const Char8 *, UInt32, LTString> osg::VRMLNodeDesc::FieldNameTypeHash [protected, inherited]

Definition at line 298 of file OSGVRMLNodeDescs.h.


Constructor & Destructor Documentation

VRMLAppearanceDesc::VRMLAppearanceDesc ( void   ) 

Definition at line 2597 of file OSGVRMLNodeDescs.cpp.

02597                                            :
02598     Inherited         (),
02599 
02600     _pMaterialDesc    (NULL)
02601 {
02602 }

VRMLAppearanceDesc::~VRMLAppearanceDesc ( void   )  [virtual]

Definition at line 2607 of file OSGVRMLNodeDescs.cpp.

02608 {
02609 }

osg::VRMLAppearanceDesc::VRMLAppearanceDesc ( const VRMLAppearanceDesc source  )  [private]


Member Function Documentation

void VRMLAppearanceDesc::init ( const Char8 szName  )  [virtual]

Reimplemented from osg::VRMLNodeDesc.

Definition at line 2614 of file OSGVRMLNodeDescs.cpp.

References osg::VRMLNodeDesc::_pGenAtt, osg::VRMLNodeDesc::_pNodeProto, osg::addRefCP(), osg::DynFieldAttachment< AttachmentDescT >::create(), osg::ChunkMaterialBase::create(), osg::VRMLNodeDesc::getIndent(), osg::indentLog(), and PINFO.

02615 {
02616 #ifdef OSG_DEBUG_VRML
02617     indentLog(getIndent(), PINFO);
02618     PINFO << "ApperanceDesc::init : " << szName << std::endl;
02619 #endif
02620 
02621     _pNodeProto = ChunkMaterial::create();
02622     addRefCP(_pNodeProto);
02623 
02624     _pGenAtt    = GenericAtt::create();
02625     _pGenAtt->setInternal(true);
02626 }

void VRMLAppearanceDesc::setMaterialDesc ( VRMLMaterialDesc pMaterialDesc  )  [virtual]

Definition at line 2628 of file OSGVRMLNodeDescs.cpp.

References _pMaterialDesc.

Referenced by osg::VRMLNodeFactory< BaseT >::postStandardProtos().

02629 {
02630     _pMaterialDesc = pMaterialDesc;
02631 }

FieldContainerPtr VRMLAppearanceDesc::getSaveFieldContainer ( void   )  [virtual]

Reimplemented from osg::VRMLNodeDesc.

Definition at line 2633 of file OSGVRMLNodeDescs.cpp.

References osg::NullFC.

02634 {
02635     return NullFC;
02636 }

bool VRMLAppearanceDesc::prototypeAddField ( const Char8 szFieldType,
const UInt32  uiFieldTypeId,
const Char8 szFieldName 
) [virtual]

Reimplemented from osg::VRMLNodeDesc.

Definition at line 2641 of file OSGVRMLNodeDescs.cpp.

References osg::VRMLNodeDesc::_pCurrField, osg::VRMLNodeDesc::prototypeAddField(), and osg::stringcasecmp().

02644 {
02645     _pCurrField = NULL;
02646 
02647     if(szFieldname == NULL)
02648         return false;
02649 
02650     if(stringcasecmp("material", szFieldname) == 0)
02651     {
02652         return true;
02653     }
02654     else if(stringcasecmp("texture", szFieldname) == 0)
02655     {
02656         return true;
02657     }
02658     else if(stringcasecmp("textureTransform", szFieldname) == 0)
02659     {
02660         return true;
02661     }
02662     else
02663     {
02664         return VRMLNodeDesc::prototypeAddField(szFieldType,
02665                                                uiFieldTypeId,
02666                                                szFieldname);
02667     }
02668 }

void VRMLAppearanceDesc::getFieldAndDesc ( FieldContainerPtr  pFC,
const Char8 szFieldname,
Field *&  pField,
const FieldDescription *&  pDesc 
) [virtual]

Reimplemented from osg::VRMLNodeDesc.

Definition at line 2670 of file OSGVRMLNodeDescs.cpp.

References osg::VRMLNodeDesc::_pGenAtt, osg::VRMLNodeDesc::decIndent(), osg::VRMLNodeDesc::getFieldAndDesc(), osg::VRMLNodeDesc::getIndent(), osg::VRMLNodeDesc::incIndent(), osg::indentLog(), osg::NullFC, PINFO, and osg::stringcasecmp().

02675 {
02676 
02677 #ifdef OSG_DEBUG_VRML
02678     indentLog(getIndent(), PINFO);
02679     PINFO << "VRMLAppearanceDesc::getFieldAndDesc : looking for "
02680           << szFieldname
02681           << std::endl;
02682 #endif
02683 
02684     if(pFC == NullFC)
02685         return;
02686 
02687     if(szFieldname == NULL)
02688         return;
02689 
02690     incIndent();
02691 
02692     if(stringcasecmp("material", szFieldname) == 0)
02693     {
02694 #ifdef OSG_DEBUG_VRML
02695         indentLog(getIndent(), PINFO);
02696         PINFO << "VRMLAppearanceDesc::getFieldAndDesc : request internal "
02697               << szFieldname
02698               << std::endl;
02699 #endif
02700 
02701         pField = pFC->getField("chunks");
02702 
02703         if(pField != NULL)
02704             pDesc = pFC->getType().findFieldDescription("chunks");
02705     }
02706     else if(stringcasecmp("texture", szFieldname) == 0)
02707     {
02708 #ifdef OSG_DEBUG_VRML
02709         indentLog(getIndent(), PINFO);
02710         PINFO << "VRMLAppearanceDesc::getFieldAndDesc : request internal "
02711               << szFieldname
02712               << std::endl;
02713 #endif
02714 
02715         pField = pFC->getField("chunks");
02716 
02717         if(pField != NULL)
02718             pDesc = pFC->getType().findFieldDescription("chunks");
02719     }
02720     else if(stringcasecmp("textureTransform", szFieldname) == 0)
02721     {
02722 #ifdef OSG_DEBUG_VRML
02723         indentLog(getIndent(), PINFO);
02724         PINFO << "VRMLAppearanceDesc::getFieldAndDesc : request internal "
02725               << szFieldname
02726               << std::endl;
02727 #endif
02728 
02729         pField = pFC->getField("chunks");
02730 
02731         if(pField != NULL)
02732             pDesc = pFC->getType().findFieldDescription("chunks");
02733     }
02734     else
02735     {
02736         Inherited::getFieldAndDesc(_pGenAtt,
02737                                    szFieldname,
02738                                    pField,
02739                                    pDesc);
02740     }
02741 
02742 #ifdef OSG_DEBUG_VRML
02743     decIndent();
02744 #endif
02745 }

FieldContainerPtr VRMLAppearanceDesc::beginNode ( const Char8 szTypename,
const Char8 szName,
FieldContainerPtr  pCurrentFC 
) [virtual]

Reimplemented from osg::VRMLNodeDesc.

Definition at line 2750 of file OSGVRMLNodeDescs.cpp.

References osg::VRMLNodeDesc::_pNodeProto, osg::VRMLNodeDesc::getIndent(), osg::VRMLNodeDesc::incIndent(), osg::indentLog(), osg::NullFC, and PINFO.

02754 {
02755     FieldContainerPtr returnValue = NullFC;
02756 
02757     returnValue = _pNodeProto->shallowCopy();
02758 
02759 #ifdef OSG_DEBUG_VRML
02760     indentLog(getIndent(), PINFO);
02761     PINFO << "Begin Appearance " << &(*returnValue) << std::endl;
02762 
02763     incIndent();
02764 #endif
02765 
02766     return returnValue;
02767 }

void VRMLAppearanceDesc::endNode ( FieldContainerPtr  pFC  )  [virtual]

Reimplemented from osg::VRMLNodeDesc.

Definition at line 2769 of file OSGVRMLNodeDescs.cpp.

References _pMaterialDesc, osg::beginEditCP(), osg::ChunkMaterialBase::ChunksFieldMask, osg::AttachmentPtr::dcast(), osg::AttachmentContainerPtr::dcast(), osg::VRMLNodeDesc::decIndent(), osg::endEditCP(), osg::TextureChunkBase::getClassType(), osg::VRMLMaterialDesc::getDefaultMaterial(), osg::VRMLNodeDesc::getIndent(), osg::indentLog(), osg::NullFC, PINFO, and PWARNING.

02770 {
02771     if(pFC != NullFC)
02772     {
02773         ChunkMaterialPtr pChunkMat = ChunkMaterialPtr::dcast(pFC);
02774 
02775         if(pChunkMat != NullFC)
02776         {
02777             StateChunkPtr cp = pChunkMat->find(TextureChunk::getClassType());
02778             
02779             TextureChunkPtr tex = NullFC;
02780             
02781             if(cp != NullFC)
02782                 tex = TextureChunkPtr::dcast(cp);
02783             
02784             if (pChunkMat->isTransparent() == true ||
02785                 (  tex != NullFC && tex->getImage() != NullFC && 
02786                    tex->getImage()->hasAlphaChannel()
02787                ))
02788             {
02789                 BlendChunkPtr pBlendChunk = OSG::BlendChunk::create();
02790 
02791                 beginEditCP(pBlendChunk);
02792                 {
02793                     if(tex != NullFC && tex->getImage() != NullFC &&
02794                        tex->getImage()->isAlphaBinary())
02795                     {
02796                         pBlendChunk->setAlphaFunc(GL_NOTEQUAL);
02797                         pBlendChunk->setAlphaValue(0);
02798                     }
02799                     else
02800                     {
02801                        pBlendChunk->setSrcFactor (GL_SRC_ALPHA);
02802                        pBlendChunk->setDestFactor(GL_ONE_MINUS_SRC_ALPHA);
02803                     }
02804                 }
02805                 endEditCP(pBlendChunk);
02806 
02807                 beginEditCP(pChunkMat, ChunkMaterial::ChunksFieldMask);
02808                 {
02809                     pChunkMat->addChunk(pBlendChunk);
02810                 }
02811                 endEditCP  (pChunkMat, ChunkMaterial::ChunksFieldMask);
02812             }
02813         }
02814     }
02815 
02816 #if 0
02817             TextureChunkPtr pTexture =
02818                 TextureChunkPtr::dcast(_sfTexture.getValue());
02819 
02820             if(pChunkMat != NullFC)
02821             {
02822                 if(pTexture != NullFC)
02823                 {
02824                     beginEditCP(pChunkMat);
02825                     {
02826                         pChunkMat->addChunk(pTexture);
02827                     }
02828                     endEditCP(pChunkMat);
02829                 }
02830             }
02831             else
02832             {
02833                 if(pTexture != NullFC)
02834                 {
02835                     FieldContainerPtr pMat =
02836                         _pMaterialDesc->getDefaultMaterial()->shallowCopy();
02837 
02838                     ChunkMaterialPtr pChunkMat =
02839                         ChunkMaterialPtr::dcast(pMat);
02840 
02841                     if(pChunkMat != NullFC)
02842                     {
02843                         if(pTexture != NullFC)
02844                         {
02845                             beginEditCP(pChunkMat);
02846                             {
02847                                 pChunkMat->addChunk(pTexture);
02848                             }
02849                             endEditCP(pChunkMat);
02850                         }
02851 
02852                         beginEditCP(pMatGroup);
02853                         {
02854                             pMatGroup->setMaterial(pChunkMat);
02855                         }
02856                         endEditCP(pMatGroup);
02857                     }
02858                 }
02859                 else
02860                 {
02861                     PWARNING << "No material, adding default" << std::endl;
02862                     beginEditCP(pMatGroup);
02863                     {
02864                         pMatGroup->setMaterial(
02865                               _pMaterialDesc->getDefaultMaterial());
02866                     }
02867                     endEditCP(pMatGroup);
02868                 }
02869     }
02870 #endif
02871 
02872 #ifdef OSG_DEBUG_VRML
02873     decIndent();
02874 
02875     indentLog(getIndent(), PINFO);
02876     PINFO << "End Appearance " <<  std::endl;
02877 #endif
02878 }

bool VRMLAppearanceDesc::use ( FieldContainerPtr  pFC  )  [virtual]

Reimplemented from osg::VRMLNodeDesc.

Definition at line 2883 of file OSGVRMLNodeDescs.cpp.

02884 {
02885     return false;
02886 }

void VRMLAppearanceDesc::dump ( const Char8 szNodeName  )  [virtual]

Reimplemented from osg::VRMLNodeDesc.

Definition at line 2891 of file OSGVRMLNodeDescs.cpp.

02892 {
02893 }

void osg::VRMLAppearanceDesc::operator= ( const VRMLAppearanceDesc source  )  [private]

UInt32 VRMLNodeDesc::getIndent ( void   )  [static, inherited]

Definition at line 128 of file OSGVRMLNodeDescs.cpp.

References osg::VRMLNodeDesc::_uiIndent.

Referenced by osg::VRMLNodeFactory< BaseT >::addFieldValue(), osg::VRMLNodeFactory< BaseT >::beginEventInDecl(), osg::VRMLNodeFactory< BaseT >::beginEventOutDecl(), osg::VRMLViewpointDesc::beginNode(), osg::VRMLInlineDesc::beginNode(), osg::VRMLGroupDesc::beginNode(), osg::VRMLSwitchDesc::beginNode(), osg::VRMLLODDesc::beginNode(), osg::VRMLPixelTextureDesc::beginNode(), osg::VRMLImageTextureDesc::beginNode(), osg::VRMLTextureTransformDesc::beginNode(), beginNode(), osg::VRMLGeometryPointSetDesc::beginNode(), osg::VRMLGeometryDesc::beginNode(), osg::VRMLShapeDesc::beginNode(), osg::VRMLFile::beginNode(), osg::VRMLNodeFactory< BaseT >::beginProto(), osg::VRMLFile::endField(), osg::VRMLViewpointDesc::endNode(), osg::VRMLInlineDesc::endNode(), osg::VRMLExtrusionDesc::endNode(), osg::VRMLGroupDesc::endNode(), osg::VRMLSwitchDesc::endNode(), osg::VRMLLODDesc::endNode(), osg::VRMLPixelTextureDesc::endNode(), osg::VRMLImageTextureDesc::endNode(), osg::VRMLTextureTransformDesc::endNode(), endNode(), osg::VRMLGeometryObjectDesc::endNode(), osg::VRMLGeometryPointSetDesc::endNode(), osg::VRMLGeometryDesc::endNode(), osg::VRMLShapeDesc::endNode(), osg::VRMLFile::endNode(), osg::VRMLNodeFactory< BaseT >::findNodeDesc(), osg::VRMLNodeDesc::getField(), osg::VRMLViewpointDesc::getFieldAndDesc(), osg::VRMLInlineDesc::getFieldAndDesc(), osg::VRMLExtrusionDesc::getFieldAndDesc(), osg::VRMLGroupDesc::getFieldAndDesc(), osg::VRMLSwitchDesc::getFieldAndDesc(), osg::VRMLLODDesc::getFieldAndDesc(), getFieldAndDesc(), osg::VRMLGeometryObjectDesc::getFieldAndDesc(), osg::VRMLGeometryPartDesc::getFieldAndDesc(), osg::VRMLGeometryPointSetDesc::getFieldAndDesc(), osg::VRMLGeometryDesc::getFieldAndDesc(), osg::VRMLShapeDesc::getFieldAndDesc(), osg::VRMLNodeDesc::getFieldAndDesc(), osg::VRMLFile::getFieldType(), osg::VRMLInlineDesc::init(), osg::VRMLExtrusionDesc::init(), osg::VRMLGroupDesc::init(), osg::VRMLSwitchDesc::init(), osg::VRMLLODDesc::init(), osg::VRMLPixelTextureDesc::init(), osg::VRMLImageTextureDesc::init(), osg::VRMLTextureTransformDesc::init(), osg::VRMLMaterialDesc::init(), init(), osg::VRMLGeometryObjectDesc::init(), osg::VRMLGeometryPartDesc::init(), osg::VRMLGeometryPointSetDesc::init(), osg::VRMLGeometryDesc::init(), osg::VRMLShapeDesc::init(), osg::VRMLPixelTextureDesc::prototypeAddField(), osg::VRMLImageTextureDesc::prototypeAddField(), osg::VRMLTextureTransformDesc::prototypeAddField(), osg::VRMLMaterialDesc::prototypeAddField(), osg::VRMLGeometryPartDesc::prototypeAddField(), osg::VRMLGeometryPointSetDesc::prototypeAddField(), osg::VRMLGeometryDesc::prototypeAddField(), osg::VRMLShapeDesc::prototypeAddField(), osg::VRMLNodeDesc::prototypeAddField(), osg::VRMLFile::setContainerFieldValue(), and osg::VRMLFile::use().

00129 {
00130     return _uiIndent;
00131 }

void VRMLNodeDesc::incIndent ( void   )  [static, inherited]

void VRMLNodeDesc::decIndent ( void   )  [static, inherited]

void VRMLNodeDesc::resetIndent ( void   )  [static, inherited]

void VRMLNodeDesc::reset ( void   )  [virtual, inherited]

void VRMLNodeDesc::setOnEndSave ( const Char8 szName  )  [virtual, inherited]

Definition at line 209 of file OSGVRMLNodeDescs.cpp.

References osg::VRMLNodeDesc::_bSaveOnEnd, and osg::VRMLNodeDesc::_szCurrentName.

Referenced by osg::VRMLFile::beginNode().

00210 {
00211     _szCurrentName = szName; // does that make a copy? I expect it to...
00212     _bSaveOnEnd = true;
00213 }

void VRMLNodeDesc::clearOnEndSave ( void   )  [virtual, inherited]

Definition at line 215 of file OSGVRMLNodeDescs.cpp.

References osg::VRMLNodeDesc::_bSaveOnEnd.

Referenced by osg::VRMLFile::endNode().

00216 {
00217     _bSaveOnEnd = false;
00218 }

bool VRMLNodeDesc::getOnEndSave ( void   )  [virtual, inherited]

Definition at line 220 of file OSGVRMLNodeDescs.cpp.

References osg::VRMLNodeDesc::_bSaveOnEnd.

Referenced by osg::VRMLFile::endNode().

00221 {
00222     return _bSaveOnEnd;
00223 }

const Char8 * VRMLNodeDesc::getSavename ( void   )  [virtual, inherited]

Definition at line 225 of file OSGVRMLNodeDescs.cpp.

References osg::VRMLNodeDesc::_szCurrentName.

Referenced by osg::VRMLFile::endNode().

00226 {
00227     return _szCurrentName.c_str();
00228 }

Field * VRMLNodeDesc::getField ( const Char8 szFieldname  )  [virtual, inherited]

Field * VRMLNodeDesc::getField ( FieldContainerPtr  pFC1,
FieldContainerPtr  pFC2,
GenericAttPtr  pGenAtt,
const Char8 szFieldname 
) [protected, inherited]

Definition at line 607 of file OSGVRMLNodeDescs.cpp.

References osg::VRMLNodeDesc::decIndent(), osg::VRMLNodeDesc::getIndent(), osg::VRMLNodeDesc::incIndent(), osg::indentLog(), osg::NullFC, and PINFO.

00611 {
00612     Field *returnValue = NULL;
00613 
00614     if(szFieldname == NULL)
00615     {
00616         return returnValue;
00617     }
00618 
00619 #ifdef OSG_DEBUG_VRML
00620     indentLog(getIndent(), PINFO);
00621     PINFO << "VRMLNodeDesc::getField " << std::endl;
00622 
00623     incIndent();
00624 
00625     indentLog(getIndent(), PINFO);
00626     PINFO << "Trying to find field : " << szFieldname << std::endl;
00627 #endif
00628 
00629     if(pFC1 != NullFC)
00630     {
00631         returnValue = pFC1->getField(szFieldname);
00632     }
00633 
00634 #ifdef OSG_DEBUG_VRML
00635     incIndent();
00636 
00637     indentLog(getIndent(), PINFO);
00638     PINFO << "Got this from node : " << returnValue << std::endl;
00639 #endif
00640 
00641     if(returnValue != NULL)
00642         return returnValue;
00643 
00644     if(pFC2 != NullFC)
00645     {
00646         returnValue = pFC2->getField(szFieldname);
00647 
00648 #ifdef OSG_DEBUG_VRML
00649         indentLog(getIndent(), PINFO);
00650         PINFO << "Got this from nodecore : " << returnValue << std::endl;
00651 #endif
00652     }
00653     else
00654     {
00655 #ifdef OSG_DEBUG_VRML
00656         indentLog(getIndent(), PINFO);
00657         PINFO << "No core to check" << std::endl;
00658 #endif
00659     }
00660 
00661 
00662     if(returnValue != NULL)
00663         return returnValue;
00664 
00665     if(pGenAtt != NullFC)
00666     {
00667         returnValue = pGenAtt->getField(szFieldname);
00668     }
00669 
00670 #ifdef OSG_DEBUG_VRML
00671     indentLog(getIndent(), PINFO);
00672     PINFO << "Got this from attachment : " << returnValue << std::endl;
00673 
00674     decIndent();
00675     decIndent();
00676 #endif
00677 
00678     return returnValue;
00679 }

void VRMLNodeDesc::prototypeAddFieldValue ( const Char8 szFieldVal  )  [virtual, inherited]

Definition at line 477 of file OSGVRMLNodeDescs.cpp.

References osg::VRMLNodeDesc::_pCurrField, and osg::Field::pushValueByStr().

Referenced by osg::VRMLNodeFactory< BaseT >::addFieldValue().

00478 {
00479     if(_pCurrField       != NULL)
00480     {
00481         _pCurrField->pushValueByStr(szFieldVal);
00482     }
00483 }

void VRMLNodeDesc::endProtoInterface ( void   )  [virtual, inherited]

void VRMLNodeDesc::addFieldValue ( Field pField,
const Char8 szFieldVal 
) [virtual, inherited]

Reimplemented in osg::VRMLGeometryDesc, osg::VRMLGeometryPointSetDesc, and osg::VRMLPixelTextureDesc.

Definition at line 551 of file OSGVRMLNodeDescs.cpp.

References osg::Field::pushValueByStr().

Referenced by osg::VRMLFile::addFieldValue().

00553 {
00554     if(pField != NULL)
00555     {
00556         pField->pushValueByStr(szFieldVal);
00557     }
00558 }


Member Data Documentation

Definition at line 887 of file OSGVRMLNodeDescs.h.

Referenced by endNode(), and setMaterialDesc().

UInt32 VRMLNodeDesc::_uiIndent = 0 [static, protected, inherited]

Definition at line 307 of file OSGVRMLNodeDescs.h.

Field* osg::VRMLNodeDesc::_pCurrField [protected, inherited]

std::string osg::VRMLNodeDesc::_szCurrentName [protected, inherited]

bool osg::VRMLNodeDesc::_bSaveOnEnd [protected, inherited]


The documentation for this class was generated from the following files:

Generated on Mon Mar 17 11:12:15 2008 for OpenSG by  doxygen 1.5.5