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 "vtkRenderingCoreModule.h" // For export macro
54 #include "vtkPolyDataAlgorithm.h"
55 
56 class vtkRenderer;
57 class vtkMatrix4x4;
58 
59 class VTKRENDERINGCORE_EXPORT vtkSelectVisiblePoints : public vtkPolyDataAlgorithm
60 {
61 public:
63  void PrintSelf(ostream& os, vtkIndent indent);
64 
67  static vtkSelectVisiblePoints *New();
68 
70 
72  void SetRenderer(vtkRenderer* ren)
73  {
74  if (this->Renderer != ren)
75  {
76  this->Renderer = ren;
77  this->Modified();
78  }
79  }
80  vtkRenderer* GetRenderer() { return this->Renderer; }
82 
84 
86  vtkSetMacro(SelectionWindow,int);
87  vtkGetMacro(SelectionWindow,int);
88  vtkBooleanMacro(SelectionWindow,int);
90 
92 
94  vtkSetVector4Macro(Selection,int);
95  vtkGetVectorMacro(Selection,int,4);
97 
99 
101  vtkSetMacro(SelectInvisible,int);
102  vtkGetMacro(SelectInvisible,int);
103  vtkBooleanMacro(SelectInvisible,int);
105 
107 
110  vtkSetClampMacro(Tolerance,double,0.0,VTK_DOUBLE_MAX);
111  vtkGetMacro(Tolerance,double);
113 
117  float * Initialize(bool getZbuff);
118 
121  bool IsPointOccluded(const double x[3], const float *zPtr);
122 
124  unsigned long GetMTime();
125 
126 protected:
129 
132 
135 
137  int Selection[4];
138  int InternalSelection[4];
140  double Tolerance;
141 
142 private:
143  vtkSelectVisiblePoints(const vtkSelectVisiblePoints&); // Not implemented.
144  void operator=(const vtkSelectVisiblePoints&); // Not implemented.
145 };
146 
147 #endif