VTK  9.0.1
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 =========================================================================*/
32 #ifndef vtkFrustumSource_h
33 #define vtkFrustumSource_h
34 
35 #include "vtkFiltersSourcesModule.h" // For export macro
36 #include "vtkPolyDataAlgorithm.h"
37 class vtkPlanes;
38 
39 class VTKFILTERSSOURCES_EXPORT vtkFrustumSource : public vtkPolyDataAlgorithm
40 {
41 public:
42  static vtkFrustumSource* New();
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
47 
54  vtkGetObjectMacro(Planes, vtkPlanes);
56 
60  virtual void SetPlanes(vtkPlanes* planes);
61 
63 
66  vtkGetMacro(ShowLines, bool);
67  vtkSetMacro(ShowLines, bool);
68  vtkBooleanMacro(ShowLines, bool);
70 
72 
76  vtkGetMacro(LinesLength, double);
77  vtkSetMacro(LinesLength, double);
79 
83  vtkMTimeType GetMTime() override;
84 
86 
91  vtkSetMacro(OutputPointsPrecision, int);
92  vtkGetMacro(OutputPointsPrecision, int);
94 
95 protected:
100 
101  ~vtkFrustumSource() override;
102 
103  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
104  vtkInformationVector* outputVector) override;
105 
109  void ComputePoint(int planes[3], double* pt);
110 
112  bool ShowLines;
113  double LinesLength;
115 
116 private:
117  vtkFrustumSource(const vtkFrustumSource&) = delete;
118  void operator=(const vtkFrustumSource&) = delete;
119 };
120 
121 #endif
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:293
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
implicit function for convex set of planes
Definition: vtkPlanes.h:49
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
virtual vtkMTimeType GetMTime()
Return this object's modified time.
create a polygonal representation of a frustum
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.