GLC_AbstractManipulator Class Reference

GLC_AbstractManipulator : Base class for all manipulator. More...

#include <glc_abstractmanipulator.h>

Inheritance diagram for GLC_AbstractManipulator:
GLC_PullManipulator GLC_RotationManipulator

List of all members.

Public Member Functions

Constructor / Destructor

 GLC_AbstractManipulator (GLC_Viewport *pViewport)
 Construct an abstract manipulator with the given viewport.
 GLC_AbstractManipulator (const GLC_AbstractManipulator &abstractManipulator)
 Copy constructor.
virtual ~GLC_AbstractManipulator ()
 Destructor.
Get Functions

bool isInManipulateState () const
 Return true if this manipulator is in manipulate state.
const GLC_Point3dpreviousPosition () const
 Return a const reference on the previous position.
GLC_ViewportviewportHandle () const
 Return the viewport of this manipulator.
virtual GLC_AbstractManipulatorclone () const =0
 Clone the concrete manipulator.
Set Functions

void enterManipulateState (const GLC_Point3d &startPoint)
 Put this manipulator in manipulate state.
GLC_Matrix4x4 manipulate (const GLC_Point3d &newPoint)
 Manipulate this manipulator and return the moving matrix.
void exitManipulateState ()
 Exit this manipulator of manipulate state.
void setViewport (GLC_Viewport *pViewport)
 Set the viewport of this manipulator.

Protected Member Functions

virtual GLC_Matrix4x4 doManipulate (const GLC_Point3d &newPoint, const GLC_Vector3d &projectionDirection)=0
 Manipulate the concret manipulator and return the moving matrix.

Protected Attributes

GLC_Viewportm_pViewport
 The viewport associated with this manipulator.
GLC_Plane m_SliddingPlane
 The currentSlidding plane.
GLC_Point3d m_PreviousPosition
 The previous position.
bool m_IsInManipulateState
 Flag to know if this manipulator is in manipulate state.

Detailed Description

GLC_AbstractManipulator : Base class for all manipulator.

GLC_AbstractManipulator

Definition at line 40 of file glc_abstractmanipulator.h.


Constructor & Destructor Documentation

GLC_AbstractManipulator::GLC_AbstractManipulator ( GLC_Viewport pViewport  ) 

Construct an abstract manipulator with the given viewport.

Definition at line 29 of file glc_abstractmanipulator.cpp.

References m_pViewport.

GLC_AbstractManipulator::GLC_AbstractManipulator ( const GLC_AbstractManipulator abstractManipulator  ) 

Copy constructor.

Definition at line 38 of file glc_abstractmanipulator.cpp.

GLC_AbstractManipulator::~GLC_AbstractManipulator (  )  [virtual]

Destructor.

Definition at line 47 of file glc_abstractmanipulator.cpp.


Member Function Documentation

virtual GLC_AbstractManipulator* GLC_AbstractManipulator::clone (  )  const [pure virtual]
virtual GLC_Matrix4x4 GLC_AbstractManipulator::doManipulate ( const GLC_Point3d newPoint,
const GLC_Vector3d projectionDirection 
) [protected, pure virtual]

Manipulate the concret manipulator and return the moving matrix.

Implemented in GLC_PullManipulator, and GLC_RotationManipulator.

Referenced by manipulate().

void GLC_AbstractManipulator::enterManipulateState ( const GLC_Point3d startPoint  ) 
void GLC_AbstractManipulator::exitManipulateState (  )  [inline]

Exit this manipulator of manipulate state.

Definition at line 91 of file glc_abstractmanipulator.h.

bool GLC_AbstractManipulator::isInManipulateState (  )  const [inline]

Return true if this manipulator is in manipulate state.

Definition at line 63 of file glc_abstractmanipulator.h.

Referenced by GLC_PullManipulator::setPullingDirection().

GLC_Matrix4x4 GLC_AbstractManipulator::manipulate ( const GLC_Point3d newPoint  ) 
const GLC_Point3d& GLC_AbstractManipulator::previousPosition (  )  const [inline]

Return a const reference on the previous position.

Definition at line 67 of file glc_abstractmanipulator.h.

Referenced by GLC_PullManipulator::doManipulate(), GLC_CuttingPlane::mouseMove(), and GLC_Axis::mouseMove().

void GLC_AbstractManipulator::setViewport ( GLC_Viewport pViewport  )  [inline]

Set the viewport of this manipulator.

Definition at line 95 of file glc_abstractmanipulator.h.

GLC_Viewport* GLC_AbstractManipulator::viewportHandle (  )  const [inline]

Return the viewport of this manipulator.

Definition at line 71 of file glc_abstractmanipulator.h.


Member Data Documentation

Flag to know if this manipulator is in manipulate state.

Definition at line 121 of file glc_abstractmanipulator.h.

Referenced by enterManipulateState(), and manipulate().

The viewport associated with this manipulator.

Definition at line 112 of file glc_abstractmanipulator.h.

Referenced by enterManipulateState(), GLC_AbstractManipulator(), and manipulate().

The currentSlidding plane.

Definition at line 115 of file glc_abstractmanipulator.h.

Referenced by GLC_PullManipulator::doManipulate(), and enterManipulateState().


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

SourceForge.net Logo

©2005-2011 Laurent Ribon