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=========================================================================*/
33#ifndef vtkPropPicker_h
34#define vtkPropPicker_h
35
36#include "vtkRenderingCoreModule.h" // For export macro
38
39class vtkProp;
41
42class VTKRENDERINGCORE_EXPORT vtkPropPicker : public vtkAbstractPropPicker
43{
44public:
45 static vtkPropPicker *New();
46
48 void PrintSelf(ostream& os, vtkIndent indent);
49
56 int PickProp(double selectionX, double selectionY, vtkRenderer *renderer);
57
62 int PickProp(double selectionX, double selectionY, vtkRenderer *renderer,
63 vtkPropCollection* pickfrom);
64
68 int Pick(double selectionX, double selectionY, double selectionZ,
69 vtkRenderer *renderer);
70 int Pick(double selectionPt[3], vtkRenderer *renderer)
71 { return this->Pick( selectionPt[0],
72 selectionPt[1], selectionPt[2], renderer); }
73
74protected:
77
78 void Initialize();
79
81
82 // Used to get x-y-z pick position
84private:
85 vtkPropPicker(const vtkPropPicker&) VTK_DELETE_FUNCTION;
86 void operator=(const vtkPropPicker&) VTK_DELETE_FUNCTION;
87};
88
89#endif
virtual int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer *renderer)=0
Perform pick operation with selection point provided.
abstract API for pickers that can pick an instance of vtkProp
a simple class to control print indentation
Definition: vtkIndent.h:40
a list of Props
pick an actor/prop using graphics hardware
Definition: vtkPropPicker.h:43
int PickProp(double selectionX, double selectionY, vtkRenderer *renderer)
Perform the pick and set the PickedProp ivar.
int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer *renderer)
Overide superclasses' Pick() method.
vtkWorldPointPicker * WorldPointPicker
Definition: vtkPropPicker.h:83
static vtkPropPicker * New()
int PickProp(double selectionX, double selectionY, vtkRenderer *renderer, vtkPropCollection *pickfrom)
Perform a pick from the user-provided list of vtkProps and not from the list of vtkProps that the ren...
vtkPropCollection * PickFromProps
Definition: vtkPropPicker.h:80
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void Initialize()
int Pick(double selectionPt[3], vtkRenderer *renderer)
Definition: vtkPropPicker.h:70
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:48
abstract specification for renderers
Definition: vtkRenderer.h:64
find world x,y,z corresponding to display x,y,z