Public Member Functions
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, Point3f new_point)
 Apply a translation, function of the user mouse drag action.
void Apply (Trackball *trackball, float WheelNotch)
 Apply a translation, function of the user mouse wheel 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,
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:
trackballthe manipulator manager.
new_pointthe new mouse pointer coordinate.

Reimplemented from vcg::TrackMode.

Definition at line 110 of file trackmode.cpp.

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:
trackballthe manipulator manager.
WheelNotchthe mouse wheel notch.

Reimplemented from vcg::TrackMode.

Definition at line 103 of file trackmode.cpp.

void ZMode::Draw ( Trackball trackball) [virtual]

Render this manipulator.

Parameters:
trackballthe manipulator manager.

Reimplemented from vcg::TrackMode.

Definition at line 117 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:


shape_reconstruction
Author(s): Roberto Martín-Martín
autogenerated on Sat Jun 8 2019 18:41:23