VTK
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 =========================================================================*/
34 #ifndef vtkFrustumSource_h
35 #define vtkFrustumSource_h
36 
37 #include "vtkFiltersSourcesModule.h" // For export macro
38 #include "vtkPolyDataAlgorithm.h"
39 class vtkPlanes;
40 
42 {
43 public:
44  static vtkFrustumSource *New();
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
49 
54  vtkGetObjectMacro(Planes,vtkPlanes);
56 
58  virtual void SetPlanes(vtkPlanes *planes);
59 
61 
62  vtkGetMacro(ShowLines,bool);
63  vtkSetMacro(ShowLines,bool);
64  vtkBooleanMacro(ShowLines,bool);
66 
68 
70  vtkGetMacro(LinesLength,double);
71  vtkSetMacro(LinesLength,double);
73 
75  unsigned long GetMTime();
76 
78 
82  vtkSetMacro(OutputPointsPrecision,int);
83  vtkGetMacro(OutputPointsPrecision,int);
85 
86 protected:
89 
90  virtual ~vtkFrustumSource();
91 
92  virtual int RequestData(vtkInformation *request,
93  vtkInformationVector **inputVector,
94  vtkInformationVector *outputVector);
95 
97 
98  void ComputePoint(int planes[3],
99  double *pt);
101 
103  bool ShowLines;
104  double LinesLength;
106 
107 private:
108  vtkFrustumSource(const vtkFrustumSource&); // Not implemented.
109  void operator=(const vtkFrustumSource&); // Not implemented.
110 };
111 
112 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
implicit function for convex set of planes
Definition: vtkPlanes.h:53
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKFILTERSSOURCES_EXPORT
create a polygonal representation of a frustum
Store zero or more vtkInformation instances.