VTK  9.1.0
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 =========================================================================*/
81 #ifndef vtkFrustumSource_h
82 #define vtkFrustumSource_h
83 
84 #include "vtkFiltersSourcesModule.h" // For export macro
85 #include "vtkPolyDataAlgorithm.h"
86 class vtkPlanes;
87 
88 class VTKFILTERSSOURCES_EXPORT vtkFrustumSource : public vtkPolyDataAlgorithm
89 {
90 public:
91  static vtkFrustumSource* New();
93  void PrintSelf(ostream& os, vtkIndent indent) override;
94 
96 
103  vtkGetObjectMacro(Planes, vtkPlanes);
105 
109  virtual void SetPlanes(vtkPlanes* planes);
110 
112 
115  vtkGetMacro(ShowLines, bool);
116  vtkSetMacro(ShowLines, bool);
117  vtkBooleanMacro(ShowLines, bool);
119 
121 
125  vtkGetMacro(LinesLength, double);
126  vtkSetMacro(LinesLength, double);
128 
132  vtkMTimeType GetMTime() override;
133 
135 
140  vtkSetMacro(OutputPointsPrecision, int);
141  vtkGetMacro(OutputPointsPrecision, int);
143 
144 protected:
149 
150  ~vtkFrustumSource() override;
151 
152  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
153  vtkInformationVector* outputVector) override;
154 
158  void ComputePoint(int planes[3], double* pt);
159 
161  bool ShowLines;
162  double LinesLength;
164 
165 private:
166  vtkFrustumSource(const vtkFrustumSource&) = delete;
167  void operator=(const vtkFrustumSource&) = delete;
168 };
169 
170 #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:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
implicit function for convex set of planes
Definition: vtkPlanes.h:159
Superclass for algorithms that produce only polydata as output.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287