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 =========================================================================*/
30 #ifndef vtkPropPicker_h
31 #define vtkPropPicker_h
32 
33 #include "vtkAbstractPropPicker.h"
34 #include "vtkRenderingCoreModule.h" // For export macro
35 
36 class vtkProp;
38 
39 class VTKRENDERINGCORE_EXPORT vtkPropPicker : public vtkAbstractPropPicker
40 {
41 public:
42  static vtkPropPicker* New();
43 
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
53  int PickProp(double selectionX, double selectionY, vtkRenderer* renderer);
54 
59  int PickProp(
60  double selectionX, double selectionY, vtkRenderer* renderer, vtkPropCollection* pickfrom);
61 
65  int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer* renderer) override;
66  int Pick(double selectionPt[3], vtkRenderer* renderer)
67  {
68  return this->Pick(selectionPt[0], selectionPt[1], selectionPt[2], renderer);
69  }
70 
76  int Pick3DPoint(double selectionPt[3], vtkRenderer* ren) override;
77 
84  int PickProp3DPoint(double pos[3], vtkRenderer* renderer);
85 
90  int PickProp3DPoint(double pos[3], vtkRenderer* renderer, vtkPropCollection* pickfrom);
91 
95  virtual int PickProp3DRay(double selectionPt[3], double eventWorldOrientation[4],
96  vtkRenderer* renderer, vtkPropCollection* pickfrom);
97 
103  int Pick3DRay(double selectionPt[3], double orient[4], vtkRenderer* ren) override;
104 
105 protected:
106  vtkPropPicker();
107  ~vtkPropPicker() override;
108 
109  void Initialize() override;
110 
112 
113  // Used to get x-y-z pick position
115 
116 private:
117  vtkPropPicker(const vtkPropPicker&) = delete;
118  void operator=(const vtkPropPicker&) = delete;
119 };
120 
121 #endif
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkAbstractPicker::Pick3DPoint
virtual int Pick3DPoint(double[3], vtkRenderer *)
Perform pick operation with selection point provided.
Definition: vtkAbstractPicker.h:120
vtkWorldPointPicker
find world x,y,z corresponding to display x,y,z
Definition: vtkWorldPointPicker.h:38
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkAbstractPropPicker::Initialize
void Initialize() override
vtkPropPicker::WorldPointPicker
vtkWorldPointPicker * WorldPointPicker
Definition: vtkPropPicker.h:114
vtkAbstractPropPicker.h
vtkAbstractPicker::Pick3DRay
virtual int Pick3DRay(double[3], double[4], vtkRenderer *)
Perform pick operation with selection point and orientation provided.
Definition: vtkAbstractPicker.h:131
vtkPropPicker
pick an actor/prop using graphics hardware
Definition: vtkPropPicker.h:39
vtkAbstractPropPicker
abstract API for pickers that can pick an instance of vtkProp
Definition: vtkAbstractPropPicker.h:79
vtkPropPicker::Pick
int Pick(double selectionPt[3], vtkRenderer *renderer)
Definition: vtkPropPicker.h:66
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:47
vtkAbstractPropPicker::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:58
vtkAbstractPicker::Pick
virtual int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer *renderer)=0
Perform pick operation with selection point provided.
vtkPropCollection
an ordered list of Props
Definition: vtkPropCollection.h:35
vtkPropPicker::PickFromProps
vtkPropCollection * PickFromProps
Definition: vtkPropPicker.h:111