vcg::PanMode Class Reference

The panning manipulator. More...

#include <trackmode.h>

Inheritance diagram for vcg::PanMode:
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 Draw (Trackball *trackball)
 Render this manipulator.
const char * Name ()
 Return this manipulator's name.

Detailed Description

The panning manipulator.

This manipulator implements a bidimensional translation on the view plane.

This is a stateless manipulator, result of the Apply function is determined only by the mouse coordinates.

Definition at line 265 of file trackmode.h.


Member Function Documentation

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

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

The manipulated object is dragged in the plane parallel to the screen.

Parameters:
trackball the manipulator manager.
new_point the new mouse pointer coordinate.

Reimplemented from vcg::TrackMode.

Definition at line 200 of file trackmode.cpp.

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

Render this manipulator.

Parameters:
trackball the manipulator manager.

Reimplemented from vcg::TrackMode.

Definition at line 207 of file trackmode.cpp.

const char* vcg::PanMode::Name (  )  [inline, virtual]

Return this manipulator's name.

Returns:
the constant string "PanMode"

Reimplemented from vcg::TrackMode.

Definition at line 281 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:03 2013