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

#include <RotationDragger.h>

Inheritance diagram for cnoid::RotationDragger:
cnoid::SceneDragger cnoid::SgPosTransform cnoid::SceneWidgetEditable cnoid::SgTransform cnoid::SgGroup cnoid::SgNode cnoid::SgObject cnoid::Referenced

Public Types

enum  Axis { RX = 1, RY = 2, RZ = 4 }
 
- 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

 RotationDragger ()
 
 RotationDragger (const RotationDragger &org)
 
 RotationDragger (const RotationDragger &org, SgCloneMap &cloneMap)
 
virtual SgObjectclone (SgCloneMap &cloneMap) const
 
void setDraggableAxes (int axisSet)
 
int draggableAxes () const
 
void setRadius (double r)
 
SignalProxy< void()> sigRotationStarted ()
 
SignalProxy< void(const AngleAxis &rotation)> sigRotationDragged ()
 
SignalProxy< void()> sigRotationFinished ()
 
bool isDragging () const
 
const AngleAxisdraggedAngleAxis () const
 
Affine3 draggedPosition () const
 
virtual bool onButtonPressEvent (const SceneWidgetEvent &event)
 
virtual bool onButtonReleaseEvent (const SceneWidgetEvent &event)
 
virtual bool onPointerMoveEvent (const SceneWidgetEvent &event)
 
virtual void onPointerLeaveEvent (const SceneWidgetEvent &event)
 
- Public Member Functions inherited from cnoid::SceneDragger
 SceneDragger ()
 
 SceneDragger (const SceneDragger &org)
 
 SceneDragger (const SceneDragger &org, SgCloneMap &cloneMap)
 
bool isContainerMode () const
 
void setContainerMode (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 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 Member Functions inherited from cnoid::SceneWidgetEditable
virtual bool onKeyPressEvent (const SceneWidgetEvent &event)
 
virtual bool onKeyReleaseEvent (const SceneWidgetEvent &event)
 
virtual bool onDoubleClickEvent (const SceneWidgetEvent &event)
 
virtual bool onScrollEvent (const SceneWidgetEvent &event)
 
virtual void onFocusChanged (const SceneWidgetEvent &event, bool on)
 
virtual void onContextMenuRequest (const SceneWidgetEvent &event, MenuManager &menuManager)
 
virtual void onSceneModeChanged (const SceneWidgetEvent &event)
 
virtual bool onUndoRequest ()
 
virtual bool onRedoRequest ()
 

Public Attributes

 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
 
- Public Attributes inherited from cnoid::SgPosTransform
 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
 

Additional Inherited Members

- 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
 
- Static Protected Member Functions inherited from cnoid::SceneDragger
static bool detectAxisFromNodePath (const SgNodePath &path, SgNode *topNode, int &out_axis, int &out_indexOfTopNode)
 
- Protected Attributes inherited from cnoid::SgTransform
BoundingBox untransformedBboxCache
 
- Protected Attributes inherited from cnoid::SgGroup
BoundingBox bboxCache
 
bool isBboxCacheValid
 

Member Enumeration Documentation

◆ Axis

Enumerator
RX 
RY 
RZ 

Constructor & Destructor Documentation

◆ RotationDragger() [1/3]

RotationDragger::RotationDragger ( )

◆ RotationDragger() [2/3]

RotationDragger::RotationDragger ( const RotationDragger org)

◆ RotationDragger() [3/3]

RotationDragger::RotationDragger ( const RotationDragger org,
SgCloneMap cloneMap 
)

Member Function Documentation

◆ clone()

SgObject * RotationDragger::clone ( SgCloneMap cloneMap) const
virtual

Reimplemented from cnoid::SgPosTransform.

◆ draggableAxes()

int cnoid::RotationDragger::draggableAxes ( ) const
inline

◆ draggedAngleAxis()

const AngleAxis & RotationDragger::draggedAngleAxis ( ) const

◆ draggedPosition()

Affine3 RotationDragger::draggedPosition ( ) const
virtual

Implements cnoid::SceneDragger.

◆ isDragging()

bool RotationDragger::isDragging ( ) const
virtual

Implements cnoid::SceneDragger.

◆ onButtonPressEvent()

bool RotationDragger::onButtonPressEvent ( const SceneWidgetEvent event)
virtual

Reimplemented from cnoid::SceneWidgetEditable.

◆ onButtonReleaseEvent()

bool RotationDragger::onButtonReleaseEvent ( const SceneWidgetEvent event)
virtual

Reimplemented from cnoid::SceneWidgetEditable.

◆ onPointerLeaveEvent()

void RotationDragger::onPointerLeaveEvent ( const SceneWidgetEvent event)
virtual

Reimplemented from cnoid::SceneWidgetEditable.

◆ onPointerMoveEvent()

bool RotationDragger::onPointerMoveEvent ( const SceneWidgetEvent event)
virtual

Reimplemented from cnoid::SceneWidgetEditable.

◆ setDraggableAxes()

void RotationDragger::setDraggableAxes ( int  axisSet)

◆ setRadius()

void RotationDragger::setRadius ( double  r)

◆ sigRotationDragged()

SignalProxy<void(const AngleAxis& rotation)> cnoid::RotationDragger::sigRotationDragged ( )
inline
Todo:
The rotation parameter should be removed.

◆ sigRotationFinished()

SignalProxy<void()> cnoid::RotationDragger::sigRotationFinished ( )
inline

◆ sigRotationStarted()

SignalProxy<void()> cnoid::RotationDragger::sigRotationStarted ( )
inline

Member Data Documentation

◆ EIGEN_MAKE_ALIGNED_OPERATOR_NEW

cnoid::RotationDragger::EIGEN_MAKE_ALIGNED_OPERATOR_NEW

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