VTK
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 "vtkRenderingCoreModule.h" // For export macro
39 #include "vtkCuller.h"
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 
45 class vtkProp;
46 class vtkRenderer;
47 
48 class VTKRENDERINGCORE_EXPORT vtkFrustumCoverageCuller : public vtkCuller
49 {
50 public:
51  static vtkFrustumCoverageCuller *New();
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,
80  vtkGetMacro(SortingStyle,int);
82  {this->SetSortingStyle(VTK_CULLER_SORT_NONE);};
84  {this->SetSortingStyle(VTK_CULLER_SORT_BACK_TO_FRONT);};
86  {this->SetSortingStyle(VTK_CULLER_SORT_FRONT_TO_BACK);};
87  const char *GetSortingStyleAsString(void);
89 
97  double Cull( vtkRenderer *ren, vtkProp **propList,
98  int& listLength, int& initialized ) override;
99 
100 protected:
103 
107 private:
109  void operator=(const vtkFrustumCoverageCuller&) = delete;
110 };
111 
112 
113 #endif
vtkCuller::Cull
virtual double Cull(vtkRenderer *ren, vtkProp **propList, int &listLength, int &initialized)=0
This is called outside the render loop by vtkRenderer.
vtkFrustumCoverageCuller
cull props based on frustum coverage
Definition: vtkFrustumCoverageCuller.h:48
vtkFrustumCoverageCuller::MinimumCoverage
double MinimumCoverage
Definition: vtkFrustumCoverageCuller.h:104
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
VTK_CULLER_SORT_BACK_TO_FRONT
#define VTK_CULLER_SORT_BACK_TO_FRONT
Definition: vtkFrustumCoverageCuller.h:43
vtkFrustumCoverageCuller::SortingStyle
int SortingStyle
Definition: vtkFrustumCoverageCuller.h:106
vtkCuller::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkFrustumCoverageCuller::SetSortingStyleToNone
void SetSortingStyleToNone()
Definition: vtkFrustumCoverageCuller.h:81
vtkFrustumCoverageCuller::~vtkFrustumCoverageCuller
~vtkFrustumCoverageCuller() override
Definition: vtkFrustumCoverageCuller.h:102
vtkCuller
a superclass for prop cullers
Definition: vtkCuller.h:37
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkFrustumCoverageCuller::MaximumCoverage
double MaximumCoverage
Definition: vtkFrustumCoverageCuller.h:105
vtkFrustumCoverageCuller::SetSortingStyleToFrontToBack
void SetSortingStyleToFrontToBack()
Definition: vtkFrustumCoverageCuller.h:85
vtkFrustumCoverageCuller::SetSortingStyleToBackToFront
void SetSortingStyleToBackToFront()
Definition: vtkFrustumCoverageCuller.h:83
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:46
VTK_CULLER_SORT_FRONT_TO_BACK
#define VTK_CULLER_SORT_FRONT_TO_BACK
Definition: vtkFrustumCoverageCuller.h:42
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:57
vtkCuller.h
VTK_CULLER_SORT_NONE
#define VTK_CULLER_SORT_NONE
Definition: vtkFrustumCoverageCuller.h:41