VTK  9.5.20250901
vtkFrustumSource.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
72#ifndef vtkFrustumSource_h
73#define vtkFrustumSource_h
74
75#include "vtkFiltersSourcesModule.h" // For export macro
77#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
78VTK_ABI_NAMESPACE_BEGIN
79class vtkPlanes;
80
81class VTKFILTERSSOURCES_EXPORT VTK_MARSHALAUTO vtkFrustumSource : public vtkPolyDataAlgorithm
82{
83public:
86 void PrintSelf(ostream& os, vtkIndent indent) override;
87
89
96 vtkGetObjectMacro(Planes, vtkPlanes);
98
102 virtual void SetPlanes(vtkPlanes* planes);
103
105
108 vtkGetMacro(ShowLines, bool);
109 vtkSetMacro(ShowLines, bool);
110 vtkBooleanMacro(ShowLines, bool);
112
114
118 vtkGetMacro(LinesLength, double);
119 vtkSetMacro(LinesLength, double);
121
126
128
133 vtkSetMacro(OutputPointsPrecision, int);
134 vtkGetMacro(OutputPointsPrecision, int);
136
137protected:
142
144
146 vtkInformationVector* outputVector) override;
147
151 void ComputePoint(int planes[3], double* pt);
152
157
158private:
159 vtkFrustumSource(const vtkFrustumSource&) = delete;
160 void operator=(const vtkFrustumSource&) = delete;
161};
162
163VTK_ABI_NAMESPACE_END
164#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:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
implicit function for convex set of planes
Definition vtkPlanes.h:151
Superclass for algorithms that produce only polydata as output.
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:287
#define VTK_MARSHALAUTO