VTK  9.0.20210225
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
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkFrustumSource
create a polygonal representation of a frustum
Definition: vtkFrustumSource.h:39
vtkFrustumSource::ShowLines
bool ShowLines
Definition: vtkFrustumSource.h:112
vtkPlanes
implicit function for convex set of planes
Definition: vtkPlanes.h:49
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkFrustumSource::LinesLength
double LinesLength
Definition: vtkFrustumSource.h:113
vtkPolyDataAlgorithm.h
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkObject::GetMTime
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkFrustumSource::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkFrustumSource.h:114
vtkFrustumSource::Planes
vtkPlanes * Planes
Definition: vtkFrustumSource.h:111
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:293
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:41