53 #ifndef vtkSphereWidget_h 54 #define vtkSphereWidget_h 56 #include "vtkInteractionWidgetsModule.h" 69 #define VTK_SPHERE_OFF 0 70 #define VTK_SPHERE_WIREFRAME 1 71 #define VTK_SPHERE_SURFACE 2 91 {this->Superclass::PlaceWidget();}
92 void PlaceWidget(
double xmin,
double xmax,
double ymin,
double ymax,
93 double zmin,
double zmax)
override 94 {this->Superclass::PlaceWidget(xmin,xmax,ymin,ymax,zmin,zmax);}
104 vtkGetMacro(Representation,
int);
118 { this->SphereSource->SetThetaResolution(r); }
120 {
return this->SphereSource->GetThetaResolution(); }
127 { this->SphereSource->SetPhiResolution(r); }
129 {
return this->SphereSource->GetPhiResolution(); }
141 this->SphereSource->SetRadius(r);
144 {
return this->SphereSource->GetRadius(); }
153 this->SphereSource->SetCenter(x,y,z);
157 this->SetCenter(x[0], x[1], x[2]);
160 {
return this->SphereSource->GetCenter();}
162 {this->SphereSource->GetCenter(xyz);}
196 vtkSetVector3Macro(HandleDirection,
double);
197 vtkGetVector3Macro(HandleDirection,
double);
204 vtkGetVector3Macro(HandlePosition,
double);
230 vtkGetObjectMacro(SelectedSphereProperty,
vtkProperty);
240 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
265 void OnLeftButtonDown();
266 void OnLeftButtonUp();
267 void OnRightButtonDown();
268 void OnRightButtonUp();
275 void HighlightSphere(
int highlight);
276 void SelectRepresentation();
290 void Translate(
double *p1,
double *p2);
291 void ScaleSphere(
double *p1,
double *p2,
int X,
int Y);
292 void MoveHandle(
double *p1,
double *p2,
int X,
int Y);
301 void CreateDefaultProperties();
307 void HighlightHandle(
int);
309 double HandleDirection[3];
310 double HandlePosition[3];
represents an object (geometry & properties) in a rendered scene
abstract base class for most VTK objects
represent surface properties of a geometric object
static void ProcessEvents(vtkObject *object, unsigned long event, void *clientdata, void *calldata)
Handles the char widget activation event.
virtual void SetEnabled(int)
Methods for turning the interactor observer on and off, and determining its state.
concrete dataset represents vertices, lines, polygons, and triangle strips
virtual void RegisterPickers()
Register internal Pickers in the Picking Manager.
create a polygonal sphere centered at the origin
implicit function for a sphere
a simple class to control print indentation
#define VTK_SIZEHINT(...)
map vtkPolyData to graphics primitives
ray-cast cell picker for all kinds of Prop3Ds
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
represent and manipulate 3D points