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

#include <TexturedMesh.hpp>

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

Public Member Functions

virtual void render ()
 
 TexturedMesh (MeshBufferPtr mesh)
 
virtual ~TexturedMesh ()
 
- Public Member Functions inherited from lvr2::StaticMesh
virtual void finalize ()
 
uintArr getIndices ()
 
float * getNormals ()
 
size_t getNumberOfFaces ()
 
size_t getNumberOfVertices ()
 
int getRenderMode ()
 
floatArr getVertices ()
 
virtual void savePLY (string filename)
 
virtual void setName (string name)
 
void setRenderMode (int mode)
 
 StaticMesh ()
 
 StaticMesh (const StaticMesh &o)
 
 StaticMesh (MeshBufferPtr buffer, string name="")
 
 StaticMesh (ModelPtr model, string name="")
 
 ~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 (Matrix4< Vec > m, string name)
 
 Renderable (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 ()
 

Private Member Functions

void compileTexureDisplayList ()
 
void generateMaterialGroups ()
 
void getBufferArray (unsigned int *, MaterialGroup *g)
 

Private Attributes

vector< MaterialGroup * > m_colorMaterials
 
indexArray m_faceMaterials
 
vector< Material > & m_materials
 
size_t m_numFaces
 
size_t m_numMaterials
 
size_t m_numTextures
 
size_t m_numVertices
 
floatArr m_texcoords
 
int m_textureDisplayList
 
vector< MaterialGroup * > m_textureMaterials
 
textureArr m_textures
 

Additional Inherited Members

- Public Types inherited from lvr2::Renderable
using Vec = BaseVector< float >
 
- Protected Member Functions inherited from lvr2::StaticMesh
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 inherited from lvr2::StaticMesh
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
 

Detailed Description

Definition at line 54 of file TexturedMesh.hpp.

Constructor & Destructor Documentation

◆ TexturedMesh()

lvr2::TexturedMesh::TexturedMesh ( MeshBufferPtr  mesh)

Definition at line 61 of file TexturedMesh.cpp.

◆ ~TexturedMesh()

virtual lvr2::TexturedMesh::~TexturedMesh ( )
inlinevirtual

Definition at line 59 of file TexturedMesh.hpp.

Member Function Documentation

◆ compileTexureDisplayList()

void lvr2::TexturedMesh::compileTexureDisplayList ( )
private

Definition at line 162 of file TexturedMesh.cpp.

◆ generateMaterialGroups()

void lvr2::TexturedMesh::generateMaterialGroups ( )
private

Definition at line 107 of file TexturedMesh.cpp.

◆ getBufferArray()

void lvr2::TexturedMesh::getBufferArray ( unsigned int *  buffer,
MaterialGroup g 
)
private

Definition at line 47 of file TexturedMesh.cpp.

◆ render()

virtual void lvr2::TexturedMesh::render ( )
inlinevirtual

Reimplemented from lvr2::StaticMesh.

Definition at line 77 of file TexturedMesh.hpp.

Member Data Documentation

◆ m_colorMaterials

vector<MaterialGroup*> lvr2::TexturedMesh::m_colorMaterials
private

Definition at line 121 of file TexturedMesh.hpp.

◆ m_faceMaterials

indexArray lvr2::TexturedMesh::m_faceMaterials
private

Definition at line 114 of file TexturedMesh.hpp.

◆ m_materials

vector<Material>& lvr2::TexturedMesh::m_materials
private

Definition at line 117 of file TexturedMesh.hpp.

◆ m_numFaces

size_t lvr2::TexturedMesh::m_numFaces
private

Definition at line 123 of file TexturedMesh.hpp.

◆ m_numMaterials

size_t lvr2::TexturedMesh::m_numMaterials
private

Definition at line 124 of file TexturedMesh.hpp.

◆ m_numTextures

size_t lvr2::TexturedMesh::m_numTextures
private

Definition at line 125 of file TexturedMesh.hpp.

◆ m_numVertices

size_t lvr2::TexturedMesh::m_numVertices
private

Definition at line 126 of file TexturedMesh.hpp.

◆ m_texcoords

floatArr lvr2::TexturedMesh::m_texcoords
private

Definition at line 115 of file TexturedMesh.hpp.

◆ m_textureDisplayList

int lvr2::TexturedMesh::m_textureDisplayList
private

Definition at line 128 of file TexturedMesh.hpp.

◆ m_textureMaterials

vector<MaterialGroup*> lvr2::TexturedMesh::m_textureMaterials
private

Definition at line 120 of file TexturedMesh.hpp.

◆ m_textures

textureArr lvr2::TexturedMesh::m_textures
private

Definition at line 116 of file TexturedMesh.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 Wed Mar 2 2022 00:37:27