Cutout Vis2012
TUWienVisualisierung2(SS2012)-AdaptiveCutaways
|
#include <MeshInstance.h>
Public Member Functions | |
MeshInstance (Mesh *mesh) | |
virtual void | setTransform (const glm::mat4 &transform) |
virtual const glm::mat4 & | getTransform () |
Mesh * | getMesh () |
virtual void | render (Shader *shader) |
virtual void | select () |
virtual void | deselect () |
Public Member Functions inherited from Transformable | |
SceneNode * | getParent () |
Public Member Functions inherited from Renderable | |
void | setCanBeCut (bool c) |
bool | canBeCut () |
void | setCanCut (bool c) |
bool | canCut () |
void | setLocalAngle (float angle) |
float | getLocalAngle () |
Public Member Functions inherited from Identifiable | |
unsigned int | getID () |
virtual void | hover () |
virtual UserAction | press () |
Additional Inherited Members | |
Static Public Member Functions inherited from Identifiable | |
static Identifiable * | byID (unsigned int id) |
Instance of a mesh in the scene. Can be part of the scene graph and thus transformed freely. The user can manipulate the transform via a Gizmo
. The object can be selected in order to create adaptive cutaways in the scene, see Renderable
.
|
virtual |
Called by the application if the object is deselected by the user
Reimplemented from Renderable.
|
virtual |
Returns the local transformation matrix of the object
Implements Transformable.
|
virtual |
Draws the objects into the scene.
Implements Renderable.
|
virtual |
Called by the application if the object is selected by the user
Reimplemented from Renderable.
|
virtual |
Sets the local transformation matrix of the object
Implements Transformable.