49 #ifndef vtkSphereRepresentation_h
50 #define vtkSphereRepresentation_h
52 #include "vtkInteractionWidgetsModule.h"
74 #define VTK_SPHERE_OFF 0
75 #define VTK_SPHERE_WIREFRAME 1
76 #define VTK_SPHERE_SURFACE 2
103 vtkGetMacro(Representation,
int);
116 { this->SphereSource->SetThetaResolution(r); }
118 {
return this->SphereSource->GetThetaResolution(); }
124 { this->SphereSource->SetPhiResolution(r); }
126 {
return this->SphereSource->GetPhiResolution(); }
133 void SetCenter(
double c[3]);
135 {
double c[3]; c[0]=x; c[1]=y; c[2]=z; this->SetCenter(c);}
137 {
return this->SphereSource->GetCenter();}
139 {this->SphereSource->GetCenter(xyz);}
145 void SetRadius(
double r);
147 {
return this->SphereSource->GetRadius(); }
157 vtkGetMacro(HandleVisibility,
int);
166 void SetHandlePosition(
double handle[3]);
168 {
double p[3]; p[0]=x; p[1]=y; p[2]=z; this->SetHandlePosition(p);}
169 vtkGetVector3Macro(HandlePosition,
double);
178 void SetHandleDirection(
double dir[3]);
180 {
double d[3]; d[0]=dx; d[1]=dy; d[2]=dz; this->SetHandleDirection(d);}
181 vtkGetVector3Macro(HandleDirection,
double);
193 vtkGetMacro(HandleText,
int);
203 vtkGetMacro(RadialLine,
int);
213 vtkGetMacro(CenterCursor,
bool);
240 vtkGetObjectMacro(SelectedSphereProperty,
vtkProperty);
250 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
278 void SetInteractionState(
int state);
311 double LastEventPosition[3];
317 void HighlightSphere(
int highlight);
325 double LastPickPosition[3];
331 void Translate(
double *p1,
double *p2);
332 void Scale(
double *p1,
double *p2,
int X,
int Y);
334 virtual void SizeHandles();
338 virtual void AdaptCenterCursorBounds();
346 void CreateDefaultProperties();
352 void HighlightHandle(
int);
354 double HandleDirection[3];
355 double HandlePosition[3];
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
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 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
concrete dataset represents vertices, lines, polygons, and triangle strips
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
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
represent text properties.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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
ray-cast cell picker for all kinds of Prop3Ds
generate a 3D cursor representation
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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
vtkProperty * SelectedSphereProperty
vtkPolyDataMapper * HandleMapper
represent and manipulate 3D points