Manipulator Class Reference
[GUI]
Abstract base class for an item that manipulates other items.
More...
#include <Manipulator.hpp>
List of all members.
Detailed Description
Abstract base class for an item that manipulates other items.
Constructor & Destructor Documentation
Manipulator |
( |
char |
axis, |
|
|
int |
command, |
|
|
string |
filename, |
|
|
float |
bias = 1.0 , |
|
|
const string & |
warning = "May not be able to use manipulator." | |
|
) |
| | |
Creates a manipulator that cannot send commands yet.
- Parameters:
-
| axis | Either 'x', 'y', or 'z'. |
| command | Command to run. |
| filename | Path in data directory containing widget geometry. |
| bias | Multiplier to the default movement amount. |
| warning | Text to print if cannot find widget file. |
Member Function Documentation
Draws the manipulator around transformable in canvas.
float findPixelFactor |
( |
Canvas * |
canvas, |
|
|
GLuint |
shapeID | |
|
) |
| | [static] |
Calculates how a pixel compares to a global unit.
- Parameters:
-
| canvas | Canvas to take camera position from. |
| shapeID | ID of the shape to use for the depth component. |
Vector getAxis |
( |
|
) |
const [inline, virtual] |
- Returns:
- Direction the manipulator is oriented in.
int getCommand |
( |
|
) |
const [inline, virtual] |
- Returns:
- Enumerated command to run when the user drags the manipulator.
bool isEnabled |
( |
|
) |
const [inline, virtual] |
- Returns:
- True if the manipulator should be drawn.
void setDelegate |
( |
Delegate * |
i |
) |
[inline, virtual] |
Changes the object to send commands to.
void setEnabled |
( |
bool |
enabled |
) |
[inline, virtual] |
Determines if the manipulator should be drawn.
void use |
( |
const Vector & |
movement, |
|
|
GLuint |
shapeID, |
|
|
Canvas * |
canvas | |
|
) |
| | [virtual] |
Use the manipulator.
- Parameters:
-
| movement | Difference between current and last cursor positions. |
| shapeID | ID of the shape the manipulator is attached to. |
| canvas | Canvas to take camera position from. |
The documentation for this class was generated from the following files:
- Manipulator.hpp
- Manipulator.cpp