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
lvr2::ChunkedMeshCuller::enableCulling
void enableCulling()
Definition: LVRChunkedMeshCuller.hpp:30
lvr2::ChunkedMeshCuller::NoCulling
void NoCulling()
Definition: LVRChunkedMeshCuller.hpp:29
lvr2::ChunkedMeshCuller::m_bridge
LVRChunkedMeshBridge * m_bridge
Definition: LVRChunkedMeshCuller.hpp:33
lvr2::LVRChunkedMeshBridge
Definition: LVRChunkedMeshBridge.hpp:66
lvr2::ChunkedMeshCuller::cull_
bool cull_
Definition: LVRChunkedMeshCuller.hpp:34
lvr2::ChunkedMeshCuller
Definition: LVRChunkedMeshCuller.hpp:20
lvr2::ChunkedMeshCuller::ChunkedMeshCuller
ChunkedMeshCuller(LVRChunkedMeshBridge *bridge, double highResDistance=150.0)
Definition: LVRChunkedMeshCuller.hpp:23
lvr2
Definition: BaseBufferManipulators.hpp:39
lvr2::ChunkedMeshCuller::Cull
virtual double Cull(vtkRenderer *ren, vtkProp **propList, int &listLength, int &initialized) override
Definition: LVRChunkedMeshCuller.cpp:17
lvr2::ChunkedMeshCuller::m_highResDistance
double m_highResDistance
Definition: LVRChunkedMeshCuller.hpp:35
LVRChunkedMeshBridge.hpp


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