VTK  9.3.0
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
19#ifndef vtkZSpaceHardwarePicker_h
20#define vtkZSpaceHardwarePicker_h
21
22#include "vtkPropPicker.h"
23#include "vtkRenderingZSpaceModule.h" // for export macro
24#include "vtkSmartPointer.h" // for ivar
25
26VTK_ABI_NAMESPACE_BEGIN
27class vtkSelection;
28class vtkTransform;
29
30class VTKRENDERINGZSPACE_EXPORT vtkZSpaceHardwarePicker : public vtkPropPicker
31{
32public:
34
36
37 void PrintSelf(ostream& os, vtkIndent indent) override;
38
42 virtual int PickProp(const double pos[3], const double wxyz[4], int fieldAssociation,
43 vtkRenderer* renderer, bool actorPassOnly);
44
49
51
55 vtkSetMacro(PointPickingRadius, int);
56 vtkGetMacro(PointPickingRadius, int);
58
59protected:
61 ~vtkZSpaceHardwarePicker() override = default;
62
64 int PointPickingRadius = 30;
65
66private:
68 void operator=(const vtkZSpaceHardwarePicker&) = delete;
69};
70
71VTK_ABI_NAMESPACE_END
72#endif
a simple class to control print indentation
Definition vtkIndent.h:29
pick an actor/prop using graphics hardware
abstract specification for renderers
Definition vtkRenderer.h:59
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()