VTK  9.3.20241006
vtkFixedSizeHandleRepresentation3D.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
24#ifndef vtkFixedSizeHandleRepresentation3D_h
25#define vtkFixedSizeHandleRepresentation3D_h
26
27#include "vtkInteractionWidgetsModule.h" // For export macro
29
30VTK_ABI_NAMESPACE_BEGIN
31class vtkSphereSource;
32
33class VTKINTERACTIONWIDGETS_EXPORT vtkFixedSizeHandleRepresentation3D
35{
36public:
41
43
47 void PrintSelf(ostream& os, vtkIndent indent) override;
49
51
54 vtkGetObjectMacro(SphereSource, vtkSphereSource);
56
58
62 vtkSetMacro(HandleSizeInPixels, double);
63 vtkGetMacro(HandleSizeInPixels, double);
65
67
74 vtkSetMacro(HandleSizeToleranceInPixels, double);
75 vtkGetMacro(HandleSizeToleranceInPixels, double);
77
78protected:
81
85 void BuildRepresentation() override;
86
90 void WorldToDisplay(double w[4], double d[4]);
91
95 void DisplayToWorld(double d[4], double w[4]);
96
100
101private:
103 void operator=(const vtkFixedSizeHandleRepresentation3D&) = delete;
104};
105
106VTK_ABI_NAMESPACE_END
107#endif
void PrintSelf(ostream &os, vtkIndent indent) override
Standard vtk methods.
void WorldToDisplay(double w[4], double d[4])
Convenience method to convert from world to display.
void DisplayToWorld(double d[4], double w[4])
Convenience method to convert from display to world.
static vtkFixedSizeHandleRepresentation3D * New()
Instantiate this class.
void BuildRepresentation() override
Recomputes the handle world size based on the set display size.
a simple class to control print indentation
Definition vtkIndent.h:108
represent a user defined handle geometry in 3D space
create a polygonal sphere centered at the origin