VTK  9.3.1
vtkWorldPointPicker.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
26 #ifndef vtkWorldPointPicker_h
27 #define vtkWorldPointPicker_h
28 
29 #include "vtkAbstractPicker.h"
30 #include "vtkRenderingCoreModule.h" // For export macro
31 
32 VTK_ABI_NAMESPACE_BEGIN
33 class VTKRENDERINGCORE_EXPORT vtkWorldPointPicker : public vtkAbstractPicker
34 {
35 public:
36  static vtkWorldPointPicker* New();
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
41 
44  int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer* renderer) override;
45  int Pick(double selectionPt[3], vtkRenderer* renderer)
46  {
47  return this->vtkAbstractPicker::Pick(selectionPt, renderer);
48  }
50 
51 protected:
53  ~vtkWorldPointPicker() override = default;
54 
55 private:
57  void operator=(const vtkWorldPointPicker&) = delete;
58 };
59 
60 VTK_ABI_NAMESPACE_END
61 #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:28
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.