Choreonoid  1.8
Public Types | Public Member Functions | List of all members
cnoid::SceneDragProjector Class Reference

#include <SceneDragProjector.h>

Public Types

enum  DragMode { DRAG_NONE, DRAG_ROTATION, DRAG_TRANSLATION }
 

Public Member Functions

 SceneDragProjector ()
 
virtual ~SceneDragProjector ()
 
int dragMode () const
 
bool isDragging () const
 
void resetDragMode ()
 
void setInitialPosition (const Isometry3 &T)
 
void setInitialTranslation (const Vector3 &p)
 
void setInitialRotation (const Matrix3 &R)
 
const Isometry3initialPosition () const
 
void setRotationAxis (const Vector3 &axis)
 
const Vector3rotationAxis () const
 
void setTranslationAxis (const Vector3 &axis)
 
const Vector3translationAxis () const
 
void setTranslationPlaneNormal (const Vector3 &normal)
 
void setTranslationAlongViewPlane ()
 
bool startRotation (SceneWidgetEvent *event)
 
bool startTranslation (SceneWidgetEvent *event)
 
bool drag (SceneWidgetEvent *event)
 
bool dragRotation (SceneWidgetEvent *event)
 
bool dragTranslation (SceneWidgetEvent *event)
 
const Vector3projectedPoint () const
 
const Isometry3position () const
 
const Matrix3rotationMatrix () const
 
double rotationAngle () const
 
const AngleAxisrotationAngleAxis () const
 
const Vector3translation () const
 

Member Enumeration Documentation

◆ DragMode

Enumerator
DRAG_NONE 
DRAG_ROTATION 
DRAG_TRANSLATION 

Constructor & Destructor Documentation

◆ SceneDragProjector()

SceneDragProjector::SceneDragProjector ( )

◆ ~SceneDragProjector()

SceneDragProjector::~SceneDragProjector ( )
virtual

Member Function Documentation

◆ drag()

bool SceneDragProjector::drag ( SceneWidgetEvent event)

◆ dragMode()

int SceneDragProjector::dragMode ( ) const

◆ dragRotation()

bool SceneDragProjector::dragRotation ( SceneWidgetEvent event)

◆ dragTranslation()

bool SceneDragProjector::dragTranslation ( SceneWidgetEvent event)

◆ initialPosition()

const Isometry3 & SceneDragProjector::initialPosition ( ) const

◆ isDragging()

bool SceneDragProjector::isDragging ( ) const

◆ position()

const Isometry3 & SceneDragProjector::position ( ) const

◆ projectedPoint()

const Vector3 & SceneDragProjector::projectedPoint ( ) const

◆ resetDragMode()

void SceneDragProjector::resetDragMode ( )

◆ rotationAngle()

double SceneDragProjector::rotationAngle ( ) const

◆ rotationAngleAxis()

const AngleAxis & SceneDragProjector::rotationAngleAxis ( ) const

◆ rotationAxis()

const Vector3 & SceneDragProjector::rotationAxis ( ) const

◆ rotationMatrix()

const Matrix3 & SceneDragProjector::rotationMatrix ( ) const

◆ setInitialPosition()

void SceneDragProjector::setInitialPosition ( const Isometry3 T)

◆ setInitialRotation()

void SceneDragProjector::setInitialRotation ( const Matrix3 R)

◆ setInitialTranslation()

void SceneDragProjector::setInitialTranslation ( const Vector3 p)

◆ setRotationAxis()

void SceneDragProjector::setRotationAxis ( const Vector3 axis)

◆ setTranslationAlongViewPlane()

void SceneDragProjector::setTranslationAlongViewPlane ( )

◆ setTranslationAxis()

void SceneDragProjector::setTranslationAxis ( const Vector3 axis)

◆ setTranslationPlaneNormal()

void SceneDragProjector::setTranslationPlaneNormal ( const Vector3 normal)

◆ startRotation()

bool SceneDragProjector::startRotation ( SceneWidgetEvent event)

◆ startTranslation()

bool SceneDragProjector::startTranslation ( SceneWidgetEvent event)

◆ translation()

const Vector3 & SceneDragProjector::translation ( ) const

◆ translationAxis()

const Vector3 & SceneDragProjector::translationAxis ( ) const

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