|  | VTK
    9.0.1
    | 
 
 
 
Go to the documentation of this file.
   62 #ifndef vtkSphereWidget_h 
   63 #define vtkSphereWidget_h 
   66 #include "vtkInteractionWidgetsModule.h"  
   78 #define VTK_SPHERE_OFF 0 
   79 #define VTK_SPHERE_WIREFRAME 1 
   80 #define VTK_SPHERE_SURFACE 2 
   99   void PlaceWidget()
 override { this->Superclass::PlaceWidget(); }
 
  101     double xmin, 
double xmax, 
double ymin, 
double ymax, 
double zmin, 
double zmax)
 override 
  103     this->Superclass::PlaceWidget(xmin, xmax, ymin, ymax, zmin, zmax);
 
  114   vtkGetMacro(Representation, 
int);
 
  144     this->SphereSource->SetRadius(r);
 
  146   double GetRadius() { 
return this->SphereSource->GetRadius(); }
 
  153   void SetCenter(
double x, 
double y, 
double z) { this->SphereSource->SetCenter(x, y, z); }
 
  156   void GetCenter(
double xyz[3]) { this->SphereSource->GetCenter(xyz); }
 
  190   vtkSetVector3Macro(HandleDirection, 
double);
 
  191   vtkGetVector3Macro(HandleDirection, 
double);
 
  198   vtkGetVector3Macro(HandlePosition, 
double);
 
  224   vtkGetObjectMacro(SelectedSphereProperty, 
vtkProperty);
 
  234   vtkGetObjectMacro(SelectedHandleProperty, 
vtkProperty);
 
  254     vtkObject* 
object, 
unsigned long event, 
void* clientdata, 
void* calldata);
 
  257   void OnLeftButtonDown();
 
  258   void OnLeftButtonUp();
 
  259   void OnRightButtonDown();
 
  260   void OnRightButtonUp();
 
  267   void HighlightSphere(
int highlight);
 
  268   void SelectRepresentation();
 
  282   void Translate(
double* p1, 
double* p2);
 
  283   void ScaleSphere(
double* p1, 
double* p2, 
int X, 
int Y);
 
  284   void MoveHandle(
double* p1, 
double* p2, 
int X, 
int Y);
 
  293   void CreateDefaultProperties();
 
  299   void HighlightHandle(
int);
 
  301   double HandleDirection[3];
 
  302   double HandlePosition[3];
 
  
map vtkPolyData to graphics primitives
represent and manipulate 3D points
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
abstract base class for most VTK objects
implicit function for a sphere
#define VTK_SIZEHINT(...)
create a polygonal sphere centered at the origin
static void ProcessEvents(vtkObject *object, unsigned long event, void *clientdata, void *calldata)
Handles the char widget activation event.
represents an object (geometry & properties) in a rendered scene
virtual void SetEnabled(int)
Methods for turning the interactor observer on and off, and determining its state.
a simple class to control print indentation
virtual void RegisterPickers()
Register internal Pickers in the Picking Manager.
concrete dataset represents vertices, lines, polygons, and triangle strips
represent surface properties of a geometric object
ray-cast cell picker for all kinds of Prop3Ds