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 =========================================================================*/
31 #ifndef __vtkFrustumSource_h
32 #define __vtkFrustumSource_h
33 
34 #include "vtkPolyDataAlgorithm.h"
35 class vtkPlanes;
36 
38 {
39 public:
40  static vtkFrustumSource *New();
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45 
50  vtkGetObjectMacro(Planes,vtkPlanes);
52 
54  virtual void SetPlanes(vtkPlanes *planes);
55 
57 
58  vtkGetMacro(ShowLines,bool);
59  vtkSetMacro(ShowLines,bool);
60  vtkBooleanMacro(ShowLines,bool);
62 
64 
66  vtkGetMacro(LinesLength,double);
67  vtkSetMacro(LinesLength,double);
69 
71  unsigned long GetMTime();
72 
73 protected:
76 
77  virtual ~vtkFrustumSource();
78 
79  virtual int RequestData(vtkInformation *request,
80  vtkInformationVector **inputVector,
81  vtkInformationVector *outputVector);
82 
84 
85  void ComputePoint(int planes[3],
86  double *pt);
88 
90  bool ShowLines;
91  double LinesLength;
92 
93 private:
94  vtkFrustumSource(const vtkFrustumSource&); // Not implemented.
95  void operator=(const vtkFrustumSource&); // Not implemented.
96 };
97 
98 #endif