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
36VTK_ABI_NAMESPACE_BEGIN
37class vtkProp;
38class vtkRenderer;
39
40class VTKRENDERINGCORE_EXPORT vtkFrustumCoverageCuller : public vtkCuller
41{
42public:
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); }
77
85 double Cull(vtkRenderer* ren, vtkProp** propList, int& listLength, int& initialized) override;
86
87protected:
89 ~vtkFrustumCoverageCuller() override = default;
90
94
95private:
97 void operator=(const vtkFrustumCoverageCuller&) = delete;
98};
99
100VTK_ABI_NAMESPACE_END
101#endif
a superclass for prop cullers
Definition vtkCuller.h:30
cull props based on frustum coverage
const char * GetSortingStyleAsString()
Set the sorting style - none, front-to-back or back-to-front The default is none.
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.
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.
static vtkFrustumCoverageCuller * New()
~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:29
abstract superclass for all actors, volumes and annotations
Definition vtkProp.h:43
abstract specification for renderers
Definition vtkRenderer.h:59
#define VTK_CULLER_SORT_NONE
#define VTK_CULLER_SORT_BACK_TO_FRONT
#define VTK_CULLER_SORT_FRONT_TO_BACK