30 #ifndef vtkSphereHandleRepresentation_h 31 #define vtkSphereHandleRepresentation_h 33 #include "vtkInteractionWidgetsModule.h" 86 void SetSphereRadius(
double);
87 double GetSphereRadius();
106 vtkSetClampMacro(HotSpotSize,
double,0.0,1.0);
107 vtkGetMacro(HotSpotSize,
double);
121 void BuildRepresentation() override;
122 void StartWidgetInteraction(
double eventPos[2]) override;
123 void WidgetInteraction(
double eventPos[2]) override;
124 int ComputeInteractionState(
int X,
int Y,
int modify=0) override;
125 void PlaceWidget(
double bounds[6]) override;
132 void ShallowCopy(
vtkProp *prop) override;
133 void DeepCopy(
vtkProp *prop) override;
135 void ReleaseGraphicsResources(
vtkWindow *) override;
136 int RenderOpaqueGeometry(
vtkViewport *viewport) override;
137 int RenderTranslucentPolygonalGeometry(
vtkViewport *viewport) override;
138 vtkTypeBool HasTranslucentPolygonalGeometry() override;
141 void Highlight(
int highlight) override;
146 void RegisterPickers() override;
150 ~vtkSphereHandleRepresentation() override;
160 double LastPickPosition[3];
161 double LastEventPosition[2];
165 void Translate(
double *p1,
double *p2);
166 void Scale(
double *p1,
double *p2,
double eventPos[2]);
167 void MoveFocus(
double *p1,
double *p2);
174 void CreateDefaultProperties();
178 int DetermineConstraintAxis(
int constraint,
double *x);
179 int WaitingForMotion;
183 double CurrentHandleSize;
189 vtkSphereHandleRepresentation(const vtkSphereHandleRepresentation&) = delete;
190 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 SetDisplayPosition(double pos[3])
Handles usually have their coordinates set in display coordinates (generally by an associated widget)...