Go to the documentation of this file.
30 #ifndef vtkSphereHandleRepresentation_h
31 #define vtkSphereHandleRepresentation_h
33 #include "vtkInteractionWidgetsModule.h"
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;
137 int RenderTranslucentPolygonalGeometry(
vtkViewport *viewport) override;
141 void Highlight(
int highlight) override;
146 void RegisterPickers() 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;
map vtkPolyData to graphics primitives
void SetProperty(vtkProperty *)
Set/Get the handle properties when unselected and selected.
void SetHandleSize(double size) override
Overload the superclasses SetHandleSize() method to update internal variables.
abstract class for representing widget handles
void SetDisplayPosition(double p[3]) override
Handles usually have their coordinates set in display coordinates (generally by an associated widget)...
static vtkSphereHandleRepresentation * New()
Instantiate this class.
window superclass for vtkRenderWindow
void SetSphereRadius(double)
#define VTK_SIZEHINT(...)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
create a polygonal sphere centered at the origin
A spherical rendition of point in 3D space.
represents an object (geometry & properties) in a rendered scene
a simple class to control print indentation
abstract specification for Viewports
abstract superclass for all actors, volumes and annotations
double * GetBounds() override
Methods to make this class properly act like a vtkWidgetRepresentation.
void SetWorldPosition(double p[3]) override
Set the position of the point in world and display coordinates.
represent surface properties of a geometric object
ray-cast cell picker for all kinds of Prop3Ds
void SetSelectedProperty(vtkProperty *)