27#ifndef vtkSphereHandleRepresentation_h
28#define vtkSphereHandleRepresentation_h
31#include "vtkInteractionWidgetsModule.h"
104 vtkSetClampMacro(HotSpotSize,
double, 0.0, 1.0);
105 vtkGetMacro(HotSpotSize,
double);
119 void BuildRepresentation() override;
120 void StartWidgetInteraction(
double eventPos[2]) override;
121 void WidgetInteraction(
double eventPos[2]) override;
122 int ComputeInteractionState(
int X,
int Y,
int modify = 0) override;
123 void PlaceWidget(
double bounds[6]) override;
135 int RenderTranslucentPolygonalGeometry(
vtkViewport* viewport) override;
139 void Highlight(
int highlight) override;
144 void RegisterPickers() override;
166 double LastPickPosition[3];
167 double LastEventPosition[2];
171 void Translate(const
double* p1, const
double* p2) override;
172 void Scale(const
double* p1, const
double* p2, const
double eventPos[2]);
173 void MoveFocus(const
double* p1, const
double* p2);
180 void CreateDefaultProperties();
184 int WaitingForMotion;
188 double CurrentHandleSize;
represents an object (geometry & properties) in a rendered scene
ray-cast cell picker for all kinds of Prop3Ds
abstract class for representing widget handles
virtual void Translate(const double *p1, const double *p2)
Translates world position by vector p1p2 projected on the constraint axis if any.
a simple class to control print indentation
map vtkPolyData to graphics primitives
abstract superclass for all actors, volumes and annotations
represent surface properties of a geometric object
A spherical rendition of point in 3D space.
void SetDisplayPosition(double p[3]) override
Set the position of the point in world and display coordinates.
void SetProperty(vtkProperty *)
Set/Get the handle properties when unselected and selected.
void SetSelectedProperty(vtkProperty *)
Set/Get the handle properties when unselected and selected.
static vtkSphereHandleRepresentation * New()
Instantiate this class.
void SetWorldPosition(double p[3]) override
Set the position of the point in world and display coordinates.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instances of this class.
double * GetBounds() override
Methods to make this class properly act like a vtkWidgetRepresentation.
void SetHandleSize(double size) override
Overload the superclasses SetHandleSize() method to update internal variables.
void SetSphereRadius(double)
create a polygonal sphere centered at the origin
abstract specification for Viewports
window superclass for vtkRenderWindow
#define VTK_SIZEHINT(...)