include
lvr2
display
MeshCluster.hpp
Go to the documentation of this file.
1
28
/*
29
* MeshCluster.hpp
30
*
31
* Created on: 12.04.2012
32
* Author: Thomas Wiemann
33
*/
34
35
#ifndef MESHCLUSTER_HPP_
36
#define MESHCLUSTER_HPP_
37
38
#include <list>
39
using namespace
std
;
40
41
#include "
lvr2/display/Renderable.hpp
"
42
#include "
lvr2/display/StaticMesh.hpp
"
43
44
namespace
lvr2
45
{
46
47
class
MeshCluster
:
public
Renderable
48
{
49
public
:
50
MeshCluster
() {};
51
52
void
addMesh(
MeshBufferPtr
buffer,
string
name);
53
54
virtual
~MeshCluster
() {
for
(
StaticMesh
* sm : m_meshes)
delete
sm;};
55
56
virtual
inline
void
render
()
57
{
58
list<StaticMesh*>::iterator it;
59
for
(it = m_meshes.begin(); it != m_meshes.end(); it++)
60
{
61
(*it)->render();
62
}
63
}
64
65
list<StaticMesh*>
getMeshes
() {
return
m_meshes;}
66
67
private
:
68
list<StaticMesh*>
m_meshes
;
69
};
70
71
}
// namespace lvr2
72
73
#endif
/* MESHCLUSTER_HPP_ */
lvr2::MeshCluster::m_meshes
list< StaticMesh * > m_meshes
Definition:
MeshCluster.hpp:68
lvr2::MeshCluster::MeshCluster
MeshCluster()
Definition:
MeshCluster.hpp:50
lvr2::StaticMesh
Definition:
StaticMesh.hpp:75
lvr2::MeshCluster::getMeshes
list< StaticMesh * > getMeshes()
Definition:
MeshCluster.hpp:65
StaticMesh.hpp
lvr2::MeshCluster::~MeshCluster
virtual ~MeshCluster()
Definition:
MeshCluster.hpp:54
lvr2::Renderable
Definition:
Renderable.hpp:65
Renderable.hpp
lvr2::MeshCluster
Definition:
MeshCluster.hpp:47
std
Definition:
HalfEdge.hpp:124
lvr2
Definition:
BaseBufferManipulators.hpp:39
lvr2::MeshBufferPtr
std::shared_ptr< MeshBuffer > MeshBufferPtr
Definition:
MeshBuffer.hpp:217
lvr2::MeshCluster::render
virtual void render()
Definition:
MeshCluster.hpp:56
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:24