Go to the documentation of this file. 1 #ifndef LVR2_CHUNKED_MESH_BRIDGE_HPP_
2 #define LVR2_CHUNKED_MESH_BRIDGE_HPP_
11 #include <vtkSmartPointer.h>
13 #include <vtkActorCollection.h>
14 #include <vtkRenderer.h>
15 #include <vtkCamera.h>
27 #include <condition_variable>
29 #include <vtkWeakPointer.h>
48 typedef std::unordered_map<size_t, vtkSmartPointer<vtkActor> >
actorMap;
59 bool operator()(std::pair<float,T> p1, std::pair<float,T> p2)
61 return p1.first > p2.first;
71 std::vector<std::string> layers,
size_t cache_size = 1000);
74 std::vector<size_t >& indices);
86 std::vector<size_t> indices,
120 std::unordered_map<size_t, MeshBufferPtr>
m_chunks;
125 std::unique_ptr<MeshOctree<BaseVector<float> > >
m_oct;
std::unordered_map< size_t, MeshBufferPtr > m_chunks
std::vector< BaseVector< float > > m_highResCentroids
void fetchHighRes(BoundingBox< BaseVector< float > > bb, std::vector< size_t > indices, std::vector< BaseVector< float >> centroids)
std::vector< BaseVector< float > > m_lastCentroids
double getHighResDistance()
BoundingBox< BaseVector< float > > m_lastRegion
lvr2::ChunkManager m_chunkManager
void addInitialActors(vtkSmartPointer< vtkRenderer > renderer)
std::unordered_map< size_t, vtkSmartPointer< vtkActor > > getLowResActors()
boost::shared_ptr< LVRChunkedMeshBridge > ChunkedMeshBridgePtr
std::vector< size_t > m_lastIndices
void getActors(double planes[24], std::vector< BaseVector< float > > ¢roids, std::vector< size_t > &indices)
std::unordered_map< size_t, vtkSmartPointer< vtkActor > > m_chunkActors
std::unordered_map< size_t, MeshBufferPtr > m_highRes
LVRChunkedMeshBridge(std::string file, vtkSmartPointer< vtkRenderer > renderer, std::vector< std::string > layers, size_t cache_size=1000)
std::unordered_map< size_t, vtkSmartPointer< vtkActor > > actorMap
std::unordered_map< size_t, vtkSmartPointer< vtkActor > > m_highResActors
vtkSmartPointer< vtkRenderer > m_renderer
std::condition_variable cond_
std::vector< std::string > m_layers
A dynamic bounding box class.
std::unique_ptr< MeshOctree< BaseVector< float > > > m_oct
std::vector< size_t > m_highResIndices
bool operator()(std::pair< float, T > p1, std::pair< float, T > p2)
std::shared_ptr< MeshBuffer > MeshBufferPtr
std::unordered_map< size_t, vtkSmartPointer< vtkActor > > getHighResActors()
void updateHighRes(actorMap lowRes, actorMap highRes)
std::condition_variable mw_cond
vtkSmartPointer< vtkActor > computeMeshActor(size_t &id, MeshBufferPtr &chunk)
BoundingBox< BaseVector< float > > m_region
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