Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Rendering/vtkSelectVisiblePoints.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkSelectVisiblePoints.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00067 #ifndef __vtkSelectVisiblePoints_h
00068 #define __vtkSelectVisiblePoints_h
00069 
00070 #include "vtkDataSetToPolyDataFilter.h"
00071 
00072 class vtkRenderer;
00073 
00074 class VTK_RENDERING_EXPORT vtkSelectVisiblePoints : public vtkDataSetToPolyDataFilter
00075 {
00076 public:
00077   vtkTypeRevisionMacro(vtkSelectVisiblePoints,vtkDataSetToPolyDataFilter);
00078   void PrintSelf(ostream& os, vtkIndent indent);
00079 
00082   static vtkSelectVisiblePoints *New();
00083 
00085 
00087   void SetRenderer(vtkRenderer* ren)
00088     {
00089       if (this->Renderer != ren)
00090         {
00091         this->Renderer = ren;
00092         this->Modified();
00093         }
00094     }
00095   vtkRenderer* GetRenderer() { return this->Renderer; }
00097 
00099 
00101   vtkSetMacro(SelectionWindow,int);
00102   vtkGetMacro(SelectionWindow,int);
00103   vtkBooleanMacro(SelectionWindow,int);
00105 
00107 
00109   vtkSetVector4Macro(Selection,int);
00110   vtkGetVectorMacro(Selection,int,4);
00112 
00114 
00116   vtkSetMacro(SelectInvisible,int);
00117   vtkGetMacro(SelectInvisible,int);
00118   vtkBooleanMacro(SelectInvisible,int);
00120 
00122 
00125   vtkSetClampMacro(Tolerance,float,0.0,VTK_LARGE_FLOAT);
00126   vtkGetMacro(Tolerance,float);
00128 
00130   unsigned long GetMTime();
00131 
00132 protected:
00133   vtkSelectVisiblePoints();
00134   ~vtkSelectVisiblePoints();
00135 
00136   void Execute();
00137 
00138   vtkRenderer *Renderer;
00139 
00140   int SelectionWindow;
00141   int Selection[4];
00142   int SelectInvisible;
00143   float Tolerance;
00144 
00145 private:
00146   vtkSelectVisiblePoints(const vtkSelectVisiblePoints&);  // Not implemented.
00147   void operator=(const vtkSelectVisiblePoints&);  // Not implemented.
00148 };
00149 
00150 #endif
00151 
00152