VTK  9.3.0
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:
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
a superclass for prop cullers
Definition: vtkCuller.h:30
cull props based on frustum coverage
static vtkFrustumCoverageCuller * New()
void SetSortingStyleToNone()
Set the sorting style - none, front-to-back or back-to-front The default is none.
void SetSortingStyleToBackToFront()
Set the sorting style - none, front-to-back or back-to-front The default is none.
const char * GetSortingStyleAsString()
Set the sorting style - none, front-to-back or back-to-front The default is none.
double Cull(vtkRenderer *ren, vtkProp **propList, int &listLength, int &initialized) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
void SetSortingStyleToFrontToBack()
Set the sorting style - none, front-to-back or back-to-front The default is none.
~vtkFrustumCoverageCuller() override=default
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:55
abstract specification for renderers
Definition: vtkRenderer.h:71
#define VTK_CULLER_SORT_NONE
#define VTK_CULLER_SORT_BACK_TO_FRONT
#define VTK_CULLER_SORT_FRONT_TO_BACK