VTK  9.2.6
vtkDepthSortPolyData.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkDepthSortPolyData.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=========================================================================*/
30
31#ifndef vtkDepthSortPolyData_h
32#define vtkDepthSortPolyData_h
33
34#include "vtkFiltersHybridModule.h" // For export macro
36
37class vtkCamera;
38class vtkProp3D;
39class vtkTransform;
40
41class VTKFILTERSHYBRID_EXPORT vtkDepthSortPolyData : public vtkPolyDataAlgorithm
42{
43public:
48
50 void PrintSelf(ostream& os, vtkIndent indent) override;
51
58
60
64 vtkSetMacro(Direction, int);
65 vtkGetMacro(Direction, int);
70
77
79
85 vtkSetMacro(DepthSortMode, int);
86 vtkGetMacro(DepthSortMode, int);
91
93
98 virtual void SetCamera(vtkCamera*);
99 vtkGetObjectMacro(Camera, vtkCamera);
101
109 vtkProp3D* GetProp3D() { return this->Prop3D; }
110
112
117 vtkSetVector3Macro(Vector, double);
118 vtkGetVectorMacro(Vector, double, 3);
120
122
128 vtkSetVector3Macro(Origin, double);
129 vtkGetVectorMacro(Origin, double, 3);
131
133
141 vtkBooleanMacro(SortScalars, vtkTypeBool);
143
149
150protected:
153
155 void ComputeProjectionVector(double direction[3], double origin[3]);
156
162 double Vector[3];
163 double Origin[3];
165
166private:
168 void operator=(const vtkDepthSortPolyData&) = delete;
169};
170
171#endif
a virtual camera for 3D rendering
Definition vtkCamera.h:46
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
virtual void SetDepthSortMode(int)
Specify the point to use when sorting.
void SetDirectionToBackToFront()
Specify the sort method for the polygonal primitives.
virtual void SetDirection(int)
Specify the sort method for the polygonal primitives.
virtual void SetCamera(vtkCamera *)
Specify a camera that is used to define a view direction along which the cells are sorted.
void SetDirectionToFrontToBack()
Specify the sort method for the polygonal primitives.
void SetDepthSortModeToParametricCenter()
Specify the point to use when sorting.
vtkMTimeType GetMTime() override
Return MTime also considering the dependent objects: the camera and/or the prop3D.
void SetDepthSortModeToBoundsCenter()
Specify the point to use when sorting.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetDepthSortModeToFirstPoint()
Specify the point to use when sorting.
~vtkDepthSortPolyData() override
void ComputeProjectionVector(double direction[3], double origin[3])
void SetDirectionToSpecifiedVector()
Specify the sort method for the polygonal primitives.
void SetProp3D(vtkProp3D *)
Specify a transformation matrix (via the vtkProp3D::GetMatrix() method) that is used to include the e...
static vtkDepthSortPolyData * New()
Instantiate object.
a simple class to control print indentation
Definition vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represents an 3D object for placement in a rendered scene
Definition vtkProp3D.h:47
describes linear transformations via a 4x4 matrix
int vtkTypeBool
Definition vtkABI.h:69
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:287