37 #ifndef vtkSphereRepresentation_h
38 #define vtkSphereRepresentation_h
40 #include "vtkInteractionWidgetsModule.h"
44 VTK_ABI_NAMESPACE_BEGIN
63 #define VTK_SPHERE_OFF 0
64 #define VTK_SPHERE_WIREFRAME 1
65 #define VTK_SPHERE_SURFACE 2
99 vtkGetMacro(Representation,
int);
122 void SetCenter(
double c[3]);
132 void GetCenter(
double xyz[3]) { this->SphereSource->GetCenter(xyz); }
138 void SetRadius(
double r);
139 double GetRadius() {
return this->SphereSource->GetRadius(); }
158 void SetHandlePosition(
double handle[3]);
165 this->SetHandlePosition(p);
167 vtkGetVector3Macro(HandlePosition,
double);
176 void SetHandleDirection(
double dir[3]);
183 this->SetHandleDirection(d);
185 vtkGetVector3Macro(HandleDirection,
double);
216 vtkSetMacro(CenterCursor,
bool);
217 vtkGetMacro(CenterCursor,
bool);
218 vtkBooleanMacro(CenterCursor,
bool);
244 vtkGetObjectMacro(SelectedSphereProperty,
vtkProperty);
254 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
270 vtkGetObjectMacro(RadialLineProperty,
vtkProperty);
278 void SetInteractionColor(
double,
double,
double);
280 void SetHandleColor(
double,
double,
double);
282 void SetForegroundColor(
double,
double,
double);
295 void SetInteractionState(
int state);
333 vtkGetMacro(TranslationAxis,
int);
334 vtkSetClampMacro(TranslationAxis,
int, -1, 2);
359 double LastEventPosition[3];
367 void HighlightSphere(
int highlight);
375 double LastPickPosition[3];
378 void Translate(
const double* p1,
const double* p2);
379 void Scale(
const double* p1,
const double* p2,
int X,
int Y);
381 virtual void SizeHandles();
385 virtual void AdaptCenterCursorBounds();
393 void CreateDefaultProperties();
399 void HighlightHandle(
int);
401 double HandleDirection[3];
402 double HandlePosition[3];
428 VTK_ABI_NAMESPACE_END
vtkProperty * SelectedHandleProperty
#define VTK_SPHERE_SURFACE
void GetCenter(double xyz[3])
vtkCellPicker * SpherePicker
represents an object (geometry & properties) in a rendered scene
vtkPolyDataMapper * SphereMapper
represent and manipulate 4x4 transformation matrices
vtkPolyDataMapper * CenterMapper
void SetInteractionColor(double c[3])
Set the interaction color of sphere and handle.
abstract specification for Viewports
represent surface properties of a geometric object
void SetHandleDirection(double dx, double dy, double dz)
Set/Get the direction vector of the handle relative to the center of the sphere.
void SetCenter(double x, double y, double z)
vtkTextMapper * HandleTextMapper
a actor that draws 2D data
void SetXTranslationAxisOn()
Toggles constraint translation axis on/off.
void SetRepresentationToOff()
Set the representation (i.e., appearance) of the sphere.
void SetPhiResolution(int r)
Set/Get the resolution of the sphere in the phi direction.
vtkActor2D * HandleTextActor
vtkProperty * RadialLineProperty
void SetHandleColor(double c[3])
Set the interaction color of sphere and handle.
concrete dataset represents vertices, lines, polygons, and triangle strips
bool IsTranslationConstrained()
Returns true if ConstrainedAxis.
vtkCursor3D * CenterCursorSource
void SetThetaResolution(int r)
Set/Get the resolution of the sphere in the theta direction.
dynamic, self-adjusting array of double
vtkActor * RadialLineActor
window superclass for vtkRenderWindow
vtkTypeBool HandleVisibility
vtkSphereSource * HandleSource
vtkSphereSource * SphereSource
create a polygonal sphere centered at the origin
implicit function for a sphere
Superclass for algorithms that produce only polydata as output.
vtkCellPicker * HandlePicker
a simple class to control print indentation
vtkLineSource * RadialLineSource
#define VTK_SPHERE_WIREFRAME
void SetHandlePosition(double x, double y, double z)
Set/Get the position of the handle.
void SetRepresentationToWireframe()
Set the representation (i.e., appearance) of the sphere.
vtkProperty * HandleProperty
#define VTK_SIZEHINT(...)
represent text properties.
void SetRepresentationToSurface()
Set the representation (i.e., appearance) of the sphere.
vtkTextProperty * HandleTextProperty
vtkPolyDataMapper * RadialLineMapper
create a line defined by two end points
map vtkPolyData to graphics primitives
void SetYTranslationAxisOn()
Toggles constraint translation axis on/off.
void SetTranslationAxisOff()
Toggles constraint translation axis on/off.
ray-cast cell picker for all kinds of Prop3Ds
generate a 3D cursor representation
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkProperty * SphereProperty
a class defining the representation for the vtkSphereWidget2
void SetForegroundColor(double c[3])
Set the interaction color of sphere and handle.
vtkProperty * SelectedSphereProperty
vtkPolyDataMapper * HandleMapper
represent and manipulate 3D points
void SetZTranslationAxisOn()
Toggles constraint translation axis on/off.