The Z-directional manipulator. More...
#include <trackmode.h>
Public Member Functions | |
void | Apply (Trackball *trackball, float WheelNotch) |
Apply a translation, function of the user mouse wheel action. | |
void | Apply (Trackball *trackball, Point3f new_point) |
Apply a translation, function of the user mouse drag action. | |
void | Draw (Trackball *trackball) |
Render this manipulator. | |
const char * | Name () |
Return this manipulator's name. |
The Z-directional manipulator.
This manipulator implements a monodimensional translation on the axis normal to the view plane.
Dragging the mouse up and down or scrolling the mouse wheel will move the object along the Z of the camera.
This is a stateless manipulator, result of the Apply functions is determined only either by the mouse coordinates or by the mouse wheel notch.
Definition at line 305 of file trackmode.h.
void ZMode::Apply | ( | Trackball * | trackball, | |
float | WheelNotch | |||
) | [virtual] |
Apply a translation, function of the user mouse wheel action.
The manipulated object is moved along the Z of the camera:
trackball | the manipulator manager. | |
WheelNotch | the mouse wheel notch. |
Reimplemented from vcg::TrackMode.
Definition at line 213 of file trackmode.cpp.
Apply a translation, function of the user mouse drag action.
The manipulated object is moved along the Z of the camera:
trackball | the manipulator manager. | |
new_point | the new mouse pointer coordinate. |
Reimplemented from vcg::TrackMode.
Definition at line 220 of file trackmode.cpp.
void ZMode::Draw | ( | Trackball * | trackball | ) | [virtual] |
Render this manipulator.
trackball | the manipulator manager. |
Reimplemented from vcg::TrackMode.
Definition at line 227 of file trackmode.cpp.
const char* vcg::ZMode::Name | ( | ) | [inline, virtual] |
Return this manipulator's name.
Reimplemented from vcg::TrackMode.
Definition at line 312 of file trackmode.h.