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=========================================================================*/
81#ifndef vtkFrustumSource_h
82#define vtkFrustumSource_h
83
84#include "vtkFiltersSourcesModule.h" // For export macro
86class vtkPlanes;
87
88class VTKFILTERSSOURCES_EXPORT vtkFrustumSource : public vtkPolyDataAlgorithm
89{
90public:
93 void PrintSelf(ostream& os, vtkIndent indent) override;
94
96
103 vtkGetObjectMacro(Planes, vtkPlanes);
105
109 virtual void SetPlanes(vtkPlanes* planes);
110
112
115 vtkGetMacro(ShowLines, bool);
116 vtkSetMacro(ShowLines, bool);
117 vtkBooleanMacro(ShowLines, bool);
119
121
125 vtkGetMacro(LinesLength, double);
126 vtkSetMacro(LinesLength, double);
128
133
135
140 vtkSetMacro(OutputPointsPrecision, int);
141 vtkGetMacro(OutputPointsPrecision, int);
143
144protected:
149
151
153 vtkInformationVector* outputVector) override;
154
158 void ComputePoint(int planes[3], double* pt);
159
164
165private:
166 vtkFrustumSource(const vtkFrustumSource&) = delete;
167 void operator=(const vtkFrustumSource&) = delete;
168};
169
170#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:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
implicit function for convex set of planes
Definition: vtkPlanes.h:159
Superclass for algorithms that produce only polydata as output.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287