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
23 #ifndef vtkFrustumSource_h
24 #define vtkFrustumSource_h
25 
26 #include "vtkFiltersSourcesModule.h" // For export macro
27 #include "vtkPolyDataAlgorithm.h"
28 VTK_ABI_NAMESPACE_BEGIN
29 class vtkPlanes;
30 
31 class VTKFILTERSSOURCES_EXPORT vtkFrustumSource : public vtkPolyDataAlgorithm
32 {
33 public:
34  static vtkFrustumSource* New();
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
39 
46  vtkGetObjectMacro(Planes, vtkPlanes);
48 
52  virtual void SetPlanes(vtkPlanes* planes);
53 
55 
58  vtkGetMacro(ShowLines, bool);
59  vtkSetMacro(ShowLines, bool);
60  vtkBooleanMacro(ShowLines, bool);
62 
64 
68  vtkGetMacro(LinesLength, double);
69  vtkSetMacro(LinesLength, double);
71 
75  vtkMTimeType GetMTime() override;
76 
78 
83  vtkSetMacro(OutputPointsPrecision, int);
84  vtkGetMacro(OutputPointsPrecision, int);
86 
87 protected:
92 
93  ~vtkFrustumSource() override;
94 
95  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
96  vtkInformationVector* outputVector) override;
97 
101  void ComputePoint(int planes[3], double* pt);
102 
104  bool ShowLines;
105  double LinesLength;
107 
108 private:
109  vtkFrustumSource(const vtkFrustumSource&) = delete;
110  void operator=(const vtkFrustumSource&) = delete;
111 };
112 
113 VTK_ABI_NAMESPACE_END
114 #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:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
implicit function for convex set of planes
Definition: vtkPlanes.h:42
Superclass for algorithms that produce only polydata as output.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270