18 #ifndef vtkSphereHandleRepresentation_h
19 #define vtkSphereHandleRepresentation_h
22 #include "vtkInteractionWidgetsModule.h"
25 VTK_ABI_NAMESPACE_BEGIN
76 void SetSphereRadius(
double);
77 double GetSphereRadius();
96 vtkSetClampMacro(HotSpotSize,
double, 0.0, 1.0);
97 vtkGetMacro(HotSpotSize,
double);
111 void BuildRepresentation() override;
112 void StartWidgetInteraction(
double eventPos[2]) override;
113 void WidgetInteraction(
double eventPos[2]) override;
114 int ComputeInteractionState(
int X,
int Y,
int modify = 0) override;
115 void PlaceWidget(
double bounds[6]) override;
122 void ShallowCopy(
vtkProp* prop) override;
123 void DeepCopy(
vtkProp* prop) override;
125 void ReleaseGraphicsResources(
vtkWindow*) override;
126 int RenderOpaqueGeometry(
vtkViewport* viewport) override;
127 int RenderTranslucentPolygonalGeometry(
vtkViewport* viewport) override;
128 vtkTypeBool HasTranslucentPolygonalGeometry() override;
131 void Highlight(
int highlight) override;
136 void RegisterPickers() override;
148 ~vtkSphereHandleRepresentation() override;
158 double LastPickPosition[3];
159 double LastEventPosition[2];
163 void Translate(const
double* p1, const
double* p2) override;
164 void Scale(const
double* p1, const
double* p2, const
double eventPos[2]);
165 void MoveFocus(const
double* p1, const
double* p2);
172 void CreateDefaultProperties();
176 int WaitingForMotion;
180 double CurrentHandleSize;
186 vtkSphereHandleRepresentation(const vtkSphereHandleRepresentation&) = delete;
187 void operator=(const vtkSphereHandleRepresentation&) = delete;
190 VTK_ABI_NAMESPACE_END
abstract superclass for all actors, volumes and annotations
virtual void SetWorldPosition(double pos[3])
Handles usually have their coordinates set in display coordinates (generally by an associated widget)...
represents an object (geometry & properties) in a rendered scene
abstract class for representing widget handles
abstract specification for Viewports
represent surface properties of a geometric object
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instances of this class.
window superclass for vtkRenderWindow
create a polygonal sphere centered at the origin
virtual void SetDisplayPosition(double pos[2])
Handles usually have their coordinates set in display coordinates (generally by an associated widget)...
a simple class to control print indentation
#define VTK_SIZEHINT(...)
map vtkPolyData to graphics primitives
ray-cast cell picker for all kinds of Prop3Ds
A spherical rendition of point in 3D space.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
virtual void Translate(const double *p1, const double *p2)
Translates world position by vector p1p2 projected on the constraint axis if any. ...