VTK
vtkPropPicker.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPropPicker.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 =========================================================================*/
35 #ifndef __vtkPropPicker_h
36 #define __vtkPropPicker_h
37 
38 #include "vtkAbstractPropPicker.h"
39 
40 class vtkProp;
42 
44 {
45 public:
46  static vtkPropPicker *New();
47 
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
55  int PickProp(double selectionX, double selectionY, vtkRenderer *renderer);
56 
58 
60  int PickProp(double selectionX, double selectionY, vtkRenderer *renderer,
61  vtkPropCollection* pickfrom);
63 
65 
66  int Pick(double selectionX, double selectionY, double selectionZ,
67  vtkRenderer *renderer);
68  int Pick(double selectionPt[3], vtkRenderer *renderer)
69  { return this->Pick( selectionPt[0],
70  selectionPt[1], selectionPt[2], renderer); };
72 
73 protected:
74  vtkPropPicker();
75  ~vtkPropPicker();
76 
77  void Initialize();
78 
80 
81  // Used to get x-y-z pick position
83 private:
84  vtkPropPicker(const vtkPropPicker&); // Not implemented.
85  void operator=(const vtkPropPicker&); // Not implemented.
86 };
87 
88 #endif
89 
90 
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:49
pick an actor/prop using graphics hardware
Definition: vtkPropPicker.h:43
void PrintSelf(ostream &os, vtkIndent indent)
abstract specification for renderers
Definition: vtkRenderer.h:69
a list of Props
vtkPropCollection * PickFromProps
Definition: vtkPropPicker.h:79
a simple class to control print indentation
Definition: vtkIndent.h:37
int Pick(double selectionPt[3], vtkRenderer *renderer)
Definition: vtkPropPicker.h:68
#define VTK_RENDERING_EXPORT
abstract API for pickers that can pick an instance of vtkProp
virtual int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer *renderer)=0
vtkWorldPointPicker * WorldPointPicker
Definition: vtkPropPicker.h:82
static vtkObject * New()
find world x,y,z corresponding to display x,y,z