VTK  9.3.0
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
32 #ifndef vtkFrustumSource_h
33 #define vtkFrustumSource_h
34 
35 #include "vtkFiltersSourcesModule.h" // For export macro
36 #include "vtkPolyDataAlgorithm.h"
37 VTK_ABI_NAMESPACE_BEGIN
38 class vtkPlanes;
39 
40 class VTKFILTERSSOURCES_EXPORT vtkFrustumSource : public vtkPolyDataAlgorithm
41 {
42 public:
43  static vtkFrustumSource* New();
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
48 
55  vtkGetObjectMacro(Planes, vtkPlanes);
57 
61  virtual void SetPlanes(vtkPlanes* planes);
62 
64 
67  vtkGetMacro(ShowLines, bool);
68  vtkSetMacro(ShowLines, bool);
69  vtkBooleanMacro(ShowLines, bool);
71 
73 
77  vtkGetMacro(LinesLength, double);
78  vtkSetMacro(LinesLength, double);
80 
84  vtkMTimeType GetMTime() override;
85 
87 
92  vtkSetMacro(OutputPointsPrecision, int);
93  vtkGetMacro(OutputPointsPrecision, int);
95 
96 protected:
101 
102  ~vtkFrustumSource() override;
103 
104  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
105  vtkInformationVector* outputVector) override;
106 
110  void ComputePoint(int planes[3], double* pt);
111 
113  bool ShowLines;
114  double LinesLength;
116 
117 private:
118  vtkFrustumSource(const vtkFrustumSource&) = delete;
119  void operator=(const vtkFrustumSource&) = delete;
120 };
121 
122 VTK_ABI_NAMESPACE_END
123 #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.
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.
static vtkFrustumSource * New()
vtkMTimeType GetMTime() override
Modified GetMTime because of Planes.
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
implicit function for convex set of planes
Definition: vtkPlanes.h:51
Superclass for algorithms that produce only polydata as output.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270