GLC_lib  2.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Protected Member Functions | Private Attributes | List of all members
GLC_PullManipulator Class Reference

GLC_PullManipulator : More...

#include <glc_pullmanipulator.h>

+ Inheritance diagram for GLC_PullManipulator:

Public Member Functions

Constructor / Destructor
 GLC_PullManipulator (GLC_Viewport *pViewport, const GLC_Vector3d &pullDirection)
 Construct pull manipulator with the given viewport and pulling direction.
 
 GLC_PullManipulator (const GLC_PullManipulator &pullManipulator)
 Copy constructor.
 
virtual ~GLC_PullManipulator ()
 Destructor.
 
Get Functions
GLC_Vector3d pullingDirection () const
 Return the pulling direction of this pull manipulator.
 
virtual GLC_AbstractManipulatorclone () const
 Clone the concrete manipulator.
 
Set Functions
void setPullingDirection (const GLC_Vector3d &pullingDirection)
 Set the pulling direction of this manipulator.
 
- Public Member Functions inherited from GLC_AbstractManipulator
 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.
 
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.
 
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)
 Manipulate this manipulator and return the moving matrix.
 

Private Attributes

GLC_Vector3d m_PullDirection
 The pulling direction.
 

Additional Inherited Members

- Protected Attributes inherited from GLC_AbstractManipulator
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_PullManipulator :

GLC_PullManipulator

Definition at line 37 of file glc_pullmanipulator.h.

Constructor & Destructor Documentation

GLC_PullManipulator::GLC_PullManipulator ( GLC_Viewport pViewport,
const GLC_Vector3d pullDirection 
)

Construct pull manipulator with the given viewport and pulling direction.

Definition at line 31 of file glc_pullmanipulator.cpp.

Referenced by clone().

GLC_PullManipulator::GLC_PullManipulator ( const GLC_PullManipulator pullManipulator)

Copy constructor.

Definition at line 38 of file glc_pullmanipulator.cpp.

GLC_PullManipulator::~GLC_PullManipulator ( )
virtual

Destructor.

Definition at line 45 of file glc_pullmanipulator.cpp.

Member Function Documentation

GLC_AbstractManipulator * GLC_PullManipulator::clone ( ) const
virtual

Clone the concrete manipulator.

Implements GLC_AbstractManipulator.

Definition at line 50 of file glc_pullmanipulator.cpp.

References GLC_PullManipulator().

GLC_Matrix4x4 GLC_PullManipulator::doManipulate ( const GLC_Point3d newPoint,
const GLC_Vector3d projectionDirection 
)
protectedvirtual
GLC_Vector3d GLC_PullManipulator::pullingDirection ( ) const
inline

Return the pulling direction of this pull manipulator.

Definition at line 60 of file glc_pullmanipulator.h.

Referenced by setPullingDirection().

void GLC_PullManipulator::setPullingDirection ( const GLC_Vector3d pullingDirection)

Set the pulling direction of this manipulator.

Definition at line 55 of file glc_pullmanipulator.cpp.

References GLC_AbstractManipulator::isInManipulateState(), m_PullDirection, and pullingDirection().

Member Data Documentation

GLC_Vector3d GLC_PullManipulator::m_PullDirection
private

The pulling direction.

Definition at line 89 of file glc_pullmanipulator.h.

Referenced by doManipulate(), and setPullingDirection().


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

©2005-2013 Laurent Ribon