The scale manipulator. More...
#include <trackmode.h>
Public Member Functions | |
void | Apply (Trackball *trackball, float WheelNotch) |
Apply a scaling, function of the user mouse wheel action. | |
void | Apply (Trackball *trackball, Point3f new_point) |
Apply a scaling, function of the user mouse drag action. | |
void | Draw (Trackball *trackball) |
Render this manipulator. | |
const char * | Name () |
Return this manipulator's name. |
The scale manipulator.
This manipulator implements a scaling transformation.
Dragging the mouse up and down or scrolling the mouse wheel will scale the object.
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 357 of file trackmode.h.
void ScaleMode::Apply | ( | Trackball * | trackball, | |
float | WheelNotch | |||
) | [virtual] |
Apply a scaling, function of the user mouse wheel action.
The manipulated object is scaled in this way:
trackball | the manipulator manager. | |
WheelNotch | the mouse wheel notch. |
Reimplemented from vcg::TrackMode.
Definition at line 233 of file trackmode.cpp.
Apply a scaling, function of the user mouse drag action.
The manipulated object is scaled in this way:
trackball | the manipulator manager. | |
new_point | the new mouse pointer coordinate. |
Reimplemented from vcg::TrackMode.
Definition at line 238 of file trackmode.cpp.
void ScaleMode::Draw | ( | Trackball * | trackball | ) | [virtual] |
Render this manipulator.
trackball | the manipulator manager. |
Reimplemented from vcg::TrackMode.
Definition at line 243 of file trackmode.cpp.
const char* vcg::ScaleMode::Name | ( | ) | [inline, virtual] |
Return this manipulator's name.
Reimplemented from vcg::TrackMode.
Definition at line 364 of file trackmode.h.