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

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 | |
| * | VRMLTextureTransformDesc (void) |
Destructor | |
| *virtual | ~VRMLTextureTransformDesc (void) |
Helper | |
| *virtual void | init (const Char8 *szName) |
| virtual void | reset (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 | |
| *SFVec2f | _defaultCenter |
| SFReal32 | _defaultRotation |
| SFVec2f | _defaultScale |
| SFVec2f | _defaultTranslation |
| SFVec2f | _center |
| SFReal32 | _rotation |
| SFVec2f | _scale |
| SFVec2f | _translation |
Private Types | |
| typedef VRMLNodeDesc | Inherited |
Private Member Functions | |
| VRMLTextureTransformDesc (const VRMLTextureTransformDesc &source) | |
| prohibit default function (move to 'public' if needed) | |
| void | operator= (const VRMLTextureTransformDesc &source) |
| prohibit default function (move to 'public' if needed) | |
Definition at line 1016 of file OSGVRMLNodeDescs.h.
|
|
Definition at line 1099 of file OSGVRMLNodeDescs.h. |
|
|
Definition at line 298 of file OSGVRMLNodeDescs.h. |
|
|
Definition at line 3175 of file OSGVRMLNodeDescs.cpp. 03175 : 03176 Inherited(), 03177 _defaultCenter(), 03178 _defaultRotation(), 03179 _defaultScale(), 03180 _defaultTranslation(), 03181 03182 _center(), 03183 _rotation(), 03184 _scale(), 03185 _translation() 03186 { 03187 }
|
|
|
Definition at line 3192 of file OSGVRMLNodeDescs.cpp.
|
|
|
|
|
|
Reimplemented from osg::VRMLNodeDesc. Definition at line 3199 of file OSGVRMLNodeDescs.cpp. References osg::VRMLNodeDesc::getIndent(), osg::indentLog(), and PINFO. 03200 { 03201 #ifdef OSG_DEBUG_VRML 03202 indentLog(getIndent(), PINFO); 03203 PINFO << "TextureTransformDesc::init : " << szName << std::endl; 03204 #endif 03205 }
|
|
|
Reimplemented from osg::VRMLNodeDesc. Definition at line 3207 of file OSGVRMLNodeDescs.cpp.
|
|
||||||||||||||||
|
Reimplemented from osg::VRMLNodeDesc. Definition at line 3214 of file OSGVRMLNodeDescs.cpp. References _defaultCenter, _defaultRotation, _defaultScale, _defaultTranslation, osg::VRMLNodeDesc::_pCurrField, osg::VRMLNodeDesc::getIndent(), osg::indentLog(), PINFO, and osg::stringcasecmp(). 03217 { 03218 bool bFound =false; 03219 03220 _pCurrField = NULL; 03221 03222 if(stringcasecmp("center", szFieldname) == 0) 03223 { 03224 _pCurrField = &_defaultCenter; 03225 03226 bFound = true; 03227 } 03228 else if(stringcasecmp("rotation", szFieldname) == 0) 03229 { 03230 _pCurrField = &_defaultRotation; 03231 03232 bFound = true; 03233 } 03234 else if(stringcasecmp("scale", szFieldname) == 0) 03235 { 03236 _pCurrField = &_defaultScale; 03237 03238 bFound = true; 03239 } 03240 else if(stringcasecmp("translation", szFieldname) == 0) 03241 { 03242 _pCurrField = &_defaultTranslation; 03243 03244 bFound = true; 03245 } 03246 03247 if(bFound == true) 03248 { 03249 #ifdef OSG_DEBUG_VRML 03250 indentLog(getIndent(), PINFO); 03251 PINFO << "TextureTransformDesc::prototypeAddField : add part " 03252 << szFieldname 03253 << std::endl; 03254 #endif 03255 03256 return true; 03257 } 03258 else 03259 { 03260 return false; 03261 } 03262 }
|
|
|
Reimplemented from osg::VRMLNodeDesc. Definition at line 3264 of file OSGVRMLNodeDescs.cpp.
|
|
||||||||||||||||||||
|
Reimplemented from osg::VRMLNodeDesc. Definition at line 3268 of file OSGVRMLNodeDescs.cpp. References _center, _rotation, _scale, _translation, and osg::stringcasecmp(). 03273 { 03274 if(stringcasecmp("center", szFieldname) == 0) 03275 { 03276 pField = &_center; 03277 } 03278 else if(stringcasecmp("rotation", szFieldname) == 0) 03279 { 03280 pField = &_rotation; 03281 } 03282 else if(stringcasecmp("scale", szFieldname) == 0) 03283 { 03284 pField = &_scale; 03285 } 03286 else if(stringcasecmp("translation", szFieldname) == 0) 03287 { 03288 pField = &_translation; 03289 } 03290 03291 pDesc = NULL; 03292 }
|
|
||||||||||||||||
|
Reimplemented from osg::VRMLNodeDesc. Definition at line 3297 of file OSGVRMLNodeDescs.cpp. References _center, _defaultCenter, _defaultRotation, _defaultScale, _defaultTranslation, _rotation, _scale, _translation, osg::TextureTransformChunkBase::create(), osg::VRMLNodeDesc::getIndent(), osg::VRMLNodeDesc::incIndent(), osg::indentLog(), and PINFO. 03301 { 03302 TextureTransformChunkPtr returnValue = TextureTransformChunk::create(); 03303 03304 #ifdef OSG_DEBUG_VRML 03305 indentLog(getIndent(), PINFO); 03306 PINFO << "Begin TextureTransform " << &(*returnValue) << std::endl; 03307 03308 incIndent(); 03309 #endif 03310 03311 _center = _defaultCenter; 03312 _rotation = _defaultRotation; 03313 _scale = _defaultScale; 03314 _translation = _defaultTranslation; 03315 03316 return returnValue; 03317 }
|
|
|
Reimplemented from osg::VRMLNodeDesc. Definition at line 3319 of file OSGVRMLNodeDescs.cpp. References _center, _rotation, _scale, _translation, osg::beginEditCP(), osg::AttachmentPtr::dcast(), osg::VRMLNodeDesc::decIndent(), osg::endEditCP(), osg::VRMLNodeDesc::getIndent(), osg::SField< FieldTypeT, fieldNameSpace >::getValue(), osg::QuaternionBase< Real32 >::identity(), osg::indentLog(), osg::NullFC, PINFO, PWARNING, osg::TransformationMatrix< ValueTypeT >::setTransform(), and osg::QuaternionBase< ValueTypeT >::setValueAsAxisRad(). 03320 { 03321 TextureTransformChunkPtr pTexTrans = NullFC; 03322 03323 pTexTrans = TextureTransformChunkPtr::dcast(pFC); 03324 03325 if(pTexTrans != NullFC) 03326 { 03327 Matrix m; 03328 03329 Vec3f center(_center.getValue()[0], 03330 _center.getValue()[1], 0.0f); 03331 03332 Quaternion rotation; 03333 rotation.setValueAsAxisRad(0.0f, 0.0f, 1.0f, _rotation.getValue()); 03334 03335 Vec3f scale(_scale.getValue()[0], 03336 _scale.getValue()[1], 1.0f); 03337 03338 Vec3f translation(_translation.getValue()[0], 03339 _translation.getValue()[1], 0.0f); 03340 03341 m.setTransform(translation, 03342 rotation, 03343 scale, 03344 Quaternion::identity(), 03345 center); 03346 03347 beginEditCP(pTexTrans); 03348 { 03349 pTexTrans->setMatrix(m); 03350 } 03351 endEditCP (pTexTrans); 03352 } 03353 else 03354 { 03355 PWARNING << "VRMLTextureTransformDesc::endNode : Invalid texture transform ptr" 03356 << std::endl; 03357 } 03358 03359 #ifdef OSG_DEBUG_VRML 03360 decIndent(); 03361 03362 indentLog(getIndent(), PINFO); 03363 PINFO << "End TextureTransform " 03364 << _center.getValue() << " " 03365 << _rotation.getValue() << " " 03366 << _scale.getValue() << " " 03367 << _translation.getValue() << " " 03368 << &(*pFC) << std::endl; 03369 #endif 03370 }
|
|
|
Reimplemented from osg::VRMLNodeDesc. Definition at line 3375 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 }
|
|
|
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::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 1085 of file OSGVRMLNodeDescs.h. Referenced by beginNode(), and prototypeAddField(). |
|
|
Definition at line 1086 of file OSGVRMLNodeDescs.h. Referenced by beginNode(), and prototypeAddField(). |
|
|
Definition at line 1087 of file OSGVRMLNodeDescs.h. Referenced by beginNode(), and prototypeAddField(). |
|
|
Definition at line 1088 of file OSGVRMLNodeDescs.h. Referenced by beginNode(), and prototypeAddField(). |
|
|
Definition at line 1090 of file OSGVRMLNodeDescs.h. Referenced by beginNode(), endNode(), and getFieldAndDesc(). |
|
|
Definition at line 1091 of file OSGVRMLNodeDescs.h. Referenced by beginNode(), endNode(), and getFieldAndDesc(). |
|
|
Definition at line 1092 of file OSGVRMLNodeDescs.h. Referenced by beginNode(), endNode(), and getFieldAndDesc(). |
|
|
Definition at line 1093 of file OSGVRMLNodeDescs.h. Referenced by beginNode(), endNode(), and getFieldAndDesc(). |
|
|
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. |
|
|
|