VTK  9.1.0
vtkFrustumSource.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkFrustumSource.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=========================================================================*/
41#ifndef vtkFrustumSource_h
42#define vtkFrustumSource_h
43
44#include "vtkFiltersSourcesModule.h" // For export macro
46class vtkPlanes;
47
48class VTKFILTERSSOURCES_EXPORT vtkFrustumSource : public vtkPolyDataAlgorithm
49{
50public:
53 void PrintSelf(ostream& os, vtkIndent indent) override;
54
56
63 vtkGetObjectMacro(Planes, vtkPlanes);
65
69 virtual void SetPlanes(vtkPlanes* planes);
70
72
75 vtkGetMacro(ShowLines, bool);
76 vtkSetMacro(ShowLines, bool);
77 vtkBooleanMacro(ShowLines, bool);
79
81
85 vtkGetMacro(LinesLength, double);
86 vtkSetMacro(LinesLength, double);
88
93
95
100 vtkSetMacro(OutputPointsPrecision, int);
101 vtkGetMacro(OutputPointsPrecision, int);
103
104protected:
109
111
113 vtkInformationVector* outputVector) override;
114
118 void ComputePoint(int planes[3], double* pt);
119
124
125private:
126 vtkFrustumSource(const vtkFrustumSource&) = delete;
127 void operator=(const vtkFrustumSource&) = delete;
128};
129
130#endif
create a polygonal representation of a frustum
vtkFrustumSource()
Default constructor.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetPlanes(vtkPlanes *planes)
Set the 6 planes defining the frustum.
static vtkFrustumSource * New()
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
~vtkFrustumSource() override
void ComputePoint(int planes[3], double *pt)
Compute the intersection of 3 planes.
vtkMTimeType GetMTime() override
Modified GetMTime because of Planes.
a simple class to control print indentation
Definition: vtkIndent.h:43
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
implicit function for convex set of planes
Definition: vtkPlanes.h:59
Superclass for algorithms that produce only polydata as output.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287