vcg::PlaneMode Class Reference

The planar manipulator. More...

#include <trackmode.h>

Inheritance diagram for vcg::PlaneMode:
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.
 PlaneMode (Plane3f &pl)
 The plane constructor.
 PlaneMode (float a, float b, float c, float d)
 The plane costants constructor.

Private Attributes

Plane3f plane
 The plane.

Detailed Description

The planar manipulator.

This manipulator implements a bidimensional translation on a constrained plane.

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

Definition at line 487 of file trackmode.h.


Constructor & Destructor Documentation

vcg::PlaneMode::PlaneMode ( float  a,
float  b,
float  c,
float  d 
) [inline]

The plane costants constructor.

This manipulator needs to be initialized with a plane. This constructor can initialize it with the four coefficients of the plane equation $ ax + by + cz + d = 0 $.

Parameters:
a the first coefficient of the plane equation.
b the second coefficient of the plane equation.
c the third coefficient of the plane equation.
d the fourth coefficient of the plane equation.

Definition at line 501 of file trackmode.h.

vcg::PlaneMode::PlaneMode ( Plane3f pl  )  [inline]

The plane constructor.

This manipulator needs to be initialized with a plane. This constructor can initialize it with a Plane3f.

Parameters:
pl the plane.

Definition at line 512 of file trackmode.h.


Member Function Documentation

void PlaneMode::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.

If the pointer ray is divergent from the plane the object is not moved.

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

Reimplemented from vcg::TrackMode.

Definition at line 269 of file trackmode.cpp.

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

Render this manipulator.

Parameters:
trackball the manipulator manager.

Reimplemented from vcg::TrackMode.

Definition at line 278 of file trackmode.cpp.

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

Return this manipulator's name.

Returns:
the constant string "PlaneMode"

Reimplemented from vcg::TrackMode.

Definition at line 520 of file trackmode.h.


Member Data Documentation

The plane.

Definition at line 543 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:04 2013