Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
lvr2::StaticMesh Class Reference

#include <StaticMesh.hpp>

Inheritance diagram for lvr2::StaticMesh:
Inheritance graph
[legend]

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< VecgetTransformation ()
 
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< Vecm_transformation
 
float m_translationSpeed
 
bool m_visible
 
Normal< typename Vec::CoordTypem_xAxis
 
Normal< typename Vec::CoordTypem_yAxis
 
Normal< typename Vec::CoordTypem_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 >
 

Detailed Description

Definition at line 75 of file StaticMesh.hpp.

Constructor & Destructor Documentation

◆ StaticMesh() [1/4]

lvr2::StaticMesh::StaticMesh ( )

Definition at line 42 of file StaticMesh.cpp.

◆ StaticMesh() [2/4]

lvr2::StaticMesh::StaticMesh ( ModelPtr  model,
string  name = "" 
)

Definition at line 64 of file StaticMesh.cpp.

◆ StaticMesh() [3/4]

lvr2::StaticMesh::StaticMesh ( MeshBufferPtr  buffer,
string  name = "" 
)

Definition at line 80 of file StaticMesh.cpp.

◆ StaticMesh() [4/4]

lvr2::StaticMesh::StaticMesh ( const StaticMesh o)

Definition at line 147 of file StaticMesh.cpp.

◆ ~StaticMesh()

lvr2::StaticMesh::~StaticMesh ( )

Definition at line 191 of file StaticMesh.cpp.

Member Function Documentation

◆ calcBoundingBox()

void lvr2::StaticMesh::calcBoundingBox ( )
private

Definition at line 381 of file StaticMesh.cpp.

◆ compileColoredMeshList()

void lvr2::StaticMesh::compileColoredMeshList ( )
protected

Definition at line 237 of file StaticMesh.cpp.

◆ compileNameList()

void lvr2::StaticMesh::compileNameList ( )
protected

Definition at line 279 of file StaticMesh.cpp.

◆ compileWireframeList()

void lvr2::StaticMesh::compileWireframeList ( )
protected

Definition at line 203 of file StaticMesh.cpp.

◆ finalize()

void lvr2::StaticMesh::finalize ( )
virtual

Definition at line 199 of file StaticMesh.cpp.

◆ getIndices()

uintArr lvr2::StaticMesh::getIndices ( )

Definition at line 393 of file StaticMesh.cpp.

◆ getNormals()

float * lvr2::StaticMesh::getNormals ( )

Definition at line 407 of file StaticMesh.cpp.

◆ getNumberOfFaces()

size_t lvr2::StaticMesh::getNumberOfFaces ( )

Definition at line 418 of file StaticMesh.cpp.

◆ getNumberOfVertices()

size_t lvr2::StaticMesh::getNumberOfVertices ( )

Definition at line 414 of file StaticMesh.cpp.

◆ getRenderMode()

int lvr2::StaticMesh::getRenderMode ( )
inline

Definition at line 98 of file StaticMesh.hpp.

◆ getVertices()

floatArr lvr2::StaticMesh::getVertices ( )

Definition at line 400 of file StaticMesh.cpp.

◆ init()

void lvr2::StaticMesh::init ( MeshBufferPtr  mesh)
private

Definition at line 96 of file StaticMesh.cpp.

◆ interpolateNormals()

void lvr2::StaticMesh::interpolateNormals ( )
private

Definition at line 302 of file StaticMesh.cpp.

◆ readPly()

void lvr2::StaticMesh::readPly ( string  filename)
protected

◆ render()

void lvr2::StaticMesh::render ( )
inlinevirtual

Implements lvr2::Renderable.

Reimplemented in lvr2::TexturedMesh.

Definition at line 144 of file StaticMesh.hpp.

◆ savePLY()

void lvr2::StaticMesh::savePLY ( string  filename)
virtual

Definition at line 423 of file StaticMesh.cpp.

◆ setColorMaterial()

void lvr2::StaticMesh::setColorMaterial ( float  r,
float  g,
float  b 
)
protected

Definition at line 176 of file StaticMesh.cpp.

◆ setDefaultColors()

void lvr2::StaticMesh::setDefaultColors ( )
private

Definition at line 370 of file StaticMesh.cpp.

◆ setName()

void lvr2::StaticMesh::setName ( string  name)
virtual

Reimplemented from lvr2::Renderable.

Definition at line 273 of file StaticMesh.cpp.

◆ setRenderMode()

void lvr2::StaticMesh::setRenderMode ( int  mode)
inline

Definition at line 97 of file StaticMesh.hpp.

Member Data Documentation

◆ m_blackColors

unsigned char* lvr2::StaticMesh::m_blackColors
protected

Definition at line 124 of file StaticMesh.hpp.

◆ m_coloredMeshList

int lvr2::StaticMesh::m_coloredMeshList
protected

Definition at line 138 of file StaticMesh.hpp.

◆ m_colors

ucharArr lvr2::StaticMesh::m_colors
protected

Definition at line 123 of file StaticMesh.hpp.

◆ m_faceNormals

float* lvr2::StaticMesh::m_faceNormals
protected

Definition at line 121 of file StaticMesh.hpp.

◆ m_faces

indexArray lvr2::StaticMesh::m_faces
protected

Definition at line 126 of file StaticMesh.hpp.

◆ m_finalized

bool lvr2::StaticMesh::m_finalized
protected

Definition at line 128 of file StaticMesh.hpp.

◆ m_haveMaterials

bool lvr2::StaticMesh::m_haveMaterials
protected

Definition at line 129 of file StaticMesh.hpp.

◆ m_nameList

int lvr2::StaticMesh::m_nameList
protected

Definition at line 140 of file StaticMesh.hpp.

◆ m_normals

floatArr lvr2::StaticMesh::m_normals
protected

Definition at line 120 of file StaticMesh.hpp.

◆ m_numFaces

size_t lvr2::StaticMesh::m_numFaces
protected

Definition at line 132 of file StaticMesh.hpp.

◆ m_numMaterials

size_t lvr2::StaticMesh::m_numMaterials
protected

Definition at line 133 of file StaticMesh.hpp.

◆ m_numVertices

size_t lvr2::StaticMesh::m_numVertices
protected

Definition at line 131 of file StaticMesh.hpp.

◆ m_renderMode

int lvr2::StaticMesh::m_renderMode
protected

Definition at line 135 of file StaticMesh.hpp.

◆ m_vertices

floatArr lvr2::StaticMesh::m_vertices
protected

Definition at line 122 of file StaticMesh.hpp.

◆ m_wireframeList

int lvr2::StaticMesh::m_wireframeList
protected

Definition at line 139 of file StaticMesh.hpp.


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


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Mon Feb 28 2022 22:46:12