Cutout Vis2012
TUWienVisualisierung2(SS2012)-AdaptiveCutaways
|
#include <Identifiable.h>
Public Member Functions | |
unsigned int | getID () |
virtual void | hover () |
virtual UserAction | press () |
Static Public Member Functions | |
static Identifiable * | byID (unsigned int id) |
Interface for objects that are rendered to the screen and can be selected by the user. Each Identifiable has a unique ID that is rendered to an ID buffer to the pixels that the object covers on screen.
|
static |
returns the objects associated with id
unsigned int Identifiable::getID | ( | ) |
returns the unique ID of this object
|
virtual |
Can be implemented by a subclass. Called every frame by the application iff the mouse cursor rests on the object.
Reimplemented in SubGizmo.
|
virtual |
Can be implemented by a subcalled. Called by the application if the user clicks the object
NO_CHANGE
iff the sub class ignores the click event. Otherwise the return value tells the application that a certain action has been started and that the object requests to keep the focus. Reimplemented in TranslateGizmo, ScaleGizmo, and SubGizmo.