46 #ifndef vtkSphereRepresentation_h 47 #define vtkSphereRepresentation_h 49 #include "vtkInteractionWidgetsModule.h" 71 #define VTK_SPHERE_OFF 0 72 #define VTK_SPHERE_WIREFRAME 1 73 #define VTK_SPHERE_SURFACE 2 100 vtkGetMacro(Representation,
int);
113 { this->SphereSource->SetThetaResolution(r); }
115 {
return this->SphereSource->GetThetaResolution(); }
121 { this->SphereSource->SetPhiResolution(r); }
123 {
return this->SphereSource->GetPhiResolution(); }
130 void SetCenter(
double c[3]);
132 {
double c[3]; c[0]=x; c[1]=y; c[2]=z; this->SetCenter(c);}
134 {
return this->SphereSource->GetCenter();}
136 {this->SphereSource->GetCenter(xyz);}
142 void SetRadius(
double r);
144 {
return this->SphereSource->GetRadius(); }
154 vtkGetMacro(HandleVisibility,
int);
163 void SetHandlePosition(
double handle[3]);
165 {
double p[3]; p[0]=x; p[1]=y; p[2]=z; this->SetHandlePosition(p);}
166 vtkGetVector3Macro(HandlePosition,
double);
175 void SetHandleDirection(
double dir[3]);
177 {
double d[3]; d[0]=dx; d[1]=dy; d[2]=dz; this->SetHandleDirection(d);}
178 vtkGetVector3Macro(HandleDirection,
double);
190 vtkGetMacro(HandleText,
int);
200 vtkGetMacro(RadialLine,
int);
210 vtkGetMacro(CenterCursor,
bool);
237 vtkGetObjectMacro(SelectedSphereProperty,
vtkProperty);
247 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
275 void SetInteractionState(
int state);
308 double LastEventPosition[3];
314 void HighlightSphere(
int highlight);
322 double LastPickPosition[3];
328 void Translate(
double *p1,
double *p2);
329 void Scale(
double *p1,
double *p2,
int X,
int Y);
330 void PlaceHandle(
double *center,
double radius);
331 virtual
void SizeHandles();
335 virtual
void AdaptCenterCursorBounds();
343 void CreateDefaultProperties();
349 void HighlightHandle(
int);
350 int HandleVisibility;
351 double HandleDirection[3];
352 double HandlePosition[3];
#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
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)
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.
concrete dataset represents vertices, lines, polygons, and triangle strips
void SetThetaResolution(int r)
Set/Get the resolution of the sphere in the theta direction.
dynamic, self-adjusting array of double
window superclass for vtkRenderWindow
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
#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.
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.
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...
a class defining the representation for the vtkSphereWidget2
represent and manipulate 3D points