VTK
vtkSelectVisiblePoints.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSelectVisiblePoints.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 =========================================================================*/
50 #ifndef __vtkSelectVisiblePoints_h
51 #define __vtkSelectVisiblePoints_h
52 
53 #include "vtkPolyDataAlgorithm.h"
54 
55 class vtkRenderer;
56 class vtkMatrix4x4;
57 
59 {
60 public:
62  void PrintSelf(ostream& os, vtkIndent indent);
63 
66  static vtkSelectVisiblePoints *New();
67 
69 
72  {
73  if (this->Renderer != ren)
74  {
75  this->Renderer = ren;
76  this->Modified();
77  }
78  }
79  vtkRenderer* GetRenderer() { return this->Renderer; }
81 
83 
85  vtkSetMacro(SelectionWindow,int);
86  vtkGetMacro(SelectionWindow,int);
87  vtkBooleanMacro(SelectionWindow,int);
89 
91 
93  vtkSetVector4Macro(Selection,int);
94  vtkGetVectorMacro(Selection,int,4);
96 
98 
100  vtkSetMacro(SelectInvisible,int);
101  vtkGetMacro(SelectInvisible,int);
102  vtkBooleanMacro(SelectInvisible,int);
104 
106 
109  vtkSetClampMacro(Tolerance,double,0.0,VTK_DOUBLE_MAX);
110  vtkGetMacro(Tolerance,double);
112 
116  float * Initialize(bool getZbuff);
117 
120  bool IsPointOccluded(const double x[], float *zPtr);
121 
123  unsigned long GetMTime();
124 
125 protected:
128 
131 
134 
136  int Selection[4];
137  int InternalSelection[4];
139  double Tolerance;
140 
141 private:
142  vtkSelectVisiblePoints(const vtkSelectVisiblePoints&); // Not implemented.
143  void operator=(const vtkSelectVisiblePoints&); // Not implemented.
144 };
145 
146 #endif