VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 =========================================================================*/
31 #ifndef __vtkFrustumSource_h
32 #define __vtkFrustumSource_h
33 
34 #include "vtkFiltersSourcesModule.h" // For export macro
35 #include "vtkPolyDataAlgorithm.h"
36 class vtkPlanes;
37 
38 class VTKFILTERSSOURCES_EXPORT vtkFrustumSource : public vtkPolyDataAlgorithm
39 {
40 public:
41  static vtkFrustumSource *New();
42  vtkTypeMacro(vtkFrustumSource,vtkPolyDataAlgorithm);
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46 
51  vtkGetObjectMacro(Planes,vtkPlanes);
53 
55  virtual void SetPlanes(vtkPlanes *planes);
56 
58 
59  vtkGetMacro(ShowLines,bool);
60  vtkSetMacro(ShowLines,bool);
61  vtkBooleanMacro(ShowLines,bool);
63 
65 
67  vtkGetMacro(LinesLength,double);
68  vtkSetMacro(LinesLength,double);
70 
72  unsigned long GetMTime();
73 
74 protected:
77 
78  virtual ~vtkFrustumSource();
79 
80  virtual int RequestData(vtkInformation *request,
81  vtkInformationVector **inputVector,
82  vtkInformationVector *outputVector);
83 
85 
86  void ComputePoint(int planes[3],
87  double *pt);
89 
90  vtkPlanes *Planes;
91  bool ShowLines;
92  double LinesLength;
93 
94 private:
95  vtkFrustumSource(const vtkFrustumSource&); // Not implemented.
96  void operator=(const vtkFrustumSource&); // Not implemented.
97 };
98 
99 #endif
create a polygonal representation of a frustum
vtkPlanes * Planes