VTK  9.7.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 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
32 
33 VTK_ABI_NAMESPACE_BEGIN
34 class VTKRENDERINGCORE_EXPORT VTK_MARSHALAUTO vtkWorldPointPicker : public vtkAbstractPicker
35 {
36 public:
37  static vtkWorldPointPicker* New();
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
42 
45  int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer* renderer) override;
46  int Pick(double selectionPt[3], vtkRenderer* renderer)
47  {
48  return this->vtkAbstractPicker::Pick(selectionPt, renderer);
49  }
51 
52 protected:
54  ~vtkWorldPointPicker() override = default;
55 
56 private:
58  void operator=(const vtkWorldPointPicker&) = delete;
59 };
60 
61 VTK_ABI_NAMESPACE_END
62 #endif
int Pick(double selectionPt[3], vtkRenderer *renderer)
Perform the pick.
abstract specification for renderers
Definition: vtkRenderer.h:63
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
#define VTK_MARSHALAUTO
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.