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 "vtkPropPicker.h"
35 
36 class vtkProp;
37 
38 class VTKRENDERINGOPENVR_EXPORT vtkOpenVRPropPicker : public vtkPropPicker
39 {
40 public:
41  static vtkOpenVRPropPicker *New();
42 
44 
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
50  virtual int PickProp3DRay(double selectionPt[3], double eventWorldOrientation[4],
51  vtkRenderer *renderer, vtkPropCollection* pickfrom);
52 
58  int Pick3DRay(double selectionPt[3], double orient[4], vtkRenderer *ren) override;
59 
60 protected:
62  ~vtkOpenVRPropPicker() override;
63 
64  void Initialize() override;
65 
66 
67 private:
68  vtkOpenVRPropPicker(const vtkOpenVRPropPicker&) = delete;// Not implemented.
69  void operator=(const vtkOpenVRPropPicker&) = delete;// Not implemented.
70 };
71 
72 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:50
virtual int Pick3DRay(double [3], double [4], vtkRenderer *)
Perform pick operation with selection point and orientaion provided.
pick an actor/prop using graphics hardware
Definition: vtkPropPicker.h:42
void Initialize() override
abstract specification for renderers
Definition: vtkRenderer.h:63
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
an ordered list of Props
pick an actor/prop given a controller position and orientation
static vtkPropPicker * New()
a simple class to control print indentation
Definition: vtkIndent.h:39