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

Reimplemented from vcg::TrackMode.

Definition at line 128 of file trackmode.cpp.

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

Reimplemented from vcg::TrackMode.

Definition at line 123 of file trackmode.cpp.

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

Render this manipulator.

Parameters:
trackballthe manipulator manager.

Reimplemented from vcg::TrackMode.

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


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