LVRChunkedMeshCuller.hpp
Go to the documentation of this file.
1 #ifndef LVRCHUNKEDMESHCULLER_HPP_
2 #define LVRCHUNKEDMESHCULLER_HPP_
3 
4 #include <vtkCuller.h>
5 
6 #include <vtkSmartPointer.h>
7 #include <vtkActor.h>
8 #include <vtkActorCollection.h>
9 #include <vtkRenderer.h>
10 #include <vtkCamera.h>
11 
12 #include "LVRChunkedMeshBridge.hpp"
13 
14 #include <string>
15 
16 
17 
18 
19 namespace lvr2 {
20  class ChunkedMeshCuller: public vtkCuller
21  {
22  public:
23  ChunkedMeshCuller(LVRChunkedMeshBridge* bridge, double highResDistance = 150.0) : m_bridge(bridge), cull_(true), m_highResDistance(highResDistance){
24  std::cout << "Initialized Culler with highResDistance: " << m_highResDistance << std::endl;
25  }
26 
27  virtual double Cull(vtkRenderer *ren, vtkProp **propList, int &listLength, int &initialized) override;
28 
29  void NoCulling() { cull_ = false; }
30  void enableCulling() { cull_ = true; }
31 
32  private:
34  bool cull_;
36  };
37 }
38 
39 #endif
virtual double Cull(vtkRenderer *ren, vtkProp **propList, int &listLength, int &initialized) override
ChunkedMeshCuller(LVRChunkedMeshBridge *bridge, double highResDistance=150.0)
LVRChunkedMeshBridge * m_bridge


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 Mon Feb 28 2022 22:46:08