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

#include <Gizmo.h>

Inheritance diagram for ScaleGizmo:
SubGizmo Identifiable

Public Member Functions

 ScaleGizmo (Scene *scene)
 
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 scale an object by dragging the mouse. Represented by a white cube.

Member Function Documentation

UserAction ScaleGizmo::press ( )
virtual

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

Implements SubGizmo.

void ScaleGizmo::render ( Shader shader)
virtual

Renders a representation of the gizmo ontop of its target

Implements SubGizmo.

void ScaleGizmo::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: