#include <StaticMesh.hpp>
Public Member Functions | |
virtual void | finalize () |
uintArr | getIndices () |
float * | getNormals () |
size_t | getNumberOfFaces () |
size_t | getNumberOfVertices () |
int | getRenderMode () |
floatArr | getVertices () |
void | render () |
virtual void | savePLY (string filename) |
virtual void | setName (string name) |
void | setRenderMode (int mode) |
StaticMesh () | |
StaticMesh (ModelPtr model, string name="") | |
StaticMesh (MeshBufferPtr buffer, string name="") | |
StaticMesh (const StaticMesh &o) | |
~StaticMesh () | |
Public Member Functions inherited from lvr2::Renderable | |
void | accel (bool invert=0) |
BoundingBox< Vec > * | boundingBox () |
void | compileAxesList () |
Matrix4< Vec > | getTransformation () |
bool | isActive () |
bool | isSelected () |
void | lift (bool invert=0) |
float | lineWidth () |
virtual ModelPtr | model () |
void | moveX (bool invert=0) |
void | moveY (bool invert=0) |
void | moveZ (bool invert=0) |
string | Name () |
void | pitch (bool invert=0) |
float | pointSize () |
Renderable () | |
Renderable (const Renderable &other) | |
Renderable (string name) | |
Renderable (Matrix4< Vec > m, string name) | |
void | roll (bool invert=0) |
void | rotX (bool invert=0) |
void | rotY (bool invert=0) |
void | rotZ (bool invert=0) |
void | scale (float s) |
void | setActive (bool a) |
void | setLineWidth (float width) |
void | setPointSize (float size) |
void | setRotationSpeed (float s) |
void | setSelected (bool s) |
void | setTransformationMatrix (Matrix4< Vec > m) |
void | setTranslationSpeed (float s) |
void | setVisible (bool s) |
void | showAxes (bool on) |
void | strafe (bool invert=0) |
void | toggle () |
void | yaw (bool invert=0) |
virtual | ~Renderable () |
Protected Member Functions | |
void | compileColoredMeshList () |
void | compileNameList () |
void | compileWireframeList () |
void | readPly (string filename) |
void | setColorMaterial (float r, float g, float b) |
Protected Member Functions inherited from lvr2::Renderable | |
void | computeMatrix () |
virtual void | transform () |
Protected Attributes | |
unsigned char * | m_blackColors |
int | m_coloredMeshList |
ucharArr | m_colors |
float * | m_faceNormals |
indexArray | m_faces |
bool | m_finalized |
bool | m_haveMaterials |
int | m_nameList |
floatArr | m_normals |
size_t | m_numFaces |
size_t | m_numMaterials |
size_t | m_numVertices |
int | m_renderMode |
floatArr | m_vertices |
int | m_wireframeList |
Protected Attributes inherited from lvr2::Renderable | |
bool | m_active |
int | m_activeListIndex |
int | m_axesListIndex |
BoundingBox< Vec > * | m_boundingBox |
float | m_lineWidth |
int | m_listIndex |
ModelPtr | m_model |
string | m_name |
float | m_pointSize |
Vec | m_position |
float | m_rotationSpeed |
float | m_scaleFactor |
bool | m_selected |
bool | m_showAxes |
Matrix4< Vec > | m_transformation |
float | m_translationSpeed |
bool | m_visible |
Normal< typename Vec::CoordType > | m_xAxis |
Normal< typename Vec::CoordType > | m_yAxis |
Normal< typename Vec::CoordType > | m_z_Axis |
Private Member Functions | |
void | calcBoundingBox () |
void | init (MeshBufferPtr mesh) |
void | interpolateNormals () |
void | setDefaultColors () |
Additional Inherited Members | |
Public Types inherited from lvr2::Renderable | |
using | Vec = BaseVector< float > |
Definition at line 75 of file StaticMesh.hpp.
lvr2::StaticMesh::StaticMesh | ( | ) |
Definition at line 42 of file StaticMesh.cpp.
lvr2::StaticMesh::StaticMesh | ( | ModelPtr | model, |
string | name = "" |
||
) |
Definition at line 64 of file StaticMesh.cpp.
lvr2::StaticMesh::StaticMesh | ( | MeshBufferPtr | buffer, |
string | name = "" |
||
) |
Definition at line 80 of file StaticMesh.cpp.
lvr2::StaticMesh::StaticMesh | ( | const StaticMesh & | o | ) |
Definition at line 147 of file StaticMesh.cpp.
lvr2::StaticMesh::~StaticMesh | ( | ) |
Definition at line 191 of file StaticMesh.cpp.
|
private |
Definition at line 381 of file StaticMesh.cpp.
|
protected |
Definition at line 237 of file StaticMesh.cpp.
|
protected |
Definition at line 279 of file StaticMesh.cpp.
|
protected |
Definition at line 203 of file StaticMesh.cpp.
|
virtual |
Definition at line 199 of file StaticMesh.cpp.
uintArr lvr2::StaticMesh::getIndices | ( | ) |
Definition at line 393 of file StaticMesh.cpp.
float * lvr2::StaticMesh::getNormals | ( | ) |
Definition at line 407 of file StaticMesh.cpp.
size_t lvr2::StaticMesh::getNumberOfFaces | ( | ) |
Definition at line 418 of file StaticMesh.cpp.
size_t lvr2::StaticMesh::getNumberOfVertices | ( | ) |
Definition at line 414 of file StaticMesh.cpp.
|
inline |
Definition at line 98 of file StaticMesh.hpp.
floatArr lvr2::StaticMesh::getVertices | ( | ) |
Definition at line 400 of file StaticMesh.cpp.
|
private |
Definition at line 96 of file StaticMesh.cpp.
|
private |
Definition at line 302 of file StaticMesh.cpp.
|
protected |
|
inlinevirtual |
Implements lvr2::Renderable.
Reimplemented in lvr2::TexturedMesh.
Definition at line 144 of file StaticMesh.hpp.
|
virtual |
Definition at line 423 of file StaticMesh.cpp.
|
protected |
Definition at line 176 of file StaticMesh.cpp.
|
private |
Definition at line 370 of file StaticMesh.cpp.
|
virtual |
Reimplemented from lvr2::Renderable.
Definition at line 273 of file StaticMesh.cpp.
|
inline |
Definition at line 97 of file StaticMesh.hpp.
|
protected |
Definition at line 124 of file StaticMesh.hpp.
|
protected |
Definition at line 138 of file StaticMesh.hpp.
|
protected |
Definition at line 123 of file StaticMesh.hpp.
|
protected |
Definition at line 121 of file StaticMesh.hpp.
|
protected |
Definition at line 126 of file StaticMesh.hpp.
|
protected |
Definition at line 128 of file StaticMesh.hpp.
|
protected |
Definition at line 129 of file StaticMesh.hpp.
|
protected |
Definition at line 140 of file StaticMesh.hpp.
|
protected |
Definition at line 120 of file StaticMesh.hpp.
|
protected |
Definition at line 132 of file StaticMesh.hpp.
|
protected |
Definition at line 133 of file StaticMesh.hpp.
|
protected |
Definition at line 131 of file StaticMesh.hpp.
|
protected |
Definition at line 135 of file StaticMesh.hpp.
|
protected |
Definition at line 122 of file StaticMesh.hpp.
|
protected |
Definition at line 139 of file StaticMesh.hpp.