3Depict
|
#include <drawables.h>
Public Member Functions | |
DrawTriangleMesh () | |
~DrawTriangleMesh () | |
void | setData (std::vector< Point3D > &pts, std::vector< TRI_IDX > &idx) |
void | setDrawMeshEdges (bool doDraw=true) |
unsigned int | getType () const |
void | draw () const |
Draws the triangle mesh. More... | |
void | getBoundingBox (BoundCube &b) const |
Get the bounding box that encapulates this object. More... | |
void | recomputeParams (const std::vector< Point3D > &vecs, const std::vector< float > &scalars, unsigned int mode) |
Recompute the internal parameters using the input vector information. More... | |
void | setAlpha (float f) |
Set the opacity value (alpha) More... | |
![]() | |
virtual bool | isOverlay () const |
Is this an overlay? By default, no. More... | |
DrawableObj () | |
Constructor. More... | |
virtual DrawableObj * | clone () const |
virtual bool | needsDepthSorting () const |
Do we need to do element based depth sorting? More... | |
virtual bool | isExplodable () const |
Can we break this object down into constituent elements? More... | |
virtual void | explode (std::vector< DrawableObj *> &simpleObjects) |
Break object down into simple elements. More... | |
virtual bool | hasChanged () const |
void | setActive (bool active) |
Set the active state of the object. More... | |
void | setInteract (bool canAct) |
Set if user can interact with object, needed for opengl hit testing. More... | |
virtual | ~DrawableObj () |
Drawable destructor. More... | |
virtual Point3D | getCentroid () const |
Get the centre of the object. Only valid if object is simple. More... | |
Protected Attributes | |
std::vector< Point3D > | pts |
Vector of points to draw. More... | |
std::vector< TRI_IDX > | triIndices |
Indices of triangle vertices. More... | |
Point3D | origCentroid |
Point3D | deltaOrigin |
float | alpha |
bool | drawDoubleSided |
bool | drawMeshEdges |
unsigned int | drawMode |
bool | haveCachedBounds |
BoundCube | cachedBounds |
![]() | |
bool | active |
Is the drawable active? More... | |
bool | haveChanged |
Is the object changed since last set? More... | |
Additional Inherited Members | |
![]() | |
static void | setUseAlphaBlending (bool willBlend) |
static void | setCurCamera (const Camera *c) |
Set the current camera. More... | |
static void | setTexPool (TexturePool *t) |
Set the current camera. More... | |
static void | clearTexPool () |
static void | setWindowSize (unsigned int x, unsigned int y) |
static void | setBackgroundColour (float r, float g, float b) |
![]() | |
bool | canSelect |
Can be selected from openGL viewport interactively? More... | |
bool | wantsLight |
Wants lighting calculations active during render? More... | |
![]() | |
static float | getHighContrastValue () |
![]() | |
static const Camera * | curCamera = 0 |
Pointer to current scene camera. More... | |
static float | backgroundR |
static float | backgroundG |
static float | backgroundB |
static TexturePool * | texPool =0 |
static bool | useAlphaBlend |
static unsigned int | winX |
static unsigned int | winY |
DrawTriangleMesh::DrawTriangleMesh | ( | ) |
References TRIMESH_DRAW_SURF.
DrawTriangleMesh::~DrawTriangleMesh | ( | ) |
|
virtual |
|
virtual |
Get the bounding box that encapulates this object.
Implements DrawableObj.
References BoundCube::setBounds().
Referenced by VoxeliseFilter::refresh().
|
inlinevirtual |
Implements DrawableObj.
References DRAW_TYPE_TRIANGLE_MESH.
|
virtual |
Recompute the internal parameters using the input vector information.
Reimplemented from DrawableObj.
References ASSERT, and DRAW_TRIMESH_BIND_ORIGIN.
|
inline |
Set the opacity value (alpha)
Referenced by VoxeliseFilter::refresh().
References ASSERT, DrawQuad::getBoundingBox(), and BoundCube::getCentroid().
Referenced by VoxeliseFilter::refresh().
|
inline |
|
protected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
protected |
|
protected |
Vector of points to draw.
|
protected |
Indices of triangle vertices.