VTK  9.0.1
vtkWorldPointPicker.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkWorldPointPicker.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 vtkWorldPointPicker_h
36 #define vtkWorldPointPicker_h
37 
38 #include "vtkAbstractPicker.h"
39 #include "vtkRenderingCoreModule.h" // For export macro
40 
41 class VTKRENDERINGCORE_EXPORT vtkWorldPointPicker : public vtkAbstractPicker
42 {
43 public:
44  static vtkWorldPointPicker* New();
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
49 
52  int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer* renderer) override;
53  int Pick(double selectionPt[3], vtkRenderer* renderer)
54  {
55  return this->vtkAbstractPicker::Pick(selectionPt, renderer);
56  }
58 
59 protected:
61  ~vtkWorldPointPicker() override {}
62 
63 private:
65  void operator=(const vtkWorldPointPicker&) = delete;
66 };
67 
68 #endif
int Pick(double selectionPt[3], vtkRenderer *renderer)
Perform the pick.
abstract specification for renderers
Definition: vtkRenderer.h:61
a simple class to control print indentation
Definition: vtkIndent.h:33
virtual int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer *renderer)=0
Perform pick operation with selection point provided.
define API for picking subclasses
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
find world x,y,z corresponding to display x,y,z
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.