VTK: Interaction/Widgets/vtkFixedSizeHandleRepresentation3D.h Source File

| VTK 9.3.1

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
28 #include "vtkPolygonalHandleRepresentation3D.h"
29
30 VTK_ABI_NAMESPACE_BEGIN
31 class vtkSphereSource;
32
33 class VTKINTERACTIONWIDGETS_EXPORT vtkFixedSizeHandleRepresentation3D
34 : public vtkPolygonalHandleRepresentation3D
35 {
36 public:
40 static vtkFixedSizeHandleRepresentation3D* New();
41
43
46 vtkTypeMacro(vtkFixedSizeHandleRepresentation3D, vtkPolygonalHandleRepresentation3D);
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
78 protected:
79 vtkFixedSizeHandleRepresentation3D();
80 ~vtkFixedSizeHandleRepresentation3D() override;
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
97 vtkSphereSource* SphereSource;
98 double HandleSizeInPixels;
99 double HandleSizeToleranceInPixels;
100
101 private:
102 vtkFixedSizeHandleRepresentation3D(const vtkFixedSizeHandleRepresentation3D&) = delete;
103 void operator=(const vtkFixedSizeHandleRepresentation3D&) = delete;
104 };
105
106 VTK_ABI_NAMESPACE_END
107 #endif
vtkFixedSizeHandleRepresentation3D
Definition: vtkFixedSizeHandleRepresentation3D.h:35
vtkFixedSizeHandleRepresentation3D::~vtkFixedSizeHandleRepresentation3D
~vtkFixedSizeHandleRepresentation3D() override
vtkFixedSizeHandleRepresentation3D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard vtk methods.
vtkFixedSizeHandleRepresentation3D::WorldToDisplay
void WorldToDisplay(double w[4], double d[4])
Convenience method to convert from world to display.
vtkFixedSizeHandleRepresentation3D::HandleSizeInPixels
double HandleSizeInPixels
Definition: vtkFixedSizeHandleRepresentation3D.h:98
vtkFixedSizeHandleRepresentation3D::DisplayToWorld
void DisplayToWorld(double d[4], double w[4])
Convenience method to convert from display to world.
vtkFixedSizeHandleRepresentation3D::New
static vtkFixedSizeHandleRepresentation3D * New()
Instantiate this class.
vtkFixedSizeHandleRepresentation3D::vtkFixedSizeHandleRepresentation3D
vtkFixedSizeHandleRepresentation3D()
vtkFixedSizeHandleRepresentation3D::HandleSizeToleranceInPixels
double HandleSizeToleranceInPixels
Definition: vtkFixedSizeHandleRepresentation3D.h:99
vtkFixedSizeHandleRepresentation3D::SphereSource
vtkSphereSource * SphereSource
Definition: vtkFixedSizeHandleRepresentation3D.h:97
vtkFixedSizeHandleRepresentation3D::BuildRepresentation
void BuildRepresentation() override
Recomputes the handle world size based on the set display size.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkPolygonalHandleRepresentation3D
represent a user defined handle geometry in 3D space
Definition: vtkPolygonalHandleRepresentation3D.h:28
vtkSphereSource
create a polygonal sphere centered at the origin
Definition: vtkSphereSource.h:44
vtkPolygonalHandleRepresentation3D.h