VTK
vtkPropPicker3D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPropPicker3D.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
31 #ifndef vtkPropPicker3D_h
32 #define vtkPropPicker3D_h
33 
34 #include "vtkRenderingCoreModule.h" // For export macro
35 #include "vtkAbstractPropPicker.h"
36 
37 class vtkProp;
38 
39 class VTKRENDERINGCORE_EXPORT vtkPropPicker3D : public vtkAbstractPropPicker
40 {
41 public:
42  static vtkPropPicker3D *New();
43 
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
53  int PickProp(double selectionX, double selectionY,
54  double selectionZ, vtkRenderer *renderer);
55 
60  int PickProp(double selectionX, double selectionY,
61  double selectionZ, vtkRenderer *renderer,
62  vtkPropCollection* pickfrom);
63 
67  int Pick(double selectionX, double selectionY, double selectionZ,
68  vtkRenderer *renderer);
69  int Pick(double selectionPt[3], vtkRenderer *renderer)
70  { return this->Pick( selectionPt[0],
71  selectionPt[1], selectionPt[2], renderer); }
72 
73 protected:
75  ~vtkPropPicker3D();
76 
77  void Initialize();
78 
80 
81  private:
82  vtkPropPicker3D(const vtkPropPicker3D&) VTK_DELETE_FUNCTION; // Not implemented.
83  void operator=(const vtkPropPicker3D&) VTK_DELETE_FUNCTION; // Not implemented.
84 };
85 
86 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:50
int Pick(double selectionPt[3], vtkRenderer *renderer)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
abstract specification for renderers
Definition: vtkRenderer.h:63
a list of Props
a simple class to control print indentation
Definition: vtkIndent.h:39
pick an actor/prop given XYZ coordinates
abstract API for pickers that can pick an instance of vtkProp
virtual int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer *renderer)=0
Perform pick operation with selection point provided.
vtkPropCollection * PickFromProps
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...