class SG_EXPORT osg::DCS: public Group

DCS - Dynamic Coordinate System a is group which all children are transformed by the the DCS's osg::Matrix.

Inheritance:


Public Methods

[more] DCS()
[more] DCS(const Matrix& matix)
[more]virtual Object* clone() const
[more]virtual bool isSameKindAs(Object* obj)
[more]virtual const char* className() const
[more]virtual void accept(NodeVisitor& nv)
[more]void setMatrix(const Matrix& mat )
[more]Matrix* getMatrix()
[more]void preTranslate( float tx, float ty, float tz )
[more]void preRotate( float deg, float x, float y, float z )
[more]bool computeBound()

Protected Fields

[more]Matrix* _mat

Protected Methods

[more]virtual ~DCS()
[more]virtual bool readLocalData(Input& fr)
[more]virtual bool writeLocalData(Output& fw)


Inherited from Group:

Public Methods

ovirtual void traverse(NodeVisitor& nv)
ovirtual bool addChild( Node *child )
ovirtual bool removeChild( Node *child )
ovirtual bool replaceChild( Node *origChild, Node* newChild )
oint getNumChildren( void )
oNode* getChild( int i )
obool containsNode( Node* node )
oChildList::iterator findNode( Node* node )

Public

otypedef std::vector<ref_ptr<Node> > ChildList

Protected Fields

oChildList _children


Inherited from Node:

Public Methods

oNode* cloneNode() const
ovirtual void ascend(NodeVisitor& nv)
ovoid setName( const std::string& name )
ovoid setName( const char* name )
oconst std::string& getName( void )
oconst ParentList& getParents() const
oGroup* getParent(int i) const
oint getNumParents() const
ovoid setUserData(void* data, MemoryAdapter* ma=0L)
ovoid* getUserData() const
oMemoryAdapter* getMemoryAdapter() const
ovoid setNodeMask(NodeMask nm)
oNodeMask getNodeMask()
oconst DescriptionList& getDescriptions() const
oDescriptionList& getDescriptions()
oconst std::string& getDescription(int i) const
ostd::string& getDescription(int i)
oint getNumDescriptions() const
ovoid addDescription(const std::string& desc)
oconst BoundingSphere& getBound()
ovoid dirtyBound()

Public

otypedef std::vector<Group*> ParentList
otypedef unsigned int NodeMask
otypedef std::vector<std::string> DescriptionList

Protected Fields

oBoundingSphere _bsphere
obool _bsphere_computed
ostd::string _name
oParentList _parents
ofriend Group
ovoid* _userData
oref_ptr<MemoryAdapter> _memoryAdapter
oNodeMask _nodeMask
oDescriptionList _descriptions


Inherited from Object:

Public Methods

ovirtual Object* readClone(Input& fr)
ovirtual bool write(Output& fw)


Inherited from Referenced:

Public Methods

oReferenced& operator = (Referenced&)
ovoid ref()
ovoid unref()
oint referenceCount()

Protected Fields

oint _refCount


Documentation

DCS - Dynamic Coordinate System a is group which all children are transformed by the the DCS's osg::Matrix. Typical uses of the DCS is for positioning objects within a scene or producing trakerball functionality.
o DCS()

o DCS(const Matrix& matix)

ovirtual Object* clone() const

ovirtual bool isSameKindAs(Object* obj)

ovirtual const char* className() const

ovirtual void accept(NodeVisitor& nv)

ovoid setMatrix(const Matrix& mat )

oMatrix* getMatrix()

ovoid preTranslate( float tx, float ty, float tz )

ovoid preRotate( float deg, float x, float y, float z )

obool computeBound()

ovirtual ~DCS()

ovirtual bool readLocalData(Input& fr)

ovirtual bool writeLocalData(Output& fw)

oMatrix* _mat


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.