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

Rendering/vtkPointPicker.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkPointPicker.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 =========================================================================*/
00034 #ifndef __vtkPointPicker_h
00035 #define __vtkPointPicker_h
00036 
00037 #include "vtkPicker.h"
00038 
00039 class VTK_RENDERING_EXPORT vtkPointPicker : public vtkPicker
00040 {
00041 public:
00042   static vtkPointPicker *New();
00043   vtkTypeRevisionMacro(vtkPointPicker,vtkPicker);
00044   void PrintSelf(ostream& os, vtkIndent indent);
00045 
00047 
00048   vtkGetMacro(PointId, vtkIdType);
00050 
00051 protected:
00052   vtkPointPicker();
00053   ~vtkPointPicker() {};
00054 
00055   vtkIdType PointId; //picked point
00056 
00057   float IntersectWithLine(float p1[3], float p2[3], float tol, 
00058                           vtkAssemblyPath *path, vtkProp3D *p, 
00059                           vtkAbstractMapper3D *m);
00060   void Initialize();
00061 
00062 private:
00063   vtkPointPicker(const vtkPointPicker&);  // Not implemented.
00064   void operator=(const vtkPointPicker&);  // Not implemented.
00065 };
00066 
00067 #endif
00068 
00069