VTK  9.2.6
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 =========================================================================*/
84 #ifndef vtkFrustumSource_h
85 #define vtkFrustumSource_h
86 
87 #include "vtkFiltersSourcesModule.h" // For export macro
88 #include "vtkPolyDataAlgorithm.h"
89 class vtkPlanes;
90 
91 class VTKFILTERSSOURCES_EXPORT vtkFrustumSource : public vtkPolyDataAlgorithm
92 {
93 public:
94  static vtkFrustumSource* New();
96  void PrintSelf(ostream& os, vtkIndent indent) override;
97 
99 
106  vtkGetObjectMacro(Planes, vtkPlanes);
108 
112  virtual void SetPlanes(vtkPlanes* planes);
113 
115 
118  vtkGetMacro(ShowLines, bool);
119  vtkSetMacro(ShowLines, bool);
120  vtkBooleanMacro(ShowLines, bool);
122 
124 
128  vtkGetMacro(LinesLength, double);
129  vtkSetMacro(LinesLength, double);
131 
135  vtkMTimeType GetMTime() override;
136 
138 
143  vtkSetMacro(OutputPointsPrecision, int);
144  vtkGetMacro(OutputPointsPrecision, int);
146 
147 protected:
152 
153  ~vtkFrustumSource() override;
154 
155  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
156  vtkInformationVector* outputVector) override;
157 
161  void ComputePoint(int planes[3], double* pt);
162 
164  bool ShowLines;
165  double LinesLength;
167 
168 private:
169  vtkFrustumSource(const vtkFrustumSource&) = delete;
170  void operator=(const vtkFrustumSource&) = delete;
171 };
172 
173 #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:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
implicit function for convex set of planes
Definition: vtkPlanes.h:162
Superclass for algorithms that produce only polydata as output.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287