Cutout Vis2012
TUWienVisualisierung2(SS2012)-AdaptiveCutaways
|
#include <Renderable.h>
Public Member Functions | |
virtual void | render (Shader *shader)=0 |
virtual void | select () |
virtual void | deselect () |
void | setCanBeCut (bool c) |
bool | canBeCut () |
void | setCanCut (bool c) |
bool | canCut () |
void | setLocalAngle (float angle) |
float | getLocalAngle () |
Interface for 3-dimensional objects that have a visual representation in the scene.
bool Renderable::canBeCut | ( | ) |
Returns the canBeCut
property. If the canBeCut
property is enabled, the object can be cut out of the seen by selected objects that it occludes.
bool Renderable::canCut | ( | ) |
Returns the canCut
property. If the canCut
property is enabled, the object will exhibit the adaptive cutaway effect once selected.
|
virtual |
Called by the application if the object is deselected by the user
Reimplemented in MeshInstance.
float Renderable::getLocalAngle | ( | ) |
Returns the object-specific angle of the object's cutaway shape.
|
pure virtual |
Draws the objects into the scene.
Implemented in MeshInstance, and Gizmo.
|
virtual |
Called by the application if the object is selected by the user
Reimplemented in MeshInstance.
void Renderable::setCanBeCut | ( | bool | c) |
Sets the canBeCut
property. If the canBeCut
property is enabled, the object can be cut out of the seen by selected objects that it occludes.
void Renderable::setCanCut | ( | bool | c) |
Sets the canCut
property. If the canCut
property is enabled, the object will exhibit the adaptive cutaway effect once selected.
void Renderable::setLocalAngle | ( | float | angle) |
Sets the object-specific angle of the object's cutaway shape.