vcg::ScaleMode Class Reference

The scale manipulator. More...

#include <trackmode.h>

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

List of all members.

Public Member Functions

void Apply (Trackball *trackball, float WheelNotch)
 Apply a scaling, function of the user mouse wheel action.
void Apply (Trackball *trackball, Point3f new_point)
 Apply a scaling, 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 scale manipulator.

This manipulator implements a scaling transformation.

Dragging the mouse up and down or scrolling the mouse wheel will scale the object.

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 357 of file trackmode.h.


Member Function Documentation

void ScaleMode::Apply ( Trackball trackball,
float  WheelNotch 
) [virtual]

Apply a scaling, function of the user mouse wheel action.

The manipulated object is scaled in this way:

  • Scrolling the mouse wheel up will scale the object to a smaller dimension.
  • Scrolling the mouse wheel down will scale the object to a greater dimension.
Parameters:
trackball the manipulator manager.
WheelNotch the mouse wheel notch.

Reimplemented from vcg::TrackMode.

Definition at line 233 of file trackmode.cpp.

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

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

The manipulated object is scaled in this way:

  • Dragging the mouse up will scale the object to a smaller dimension.
  • Dragging the mouse down will scale the object to a greater dimension.
Parameters:
trackball the manipulator manager.
new_point the new mouse pointer coordinate.

Reimplemented from vcg::TrackMode.

Definition at line 238 of file trackmode.cpp.

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

Render this manipulator.

Parameters:
trackball the manipulator manager.

Reimplemented from vcg::TrackMode.

Definition at line 243 of file trackmode.cpp.

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

Return this manipulator's name.

Returns:
the constant string "ScaleMode"

Reimplemented from vcg::TrackMode.

Definition at line 364 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