VTK  9.2.6
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=========================================================================*/
44#ifndef vtkFrustumSource_h
45#define vtkFrustumSource_h
46
47#include "vtkFiltersSourcesModule.h" // For export macro
49class vtkPlanes;
50
51class VTKFILTERSSOURCES_EXPORT vtkFrustumSource : public vtkPolyDataAlgorithm
52{
53public:
56 void PrintSelf(ostream& os, vtkIndent indent) override;
57
59
66 vtkGetObjectMacro(Planes, vtkPlanes);
68
72 virtual void SetPlanes(vtkPlanes* planes);
73
75
78 vtkGetMacro(ShowLines, bool);
79 vtkSetMacro(ShowLines, bool);
80 vtkBooleanMacro(ShowLines, bool);
82
84
88 vtkGetMacro(LinesLength, double);
89 vtkSetMacro(LinesLength, double);
91
96
98
103 vtkSetMacro(OutputPointsPrecision, int);
104 vtkGetMacro(OutputPointsPrecision, int);
106
107protected:
112
114
116 vtkInformationVector* outputVector) override;
117
121 void ComputePoint(int planes[3], double* pt);
122
127
128private:
129 vtkFrustumSource(const vtkFrustumSource&) = delete;
130 void operator=(const vtkFrustumSource&) = delete;
131};
132
133#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:49
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
implicit function for convex set of planes
Definition vtkPlanes.h:62
Superclass for algorithms that produce only polydata as output.
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:287