VTK
vtkOpenVRPropPicker.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: vtkOpenVRPropPicker.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 vtkOpenVRPropPicker_h
31 #define vtkOpenVRPropPicker_h
32 
33 #include "vtkRenderingOpenVRModule.h" // For export macro
34 #include "vtkPropPicker3D.h"
35 
36 class vtkProp;
37 
38 class VTKRENDERINGOPENVR_EXPORT vtkOpenVRPropPicker : public vtkPropPicker3D
39 {
40 public:
41  static vtkOpenVRPropPicker *New();
42 
44 
45  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
46 
50  int PickProp(double selectionPt[3], double eventWorldOrientation[4],
51  vtkRenderer *renderer, vtkPropCollection* pickfrom);
52 
56  int Pick(double selectionX, double selectionY, double selectionZ,
57  vtkRenderer *renderer) VTK_OVERRIDE;
58 
59 
60 protected:
62  ~vtkOpenVRPropPicker() VTK_OVERRIDE;
63 
64  void Initialize() VTK_OVERRIDE;
65 
66 
67 private:
68  vtkOpenVRPropPicker(const vtkOpenVRPropPicker&) VTK_DELETE_FUNCTION;// Not implemented.
69  void operator=(const vtkOpenVRPropPicker&) VTK_DELETE_FUNCTION;// Not implemented.
70 };
71 
72 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:44
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract specification for renderers
Definition: vtkRenderer.h:57
int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer *renderer) override
Override superclasses' Pick() method.
an ordered list of Props
int PickProp(double selectionX, double selectionY, double selectionZ, vtkRenderer *renderer)
Perform the pick and set the PickedProp ivar.
pick an actor/prop given a controller position and orientation
a simple class to control print indentation
Definition: vtkIndent.h:33
pick an actor/prop given XYZ coordinates
static vtkPropPicker3D * New()