vcg::ZMode Class Reference

The Z-directional manipulator. More...

#include <trackmode.h>

Inheritance diagram for vcg::ZMode:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

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.


Member Function Documentation

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:

  • Scrolling the mouse wheel down will move the object nearer to the camera.
  • Scrolling the mouse wheel up will move the object farther from the camera.
Parameters:
trackball the manipulator manager.
WheelNotch the mouse wheel notch.

Reimplemented from vcg::TrackMode.

Definition at line 213 of file trackmode.cpp.

void ZMode::Apply ( Trackball trackball,
Point3f  new_point 
) [virtual]

Apply a translation, function of the user mouse drag action.

The manipulated object is moved along the Z of the camera:

  • Dragging the mouse down will move the object nearer to the camera.
  • Dragging the mouse up will move the object farther from the camera.
Parameters:
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.

Parameters:
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.

Returns:
the constant string "ZMode"

Reimplemented from vcg::TrackMode.

Definition at line 312 of file trackmode.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:23:09 2013