GLC_PullManipulator :. More...
#include <glc_pullmanipulator.h>
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_AbstractManipulator * | clone () const |
Clone the concrete manipulator. | |
Set Functions | |
void | setPullingDirection (const GLC_Vector3d &pullingDirection) |
Set the pulling direction 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. |
Definition at line 37 of file glc_pullmanipulator.h.
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.
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 | |||
) | [protected, virtual] |
Manipulate this manipulator and return the moving matrix.
Implements GLC_AbstractManipulator.
Definition at line 61 of file glc_pullmanipulator.cpp.
References glc::lineIntersectPlane(), GLC_AbstractManipulator::m_PreviousPosition, m_PullDirection, GLC_AbstractManipulator::m_SliddingPlane, GLC_AbstractManipulator::previousPosition(), and glc::project().
GLC_Vector3d GLC_PullManipulator::pullingDirection | ( | ) | const [inline] |
Return the pulling direction of this pull manipulator.
Definition at line 60 of file glc_pullmanipulator.h.
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(), and m_PullDirection.
The pulling direction.
Definition at line 89 of file glc_pullmanipulator.h.
Referenced by doManipulate(), and setPullingDirection().