Choreonoid  1.5
Public Member Functions | Public Attributes | List of all members
cnoid::SceneLink Class Reference

#include <SceneBody.h>

Inheritance diagram for cnoid::SceneLink:
cnoid::SgPosTransform cnoid::SgTransform cnoid::SgGroup cnoid::SgNode cnoid::SgObject cnoid::Referenced cnoid::EditableSceneLink

Public Member Functions

 SceneLink (Link *link)
 
Linklink ()
 
const Linklink () const
 
const SgNodevisualShape () const
 
SgNodevisualShape ()
 
const SgNodecollisionShape () const
 
SgNodecollisionShape ()
 
void setShapeGroup (SgGroup *group)
 
void resetShapeGroup ()
 
void cloneShape (SgCloneMap &cloneMap)
 
void setVisible (bool on)
 
void setVisibleShapeTypes (bool visual, bool collision)
 
void makeTransparent (float transparency)
 
void makeTransparent (float transparency, SgCloneMap &cloneMap)
 
void addSceneDevice (SceneDevice *sdev)
 
SceneDevicegetSceneDevice (Device *device)
 
- Public Member Functions inherited from cnoid::SgPosTransform
 SgPosTransform ()
 
 SgPosTransform (const Affine3 &T)
 
 SgPosTransform (const SgPosTransform &org)
 
 SgPosTransform (const SgPosTransform &org, SgCloneMap &cloneMap)
 
virtual SgObjectclone (SgCloneMap &cloneMap) const
 
virtual void accept (SceneVisitor &visitor)
 
virtual const BoundingBoxboundingBox () const
 
virtual void getTransform (Affine3 &out_T) const
 
Affine3T ()
 
const Affine3T () const
 
Affine3position ()
 
const Affine3position () const
 
Affine3::TranslationPart translation ()
 
Affine3::ConstTranslationPart translation () const
 
Affine3::LinearPart rotation ()
 
Affine3::ConstLinearPart rotation () const
 
template<class Scalar , int Mode, int Options>
void setPosition (const Eigen::Transform< Scalar, 3, Mode, Options > &T)
 
template<class Scalar , int Mode, int Options>
void setTransform (const Eigen::Transform< Scalar, 3, Mode, Options > &T)
 
template<typename Derived >
void setRotation (const Eigen::MatrixBase< Derived > &R)
 
template<typename T >
void setRotation (const Eigen::AngleAxis< T > &a)
 
template<typename Derived >
void setTranslation (const Eigen::MatrixBase< Derived > &p)
 
- Public Member Functions inherited from cnoid::SgTransform
 SgTransform ()
 
 SgTransform (const SgTransform &org)
 
 SgTransform (const SgTransform &org, SgCloneMap &cloneMap)
 
const BoundingBoxuntransformedBoundingBox () const
 
- Public Member Functions inherited from cnoid::SgGroup
 SgGroup ()
 
 SgGroup (const SgGroup &org)
 shallow copy More...
 
 SgGroup (const SgGroup &org, SgCloneMap &cloneMap)
 deep copy More...
 
 ~SgGroup ()
 
virtual int numChildObjects () const
 
virtual SgObjectchildObject (int index)
 
virtual void onUpdated (SgUpdate &update)
 
virtual bool isGroup () const
 
void invalidateBoundingBox ()
 
iterator begin ()
 
iterator end ()
 
reverse_iterator rbegin ()
 
reverse_iterator rend ()
 
const_iterator begin () const
 
const_iterator end () const
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator rend () const
 
iterator erase (iterator pos)
 
bool contains (SgNode *node) const
 
bool empty () const
 
int numChildren () const
 
SgNodechild (int index)
 
template<class NodeType >
NodeType * getChild (int index)
 This throws an exeption when the index is invalid or the type is not matched. More...
 
void clearChildren (bool doNotify=false)
 
void addChild (SgNode *node, bool doNotify=false)
 
bool addChildOnce (SgNode *node, bool doNotify=false)
 
void insertChild (SgNode *node, int index=0, bool doNotify=false)
 
bool removeChild (SgNode *node, bool doNotify=false)
 
void removeChildAt (int index, bool doNotify=false)
 
