34 #ifndef LVRMESHBUFFERBRIDGE_H_ 35 #define LVRMESHBUFFERBRIDGE_H_ 41 #include <vtkSmartPointer.h> 43 #include <vtkActorCollection.h> 45 #include <boost/shared_ptr.hpp> 92 void computeMaterialGroups(vector<MaterialGroup*>& matGroups, vector<MaterialGroup*>& colorMatGroups);
94 void remapIndices(vector<MaterialGroup*> g, vector<Vec >& vertices, vector<VecUChar >&
colors, vector<int>& indices);
100 vtkSmartPointer<vtkTexture>
getTexture(
int index);
std::shared_ptr< MeshBuffer > MeshBufferPtr
vtkSmartPointer< vtkActor > getMeshActor()
vtkSmartPointer< vtkActor > getColorMeshActor(vector< MaterialGroup *> groups)
void setShading(int shader)
size_t getNumTexturedFaces()
vtkSmartPointer< vtkActor > m_meshActor
vtkSmartPointer< vtkTexture > getTexture(int index)
void setOpacity(float opacityValue)
void remapTexturedIndices(MaterialGroup *g, vector< Vec > &vertices, vector< Vec > &texCoords, vector< int > &indices)
size_t m_numTexturedFaces
boost::shared_ptr< LVRMeshBufferBridge > MeshBufferBridgePtr
vtkSmartPointer< vtkActor > getTexturedActor(MaterialGroup *g)
void computeMeshActor(MeshBufferPtr meshbuffer)
void remapIndices(vector< MaterialGroup *> g, vector< Vec > &vertices, vector< VecUChar > &colors, vector< int > &indices)
vtkSmartPointer< vtkActorCollection > getTexturedActors()
vtkSmartPointer< vtkActor > m_wireframeActor
vtkSmartPointer< vtkActorCollection > m_texturedActors
void computeMaterialGroups(vector< MaterialGroup *> &matGroups, vector< MaterialGroup *> &colorMatGroups)
vtkSmartPointer< vtkActor > getWireframeActor()
virtual ~LVRMeshBufferBridge()
MeshBufferPtr getMeshBuffer()
LVRMeshBufferBridge(MeshBufferPtr meshbuffer)
void setVisibility(bool visible)
void setBaseColor(float r, float g, float b)
size_t getNumColoredFaces()
MeshBufferPtr m_meshBuffer