#include <OSGVRMLNodeDescs.h>
Inheritance diagram for osg::VRMLGeometryPartDesc:

Member | |
| Field * | getField (FieldContainerPtr pFC1, FieldContainerPtr pFC2, GenericAttPtr pGenAtt, const Char8 *szFieldname) |
| FieldNameTypeHash | _mFieldTypes |
| GenericAttPtr | _pGenAtt |
| FieldContainerPtr | _pNodeProto |
| FieldContainerPtr | _pNodeCoreProto |
| Field * | _pCurrField |
| std::string | _szCurrentName |
| bool | _bSaveOnEnd |
| *static UInt32 | _uiIndent = 0 |
Public Member Functions | |
Constructors | |
| * | VRMLGeometryPartDesc (Char8 *szVRMLPartname, Char8 *szOSGPartname, Char8 *szOSGProtoname) |
Destructor | |
| *virtual | ~VRMLGeometryPartDesc (void) |
Helper | |
| *virtual void | init (const Char8 *szName) |
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) |
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 Char8 * | getSavename (void) |
| virtual FieldContainerPtr | getSaveFieldContainer (void) |
Field | |
| *virtual Field * | getField (const Char8 *szFieldname) |
Prototypes | |
| virtual void | prototypeAddFieldValue (const Char8 *szFieldVal) |
| virtual void | endProtoInterface (void) |
Node | |
| virtual void | endNode (FieldContainerPtr) |
FieldValue | |
| *virtual void | addFieldValue (Field *pField, const Char8 *szFieldVal) |
| virtual bool | use (FieldContainerPtr) |
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 | |
| *Char8 * | _szVRMLPartname |
| Char8 * | _szOSGPartname |
| Char8 * | _szOSGProtoname |
Private Types | |
| typedef VRMLNodeDesc | Inherited |
Private Member Functions | |
| VRMLGeometryPartDesc (const VRMLGeometryPartDesc &source) | |
| prohibit default function (move to 'public' if needed) | |
| void | operator= (const VRMLGeometryPartDesc &source) |
| prohibit default function (move to 'public' if needed) | |
Definition at line 634 of file OSGVRMLNodeDescs.h.
|
|
Definition at line 707 of file OSGVRMLNodeDescs.h. |
|
|
Definition at line 298 of file OSGVRMLNodeDescs.h. |
|
||||||||||||||||
|
Definition at line 2042 of file OSGVRMLNodeDescs.cpp. References _szOSGPartname, _szOSGProtoname, _szVRMLPartname, and osg::stringDup(). 02044 : 02045 Inherited(), 02046 02047 _szVRMLPartname(NULL), 02048 _szOSGPartname (NULL), 02049 _szOSGProtoname(NULL) 02050 { 02051 stringDup(szVRMLPartname, _szVRMLPartname); 02052 stringDup(szOSGPartname, _szOSGPartname ); 02053 stringDup(szOSGProtoname, _szOSGProtoname); 02054 }
|
|
|
Definition at line 2059 of file OSGVRMLNodeDescs.cpp.
|
|
|
|
|
|
||||||||||||||||
|
Reimplemented from osg::VRMLNodeDesc. Definition at line 2095 of file OSGVRMLNodeDescs.cpp. References osg::VRMLNodeDesc::_pCurrField, _szVRMLPartname, osg::VRMLNodeDesc::getIndent(), osg::indentLog(), PINFO, osg::VRMLNodeDesc::prototypeAddField(), and osg::stringcasecmp(). 02098 { 02099 bool bFound = false; 02100 02101 _pCurrField = NULL; 02102 02103 if(stringcasecmp(_szVRMLPartname, szFieldname) == 0) 02104 { 02105 #ifdef OSG_DEBUG_VRML 02106 indentLog(getIndent(), PINFO); 02107 PINFO << "GeoPartDesc::prototypeAddField : add part " 02108 << szFieldname 02109 << std::endl; 02110 #endif 02111 02112 bFound = true; 02113 } 02114 02115 02116 if(bFound == true) 02117 { 02118 return true; 02119 } 02120 else 02121 { 02122 return VRMLNodeDesc::prototypeAddField(szFieldType, 02123 uiFieldTypeId, 02124 szFieldname); 02125 } 02126 }
|
|
||||||||||||||||||||
|
Reimplemented from osg::VRMLNodeDesc. Definition at line 2128 of file OSGVRMLNodeDescs.cpp. References _szOSGPartname, _szVRMLPartname, osg::VRMLNodeDesc::decIndent(), osg::VRMLNodeDesc::getFieldAndDesc(), osg::VRMLNodeDesc::getIndent(), osg::VRMLNodeDesc::incIndent(), osg::indentLog(), osg::NullFC, PINFO, PWARNING, and osg::stringcasecmp(). 02133 { 02134 #ifdef OSG_DEBUG_VRML 02135 indentLog(getIndent(), PINFO); 02136 PINFO << "VRMLGeometryPartDesc::getFieldAndDesc : looking for " 02137 << szFieldname 02138 << std::endl; 02139 #endif 02140 02141 if(szFieldname == NULL) 02142 return; 02143 02144 if(pFC == NullFC) 02145 return; 02146 02147 incIndent(); 02148 02149 if(stringcasecmp(_szVRMLPartname, szFieldname) == 0) 02150 { 02151 #ifdef OSG_DEBUG_VRML 02152 indentLog(getIndent(), PINFO); 02153 PINFO << "VRMLGeometryPartDesc::getFieldAndDesc : request internal " 02154 << szFieldname 02155 << " return " 02156 << _szOSGPartname 02157 << std::endl; 02158 #endif 02159 02160 pField = pFC->getField(_szOSGPartname); 02161 02162 if(pField != NULL) 02163 pDesc = pFC->getType().findFieldDescription(_szOSGPartname); 02164 02165 if(pField == NULL) 02166 { 02167 PWARNING << "VRMLGeometryPartDesc::getFieldAndDesc : could not" 02168 << " map : " 02169 << szFieldname 02170 << " to " 02171 << _szOSGPartname 02172 << std::endl; 02173 } 02174 } 02175 else 02176 { 02177 Inherited::getFieldAndDesc(pFC, 02178 szFieldname, 02179 pField, 02180 pDesc); 02181 } 02182 02183 #ifdef OSG_DEBUG_VRML 02184 decIndent(); 02185 #endif 02186 }
|
|
||||||||||||||||
|
Reimplemented from osg::VRMLNodeDesc. Definition at line 2191 of file OSGVRMLNodeDescs.cpp. References osg::VRMLNodeDesc::_pNodeProto, and osg::NullFC. 02195 { 02196 FieldContainerPtr returnValue = NullFC; 02197 02198 if(_pNodeProto != NullFC) 02199 returnValue = _pNodeProto->shallowCopy(); 02200 02201 return returnValue; 02202 }
|
|
|
Reimplemented from osg::VRMLNodeDesc. Definition at line 2207 of file OSGVRMLNodeDescs.cpp.
|
|
|
|
|
|
|
|
|
Definition at line 150 of file OSGVRMLNodeDescs.cpp. References osg::VRMLNodeDesc::_uiIndent. Referenced by osg::VRMLFile::createStandardPrototypes(), osg::VRMLFile::scanFile(), osg::VRMLFile::scanStandardPrototypes(), and osg::VRMLFile::scanStream(). 00151 { 00152 _uiIndent = 0; 00153 }
|
|
|
Reimplemented in osg::VRMLMaterialDesc, osg::VRMLTextureTransformDesc, osg::VRMLImageTextureDesc, osg::VRMLPixelTextureDesc, and osg::VRMLViewpointDesc. Definition at line 205 of file OSGVRMLNodeDescs.cpp. Referenced by osg::VRMLFile::beginNode().
|
|
|
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 }
|
|
|
Definition at line 215 of file OSGVRMLNodeDescs.cpp. References osg::VRMLNodeDesc::_bSaveOnEnd. Referenced by osg::VRMLFile::endNode(). 00216 { 00217 _bSaveOnEnd = false; 00218 }
|
|
|
Definition at line 220 of file OSGVRMLNodeDescs.cpp. References osg::VRMLNodeDesc::_bSaveOnEnd. Referenced by osg::VRMLFile::endNode(). 00221 { 00222 return _bSaveOnEnd; 00223 }
|
|
|
Definition at line 225 of file OSGVRMLNodeDescs.cpp. References osg::VRMLNodeDesc::_szCurrentName. Referenced by osg::VRMLFile::endNode(). 00226 { 00227 return _szCurrentName.c_str(); 00228 }
|
|
|
Reimplemented in osg::VRMLAppearanceDesc. Definition at line 230 of file OSGVRMLNodeDescs.cpp. References osg::NullFC. Referenced by osg::VRMLFile::endNode(). 00231 { 00232 return NullFC; 00233 }
|
|
|
Definition at line 238 of file OSGVRMLNodeDescs.cpp. References osg::VRMLNodeDesc::_pGenAtt, osg::VRMLNodeDesc::_pNodeCoreProto, and osg::VRMLNodeDesc::_pNodeProto. Referenced by osg::VRMLNodeDesc::prototypeAddField(). 00239 { 00240 return getField(_pNodeProto, _pNodeCoreProto, _pGenAtt, szFieldname); 00241 }
|
|
||||||||||||||||||||
|
Definition at line 604 of file OSGVRMLNodeDescs.cpp. References osg::VRMLNodeDesc::decIndent(), osg::VRMLNodeDesc::getIndent(), osg::VRMLNodeDesc::incIndent(), osg::indentLog(), osg::NullFC, and PINFO. 00608 { 00609 Field *returnValue = NULL; 00610 00611 if(szFieldname == NULL) 00612 { 00613 return returnValue; 00614 } 00615 00616 #ifdef OSG_DEBUG_VRML 00617 indentLog(getIndent(), PINFO); 00618 PINFO << "VRMLNodeDesc::getField " << std::endl; 00619 00620 incIndent(); 00621 00622 indentLog(getIndent(), PINFO); 00623 PINFO << "Trying to find field : " << szFieldname << std::endl; 00624 #endif 00625 00626 if(pFC1 != NullFC) 00627 { 00628 returnValue = pFC1->getField(szFieldname); 00629 } 00630 00631 #ifdef OSG_DEBUG_VRML 00632 incIndent(); 00633 00634 indentLog(getIndent(), PINFO); 00635 PINFO << "Got this from node : " << returnValue << std::endl; 00636 #endif 00637 00638 if(returnValue != NULL) 00639 return returnValue; 00640 00641 if(pFC2 != NullFC) 00642 { 00643 returnValue = pFC2->getField(szFieldname); 00644 00645 #ifdef OSG_DEBUG_VRML 00646 indentLog(getIndent(), PINFO); 00647 PINFO << "Got this from nodecore : " << returnValue << std::endl; 00648 #endif 00649 } 00650 else 00651 { 00652 #ifdef OSG_DEBUG_VRML 00653 indentLog(getIndent(), PINFO); 00654 PINFO << "No core to check" << std::endl; 00655 #endif 00656 } 00657 00658 00659 if(returnValue != NULL) 00660 return returnValue; 00661 00662 if(pGenAtt != NullFC) 00663 { 00664 returnValue = pGenAtt->getField(szFieldname); 00665 } 00666 00667 #ifdef OSG_DEBUG_VRML 00668 indentLog(getIndent(), PINFO); 00669 PINFO << "Got this from attachment : " << returnValue << std::endl; 00670 00671 decIndent(); 00672 decIndent(); 00673 #endif 00674 00675 return returnValue; 00676 }
|
|
|
Definition at line 474 of file OSGVRMLNodeDescs.cpp. References osg::VRMLNodeDesc::_pCurrField, and osg::Field::pushValueByStr(). 00475 { 00476 if(_pCurrField != NULL) 00477 { 00478 _pCurrField->pushValueByStr(szFieldVal); 00479 } 00480 }
|
|
|
Reimplemented in osg::VRMLMaterialDesc, osg::VRMLTextureTransformDesc, osg::VRMLImageTextureDesc, osg::VRMLPixelTextureDesc, osg::VRMLLODDesc, osg::VRMLSwitchDesc, osg::VRMLGroupDesc, osg::VRMLExtrusionDesc, osg::VRMLInlineDesc, and osg::VRMLViewpointDesc. Definition at line 482 of file OSGVRMLNodeDescs.cpp.
|
|
|
Reimplemented in osg::VRMLShapeDesc, osg::VRMLGeometryDesc, osg::VRMLGeometryPointSetDesc, osg::VRMLGeometryObjectDesc, osg::VRMLAppearanceDesc, osg::VRMLMaterialDesc, osg::VRMLTextureTransformDesc, osg::VRMLImageTextureDesc, osg::VRMLPixelTextureDesc, osg::VRMLLODDesc, osg::VRMLSwitchDesc, osg::VRMLGroupDesc, osg::VRMLExtrusionDesc, osg::VRMLInlineDesc, and osg::VRMLViewpointDesc. Definition at line 541 of file OSGVRMLNodeDescs.cpp. Referenced by osg::VRMLFile::endNode().
|
|
||||||||||||
|
Reimplemented in osg::VRMLGeometryDesc, osg::VRMLGeometryPointSetDesc, and osg::VRMLPixelTextureDesc. Definition at line 548 of file OSGVRMLNodeDescs.cpp. References osg::Field::pushValueByStr(). Referenced by osg::VRMLFile::addFieldValue(). 00550 { 00551 if(pField != NULL) 00552 { 00553 pField->pushValueByStr(szFieldVal); 00554 } 00555 }
|
|
|
Reimplemented in osg::VRMLAppearanceDesc. Definition at line 557 of file OSGVRMLNodeDescs.cpp. Referenced by osg::VRMLFile::use().
|
|
|
Definition at line 699 of file OSGVRMLNodeDescs.h. Referenced by getFieldAndDesc(), init(), prototypeAddField(), and VRMLGeometryPartDesc(). |
|
|
Definition at line 700 of file OSGVRMLNodeDescs.h. Referenced by getFieldAndDesc(), init(), and VRMLGeometryPartDesc(). |
|
|
Definition at line 701 of file OSGVRMLNodeDescs.h. Referenced by init(), and VRMLGeometryPartDesc(). |
|
|
Definition at line 123 of file OSGVRMLNodeDescs.cpp. Referenced by osg::VRMLNodeDesc::decIndent(), osg::VRMLNodeDesc::getIndent(), osg::VRMLNodeDesc::incIndent(), and osg::VRMLNodeDesc::resetIndent(). |
|
|
Definition at line 307 of file OSGVRMLNodeDescs.h. |
|
|
|
|
|
|
Definition at line 316 of file OSGVRMLNodeDescs.h. Referenced by osg::VRMLNodeDesc::getSavename(), and osg::VRMLNodeDesc::setOnEndSave(). |
|
|
Definition at line 317 of file OSGVRMLNodeDescs.h. Referenced by osg::VRMLNodeDesc::clearOnEndSave(), osg::VRMLNodeDesc::getOnEndSave(), and osg::VRMLNodeDesc::setOnEndSave(). |
1.4.3