VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
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
;
41
class
vtkWorldPointPicker
;
42
43
class
VTK_RENDERING_EXPORT
vtkPropPicker
:
public
vtkAbstractPropPicker
44
{
45
public
:
46
static
vtkPropPicker
*
New
();
47
48
vtkTypeMacro(
vtkPropPicker
,
vtkAbstractPropPicker
);
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
79
vtkPropCollection
*
PickFromProps
;
80
81
// Used to get x-y-z pick position
82
vtkWorldPointPicker
*
WorldPointPicker
;
83
private
:
84
vtkPropPicker
(
const
vtkPropPicker
&);
// Not implemented.
85
void
operator=(
const
vtkPropPicker
&);
// Not implemented.
86
};
87
88
#endif
89
90
Generated on Wed Nov 21 2012 21:34:04 for VTK by
1.8.2