Go to the documentation of this file.
48 #ifndef vtkSphereRepresentation_h
49 #define vtkSphereRepresentation_h
72 #define VTK_SPHERE_OFF 0
73 #define VTK_SPHERE_WIREFRAME 1
74 #define VTK_SPHERE_SURFACE 2
109 { this->SphereSource->SetThetaResolution(
r); }
111 {
return this->SphereSource->GetThetaResolution(); }
117 { this->SphereSource->SetPhiResolution(
r); }
119 {
return this->SphereSource->GetPhiResolution(); }
128 {
double c[3];
c[0]=
x;
c[1]=
y;
c[2]=
z; this->SetCenter(
c);}
130 {
return this->SphereSource->GetCenter();}
132 {this->SphereSource->GetCenter(xyz);}
140 {
return this->SphereSource->GetRadius(); }
158 {
double p[3];
p[0]=
x;
p[1]=
y;
p[2]=
z; this->SetHandlePosition(
p);}
168 {
double d[3]; d[0]=dx; d[1]=dy; d[2]=dz; this->SetHandleDirection(d);}
268 double LastEventPosition[3];
282 double LastPickPosition[3];
289 void Scale(
double *p1,
double *p2,
int X,
int Y);
307 double HandleDirection[3];
308 double HandlePosition[3];
map vtkPolyData to graphics primitives
represent and manipulate 3D points
void SetHandleDirection(double dx, double dy, double dz)
void SetCenter(double x, double y, double z)
#define vtkGetObjectMacro(name, type)
void SetRepresentationToOff()
void GetSphere(vtkSphere *sphere)
void SetCenter(double c[3])
void GetCenter(double xyz[3])
vtkProperty * RadialLineProperty
void CreateDefaultProperties()
#define VTK_SPHERE_WIREFRAME
vtkSphereRepresentation()
virtual void WidgetInteraction(double e[2])
vtkActor2D * HandleTextActor
a class defining the representation for the vtkSphereWidget2
#define vtkTypeMacro(thisClass, superclass)
vtkActor * RadialLineActor
virtual void PlaceWidget(double bounds[6])
#define VTK_SPHERE_SURFACE
GLint GLint GLint GLint GLint x
vtkSphereSource * SphereSource
implicit function for a sphere
virtual int RenderOpaqueGeometry(vtkViewport *)
virtual void BuildRepresentation()
void SetThetaResolution(int r)
vtkTextMapper * HandleTextMapper
window superclass for vtkRenderWindow
vtkSphereSource * HandleSource
virtual int RenderOverlay(vtkViewport *)
void PrintSelf(ostream &os, vtkIndent indent)
void SetHandlePosition(double x, double y, double z)
virtual int ComputeInteractionState(int X, int Y, int modify=0)
void SetPhiResolution(int r)
#define vtkSetClampMacro(name, type, min, max)
vtkCellPicker * HandlePicker
#define vtkGetVector3Macro(name, type)
vtkLineSource * RadialLineSource
create a polygonal sphere centered at the origin
void SetRepresentationToWireframe()
vtkTextProperty * HandleTextProperty
virtual void PlaceWidget(double center[3], double handlePosition[3])
represents an object (geometry & properties) in a rendered scene
vtkPolyDataMapper * RadialLineMapper
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
void Translate(double *p1, double *p2)
void GetPolyData(vtkPolyData *pd)
void SetInteractionState(int state)
virtual double * GetBounds()
void SetHandleDirection(double dir[3])
#define vtkGetMacro(name, type)
create a line defined by two end points
abstract specification for Viewports
represent text properties.
vtkBooleanMacro(IgnoreDriverBugs, bool)
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
vtkSetMacro(IgnoreDriverBugs, bool)
void SetRepresentationToSurface()
void SetHandlePosition(double handle[3])
GLdouble GLdouble GLdouble r
a actor that draws 2D data
vtkProperty * SphereProperty
void Scale(double *p1, double *p2, int X, int Y)
GLint GLint GLint GLint GLint GLint y
virtual void ReleaseGraphicsResources(vtkWindow *)
vtkProperty * HandleProperty
static vtkSphereRepresentation * New()
vtkPolyDataMapper * HandleMapper
concrete dataset represents vertices, lines, polygons, and triangle strips
virtual void RegisterPickers()
dynamic, self-adjusting array of double
represent surface properties of a geometric object
vtkProperty * SelectedHandleProperty
virtual void StartWidgetInteraction(double e[2])
virtual int HasTranslucentPolygonalGeometry()
vtkCellPicker * SpherePicker
ray-cast cell picker for all kinds of Prop3Ds
~vtkSphereRepresentation()
void HighlightSphere(int highlight)
vtkPolyDataMapper * SphereMapper
void PlaceHandle(double *center, double radius)
void HighlightHandle(int)
vtkProperty * SelectedSphereProperty
virtual void SizeHandles()
Superclass for algorithms that produce only polydata as output.