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

vtkSelectVisiblePoints.h

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