27 #ifndef vtkSphereHandleRepresentation_h
28 #define vtkSphereHandleRepresentation_h
30 #include "vtkInteractionWidgetsModule.h"
79 vtkGetMacro(TranslationMode,
int);
83 void SetSphereRadius(
double);
84 double GetSphereRadius();
103 vtkSetClampMacro(HotSpotSize,
double,0.0,1.0);
104 vtkGetMacro(HotSpotSize,
double);
118 void BuildRepresentation() VTK_OVERRIDE;
119 void StartWidgetInteraction(
double eventPos[2]) VTK_OVERRIDE;
120 void WidgetInteraction(
double eventPos[2]) VTK_OVERRIDE;
121 int ComputeInteractionState(
int X,
int Y,
int modify=0) VTK_OVERRIDE;
122 void PlaceWidget(
double bounds[6]) VTK_OVERRIDE;
129 void ShallowCopy(
vtkProp *prop) VTK_OVERRIDE;
130 void DeepCopy(
vtkProp *prop) VTK_OVERRIDE;
132 void ReleaseGraphicsResources(
vtkWindow *) VTK_OVERRIDE;
133 int RenderOpaqueGeometry(
vtkViewport *viewport) VTK_OVERRIDE;
134 int RenderTranslucentPolygonalGeometry(
vtkViewport *viewport) VTK_OVERRIDE;
135 int HasTranslucentPolygonalGeometry() VTK_OVERRIDE;
138 void Highlight(
int highlight) VTK_OVERRIDE;
141 ~vtkSphereHandleRepresentation() VTK_OVERRIDE;
151 double LastPickPosition[3];
152 double LastEventPosition[2];
155 void RegisterPickers() VTK_OVERRIDE;
159 void Translate(
double *p1,
double *p2);
160 void Scale(
double *p1,
double *p2,
double eventPos[2]);
161 void MoveFocus(
double *p1,
double *p2);
168 void CreateDefaultProperties();
172 int DetermineConstraintAxis(
int constraint,
double *x);
173 int WaitingForMotion;
177 double CurrentHandleSize;
183 vtkSphereHandleRepresentation(const vtkSphereHandleRepresentation&) VTK_DELETE_FUNCTION;
184 void operator=(const vtkSphereHandleRepresentation&) VTK_DELETE_FUNCTION;
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
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
map vtkPolyData to graphics primitives
ray-cast cell picker for all kinds of Prop3Ds
A spherical rendition of point in 3D space.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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)...