Cutout Vis2012
TUWienVisualisierung2(SS2012)-AdaptiveCutaways
 All Classes Namespaces Functions Pages
Public Member Functions | List of all members
TranslateGizmo Class Reference

#include <Gizmo.h>

Inheritance diagram for TranslateGizmo:
SubGizmo Identifiable

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)
 
ScenegetScene ()
 
virtual void hover ()
 
void stopEdit ()
 
void setTarget (SceneNode *target)
 
SceneNodegetTarget ()
 
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 IdentifiablebyID (unsigned int id)
 

Detailed Description

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

Constructor & Destructor Documentation

TranslateGizmo::TranslateGizmo ( Scene scene,
int  axis 
)

Creates a new transform gizmo

Parameters
axis0=yz-plane, 1=xz-plane, 2=xy-plane

Member Function Documentation

UserAction TranslateGizmo::press ( )
virtual

Called by the application when the user clicks on the gizmo. Allows to grab the focus of the application

Implements SubGizmo.

void TranslateGizmo::render ( Shader shader)
virtual

Renders a representation of the gizmo ontop of its target

Implements SubGizmo.

void TranslateGizmo::update ( )
virtual

Has to be implemented by a sub class to perform its logic during the editing process

Implements SubGizmo.


The documentation for this class was generated from the following files: