VTK  9.0.20201030
vtkFixedSizeHandleRepresentation3D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkFixedSizeHandleRepresentation.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
36 #ifndef vtkFixedSizeHandleRepresentation3D_h
37 #define vtkFixedSizeHandleRepresentation3D_h
38 
39 #include "vtkInteractionWidgetsModule.h" // For export macro
41 
42 class vtkSphereSource;
43 
44 class VTKINTERACTIONWIDGETS_EXPORT vtkFixedSizeHandleRepresentation3D
46 {
47 public:
52 
54 
58  void PrintSelf(ostream& os, vtkIndent indent) override;
60 
62 
65  vtkGetObjectMacro(SphereSource, vtkSphereSource);
67 
69 
73  vtkSetMacro(HandleSizeInPixels, double);
74  vtkGetMacro(HandleSizeInPixels, double);
76 
78 
85  vtkSetMacro(HandleSizeToleranceInPixels, double);
86  vtkGetMacro(HandleSizeToleranceInPixels, double);
88 
89 protected:
92 
96  void BuildRepresentation() override;
97 
101  void WorldToDisplay(double w[4], double d[4]);
102 
106  void DisplayToWorld(double d[4], double w[4]);
107 
111 
112 private:
114  void operator=(const vtkFixedSizeHandleRepresentation3D&) = delete;
115 };
116 
117 #endif
vtkPolygonalHandleRepresentation3D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPolygonalHandleRepresentation3D
represent a user defined handle geometry in 3D space
Definition: vtkPolygonalHandleRepresentation3D.h:34
vtkFixedSizeHandleRepresentation3D::HandleSizeInPixels
double HandleSizeInPixels
Definition: vtkFixedSizeHandleRepresentation3D.h:109
vtkPolygonalHandleRepresentation3D.h
vtkAbstractPolygonalHandleRepresentation3D::BuildRepresentation
void BuildRepresentation() override
Methods to make this class properly act like a vtkWidgetRepresentation.
vtkSphereSource
create a polygonal sphere centered at the origin
Definition: vtkSphereSource.h:41
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkFixedSizeHandleRepresentation3D::SphereSource
vtkSphereSource * SphereSource
Definition: vtkFixedSizeHandleRepresentation3D.h:108
vtkFixedSizeHandleRepresentation3D::HandleSizeToleranceInPixels
double HandleSizeToleranceInPixels
Definition: vtkFixedSizeHandleRepresentation3D.h:110
vtkPolygonalHandleRepresentation3D::New
static vtkPolygonalHandleRepresentation3D * New()
Instantiate this class.
vtkFixedSizeHandleRepresentation3D
Definition: vtkFixedSizeHandleRepresentation3D.h:44