VTK  9.4.20241226
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
51VTK_ABI_NAMESPACE_BEGIN
52class VTKRENDERINGCORE_EXPORT vtkWorldPointPicker : public vtkAbstractPicker
53{
54public:
57 void PrintSelf(ostream& os, vtkIndent indent) override;
58
60
63 int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer* renderer) override;
64 int Pick(double selectionPt[3], vtkRenderer* renderer)
65 {
66 return this->vtkAbstractPicker::Pick(selectionPt, renderer);
67 }
69
70protected:
72 ~vtkWorldPointPicker() override = default;
73
74private:
76 void operator=(const vtkWorldPointPicker&) = delete;
77};
78
79VTK_ABI_NAMESPACE_END
80#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.