Choreonoid  1.5
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
cnoid::SceneDevice Class Reference

#include <SceneDevice.h>

Inheritance diagram for cnoid::SceneDevice:
cnoid::SgPosTransform cnoid::SgTransform cnoid::SgGroup cnoid::SgNode cnoid::SgObject cnoid::Referenced

Public Types

typedef boost::function< SceneDevice *(Device *device)> SceneDeviceFactory
 
- 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
 

Public Member Functions

 SceneDevice (Device *device)
 
 SceneDevice (Device *device, SgNode *sceneNode, boost::function< void()> sceneUpdateFunction)
 
template<class DeviceType >
DeviceType * device ()
 
template<class DeviceType >
const DeviceType * device () const
 
Devicedevice ()
 
const Devicedevice () const
 
void setSceneUpdateFunction (boost::function< void()> function)
 
void updateScene ()
 
void setSceneUpdateConnection (bool on)
 
- 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 ()
 

Static Public Member Functions

template<class DeviceType >
static void registerSceneDeviceFactory (const SceneDeviceFactory &factory)
 
static SceneDevicecreate (Device *device)
 

Public Attributes

 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
 
- Public Attributes inherited from cnoid::SgPosTransform
 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
 

Protected Member Functions

 ~SceneDevice ()
 
- 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
 

Additional Inherited Members

- Protected Attributes inherited from cnoid::SgTransform
BoundingBox untransformedBboxCache
 
- Protected Attributes inherited from cnoid::SgGroup
BoundingBox bboxCache
 
bool isBboxCacheValid
 

Member Typedef Documentation

◆ SceneDeviceFactory

Constructor & Destructor Documentation

◆ SceneDevice() [1/2]

SceneDevice::SceneDevice ( Device device)

◆ SceneDevice() [2/2]

SceneDevice::SceneDevice ( Device device,
SgNode sceneNode,
boost::function< void()>  sceneUpdateFunction 
)

◆ ~SceneDevice()

SceneDevice::~SceneDevice ( )
protected

Member Function Documentation

◆ create()

SceneDevice * SceneDevice::create ( Device device)
static

◆ device() [1/4]

template<class DeviceType >
DeviceType* cnoid::SceneDevice::device ( )
inline

◆ device() [2/4]

template<class DeviceType >
const DeviceType* cnoid::SceneDevice::device ( ) const
inline

◆ device() [3/4]

Device* cnoid::SceneDevice::device ( )
inline

◆ device() [4/4]

const Device* cnoid::SceneDevice::device ( ) const
inline

◆ registerSceneDeviceFactory()

template<class DeviceType >
static void cnoid::SceneDevice::registerSceneDeviceFactory ( const SceneDeviceFactory factory)
inlinestatic

◆ setSceneUpdateConnection()

void SceneDevice::setSceneUpdateConnection ( bool  on)

◆ setSceneUpdateFunction()

void SceneDevice::setSceneUpdateFunction ( boost::function< void()>  function)

◆ updateScene()

void cnoid::SceneDevice::updateScene ( )
inline

Member Data Documentation

◆ EIGEN_MAKE_ALIGNED_OPERATOR_NEW

cnoid::SceneDevice::EIGEN_MAKE_ALIGNED_OPERATOR_NEW

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