VTK  9.1.0
vtkFrustumCoverageCuller.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkFrustumCoverageCuller.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
35#ifndef vtkFrustumCoverageCuller_h
36#define vtkFrustumCoverageCuller_h
37
38#include "vtkCuller.h"
39#include "vtkRenderingCoreModule.h" // For export macro
40
41#define VTK_CULLER_SORT_NONE 0
42#define VTK_CULLER_SORT_FRONT_TO_BACK 1
43#define VTK_CULLER_SORT_BACK_TO_FRONT 2
44
45class vtkProp;
46class vtkRenderer;
47
48class VTKRENDERINGCORE_EXPORT vtkFrustumCoverageCuller : public vtkCuller
49{
50public:
53 void PrintSelf(ostream& os, vtkIndent indent) override;
54
56
60 vtkSetMacro(MinimumCoverage, double);
61 vtkGetMacro(MinimumCoverage, double);
63
65
69 vtkSetMacro(MaximumCoverage, double);
70 vtkGetMacro(MaximumCoverage, double);
72
74
78 vtkSetClampMacro(SortingStyle, int, VTK_CULLER_SORT_NONE, VTK_CULLER_SORT_BACK_TO_FRONT);
79 vtkGetMacro(SortingStyle, int);
80 void SetSortingStyleToNone() { this->SetSortingStyle(VTK_CULLER_SORT_NONE); }
83 const char* GetSortingStyleAsString(void);
85
93 double Cull(vtkRenderer* ren, vtkProp** propList, int& listLength, int& initialized) override;
94
95protected:
97 ~vtkFrustumCoverageCuller() override = default;
98
102
103private:
105 void operator=(const vtkFrustumCoverageCuller&) = delete;
106};
107
108#endif
a superclass for prop cullers
Definition: vtkCuller.h:38
cull props based on frustum coverage
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.
const char * GetSortingStyleAsString(void)
Set the sorting style - none, front-to-back or back-to-front The default is none.
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:67
abstract specification for renderers
Definition: vtkRenderer.h:173
#define VTK_CULLER_SORT_NONE
#define VTK_CULLER_SORT_BACK_TO_FRONT
#define VTK_CULLER_SORT_FRONT_TO_BACK