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

#include <LVRMeshBufferBridge.hpp>

Public Member Functions

vtkSmartPointer< vtkActor > getMeshActor ()
 
MeshBufferPtr getMeshBuffer ()
 
size_t getNumColoredFaces ()
 
size_t getNumTexturedFaces ()
 
size_t getNumTextures ()
 
size_t getNumTriangles ()
 
size_t getNumVertices ()
 
vtkSmartPointer< vtkActorCollection > getTexturedActors ()
 
vtkSmartPointer< vtkActor > getWireframeActor ()
 
bool hasTextures ()
 
 LVRMeshBufferBridge (const LVRMeshBufferBridge &b)
 
 LVRMeshBufferBridge (MeshBufferPtr meshbuffer)
 
void setBaseColor (float r, float g, float b)
 
void setOpacity (float opacityValue)
 
void setShading (int shader)
 
void setVisibility (bool visible)
 
virtual ~LVRMeshBufferBridge ()
 

Protected Member Functions

void computeMaterialGroups (vector< MaterialGroup * > &matGroups, vector< MaterialGroup * > &colorMatGroups)
 
void computeMeshActor (MeshBufferPtr meshbuffer)
 
vtkSmartPointer< vtkActor > getColorMeshActor (vector< MaterialGroup * > groups)
 
vtkSmartPointer< vtkTexture > getTexture (int index)
 
vtkSmartPointer< vtkActor > getTexturedActor (MaterialGroup *g)
 
void remapIndices (vector< MaterialGroup * > g, vector< Vec > &vertices, vector< VecUChar > &colors, vector< int > &indices)
 
void remapTexturedIndices (MaterialGroup *g, vector< Vec > &vertices, vector< Vec > &texCoords, vector< int > &indices)
 

Protected Attributes

vtkSmartPointer< vtkActor > m_meshActor
 
MeshBufferPtr m_meshBuffer
 
size_t m_numColoredFaces
 
size_t m_numFaces
 
size_t m_numTexturedFaces
 
size_t m_numTextures
 
size_t m_numVertices
 
vtkSmartPointer< vtkActorCollection > m_texturedActors
 
vtkSmartPointer< vtkActor > m_wireframeActor
 

Private Types

using Vec = BaseVector< float >
 
using VecUChar = BaseVector< unsigned char >
 

Detailed Description

Definition at line 50 of file LVRMeshBufferBridge.hpp.

Member Typedef Documentation

◆ Vec

Definition at line 53 of file LVRMeshBufferBridge.hpp.

◆ VecUChar

using lvr2::LVRMeshBufferBridge::VecUChar = BaseVector<unsigned char>
private

Definition at line 54 of file LVRMeshBufferBridge.hpp.

Constructor & Destructor Documentation

◆ LVRMeshBufferBridge() [1/2]

lvr2::LVRMeshBufferBridge::LVRMeshBufferBridge ( MeshBufferPtr  meshbuffer)

Definition at line 55 of file LVRMeshBufferBridge.cpp.

◆ LVRMeshBufferBridge() [2/2]

lvr2::LVRMeshBufferBridge::LVRMeshBufferBridge ( const LVRMeshBufferBridge b)

Definition at line 89 of file LVRMeshBufferBridge.cpp.

◆ ~LVRMeshBufferBridge()

lvr2::LVRMeshBufferBridge::~LVRMeshBufferBridge ( )
virtual

Definition at line 126 of file LVRMeshBufferBridge.cpp.

Member Function Documentation

◆ computeMaterialGroups()

void lvr2::LVRMeshBufferBridge::computeMaterialGroups ( vector< MaterialGroup * > &  matGroups,
vector< MaterialGroup * > &  colorMatGroups 
)
protected

Definition at line 285 of file LVRMeshBufferBridge.cpp.

◆ computeMeshActor()

void lvr2::LVRMeshBufferBridge::computeMeshActor ( MeshBufferPtr  meshbuffer)
protected

Definition at line 131 of file LVRMeshBufferBridge.cpp.

◆ getColorMeshActor()

vtkSmartPointer< vtkActor > lvr2::LVRMeshBufferBridge::getColorMeshActor ( vector< MaterialGroup * >  groups)
protected

Definition at line 662 of file LVRMeshBufferBridge.cpp.

◆ getMeshActor()

vtkSmartPointer< vtkActor > lvr2::LVRMeshBufferBridge::getMeshActor ( )

Definition at line 280 of file LVRMeshBufferBridge.cpp.

◆ getMeshBuffer()

MeshBufferPtr lvr2::LVRMeshBufferBridge::getMeshBuffer ( )

Definition at line 121 of file LVRMeshBufferBridge.cpp.

◆ getNumColoredFaces()

size_t lvr2::LVRMeshBufferBridge::getNumColoredFaces ( )

Definition at line 97 of file LVRMeshBufferBridge.cpp.

◆ getNumTexturedFaces()