void copyChildrenTo (SgGroup *group, bool doNotify=false)
 
void moveChildrenTo (SgGroup *group, bool doNotify=false)
 
template<class NodeType >
NodeType * findNodeOfType ()
 
- Public Member Functions inherited from cnoid::SgNode
 SgNode ()
 
 SgNode (const SgNode &org)
 
 ~SgNode ()
 
SgNodecloneNode (SgCloneMap &cloneMap) const
 
- Public Member Functions inherited from cnoid::SgObject
const std::string & name () const
 
void setName (const std::string &name)
 
SignalProxy< void(const SgUpdate &update)> sigUpdated ()
 
void notifyUpdate (SgUpdate &update)
 
void notifyUpdate (int action=SgUpdate::MODIFIED)
 
void addParent (SgObject *parent, bool doNotify=false)
 
void removeParent (SgObject *parent)
 
int numParents () const
 
bool hasParents () const
 
const_parentIter parentBegin () const
 
const_parentIter parentEnd () const
 
SignalProxy< void(bool on)> sigGraphConnection ()
 
- Public Member Functions inherited from cnoid::Referenced
virtual ~Referenced ()
 
void addRef ()
 
void releaseRef ()
 

Public Attributes

 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
 
- Public Attributes inherited from cnoid::SgPosTransform
 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
 

Additional Inherited Members

- Public Types inherited from cnoid::SgGroup
typedef Container::iterator iterator
 
typedef Container::reverse_iterator reverse_iterator
 
typedef Container::const_iterator const_iterator
 
typedef Container::const_reverse_iterator const_reverse_iterator
 
- Public Types inherited from cnoid::SgObject
typedef std::set< SgObject * > ParentContainer
 
typedef ParentContainer::iterator parentIter
 
typedef ParentContainer::const_iterator const_parentIter
 
- Protected Member Functions inherited from cnoid::SgObject
 SgObject ()
 
 SgObject (const SgObject &org)
 
- Protected Member Functions inherited from cnoid::Referenced
 Referenced ()
 
 Referenced (const Referenced &org)
 
int refCount () const
 
- Protected Attributes inherited from cnoid::SgTransform
BoundingBox untransformedBboxCache
 
- Protected Attributes inherited from cnoid::SgGroup
BoundingBox bboxCache
 
bool isBboxCacheValid
 

Constructor & Destructor Documentation

◆ SceneLink()

SceneLink::SceneLink ( Link link)

Member Function Documentation

◆ addSceneDevice()

void SceneLink::addSceneDevice ( SceneDevice sdev)

◆ cloneShape()

void SceneLink::cloneShape ( SgCloneMap cloneMap)

◆ collisionShape() [1/2]

const SgNode* cnoid::SceneLink::collisionShape ( ) const
inline

◆ collisionShape() [2/2]

SgNode* cnoid::SceneLink::collisionShape ( )
inline

◆ getSceneDevice()

SceneDevice * SceneLink::getSceneDevice ( Device device)

◆ link() [1/2]

Link* cnoid::SceneLink::link ( )
inline

◆ link() [2/2]

const Link* cnoid::SceneLink::link ( ) const
inline

◆ makeTransparent() [1/2]

void SceneLink::makeTransparent ( float  transparency)

◆ makeTransparent() [2/2]

void SceneLink::makeTransparent ( float  transparency,
SgCloneMap cloneMap 
)

◆ resetShapeGroup()

void SceneLink::resetShapeGroup ( )

◆ setShapeGroup()

void SceneLink::setShapeGroup ( SgGroup group)

◆ setVisible()

void SceneLink::setVisible ( bool  on)

◆ setVisibleShapeTypes()

void SceneLink::setVisibleShapeTypes ( bool  visual,
bool  collision 
)

◆ visualShape() [1/2]

const SgNode* cnoid::SceneLink::visualShape ( ) const
inline

◆ visualShape() [2/2]

SgNode* cnoid::SceneLink::visualShape ( )
inline

Member Data Documentation

◆ EIGEN_MAKE_ALIGNED_OPERATOR_NEW

cnoid::SceneLink::EIGEN_MAKE_ALIGNED_OPERATOR_NEW

The documentation for this class was generated from the following files: