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

#include <Identifiable.h>

Inheritance diagram for Identifiable:
MeshInstance SubGizmo ScaleGizmo TranslateGizmo

Public Member Functions

unsigned int getID ()
 
virtual void hover ()
 
virtual UserAction press ()
 

Static Public Member Functions

static IdentifiablebyID (unsigned int id)
 

Detailed Description

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.

Member Function Documentation

Identifiable * Identifiable::byID ( unsigned int  id)
static

returns the objects associated with id

unsigned int Identifiable::getID ( )

returns the unique ID of this object

void Identifiable::hover ( )
virtual

Can be implemented by a subclass. Called every frame by the application iff the mouse cursor rests on the object.

Reimplemented in SubGizmo.

UserAction Identifiable::press ( )
virtual

Can be implemented by a subcalled. Called by the application if the user clicks the object

Returns
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.


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