#include <OSGComponentTransformBase.h>
Inheritance diagram for osg::ComponentTransformBase:

Public Types | |
| typedef ComponentTransformPtr | Ptr |
| enum | { CenterFieldId = Inherited::NextFieldId, RotationFieldId = CenterFieldId + 1, ScaleFieldId = RotationFieldId + 1, ScaleOrientationFieldId = ScaleFieldId + 1, TranslationFieldId = ScaleOrientationFieldId + 1, NextFieldId = TranslationFieldId + 1 } |
Public Member Functions | |
Parents | |
| *MFNodePtr & | getParents (void) |
| const MFNodePtr & | getParents (void) const |
| MFNodePtr * | getMFParents (void) |
Volume | |
| *virtual void | invalidateVolume (void) |
FieldContainer Get | |
| *virtual FieldContainerType & | getType (void) |
| virtual const FieldContainerType & | getType (void) const |
| virtual UInt32 | getContainerSize (void) const |
Field Get | |
| *SFVec3f * | getSFCenter (void) |
| Get the ComponentTransform::_sfCenter field. | |
| SFQuaternion * | getSFRotation (void) |
| Get the ComponentTransform::_sfRotation field. | |
| SFVec3f * | getSFScale (void) |
| Get the ComponentTransform::_sfScale field. | |
| SFQuaternion * | getSFScaleOrientation (void) |
| Get the ComponentTransform::_sfScaleOrientation field. | |
| SFVec3f * | getSFTranslation (void) |
| Get the ComponentTransform::_sfTranslation field. | |
| Vec3f & | getCenter (void) |
| Get the value of the ComponentTransform::_sfCenter field. | |
| const Vec3f & | getCenter (void) const |
| Get the value of the ComponentTransform::_sfCenter field. | |
| Quaternion & | getRotation (void) |
| Get the value of the ComponentTransform::_sfRotation field. | |
| const Quaternion & | getRotation (void) const |
| Get the value of the ComponentTransform::_sfRotation field. | |
| Vec3f & | getScale (void) |
| Get the value of the ComponentTransform::_sfScale field. | |
| const Vec3f & | getScale (void) const |
| Get the value of the ComponentTransform::_sfScale field. | |
| Quaternion & | getScaleOrientation (void) |
| Get the value of the ComponentTransform::_sfScaleOrientation field. | |
| const Quaternion & | getScaleOrientation (void) const |
| Get the value of the ComponentTransform::_sfScaleOrientation field. | |
| Vec3f & | getTranslation (void) |
| Get the value of the ComponentTransform::_sfTranslation field. | |
| const Vec3f & | getTranslation (void) const |
| Get the value of the ComponentTransform::_sfTranslation field. | |
Field Set | |
| *void | setCenter (const Vec3f &value) |
| Set the value of the ComponentTransform::_sfCenter field. | |
| void | setRotation (const Quaternion &value) |
| Set the value of the ComponentTransform::_sfRotation field. | |
| void | setScale (const Vec3f &value) |
| Set the value of the ComponentTransform::_sfScale field. | |
| void | setScaleOrientation (const Quaternion &value) |
| Set the value of the ComponentTransform::_sfScaleOrientation field. | |
| void | setTranslation (const Vec3f &value) |
| Set the value of the ComponentTransform::_sfTranslation field. | |
Binary Access | |
| *virtual UInt32 | getBinSize (const BitVector &whichField) |
| virtual void | copyToBin (BinaryDataHandler &pMem, const BitVector &whichField) |
| virtual void | copyFromBin (BinaryDataHandler &pMem, const BitVector &whichField) |
Copy | |
| *virtual FieldContainerPtr | shallowCopy (void) const |
Sync | |
| *virtual void | changed (BitVector whichField, UInt32 origin) |
Helper | |
| *virtual void | accumulateMatrix (Matrix &result) |
| void | adjustVolume (Volume &volume) |
Dump | |
| *virtual void | dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const |
Field Get | |
| *SFMatrix * | getSFMatrix (void) |
| Get the Transform::_sfMatrix field. | |
| Matrix & | getMatrix (void) |
| Get the value of the Transform::_sfMatrix field. | |
| const Matrix & | getMatrix (void) const |
| Get the value of the Transform::_sfMatrix field. | |
Field Set | |
| *void | setMatrix (const Matrix &value) |
| Set the value of the Transform::_sfMatrix field. | |
Parents | |
| *MFNodePtr & | getParents (void) |
| const MFNodePtr & | getParents (void) const |
| MFNodePtr * | getMFParents (void) |
Volume | |
| *virtual void | invalidateVolume (void) |
Static Public Member Functions | |
Class Get | |
| *static FieldContainerType & | getClassType (void) |
| access the type of the class | |
| static UInt32 | getClassTypeId (void) |
| access the numerical type of the class | |
Construction | |
| *static ComponentTransformPtr | create (void) |
| create a new instance of the class | |
| static ComponentTransformPtr | createEmpty (void) |
| create an empty new instance of the class, do not copy the prototype | |
Static Public Attributes | |
| static const osg::BitVector | CenterFieldMask |
| static const osg::BitVector | RotationFieldMask |
| static const osg::BitVector | ScaleFieldMask |
| static const osg::BitVector | ScaleOrientationFieldMask |
| static const osg::BitVector | TranslationFieldMask |
| static const osg::BitVector | MTInfluenceMask |
| static const osg::BitVector | MatrixFieldMask |
| static const BitVector | ParentsFieldMask = (1 << NodeCore::ParentsFieldId ) |
| static const BitVector | AttachmentsFieldMask |
| static const BitVector | NextFieldMask |
CoredNodePtr helper | |
| *static const bool | isNodeCore = true |
CoredNodePtr helper | |
| *static const bool | isNodeCore = true |
Protected Member Functions | |
Sync | |
| *void | executeSyncImpl (GroupBase *pOther, const BitVector &whichField) |
Sync | |
| void | executeSyncImpl (NodeCore *pOther, const BitVector &whichField) |
MT Destruction | |
| *virtual void | onDestroy (void) |
Set / Get Parents | |
| *void | addParent (const NodePtr &parent) |
| void | subParent (const NodePtr &parent) |
Pointer | |
| *NodeCorePtr | getPtr (void) const |
Constructors | |
| * | ComponentTransformBase (void) |
| ComponentTransformBase (const ComponentTransformBase &source) | |
Destructors | |
| *virtual | ~ComponentTransformBase (void) |
Sync | |
| *void | executeSyncImpl (ComponentTransformBase *pOther, const BitVector &whichField) |
| virtual void | executeSync (FieldContainer &other, const BitVector &whichField) |
Draw & Intersect & Render | |
| *Action::ResultE | drawEnter (Action *action) |
| Action::ResultE | drawLeave (Action *action) |
| Action::ResultE | intersectEnter (Action *action) |
| NewActionTypes::ResultE | intersectEnter (ActorBase::FunctorArgumentType &funcArg) |
| Action::ResultE | intersectLeave (Action *action) |
| NewActionTypes::ResultE | intersectLeave (ActorBase::FunctorArgumentType &funcArg) |
| Action::ResultE | renderEnter (Action *action) |
| Action::ResultE | renderLeave (Action *action) |
Sync | |
| *void | executeSyncImpl (TransformBase *pOther, const BitVector &whichField) |
Sync | |
| *void | executeSyncImpl (GroupBase *pOther, const BitVector &whichField) |
Sync | |
| void | executeSyncImpl (NodeCore *pOther, const BitVector &whichField) |
Action Callbacks | |
| Action::ResultE | intersect (Action *action) |
MT Destruction | |
| *virtual void | onDestroy (void) |
Set / Get Parents | |
| *void | addParent (const NodePtr &parent) |
| void | subParent (const NodePtr &parent) |
Pointer | |
| *NodeCorePtr | getPtr (void) const |
Protected Attributes | |
Fields | |
| *MFNodePtr | _parents |
Fields | |
| *SFVec3f | _sfCenter |
| SFQuaternion | _sfRotation |
| SFVec3f | _sfScale |
| SFQuaternion | _sfScaleOrientation |
| SFVec3f | _sfTranslation |
Fields | |
| *SFMatrix | _sfMatrix |
Fields | |
| *MFNodePtr | _parents |
Private Types | |
| typedef Transform | Inherited |
Private Member Functions | |
| void | operator= (const ComponentTransformBase &source) |
Static Private Attributes | |
| static FieldDescription * | _desc [] |
| ComponentTransform description. | |
| static FieldContainerType | _type |
Friends | |
| class | FieldContainer |
Definition at line 85 of file OSGComponentTransformBase.h.
|
|
Reimplemented from osg::Transform. Reimplemented in osg::ComponentTransform. Definition at line 89 of file OSGComponentTransformBase.h. |
|
|
Reimplemented from osg::TransformBase. Definition at line 94 of file OSGComponentTransformBase.h. |
|
|
Reimplemented from osg::TransformBase. Definition at line 96 of file OSGComponentTransformBase.h. 00097 { 00098 CenterFieldId = Inherited::NextFieldId, 00099 RotationFieldId = CenterFieldId + 1, 00100 ScaleFieldId = RotationFieldId + 1, 00101 ScaleOrientationFieldId = ScaleFieldId + 1, 00102 TranslationFieldId = ScaleOrientationFieldId + 1, 00103 NextFieldId = TranslationFieldId + 1 00104 };
|
|
|
Definition at line 208 of file OSGComponentTransformBase.cpp. 00208 : 00209 _sfCenter (), 00210 _sfRotation (), 00211 _sfScale (), 00212 _sfScaleOrientation (), 00213 _sfTranslation (), 00214 Inherited() 00215 { 00216 }
|
|
|
Definition at line 222 of file OSGComponentTransformBase.cpp. 00222 : 00223 _sfCenter (source._sfCenter ), 00224 _sfRotation (source._sfRotation ), 00225 _sfScale (source._sfScale ), 00226 _sfScaleOrientation (source._sfScaleOrientation ), 00227 _sfTranslation (source._sfTranslation ), 00228 Inherited (source) 00229 { 00230 }
|
|
|
Definition at line 234 of file OSGComponentTransformBase.cpp.
|
|
|
Reimplemented from osg::TransformBase. Definition at line 58 of file OSGComponentTransformBase.inl. References _type. Referenced by create(), osg::VRMLWriteAction::initializeAction(), osg::ComponentTransform::initMethod(), osg::SplitGraphOp::isGroup(), and osg::MergeGraphOp::isGroup(). 00059 { 00060 return _type; 00061 }
|
|
|
Reimplemented from osg::TransformBase. Definition at line 65 of file OSGComponentTransformBase.inl. References _type, and osg::TypeBase::getId(). 00066 { 00067 return _type.getId(); 00068 }
|
|
|
Reimplemented from osg::TransformBase. Definition at line 150 of file OSGComponentTransformBase.cpp. References _type. 00151 { 00152 return _type; 00153 }
|
|
|
Reimplemented from osg::TransformBase. Definition at line 155 of file OSGComponentTransformBase.cpp. References _type. 00156 { 00157 return _type; 00158 }
|
|
|
Reimplemented from osg::TransformBase. Definition at line 170 of file OSGComponentTransformBase.cpp. 00171 { 00172 return sizeof(ComponentTransform); 00173 }
|
|
|
Definition at line 101 of file OSGComponentTransformBase.inl. References _sfCenter. 00102 { 00103 return &_sfCenter; 00104 }
|
|
|
Definition at line 108 of file OSGComponentTransformBase.inl. References _sfRotation. 00109 { 00110 return &_sfRotation; 00111 }
|
|
|
Definition at line 115 of file OSGComponentTransformBase.inl. References _sfScale. 00116 { 00117 return &_sfScale; 00118 }
|
|
|
Definition at line 122 of file OSGComponentTransformBase.inl. References _sfScaleOrientation. 00123 { 00124 return &_sfScaleOrientation; 00125 }
|
|
|
Definition at line 129 of file OSGComponentTransformBase.inl. References _sfTranslation. 00130 { 00131 return &_sfTranslation; 00132 }
|
|
|
Definition at line 137 of file OSGComponentTransformBase.inl. References _sfCenter, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::ComponentTransform::changed(). 00138 { 00139 return _sfCenter.getValue(); 00140 }
|
|
|
Definition at line 144 of file OSGComponentTransformBase.inl. References _sfCenter, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00145 { 00146 return _sfCenter.getValue(); 00147 }
|
|
|
Definition at line 158 of file OSGComponentTransformBase.inl. References _sfRotation, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::ComponentTransform::changed(). 00159 { 00160 return _sfRotation.getValue(); 00161 }
|
|
|
Definition at line 165 of file OSGComponentTransformBase.inl. References _sfRotation, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00166 { 00167 return _sfRotation.getValue(); 00168 }
|
|
|
Definition at line 179 of file OSGComponentTransformBase.inl. References _sfScale, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::ComponentTransform::changed(). 00180 { 00181 return _sfScale.getValue(); 00182 }
|
|
|
Definition at line 186 of file OSGComponentTransformBase.inl. References _sfScale, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00187 { 00188 return _sfScale.getValue(); 00189 }
|
|
|
Definition at line 200 of file OSGComponentTransformBase.inl. References _sfScaleOrientation, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::ComponentTransform::changed(). 00201 { 00202 return _sfScaleOrientation.getValue(); 00203 }
|
|
|
Definition at line 207 of file OSGComponentTransformBase.inl. References _sfScaleOrientation, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00208 { 00209 return _sfScaleOrientation.getValue(); 00210 }
|
|
|
Definition at line 221 of file OSGComponentTransformBase.inl. References _sfTranslation, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::ComponentTransform::changed(). 00222 { 00223 return _sfTranslation.getValue(); 00224 }
|
|
|
Definition at line 228 of file OSGComponentTransformBase.inl. References _sfTranslation, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00229 { 00230 return _sfTranslation.getValue(); 00231 }
|
|
|
Definition at line 151 of file OSGComponentTransformBase.inl. References _sfCenter, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
|
|
|
Definition at line 172 of file OSGComponentTransformBase.inl. References _sfRotation, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00173 { 00174 _sfRotation.setValue(value); 00175 }
|
|
|
Definition at line 193 of file OSGComponentTransformBase.inl. References _sfScale, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
|
|
|
Definition at line 214 of file OSGComponentTransformBase.inl. References _sfScaleOrientation, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00215 { 00216 _sfScaleOrientation.setValue(value); 00217 }
|
|
|
Definition at line 235 of file OSGComponentTransformBase.inl. References _sfTranslation, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00236 { 00237 _sfTranslation.setValue(value); 00238 }
|
|
|
||||||||||||
|
||||||||||||
|
|
Reimplemented from osg::TransformBase. Definition at line 72 of file OSGComponentTransformBase.inl. References osg::AttachmentContainerPtr::dcast(), getClassType(), osg::FieldContainerType::getPrototype(), osg::NullFC, and shallowCopy(). Referenced by osg::DisplayCalibration::createCMViewports(), osg::VRMLViewpointDesc::init(), and osg::VRMLNodeDesc::init(). 00073 { 00074 ComponentTransformPtr fc; 00075 00076 if(getClassType().getPrototype() != OSG::NullFC) 00077 { 00078 fc = ComponentTransformPtr::dcast( 00079 getClassType().getPrototype()-> shallowCopy()); 00080 } 00081 00082 return fc; 00083 }
|
|