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

#include <MeshInstance.h>

Inheritance diagram for MeshInstance:
Transformable Renderable Identifiable

Public Member Functions

 MeshInstance (Mesh *mesh)
 
virtual void setTransform (const glm::mat4 &transform)
 
virtual const glm::mat4 & getTransform ()
 
MeshgetMesh ()
 
virtual void render (Shader *shader)
 
virtual void select ()
 
virtual void deselect ()
 
- Public Member Functions inherited from Transformable
SceneNodegetParent ()
 
- 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 IdentifiablebyID (unsigned int id)
 

Detailed Description

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.

Member Function Documentation

void MeshInstance::deselect ( )
virtual

Called by the application if the object is deselected by the user

Reimplemented from Renderable.

const glm::mat4 & MeshInstance::getTransform ( )
virtual

Returns the local transformation matrix of the object

Implements Transformable.

void MeshInstance::render ( Shader shader)
virtual

Draws the objects into the scene.

Implements Renderable.

void MeshInstance::select ( )
virtual

Called by the application if the object is selected by the user

Reimplemented from Renderable.

void MeshInstance::setTransform ( const glm::mat4 &  transform)
virtual

Sets the local transformation matrix of the object

Implements Transformable.


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