VTK  9.3.20240917
vtkZSpaceHardwarePicker.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
22#ifndef vtkZSpaceHardwarePicker_h
23#define vtkZSpaceHardwarePicker_h
24
25#include "vtkPropPicker.h"
26#include "vtkRenderingZSpaceModule.h" // for export macro
27#include "vtkSmartPointer.h" // for ivar
28
29VTK_ABI_NAMESPACE_BEGIN
30class vtkSelection;
31class vtkTransform;
32
33class VTKRENDERINGZSPACE_EXPORT vtkZSpaceHardwarePicker : public vtkPropPicker
34{
35public:
37
39
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
45 virtual int PickProp(const double pos[3], const double wxyz[4], int fieldAssociation,
46 vtkRenderer* renderer, bool actorPassOnly);
47
52
54
58 vtkSetMacro(PointPickingRadius, int);
59 vtkGetMacro(PointPickingRadius, int);
61
62protected:
64 ~vtkZSpaceHardwarePicker() override = default;
65
67 int PointPickingRadius = 30;
68
69private:
71 void operator=(const vtkZSpaceHardwarePicker&) = delete;
72};
73
74VTK_ABI_NAMESPACE_END
75#endif
a simple class to control print indentation
Definition vtkIndent.h:108
pick an actor/prop using graphics hardware
abstract specification for renderers
data object that represents a "selection" in VTK.
Hold a reference to a vtkObjectBase instance.
describes linear transformations via a 4x4 matrix
Pick an actor/prop given the stylus position and orientation.
vtkSmartPointer< vtkSelection > Selection
~vtkZSpaceHardwarePicker() override=default
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSelection * GetSelection()
Return the latest selection.
virtual int PickProp(const double pos[3], const double wxyz[4], int fieldAssociation, vtkRenderer *renderer, bool actorPassOnly)
Perform a pick from the user-provided list of vtkProps.
vtkZSpaceHardwarePicker()=default
static vtkZSpaceHardwarePicker * New()