VTK  9.6.1
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
22
23#ifndef vtkFrustumSource_h
24#define vtkFrustumSource_h
25
26#include "vtkFiltersSourcesModule.h" // For export macro
28#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
29VTK_ABI_NAMESPACE_BEGIN
30class vtkPlanes;
31
32class VTKFILTERSSOURCES_EXPORT VTK_MARSHALAUTO vtkFrustumSource : public vtkPolyDataAlgorithm
33{
34public:
37 void PrintSelf(ostream& os, vtkIndent indent) override;
38
40
47 vtkGetObjectMacro(Planes, vtkPlanes);
49
53 virtual void SetPlanes(vtkPlanes* planes);
54
56
59 vtkGetMacro(ShowLines, bool);
60 vtkSetMacro(ShowLines, bool);
61 vtkBooleanMacro(ShowLines, bool);
63
65
69 vtkGetMacro(LinesLength, double);
70 vtkSetMacro(LinesLength, double);
72
77
79
84 vtkSetMacro(OutputPointsPrecision, int);
85 vtkGetMacro(OutputPointsPrecision, int);
87
88protected:
93
95
96 int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
97 vtkInformationVector* outputVector) override;
98
102 void ComputePoint(int planes[3], double* pt);
103
108
109private:
110 vtkFrustumSource(const vtkFrustumSource&) = delete;
111 void operator=(const vtkFrustumSource&) = delete;
112};
113
114VTK_ABI_NAMESPACE_END
115#endif
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:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
implicit function for convex set of planes
Definition vtkPlanes.h:42
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:323
#define VTK_MARSHALAUTO