VTK  9.3.1
vtkFrustumCoverageCuller.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
26 #ifndef vtkFrustumCoverageCuller_h
27 #define vtkFrustumCoverageCuller_h
28 
29 #include "vtkCuller.h"
30 #include "vtkRenderingCoreModule.h" // For export macro
31 
32 #define VTK_CULLER_SORT_NONE 0
33 #define VTK_CULLER_SORT_FRONT_TO_BACK 1
34 #define VTK_CULLER_SORT_BACK_TO_FRONT 2
35 
36 VTK_ABI_NAMESPACE_BEGIN
37 class vtkProp;
38 class vtkRenderer;
39 
40 class VTKRENDERINGCORE_EXPORT vtkFrustumCoverageCuller : public vtkCuller
41 {
42 public:
43  static vtkFrustumCoverageCuller* New();
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
48 
52  vtkSetMacro(MinimumCoverage, double);
53  vtkGetMacro(MinimumCoverage, double);
55 
57 
61  vtkSetMacro(MaximumCoverage, double);
62  vtkGetMacro(MaximumCoverage, double);
64 
66 
70  vtkSetClampMacro(SortingStyle, int, VTK_CULLER_SORT_NONE, VTK_CULLER_SORT_BACK_TO_FRONT);
71  vtkGetMacro(SortingStyle, int);
72  void SetSortingStyleToNone() { this->SetSortingStyle(VTK_CULLER_SORT_NONE); }
75  const char* GetSortingStyleAsString();
77 
85  double Cull(vtkRenderer* ren, vtkProp** propList, int& listLength, int& initialized) override;
86 
87 protected:
89  ~vtkFrustumCoverageCuller() override = default;
90 
94 
95 private:
97  void operator=(const vtkFrustumCoverageCuller&) = delete;
98 };
99 
100 VTK_ABI_NAMESPACE_END
101 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:45
void SetSortingStyleToBackToFront()
Set the sorting style - none, front-to-back or back-to-front The default is none. ...
#define VTK_CULLER_SORT_NONE
abstract specification for renderers
Definition: vtkRenderer.h:61
cull props based on frustum coverage
void SetSortingStyleToFrontToBack()
Set the sorting style - none, front-to-back or back-to-front The default is none. ...
#define VTK_CULLER_SORT_FRONT_TO_BACK
a superclass for prop cullers
Definition: vtkCuller.h:29
a simple class to control print indentation
Definition: vtkIndent.h:28
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
#define VTK_CULLER_SORT_BACK_TO_FRONT
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual double Cull(vtkRenderer *ren, vtkProp **propList, int &listLength, int &initialized)=0
This is called outside the render loop by vtkRenderer.
void SetSortingStyleToNone()
Set the sorting style - none, front-to-back or back-to-front The default is none. ...