30 #ifndef vtkSphereHandleRepresentation_h
31 #define vtkSphereHandleRepresentation_h
34 #include "vtkInteractionWidgetsModule.h"
87 void SetSphereRadius(
double);
88 double GetSphereRadius();
107 vtkSetClampMacro(HotSpotSize,
double, 0.0, 1.0);
108 vtkGetMacro(HotSpotSize,
double);
122 void BuildRepresentation() override;
123 void StartWidgetInteraction(
double eventPos[2]) override;
124 void WidgetInteraction(
double eventPos[2]) override;
125 int ComputeInteractionState(
int X,
int Y,
int modify = 0) override;
126 void PlaceWidget(
double bounds[6]) override;
133 void ShallowCopy(
vtkProp* prop) override;
134 void DeepCopy(
vtkProp* prop) override;
136 void ReleaseGraphicsResources(
vtkWindow*) override;
137 int RenderOpaqueGeometry(
vtkViewport* viewport) override;
138 int RenderTranslucentPolygonalGeometry(
vtkViewport* viewport) override;
139 vtkTypeBool HasTranslucentPolygonalGeometry() override;
142 void Highlight(
int highlight) override;
147 void RegisterPickers() override;
159 ~vtkSphereHandleRepresentation() override;
169 double LastPickPosition[3];
170 double LastEventPosition[2];
174 void Translate(const
double* p1, const
double* p2) override;
175 void Scale(const
double* p1, const
double* p2, const
double eventPos[2]);
176 void MoveFocus(const
double* p1, const
double* p2);
183 void CreateDefaultProperties();
187 int WaitingForMotion;
191 double CurrentHandleSize;
197 vtkSphereHandleRepresentation(const vtkSphereHandleRepresentation&) = delete;
198 void operator=(const vtkSphereHandleRepresentation&) = delete;
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
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. ...
virtual void SetDisplayPosition(double pos[3])
Handles usually have their coordinates set in display coordinates (generally by an associated widget)...