Cutout Vis2012
TUWienVisualisierung2(SS2012)-AdaptiveCutaways
|
#include <Gizmo.h>
Public Member Functions | |
TranslateGizmo (Scene *scene, int axis) | |
virtual void | render (Shader *shader) |
virtual UserAction | press () |
virtual void | update () |
Public Member Functions inherited from SubGizmo | |
SubGizmo (Scene *scene) | |
Scene * | getScene () |
virtual void | hover () |
void | stopEdit () |
void | setTarget (SceneNode *target) |
SceneNode * | getTarget () |
bool | isIdle () |
bool | isHovering () |
bool | isEditing () |
void | setIdle () |
void | setEditing () |
Public Member Functions inherited from Identifiable | |
unsigned int | getID () |
Additional Inherited Members | |
Static Public Member Functions inherited from Identifiable | |
static Identifiable * | byID (unsigned int id) |
Specific gizmo that allows the user to translate an object along a plane by dragging the mouse. Represented by a colorcoded quad. Red = yz-plane, Blue = xz-plane, Green = xy-plane
TranslateGizmo::TranslateGizmo | ( | Scene * | scene, |
int | axis | ||
) |
Creates a new transform gizmo
axis | 0=yz-plane, 1=xz-plane, 2=xy-plane |
|
virtual |
Called by the application when the user clicks on the gizmo. Allows to grab the focus of the application
Implements SubGizmo.
|
virtual |
Renders a representation of the gizmo ontop of its target
Implements SubGizmo.
|
virtual |
Has to be implemented by a sub class to perform its logic during the editing process
Implements SubGizmo.