Rendering/vtkPropPicker.h Source File

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

# Rendering/vtkPropPicker.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkPropPicker.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 =========================================================================*/
    00050 #ifndef __vtkPropPicker_h
    00051 #define __vtkPropPicker_h
    00052
    00053 #include "vtkAbstractPropPicker.h"
    00054
    00055 class vtkProp;
    00056 class vtkWorldPointPicker;
    00057
    00058 class VTK_RENDERING_EXPORT vtkPropPicker : public vtkAbstractPropPicker
    00059 {
    00060 public:
    00061   static vtkPropPicker *New();
    00062
    00063   vtkTypeRevisionMacro(vtkPropPicker,vtkAbstractPropPicker);
    00064   void PrintSelf(ostream& os, vtkIndent indent);
    00065
    00070   int PickProp(float selectionX, float selectionY, vtkRenderer *renderer);
    00071
    00073
    00075   int PickProp(float selectionX, float selectionY, vtkRenderer *renderer,
    00076                vtkPropCollection* pickfrom);
    00078
    00080
    00081   int Pick(float selectionX, float selectionY, float selectionZ,
    00082            vtkRenderer *renderer);
    00083   int Pick(float selectionPt[3], vtkRenderer *renderer)
    00084     { return this->Pick( selectionPt[0],
    00085                          selectionPt[1], selectionPt[2], renderer); };
    00087
    00088 protected:
    00089   vtkPropPicker();
    00090   ~vtkPropPicker();
    00091
    00092   void Initialize();
    00093
    00094   vtkPropCollection* PickFromProps;
    00095
    00096   // Used to get x-y-z pick position
    00097   vtkWorldPointPicker *WorldPointPicker;
    00098 private:
    00099   vtkPropPicker(const vtkPropPicker&);  // Not implemented.
    00100   void operator=(const vtkPropPicker&);  // Not implemented.
    00101 };
    00102
    00103 #endif
    00104
    00105