size_t lvr2::LVRMeshBufferBridge::getNumTexturedFaces ( )

Definition at line 102 of file LVRMeshBufferBridge.cpp.

◆ getNumTextures()

size_t lvr2::LVRMeshBufferBridge::getNumTextures ( )

Definition at line 106 of file LVRMeshBufferBridge.cpp.

◆ getNumTriangles()

size_t lvr2::LVRMeshBufferBridge::getNumTriangles ( )

Definition at line 111 of file LVRMeshBufferBridge.cpp.

◆ getNumVertices()

size_t lvr2::LVRMeshBufferBridge::getNumVertices ( )

Definition at line 116 of file LVRMeshBufferBridge.cpp.

◆ getTexture()

vtkSmartPointer< vtkTexture > lvr2::LVRMeshBufferBridge::getTexture ( int  index)
protected

Definition at line 581 of file LVRMeshBufferBridge.cpp.

◆ getTexturedActor()

vtkSmartPointer< vtkActor > lvr2::LVRMeshBufferBridge::getTexturedActor ( MaterialGroup g)
protected

Definition at line 517 of file LVRMeshBufferBridge.cpp.

◆ getTexturedActors()

vtkSmartPointer< vtkActorCollection > lvr2::LVRMeshBufferBridge::getTexturedActors ( )

Definition at line 627 of file LVRMeshBufferBridge.cpp.

◆ getWireframeActor()

vtkSmartPointer< vtkActor > lvr2::LVRMeshBufferBridge::getWireframeActor ( )

Definition at line 275 of file LVRMeshBufferBridge.cpp.

◆ hasTextures()

bool lvr2::LVRMeshBufferBridge::hasTextures ( )

Definition at line 730 of file LVRMeshBufferBridge.cpp.

◆ remapIndices()

void lvr2::LVRMeshBufferBridge::remapIndices ( vector< MaterialGroup * >  g,
vector< Vec > &  vertices,
vector< VecUChar > &  colors,
vector< int > &  indices 
)
protected

Definition at line 435 of file LVRMeshBufferBridge.cpp.

◆ remapTexturedIndices()

void lvr2::LVRMeshBufferBridge::remapTexturedIndices ( MaterialGroup g,
vector< Vec > &  vertices,
vector< Vec > &  texCoords,
vector< int > &  indices 
)
protected

Definition at line 353 of file LVRMeshBufferBridge.cpp.

◆ setBaseColor()

void lvr2::LVRMeshBufferBridge::setBaseColor ( float  r,
float  g,
float  b 
)

Definition at line 75 of file LVRMeshBufferBridge.cpp.

◆ setOpacity()

void lvr2::LVRMeshBufferBridge::setOpacity ( float  opacityValue)

Definition at line 222 of file LVRMeshBufferBridge.cpp.

◆ setShading()

void lvr2::LVRMeshBufferBridge::setShading ( int  shader)

Definition at line 268 of file LVRMeshBufferBridge.cpp.

◆ setVisibility()

void lvr2::LVRMeshBufferBridge::setVisibility ( bool  visible)

Definition at line 235 of file LVRMeshBufferBridge.cpp.

Member Data Documentation

◆ m_meshActor

vtkSmartPointer<vtkActor> lvr2::LVRMeshBufferBridge::m_meshActor
protected

Definition at line 83 of file LVRMeshBufferBridge.hpp.

◆ m_meshBuffer

MeshBufferPtr lvr2::LVRMeshBufferBridge::m_meshBuffer
protected

Definition at line 86 of file LVRMeshBufferBridge.hpp.

◆ m_numColoredFaces

size_t lvr2::LVRMeshBufferBridge::m_numColoredFaces
protected

Definition at line 88 of file LVRMeshBufferBridge.hpp.

◆ m_numFaces

size_t lvr2::LVRMeshBufferBridge::m_numFaces
protected

Definition at line 82 of file LVRMeshBufferBridge.hpp.

◆ m_numTexturedFaces

size_t lvr2::LVRMeshBufferBridge::m_numTexturedFaces
protected

Definition at line 89 of file LVRMeshBufferBridge.hpp.

◆ m_numTextures

size_t lvr2::LVRMeshBufferBridge::m_numTextures
protected

Definition at line 90 of file LVRMeshBufferBridge.hpp.

◆ m_numVertices

size_t lvr2::LVRMeshBufferBridge::m_numVertices
protected

Definition at line 81 of file LVRMeshBufferBridge.hpp.

◆ m_texturedActors

vtkSmartPointer<vtkActorCollection> lvr2::LVRMeshBufferBridge::m_texturedActors
protected

Definition at line 85 of file LVRMeshBufferBridge.hpp.

◆ m_wireframeActor

vtkSmartPointer<vtkActor> lvr2::LVRMeshBufferBridge::m_wireframeActor
protected

Definition at line 84 of file LVRMeshBufferBridge.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