#include <OSGVRMLNodeDescs.h>

Member | |
| FieldNameTypeHash | _mFieldTypes |
| GenericAttPtr | _pGenAtt |
| FieldContainerPtr | _pNodeProto |
| FieldContainerPtr | _pNodeCoreProto |
| Field * | _pCurrField |
| std::string | _szCurrentName |
| bool | _bSaveOnEnd |
| static UInt32 | _uiIndent = 0 |
| Field * | getField (FieldContainerPtr pFC1, FieldContainerPtr pFC2, GenericAttPtr pGenAtt, const Char8 *szFieldname) |
Public Member Functions | |
Constructors | |
| VRMLShapeDesc (void) | |
Destructor | |
| virtual | ~VRMLShapeDesc (void) |
Helper | |
| virtual void | init (const Char8 *szName) |
| void | setMaterialDesc (VRMLMaterialDesc *pMaterialDesc) |
Get | |
| 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 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 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) |
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 | |
| VRMLMaterialDesc * | _pMaterialDesc |
Private Types | |
| typedef VRMLNodeDesc | Inherited |
Private Member Functions | |
| VRMLShapeDesc (const VRMLShapeDesc &source) | |
| prohibit default function (move to 'public' if needed) | |
| void | operator= (const VRMLShapeDesc &source) |
| prohibit default function (move to 'public' if needed) | |
Definition at line 344 of file OSGVRMLNodeDescs.h.
typedef VRMLNodeDesc osg::VRMLShapeDesc::Inherited [private] |
Definition at line 418 of file OSGVRMLNodeDescs.h.
typedef std::map< const Char8 *, UInt32, LTString> osg::VRMLNodeDesc::FieldNameTypeHash [protected, inherited] |
Definition at line 298 of file OSGVRMLNodeDescs.h.
| VRMLShapeDesc::VRMLShapeDesc | ( | void | ) |
Definition at line 696 of file OSGVRMLNodeDescs.cpp.
00696 : 00697 Inherited (), 00698 00699 _pMaterialDesc(NULL) 00700 { 00701 }
| VRMLShapeDesc::~VRMLShapeDesc | ( | void | ) | [virtual] |
| osg::VRMLShapeDesc::VRMLShapeDesc | ( | const VRMLShapeDesc & | source | ) | [private] |
| void VRMLShapeDesc::init | ( | const Char8 * | szName | ) | [virtual] |
Reimplemented from osg::VRMLNodeDesc.
Definition at line 713 of file OSGVRMLNodeDescs.cpp.
References osg::VRMLNodeDesc::_pGenAtt, osg::VRMLNodeDesc::_pNodeCoreProto, osg::VRMLNodeDesc::_pNodeProto, osg::DynFieldAttachment< AttachmentDescT >::create(), osg::MaterialGroupBase::create(), osg::Node::create(), osg::VRMLNodeDesc::getIndent(), osg::indentLog(), and PINFO.
00714 { 00715 #ifdef OSG_DEBUG_VRML 00716 indentLog(getIndent(), PINFO); 00717 PINFO << "ShapeDesc::init : " << szName << std::endl; 00718 #endif 00719 00720 _pNodeProto = Node::create(); 00721 _pNodeCoreProto = MaterialGroup::create(); 00722 00723 _pGenAtt = GenericAtt::create(); 00724 _pGenAtt->setInternal(true); 00725 }
| void VRMLShapeDesc::setMaterialDesc | ( | VRMLMaterialDesc * | pMaterialDesc | ) |
Definition at line 727 of file OSGVRMLNodeDescs.cpp.
References _pMaterialDesc.
Referenced by osg::VRMLNodeFactory< BaseT >::postStandardProtos().
00728 { 00729 _pMaterialDesc = pMaterialDesc; 00730 }
| bool VRMLShapeDesc::prototypeAddField | ( | const Char8 * | szFieldType, | |
| const UInt32 | uiFieldTypeId, | |||
| const Char8 * | szFieldName | |||
| ) | [virtual] |
Reimplemented from osg::VRMLNodeDesc.
Definition at line 735 of file OSGVRMLNodeDescs.cpp.
References osg::VRMLNodeDesc::_pCurrField, osg::VRMLNodeDesc::_pNodeCoreProto, osg::VRMLNodeDesc::_pNodeProto, osg::VRMLNodeDesc::decIndent(), osg::VRMLNodeDesc::getIndent(), osg::VRMLNodeDesc::incIndent(), osg::indentLog(), PINFO, osg::VRMLNodeDesc::prototypeAddField(), and osg::stringcasecmp().
00738 { 00739 bool returnValue = false; 00740 00741 #ifdef OSG_DEBUG_VRML 00742 indentLog(getIndent(), PINFO); 00743 PINFO << "VRMLShapeDesc::prototypeAddField | add request : " 00744 << szFieldname 00745 << std::endl; 00746 #endif 00747 00748 _pCurrField = NULL; 00749 00750 if(szFieldname == NULL) 00751 return false; 00752 00753 incIndent(); 00754 00755 if(stringcasecmp("geometry", szFieldname) == 0) 00756 { 00757 _pCurrField = _pNodeProto->getField("children"); 00758 returnValue = true; 00759 00760 #ifdef OSG_DEBUG_VRML 00761 indentLog(getIndent(), PINFO); 00762 PINFO << "VRMLShapeDesc::prototypeAddField | request internal : " 00763 << szFieldname 00764 << " " 00765 << _pCurrField 00766 << std::endl; 00767 #endif 00768 } 00769 00770 if(stringcasecmp("appearance", szFieldname) == 0) 00771 { 00772 _pCurrField = _pNodeCoreProto->getField("material"); 00773 returnValue = true; 00774 00775 #ifdef OSG_DEBUG_VRML 00776 indentLog(getIndent(), PINFO); 00777 00778 PINFO << "VRMLShapeDesc::prototypeAddField | request internal : " 00779 << szFieldname 00780 << " " 00781 << _pCurrField 00782 << std::endl; 00783 #endif 00784 } 00785 00786 if(_pCurrField == NULL) 00787 { 00788 returnValue = Inherited::prototypeAddField(szFieldType, 00789 uiFieldTypeId, 00790 szFieldname); 00791 } 00792 00793 #ifdef OSG_DEBUG_VRML 00794 decIndent(); 00795 #endif 00796 00797 return returnValue; 00798 }
| void VRMLShapeDesc::getFieldAndDesc | ( | FieldContainerPtr | pFC, | |
| const Char8 * | szFieldname, | |||
| Field *& | pField, | |||
| const FieldDescription *& | pDesc | |||
| ) | [virtual] |
Reimplemented from osg::VRMLNodeDesc.
Definition at line 800 of file OSGVRMLNodeDescs.cpp.
References osg::NodePtr::dcast(), osg::VRMLNodeDesc::decIndent(), osg::FieldContainerType::findFieldDescription(), osg::NodePtr::getCore(), osg::FieldContainer::getField(), osg::VRMLNodeDesc::getFieldAndDesc(), osg::VRMLNodeDesc::getIndent(), osg::NodeCore::getType(), osg::VRMLNodeDesc::incIndent(), osg::indentLog(), osg::NullFC, PINFO, and osg::stringcasecmp().
00805 { 00806 if(szFieldname == NULL) 00807 return; 00808 00809 if(pFC == NullFC) 00810 return; 00811 00812 #ifdef OSG_DEBUG_VRML 00813 indentLog(getIndent(), PINFO); 00814 PINFO << "VRMLShapeDesc::getFieldAndDesc : looking for " 00815 << szFieldname 00816 << std::endl; 00817 00818 incIndent(); 00819 #endif 00820 00821 if(stringcasecmp("geometry", szFieldname) == 0) 00822 { 00823 #ifdef OSG_DEBUG_VRML 00824 indentLog(getIndent(), PINFO); 00825 PINFO << "VRMLShapeDesc::getFieldAndDesc : request internal " 00826 << szFieldname 00827 << std::endl; 00828 #endif 00829 00830 pField = pFC->getField("children"); 00831 00832 if(pField != NULL) 00833 pDesc = pFC->getType().findFieldDescription("children"); 00834 } 00835 else if(stringcasecmp("appearance", szFieldname) == 0) 00836 { 00837 #ifdef OSG_DEBUG_VRML 00838 indentLog(getIndent(), PINFO); 00839 PINFO << "VRMLShapeDesc::getFieldAndDesc : request internal " 00840 << szFieldname 00841 << std::endl; 00842 #endif 00843 00844 NodePtr pNode = NodePtr::dcast(pFC); 00845 00846 if(pNode != NullFC) 00847 { 00848 if(pNode->getCore() != NullFC) 00849 { 00850 pField = pNode->getCore()->getField("material"); 00851 00852 if(pField != NULL) 00853 { 00854 pDesc = 00855 pNode->getCore()->getType().findFieldDescription( 00856 "material"); 00857 } 00858 } 00859 } 00860 else 00861 { 00862 VRMLNodeDesc::getFieldAndDesc(pFC, 00863 szFieldname, 00864 pField, 00865 pDesc); 00866 } 00867 } 00868 else 00869 { 00870 VRMLNodeDesc::getFieldAndDesc(pFC, 00871 szFieldname, 00872 pField, 00873 pDesc); 00874 } 00875 00876 #ifdef OSG_DEBUG_VRML 00877 decIndent(); 00878 #endif 00879 }
| FieldContainerPtr VRMLShapeDesc::beginNode | ( | const Char8 * | szTypename, | |
| const Char8 * | szName, | |||
| FieldContainerPtr | pCurrentFC | |||
| ) | [virtual] |
Reimplemented from osg::VRMLNodeDesc.
Definition at line 884 of file OSGVRMLNodeDescs.cpp.
References osg::VRMLNodeDesc::_pNodeCoreProto, osg::VRMLNodeDesc::_pNodeProto, osg::beginEditCP(), osg::Node::CoreFieldMask, osg::AttachmentContainerPtr::dcast(), osg::NodePtr::dcast(), osg::endEditCP(), osg::VRMLNodeDesc::getIndent(), osg::VRMLNodeDesc::incIndent(), osg::indentLog(), osg::NullFC, and PINFO.
00887 { 00888 NodePtr pNode = NullFC; 00889 NodeCorePtr pNodeCore = NullFC; 00890 00891 if(_pNodeProto != NullFC) 00892 { 00893 pNode = NodePtr::dcast(_pNodeProto->shallowCopy()); 00894 00895 if(_pNodeCoreProto != NullFC) 00896 { 00897 pNodeCore = NodeCorePtr::dcast(_pNodeCoreProto->shallowCopy()); 00898 00899 beginEditCP(pNode, Node::CoreFieldMask); 00900 { 00901 pNode->setCore(pNodeCore); 00902 } 00903 endEditCP (pNode, Node::CoreFieldMask); 00904 } 00905 } 00906 00907 #ifdef OSG_DEBUG_VRML 00908 indentLog(getIndent(), PINFO); 00909 PINFO << "Begin Shape " << &(*pNode) << std::endl; 00910 00911 incIndent(); 00912 #endif 00913 00914 return pNode; 00915 }
| void VRMLShapeDesc::endNode | ( | FieldContainerPtr | pFC | ) | [virtual] |
Reimplemented from osg::VRMLNodeDesc.
Definition at line 917 of file OSGVRMLNodeDescs.cpp.
References _pMaterialDesc, osg::beginEditCP(), osg::Node::CoreFieldMask, osg::MaterialGroupBase::create(), osg::AttachmentContainerPtr::dcast(), osg::NodePtr::dcast(), osg::VRMLNodeDesc::decIndent(), osg::endEditCP(), osg::NodePtr::getCore(), osg::VRMLMaterialDesc::getDefaultMaterial(), osg::VRMLNodeDesc::getIndent(), osg::indentLog(), osg::NullFC, PINFO, and PWARNING.
00918 { 00919 if(pFC != NullFC) 00920 { 00921 NodePtr pNode = NodePtr::dcast(pFC); 00922 00923 if(pNode != NullFC && pNode->getCore() == NullFC) 00924 { 00925 PWARNING << "warning empty material, using default\n" << std::endl; 00926 00927 MaterialGroupPtr pMatGroup = MaterialGroup::create(); 00928 00929 beginEditCP(pMatGroup); 00930 { 00931 pMatGroup->setMaterial(_pMaterialDesc->getDefaultMaterial()); 00932 } 00933 endEditCP(pMatGroup); 00934 00935 beginEditCP(pNode, Node::CoreFieldMask); 00936 { 00937 pNode->setCore(pMatGroup); 00938 } 00939 endEditCP (pNode, Node::CoreFieldMask); 00940 } 00941 else 00942 { 00943 MaterialGroupPtr pMatGroup; 00944 00945 pMatGroup = MaterialGroupPtr::dcast(pNode->getCore()); 00946 00947 if(pMatGroup != NullFC) 00948 { 00949 if(pMatGroup->getMaterial() == NullFC) 00950 { 00951 pMatGroup->setMaterial( 00952 _pMaterialDesc->getDefaultMaterial()); 00953 } 00954 } 00955 } 00956 } 00957 00958 #ifdef OSG_DEBUG_VRML 00959 decIndent(); 00960 00961 indentLog(getIndent(), PINFO); 00962 PINFO << "End Shape " << &(*pFC) << std::endl; 00963 #endif 00964 }
| void VRMLShapeDesc::dump | ( | const Char8 * | szNodeName | ) | [virtual] |
| void osg::VRMLShapeDesc::operator= | ( | const VRMLShapeDesc & | 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(), osg::VRMLAppearanceDesc::beginNode(), osg::VRMLGeometryPointSetDesc::beginNode(), osg::VRMLGeometryDesc::beginNode(), 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(), osg::VRMLAppearanceDesc::endNode(), osg::VRMLGeometryObjectDesc::endNode(), osg::VRMLGeometryPointSetDesc::endNode(), osg::VRMLGeometryDesc::endNode(), 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(), osg::VRMLAppearanceDesc::getFieldAndDesc(), osg::VRMLGeometryObjectDesc::getFieldAndDesc(), osg::VRMLGeometryPartDesc::getFieldAndDesc(), osg::VRMLGeometryPointSetDesc::getFieldAndDesc(), osg::VRMLGeometryDesc::getFieldAndDesc(), 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(), osg::VRMLAppearanceDesc::init(), osg::VRMLGeometryObjectDesc::init(), osg::VRMLGeometryPartDesc::init(), osg::VRMLGeometryPointSetDesc::init(), osg::VRMLGeometryDesc::init(), init(), osg::VRMLPixelTextureDesc::prototypeAddField(), osg::VRMLImageTextureDesc::prototypeAddField(), osg::VRMLTextureTransformDesc::prototypeAddField(), osg::VRMLMaterialDesc::prototypeAddField(), osg::VRMLGeometryPartDesc::prototypeAddField(), osg::VRMLGeometryPointSetDesc::prototypeAddField(), osg::VRMLGeometryDesc::prototypeAddField(), prototypeAddField(), osg::VRMLNodeDesc::prototypeAddField(), osg::VRMLFile::setContainerFieldValue(), and osg::VRMLFile::use().
00129 { 00130 return _uiIndent; 00131 }
| void VRMLNodeDesc::incIndent | ( | void | ) | [static, inherited] |
Definition at line 133 of file OSGVRMLNodeDescs.cpp.
References osg::VRMLNodeDesc::_uiIndent.
Referenced by osg::VRMLViewpointDesc::beginNode(), osg::VRMLInlineDesc::beginNode(), osg::VRMLGroupDesc::beginNode(), osg::VRMLSwitchDesc::beginNode(), osg::VRMLLODDesc::beginNode(), osg::VRMLPixelTextureDesc::beginNode(), osg::VRMLImageTextureDesc::beginNode(), osg::VRMLTextureTransformDesc::beginNode(), osg::VRMLAppearanceDesc::beginNode(), osg::VRMLGeometryPointSetDesc::beginNode(), osg::VRMLGeometryDesc::beginNode(), beginNode(), osg::VRMLFile::beginNode(), osg::VRMLNodeFactory< BaseT >::beginProto(), osg::VRMLNodeDesc::getField(), osg::VRMLInlineDesc::getFieldAndDesc(), osg::VRMLExtrusionDesc::getFieldAndDesc(), osg::VRMLGroupDesc::getFieldAndDesc(), osg::VRMLSwitchDesc::getFieldAndDesc(), osg::VRMLLODDesc::getFieldAndDesc(), osg::VRMLAppearanceDesc::getFieldAndDesc(), osg::VRMLGeometryObjectDesc::getFieldAndDesc(), osg::VRMLGeometryPartDesc::getFieldAndDesc(), getFieldAndDesc(), osg::VRMLNodeDesc::getFieldAndDesc(), prototypeAddField(), and osg::VRMLFile::use().
00134 { 00135 _uiIndent += 4; 00136 }
| void VRMLNodeDesc::decIndent | ( | void | ) | [static, inherited] |
Definition at line 138 of file OSGVRMLNodeDescs.cpp.
References osg::VRMLNodeDesc::_uiIndent, and PWARNING.
Referenced by osg::VRMLFile::endField(), osg::VRMLViewpointDesc::endNode(), osg::VRMLInlineDesc::endNode(), osg::VRMLGroupDesc::endNode(), osg::VRMLSwitchDesc::endNode(), osg::VRMLLODDesc::endNode(), osg::VRMLPixelTextureDesc::endNode(), osg::VRMLImageTextureDesc::endNode(), osg::VRMLTextureTransformDesc::endNode(), osg::VRMLAppearanceDesc::endNode(), osg::VRMLGeometryPointSetDesc::endNode(), osg::VRMLGeometryDesc::endNode(), endNode(), osg::VRMLFile::endNode(), osg::VRMLNodeFactory< BaseT >::endProto(), osg::VRMLNodeDesc::getField(), osg::VRMLInlineDesc::getFieldAndDesc(), osg::VRMLExtrusionDesc::getFieldAndDesc(), osg::VRMLGroupDesc::getFieldAndDesc(), osg::VRMLSwitchDesc::getFieldAndDesc(), osg::VRMLLODDesc::getFieldAndDesc(), osg::VRMLAppearanceDesc::getFieldAndDesc(), osg::VRMLGeometryObjectDesc::getFieldAndDesc(), osg::VRMLGeometryPartDesc::getFieldAndDesc(), getFieldAndDesc(), osg::VRMLNodeDesc::getFieldAndDesc(), prototypeAddField(), and osg::VRMLFile::use().
00139 { 00140 if(_uiIndent < 4) 00141 { 00142 PWARNING << "Indent smaller 4 decremented" << std::endl; 00143 00144 _uiIndent = 4; 00145 } 00146 00147 _uiIndent -= 4; 00148 }
| void VRMLNodeDesc::resetIndent | ( | void | ) | [static, inherited] |
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 }
| void VRMLNodeDesc::reset | ( | void | ) | [virtual, inherited] |
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().
| 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 }
| FieldContainerPtr VRMLNodeDesc::getSaveFieldContainer | ( | void | ) | [virtual, inherited] |
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 }
| 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] |
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 485 of file OSGVRMLNodeDescs.cpp.
Referenced by osg::VRMLNodeFactory< BaseT >::endProto().
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 }
| bool VRMLNodeDesc::use | ( | FieldContainerPtr | ) | [virtual, inherited] |
Reimplemented in osg::VRMLAppearanceDesc.
Definition at line 560 of file OSGVRMLNodeDescs.cpp.
Referenced by osg::VRMLFile::use().
VRMLMaterialDesc* osg::VRMLShapeDesc::_pMaterialDesc [protected] |
UInt32 VRMLNodeDesc::_uiIndent = 0 [static, protected, inherited] |
Definition at line 305 of file OSGVRMLNodeDescs.h.
Referenced by osg::VRMLNodeDesc::decIndent(), osg::VRMLNodeDesc::getIndent(), osg::VRMLNodeDesc::incIndent(), and osg::VRMLNodeDesc::resetIndent().
FieldNameTypeHash osg::VRMLNodeDesc::_mFieldTypes [protected, inherited] |
Definition at line 307 of file OSGVRMLNodeDescs.h.
GenericAttPtr osg::VRMLNodeDesc::_pGenAtt [protected, inherited] |
Definition at line 309 of file OSGVRMLNodeDescs.h.
Referenced by osg::VRMLViewpointDesc::beginNode(), osg::VRMLInlineDesc::beginNode(), osg::VRMLExtrusionDesc::beginNode(), osg::VRMLGroupDesc::beginNode(), osg::VRMLSwitchDesc::beginNode(), osg::VRMLLODDesc::beginNode(), osg::VRMLGeometryObjectDesc::beginNode(), osg::VRMLGeometryPointSetDesc::beginNode(), osg::VRMLGeometryDesc::beginNode(), osg::VRMLNodeDesc::beginNode(), osg::VRMLNodeDesc::dump(), osg::VRMLNodeDesc::getField(), osg::VRMLAppearanceDesc::getFieldAndDesc(), osg::VRMLViewpointDesc::init(), osg::VRMLInlineDesc::init(), osg::VRMLExtrusionDesc::init(), osg::VRMLGroupDesc::init(), osg::VRMLSwitchDesc::init(), osg::VRMLLODDesc::init(), osg::VRMLAppearanceDesc::init(), osg::VRMLGeometryObjectDesc::init(), osg::VRMLGeometryPartDesc::init(), osg::VRMLGeometryPointSetDesc::init(), osg::VRMLGeometryDesc::init(), init(), osg::VRMLNodeDesc::init(), and osg::VRMLNodeDesc::prototypeAddField().
FieldContainerPtr osg::VRMLNodeDesc::_pNodeProto [protected, inherited] |
Definition at line 311 of file OSGVRMLNodeDescs.h.
Referenced by osg::VRMLViewpointDesc::beginNode(), osg::VRMLInlineDesc::beginNode(), osg::VRMLExtrusionDesc::beginNode(), osg::VRMLGroupDesc::beginNode(), osg::VRMLSwitchDesc::beginNode(), osg::VRMLLODDesc::beginNode(), osg::VRMLAppearanceDesc::beginNode(), osg::VRMLGeometryObjectDesc::beginNode(), osg::VRMLGeometryPartDesc::beginNode(), osg::VRMLGeometryPointSetDesc::beginNode(), osg::VRMLGeometryDesc::beginNode(), beginNode(), osg::VRMLNodeDesc::beginNode(), osg::VRMLNodeDesc::dump(), osg::VRMLNodeDesc::getField(), osg::VRMLViewpointDesc::init(), osg::VRMLInlineDesc::init(), osg::VRMLExtrusionDesc::init(), osg::VRMLGroupDesc::init(), osg::VRMLSwitchDesc::init(), osg::VRMLLODDesc::init(), osg::VRMLAppearanceDesc::init(), osg::VRMLGeometryObjectDesc::init(), osg::VRMLGeometryPartDesc::init(), osg::VRMLGeometryPointSetDesc::init(), osg::VRMLGeometryDesc::init(), init(), osg::VRMLNodeDesc::init(), prototypeAddField(), and osg::VRMLNodeDesc::prototypeAddField().
FieldContainerPtr osg::VRMLNodeDesc::_pNodeCoreProto [protected, inherited] |
Definition at line 312 of file OSGVRMLNodeDescs.h.
Referenced by osg::VRMLViewpointDesc::beginNode(), osg::VRMLInlineDesc::beginNode(), osg::VRMLGroupDesc::beginNode(), osg::VRMLSwitchDesc::beginNode(), osg::VRMLLODDesc::beginNode(), osg::VRMLGeometryPointSetDesc::beginNode(), osg::VRMLGeometryDesc::beginNode(), beginNode(), osg::VRMLNodeDesc::beginNode(), osg::VRMLNodeDesc::dump(), osg::VRMLNodeDesc::getField(), osg::VRMLViewpointDesc::init(), osg::VRMLInlineDesc::init(), osg::VRMLGroupDesc::init(), osg::VRMLSwitchDesc::init(), osg::VRMLLODDesc::init(), osg::VRMLGeometryPointSetDesc::init(), osg::VRMLGeometryDesc::init(), init(), osg::VRMLNodeDesc::init(), osg::VRMLViewpointDesc::prototypeAddField(), prototypeAddField(), and osg::VRMLNodeDesc::prototypeAddField().
Field* osg::VRMLNodeDesc::_pCurrField [protected, inherited] |
Definition at line 314 of file OSGVRMLNodeDescs.h.
Referenced by osg::VRMLViewpointDesc::prototypeAddField(), osg::VRMLInlineDesc::prototypeAddField(), osg::VRMLExtrusionDesc::prototypeAddField(), osg::VRMLGroupDesc::prototypeAddField(), osg::VRMLSwitchDesc::prototypeAddField(), osg::VRMLLODDesc::prototypeAddField(), osg::VRMLPixelTextureDesc::prototypeAddField(), osg::VRMLImageTextureDesc::prototypeAddField(), osg::VRMLTextureTransformDesc::prototypeAddField(), osg::VRMLMaterialDesc::prototypeAddField(), osg::VRMLAppearanceDesc::prototypeAddField(), osg::VRMLGeometryObjectDesc::prototypeAddField(), osg::VRMLGeometryPartDesc::prototypeAddField(), osg::VRMLGeometryPointSetDesc::prototypeAddField(), osg::VRMLGeometryDesc::prototypeAddField(), prototypeAddField(), osg::VRMLNodeDesc::prototypeAddField(), and osg::VRMLNodeDesc::prototypeAddFieldValue().
std::string osg::VRMLNodeDesc::_szCurrentName [protected, inherited] |
Definition at line 316 of file OSGVRMLNodeDescs.h.
Referenced by osg::VRMLNodeDesc::getSavename(), and osg::VRMLNodeDesc::setOnEndSave().
bool osg::VRMLNodeDesc::_bSaveOnEnd [protected, inherited] |
Definition at line 317 of file OSGVRMLNodeDescs.h.
Referenced by osg::VRMLNodeDesc::clearOnEndSave(), osg::VRMLNodeDesc::getOnEndSave(), and osg::VRMLNodeDesc::setOnEndSave().
1.5.5