Rendering/vtkPointPicker.h Source File

Main Page Class Hierarchy Alphabetical List Compound List File List Compound 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 =========================================================================*/
    00046 #ifndef __vtkPointPicker_h
    00047 #define __vtkPointPicker_h
    00048
    00049 #include "vtkPicker.h"
    00050
    00051 class VTK_RENDERING_EXPORT vtkPointPicker : public vtkPicker
    00052 {
    00053 public:
    00054   static vtkPointPicker *New();
    00055   vtkTypeRevisionMacro(vtkPointPicker,vtkPicker);
    00056   void PrintSelf(ostream& os, vtkIndent indent);
    00057
    00059
    00060   vtkGetMacro(PointId, vtkIdType);
    00062
    00063 protected:
    00064   vtkPointPicker();
    00065   ~vtkPointPicker() {};
    00066
    00067   vtkIdType PointId; //picked point
    00068
    00069   float IntersectWithLine(float p1[3], float p2[3], float tol,
    00070                           vtkAssemblyPath *path, vtkProp3D *p,
    00071                           vtkAbstractMapper3D *m);
    00072   void Initialize();
    00073
    00074 private:
    00075   vtkPointPicker(const vtkPointPicker&);  // Not implemented.
    00076   void operator=(const vtkPointPicker&);  // Not implemented.
    00077 };
    00078
    00079 #endif
    00080
    00081