#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 | |
| VRMLMaterialDesc (void) | |
Destructor | |
| virtual | ~VRMLMaterialDesc (void) |
Helper | |
| virtual void | init (const Char8 *szName) |
| virtual void | reset (void) |
| virtual MaterialPtr | getDefaultMaterial (void) |
Field | |
| virtual bool | prototypeAddField (const Char8 *szFieldType, const UInt32 uiFieldTypeId, const Char8 *szFieldName) |
| virtual void | endProtoInterface (void) |
| 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) |
Dump | |
| virtual void | dump (const Char8 *szNodeName) |
Helper | |
| 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) |
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 | |
| SFReal32 | _defaultAmbientIntensity |
| SFColor3f | _defaultDiffuseColor |
| SFColor3f | _defaultEmissiveColor |
| SFReal32 | _defaultShininess |
| SFColor3f | _defaultSpecularColor |
| SFReal32 | _defaultTransparency |
| SFReal32 | _ambientIntensity |
| SFColor3f | _diffuseColor |
| SFColor3f | _emissiveColor |
| SFReal32 | _shininess |
| SFColor3f | _specularColor |
| SFReal32 | _transparency |
| ChunkMaterialPtr | _pDefMat |
| MaterialChunkPtr | _pMat |
Private Types | |
| typedef VRMLNodeDesc | Inherited |
Private Member Functions | |
| VRMLMaterialDesc (const VRMLMaterialDesc &source) | |
| prohibit default function (move to 'public' if needed) | |
| void | operator= (const VRMLMaterialDesc &source) |
| prohibit default function (move to 'public' if needed) | |
Definition at line 909 of file OSGVRMLNodeDescs.h.
typedef VRMLNodeDesc osg::VRMLMaterialDesc::Inherited [private] |
Definition at line 1001 of file OSGVRMLNodeDescs.h.
typedef std::map< const Char8 *, UInt32, LTString> osg::VRMLNodeDesc::FieldNameTypeHash [protected, inherited] |
Definition at line 298 of file OSGVRMLNodeDescs.h.
| VRMLMaterialDesc::VRMLMaterialDesc | ( | void | ) |
Definition at line 2909 of file OSGVRMLNodeDescs.cpp.
02909 : 02910 Inherited(), 02911 02912 _defaultAmbientIntensity(), 02913 _defaultDiffuseColor (), 02914 _defaultEmissiveColor (), 02915 _defaultShininess (), 02916 _defaultSpecularColor (), 02917 _defaultTransparency (), 02918 02919 _ambientIntensity (), 02920 _diffuseColor (), 02921 _emissiveColor (), 02922 _shininess (), 02923 _specularColor (), 02924 _transparency (), 02925 02926 _pDefMat (NullFC), 02927 _pMat (NullFC) 02928 { 02929 }
| VRMLMaterialDesc::~VRMLMaterialDesc | ( | void | ) | [virtual] |
| osg::VRMLMaterialDesc::VRMLMaterialDesc | ( | const VRMLMaterialDesc & | source | ) | [private] |
| void VRMLMaterialDesc::init | ( | const Char8 * | szName | ) | [virtual] |
Reimplemented from osg::VRMLNodeDesc.
Definition at line 2942 of file OSGVRMLNodeDescs.cpp.
References osg::VRMLNodeDesc::getIndent(), osg::indentLog(), and PINFO.
02943 { 02944 #ifdef OSG_DEBUG_VRML 02945 indentLog(getIndent(), PINFO); 02946 PINFO << "MaterialDesc::init : " << szName << std::endl; 02947 #endif 02948 }
| void VRMLMaterialDesc::reset | ( | void | ) | [virtual] |
Reimplemented from osg::VRMLNodeDesc.
Definition at line 2950 of file OSGVRMLNodeDescs.cpp.
References _ambientIntensity, _defaultAmbientIntensity, _defaultDiffuseColor, _defaultEmissiveColor, _defaultShininess, _defaultSpecularColor, _defaultTransparency, _diffuseColor, _emissiveColor, _pMat, _shininess, _specularColor, _transparency, osg::NullFC, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
Referenced by beginNode().
02951 { 02952 _pMat = NullFC; 02953 02954 _ambientIntensity.setValue(_defaultAmbientIntensity); 02955 _diffuseColor .setValue(_defaultDiffuseColor); 02956 _emissiveColor .setValue(_defaultEmissiveColor); 02957 _shininess .setValue(_defaultShininess); 02958 _specularColor .setValue(_defaultSpecularColor); 02959 _transparency .setValue(_defaultTransparency); 02960 }
| MaterialPtr VRMLMaterialDesc::getDefaultMaterial | ( | void | ) | [virtual] |
Definition at line 2962 of file OSGVRMLNodeDescs.cpp.
References _pDefMat.
Referenced by osg::VRMLAppearanceDesc::endNode(), and osg::VRMLShapeDesc::endNode().
02963 { 02964 return _pDefMat; 02965 }
| bool VRMLMaterialDesc::prototypeAddField | ( | const Char8 * | szFieldType, | |
| const UInt32 | uiFieldTypeId, | |||
| const Char8 * | szFieldName | |||
| ) | [virtual] |
Reimplemented from osg::VRMLNodeDesc.
Definition at line 2970 of file OSGVRMLNodeDescs.cpp.
References _defaultAmbientIntensity, _defaultDiffuseColor, _defaultEmissiveColor, _defaultShininess, _defaultSpecularColor, _defaultTransparency, osg::VRMLNodeDesc::_pCurrField, osg::VRMLNodeDesc::getIndent(), osg::indentLog(), PINFO, and osg::stringcasecmp().
02973 { 02974 bool bFound = false; 02975 02976 _pCurrField = NULL; 02977 02978 if(stringcasecmp("ambientIntensity", szFieldname) == 0) 02979 { 02980 _pCurrField = &_defaultAmbientIntensity; 02981 02982 bFound = true; 02983 } 02984 else if(stringcasecmp("diffuseColor", szFieldname) == 0) 02985 { 02986 _pCurrField = &_defaultDiffuseColor; 02987 02988 bFound = true; 02989 } 02990 else if(stringcasecmp("emissiveColor", szFieldname) == 0) 02991 { 02992 _pCurrField = &_defaultEmissiveColor; 02993 02994 bFound = true; 02995 } 02996 else if(stringcasecmp("shininess", szFieldname) == 0) 02997 { 02998 _pCurrField = &_defaultShininess; 02999 03000 bFound = true; 03001 } 03002 else if(stringcasecmp("specularColor", szFieldname) == 0) 03003 { 03004 _pCurrField = &_defaultSpecularColor; 03005 03006 bFound = true; 03007 } 03008 else if(stringcasecmp("transparency", szFieldname) == 0) 03009 { 03010 _pCurrField = &_defaultTransparency; 03011 03012 bFound = true; 03013 } 03014 03015 if(bFound == true) 03016 { 03017 #ifdef OSG_DEBUG_VRML 03018 indentLog(getIndent(), PINFO); 03019 PINFO << "MaterialDesc::prototypeAddField : add part " 03020 << szFieldname 03021 << std::endl; 03022 #endif 03023 return true; 03024 } 03025 else 03026 { 03027 return false; 03028 } 03029 }
| void VRMLMaterialDesc::endProtoInterface | ( | void | ) | [virtual] |
Reimplemented from osg::VRMLNodeDesc.
Definition at line 3031 of file OSGVRMLNodeDescs.cpp.
References _defaultAmbientIntensity, _defaultDiffuseColor, _defaultEmissiveColor, _defaultShininess, _defaultSpecularColor, _defaultTransparency, _pDefMat, osg::addRefCP(), osg::MaterialChunkBase::create(), osg::ChunkMaterialBase::create(), osg::SField< FieldTypeT, fieldNameSpace >::getValue(), and osg::Color4< ValueTypeT >::setValuesRGBA().
03032 { 03033 Color4f cCol; 03034 MaterialChunkPtr pMatChunk; 03035 03036 cCol.setValuesRGBA(_defaultDiffuseColor .getValue().red() * 03037 _defaultAmbientIntensity.getValue(), 03038 _defaultDiffuseColor .getValue().green() * 03039 _defaultAmbientIntensity.getValue(), 03040 _defaultDiffuseColor .getValue().blue() * 03041 _defaultAmbientIntensity.getValue(), 03042 1.f - _defaultTransparency .getValue()); 03043 03044 _pDefMat = ChunkMaterial::create(); 03045 addRefCP(_pDefMat); 03046 03047 pMatChunk = MaterialChunk::create(); 03048 03049 pMatChunk->setAmbient(cCol); 03050 03051 cCol.setValuesRGBA (_defaultDiffuseColor.getValue()[0], 03052 _defaultDiffuseColor.getValue()[1], 03053 _defaultDiffuseColor.getValue()[2], 03054 1.f - _defaultTransparency.getValue()); 03055 03056 pMatChunk->setDiffuse(cCol); 03057 03058 cCol.setValuesRGBA (_defaultSpecularColor.getValue()[0], 03059 _defaultSpecularColor.getValue()[1], 03060 _defaultSpecularColor.getValue()[2], 03061 1.f - _defaultTransparency.getValue()); 03062 pMatChunk->setSpecular(cCol); 03063 03064 pMatChunk->setShininess(_defaultShininess.getValue() * 128.f); 03065 03066 cCol.setValuesRGBA (_defaultEmissiveColor.getValue()[0], 03067 _defaultEmissiveColor.getValue()[1], 03068 _defaultEmissiveColor.getValue()[2], 03069 1.f - _defaultTransparency.getValue()); 03070 pMatChunk->setEmission(cCol); 03071 03072 _pDefMat->addChunk(pMatChunk); 03073 }
| void VRMLMaterialDesc::getFieldAndDesc | ( | FieldContainerPtr | pFC, | |
| const Char8 * | szFieldname, | |||
| Field *& | pField, | |||
| const FieldDescription *& | pDesc | |||
| ) | [virtual] |
Reimplemented from osg::VRMLNodeDesc.
Definition at line 3075 of file OSGVRMLNodeDescs.cpp.
References _ambientIntensity, _diffuseColor, _emissiveColor, _shininess, _specularColor, _transparency, and osg::stringcasecmp().
03080 { 03081 if(stringcasecmp("ambientIntensity", szFieldname) == 0) 03082 { 03083 pField = &_ambientIntensity; 03084 } 03085 else if(stringcasecmp("diffuseColor", szFieldname) == 0) 03086 { 03087 pField = &_diffuseColor; 03088 } 03089 else if(stringcasecmp("emissiveColor", szFieldname) == 0) 03090 { 03091 pField = &_emissiveColor; 03092 } 03093 else if(stringcasecmp("shininess", szFieldname) == 0) 03094 { 03095 pField = &_shininess; 03096 } 03097 else if(stringcasecmp("specularColor", szFieldname) == 0) 03098 { 03099 pField = &_specularColor; 03100 } 03101 else if(stringcasecmp("transparency", szFieldname) == 0) 03102 { 03103 pField = &_transparency; 03104 } 03105 03106 pDesc = NULL; 03107 }
| FieldContainerPtr VRMLMaterialDesc::beginNode | ( | const Char8 * | szTypename, | |
| const Char8 * | szName, | |||
| FieldContainerPtr | pCurrentFC | |||
| ) | [virtual] |
Reimplemented from osg::VRMLNodeDesc.
Definition at line 3112 of file OSGVRMLNodeDescs.cpp.
References _pMat, osg::MaterialChunkBase::create(), and reset().
03116 { 03117 reset(); 03118 03119 _pMat = MaterialChunk::create(); 03120 03121 return _pMat; 03122 }
| void VRMLMaterialDesc::endNode | ( | FieldContainerPtr | ) | [virtual] |
Reimplemented from osg::VRMLNodeDesc.
Definition at line 3124 of file OSGVRMLNodeDescs.cpp.
References _ambientIntensity, _diffuseColor, _emissiveColor, _pMat, _shininess, _specularColor, _transparency, osg::beginEditCP(), osg::endEditCP(), osg::SField< FieldTypeT, fieldNameSpace >::getValue(), osg::NullFC, and osg::Color4< ValueTypeT >::setValuesRGBA().
03125 { 03126 if(_pMat != NullFC) 03127 { 03128 Color4f cCol; 03129 03130 cCol.setValuesRGBA (_diffuseColor .getValue().red() * 03131 _ambientIntensity.getValue(), 03132 _diffuseColor .getValue().green() * 03133 _ambientIntensity.getValue(), 03134 _diffuseColor .getValue().blue() * 03135 _ambientIntensity.getValue(), 03136 1.f - _transparency.getValue()); 03137 03138 beginEditCP(_pMat); 03139 03140 _pMat->setAmbient (cCol); 03141 03142 cCol.setValuesRGBA (_diffuseColor.getValue()[0], 03143 _diffuseColor.getValue()[1], 03144 _diffuseColor.getValue()[2], 03145 1.f - _transparency.getValue()); 03146 _pMat->setDiffuse (cCol); 03147 03148 cCol.setValuesRGBA (_specularColor.getValue()[0], 03149 _specularColor.getValue()[1], 03150 _specularColor.getValue()[2], 03151 1.f - _transparency.getValue()); 03152 _pMat->setSpecular (cCol); 03153 03154 _pMat->setShininess(_shininess.getValue() * 128.f ); 03155 03156 cCol.setValuesRGBA (_emissiveColor.getValue()[0], 03157 _emissiveColor.getValue()[1], 03158 _emissiveColor.getValue()[2], 03159 1.f - _transparency.getValue()); 03160 _pMat->setEmission (cCol); 03161 03162 endEditCP(_pMat); 03163 } 03164 }
| void VRMLMaterialDesc::dump | ( | const Char8 * | szNodeName | ) | [virtual] |
| void osg::VRMLMaterialDesc::operator= | ( | const VRMLMaterialDesc & | 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(), 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(), osg::VRMLAppearanceDesc::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(), osg::VRMLAppearanceDesc::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(), init(), osg::VRMLAppearanceDesc::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(), 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] |
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(), osg::VRMLShapeDesc::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(), osg::VRMLShapeDesc::getFieldAndDesc(), osg::VRMLNodeDesc::getFieldAndDesc(), osg::VRMLShapeDesc::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(), osg::VRMLShapeDesc::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(), osg::VRMLShapeDesc::getFieldAndDesc(), osg::VRMLNodeDesc::getFieldAndDesc(), osg::VRMLShapeDesc::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::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 }
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().
Definition at line 980 of file OSGVRMLNodeDescs.h.
Referenced by endProtoInterface(), prototypeAddField(), and reset().
SFColor3f osg::VRMLMaterialDesc::_defaultDiffuseColor [protected] |
Definition at line 981 of file OSGVRMLNodeDescs.h.
Referenced by endProtoInterface(), prototypeAddField(), and reset().
Definition at line 982 of file OSGVRMLNodeDescs.h.
Referenced by endProtoInterface(), prototypeAddField(), and reset().
SFReal32 osg::VRMLMaterialDesc::_defaultShininess [protected] |
Definition at line 983 of file OSGVRMLNodeDescs.h.
Referenced by endProtoInterface(), prototypeAddField(), and reset().
Definition at line 984 of file OSGVRMLNodeDescs.h.
Referenced by endProtoInterface(), prototypeAddField(), and reset().
SFReal32 osg::VRMLMaterialDesc::_defaultTransparency [protected] |
Definition at line 985 of file OSGVRMLNodeDescs.h.
Referenced by endProtoInterface(), prototypeAddField(), and reset().
SFReal32 osg::VRMLMaterialDesc::_ambientIntensity [protected] |
Definition at line 987 of file OSGVRMLNodeDescs.h.
Referenced by endNode(), getFieldAndDesc(), and reset().
SFColor3f osg::VRMLMaterialDesc::_diffuseColor [protected] |
Definition at line 988 of file OSGVRMLNodeDescs.h.
Referenced by endNode(), getFieldAndDesc(), and reset().
SFColor3f osg::VRMLMaterialDesc::_emissiveColor [protected] |
Definition at line 989 of file OSGVRMLNodeDescs.h.
Referenced by endNode(), getFieldAndDesc(), and reset().
SFReal32 osg::VRMLMaterialDesc::_shininess [protected] |
Definition at line 990 of file OSGVRMLNodeDescs.h.
Referenced by endNode(), getFieldAndDesc(), and reset().
SFColor3f osg::VRMLMaterialDesc::_specularColor [protected] |
Definition at line 991 of file OSGVRMLNodeDescs.h.
Referenced by endNode(), getFieldAndDesc(), and reset().
SFReal32 osg::VRMLMaterialDesc::_transparency [protected] |
Definition at line 992 of file OSGVRMLNodeDescs.h.
Referenced by endNode(), getFieldAndDesc(), and reset().
ChunkMaterialPtr osg::VRMLMaterialDesc::_pDefMat [protected] |
Definition at line 994 of file OSGVRMLNodeDescs.h.
Referenced by endProtoInterface(), getDefaultMaterial(), and ~VRMLMaterialDesc().
MaterialChunkPtr osg::VRMLMaterialDesc::_pMat [protected] |
Definition at line 995 of file OSGVRMLNodeDescs.h.
Referenced by beginNode(), endNode(), and reset().
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(), osg::VRMLShapeDesc::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(), osg::VRMLShapeDesc::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(), osg::VRMLShapeDesc::init(), osg::VRMLNodeDesc::init(), osg::VRMLShapeDesc::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(), osg::VRMLShapeDesc::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(), osg::VRMLShapeDesc::init(), osg::VRMLNodeDesc::init(), osg::VRMLViewpointDesc::prototypeAddField(), osg::VRMLShapeDesc::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(), prototypeAddField(), osg::VRMLAppearanceDesc::prototypeAddField(), osg::VRMLGeometryObjectDesc::prototypeAddField(), osg::VRMLGeometryPartDesc::prototypeAddField(), osg::VRMLGeometryPointSetDesc::prototypeAddField(), osg::VRMLGeometryDesc::prototypeAddField(), osg::VRMLShapeDesc::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