VTK  9.5.20250802
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
45#ifndef vtkWorldPointPicker_h
46#define vtkWorldPointPicker_h
47
48#include "vtkAbstractPicker.h"
49#include "vtkRenderingCoreModule.h" // For export macro
50#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
51
52VTK_ABI_NAMESPACE_BEGIN
53class VTKRENDERINGCORE_EXPORT VTK_MARSHALAUTO vtkWorldPointPicker : public vtkAbstractPicker
54{
55public:
58 void PrintSelf(ostream& os, vtkIndent indent) override;
59
61
64 int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer* renderer) override;
65 int Pick(double selectionPt[3], vtkRenderer* renderer)
66 {
67 return this->vtkAbstractPicker::Pick(selectionPt, renderer);
68 }
70
71protected:
73 ~vtkWorldPointPicker() override = default;
74
75private:
77 void operator=(const vtkWorldPointPicker&) = delete;
78};
79
80VTK_ABI_NAMESPACE_END
81#endif
define API for picking subclasses
virtual int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer *renderer)=0
Perform pick operation with selection point provided.
a simple class to control print indentation
Definition vtkIndent.h:108
abstract specification for renderers
find world x,y,z corresponding to display x,y,z
int Pick(double selectionPt[3], vtkRenderer *renderer)
Perform the pick.
static vtkWorldPointPicker * New()
~vtkWorldPointPicker() override=default
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer *renderer) override
Perform the pick.
#define VTK_MARSHALAUTO