VTK  9.3.0
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
23#ifndef vtkWorldPointPicker_h
24#define vtkWorldPointPicker_h
25
26#include "vtkAbstractPicker.h"
27#include "vtkRenderingCoreModule.h" // For export macro
28
29VTK_ABI_NAMESPACE_BEGIN
30class VTKRENDERINGCORE_EXPORT vtkWorldPointPicker : public vtkAbstractPicker
31{
32public:
35 void PrintSelf(ostream& os, vtkIndent indent) override;
36
38
41 int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer* renderer) override;
42 int Pick(double selectionPt[3], vtkRenderer* renderer)
43 {
44 return this->vtkAbstractPicker::Pick(selectionPt, renderer);
45 }
47
48protected:
50 ~vtkWorldPointPicker() override = default;
51
52private:
54 void operator=(const vtkWorldPointPicker&) = delete;
55};
56
57VTK_ABI_NAMESPACE_END
58#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:29
abstract specification for renderers
Definition vtkRenderer.h:59
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.