vcg::SphereMode Class Reference

The classic arcball manipulator. More...

#include <trackmode.h>

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

List of all members.

Public Member Functions

void Apply (Trackball *trackball, Point3f new_point)
 Apply a rotation, 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 classic arcball manipulator.

This class implements the classic free rotation manipulator, called arcball or trackball.

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

Definition at line 226 of file trackmode.h.


Member Function Documentation

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

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

Map a mouse drag action on a rotation, and apply the rotation to the manipulated objects.

If the user does not hit the sphere that surrounds the manipulated object(s), a rotational hyperboloid is used to compute the rotation.

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

Reimplemented from vcg::TrackMode.

Definition at line 182 of file trackmode.cpp.

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

Render this manipulator.

Parameters:
trackball the manipulator manager.

Reimplemented from vcg::TrackMode.

Definition at line 195 of file trackmode.cpp.

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

Return this manipulator's name.

Returns:
the constant string "SphereMode"

Reimplemented from vcg::TrackMode.

Definition at line 244 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:06 2013