 |
VTK
9.0.1
|
Go to the documentation of this file.
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
107 vtkGetMacro(Representation,
int);
130 void SetCenter(
double c[3]);
140 void GetCenter(
double xyz[3]) { this->SphereSource->GetCenter(xyz); }
146 void SetRadius(
double r);
147 double GetRadius() {
return this->SphereSource->GetRadius(); }
166 void SetHandlePosition(
double handle[3]);
173 this->SetHandlePosition(p);
175 vtkGetVector3Macro(HandlePosition,
double);
184 void SetHandleDirection(
double dir[3]);
191 this->SetHandleDirection(d);
193 vtkGetVector3Macro(HandleDirection,
double);
224 vtkSetMacro(CenterCursor,
bool);
225 vtkGetMacro(CenterCursor,
bool);
226 vtkBooleanMacro(CenterCursor,
bool);
252 vtkGetObjectMacro(SelectedSphereProperty,
vtkProperty);
262 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
278 vtkGetObjectMacro(RadialLineProperty,
vtkProperty);
290 void SetInteractionState(
int state);
328 vtkGetMacro(TranslationAxis,
int);
329 vtkSetClampMacro(TranslationAxis,
int, -1, 2);
354 double LastEventPosition[3];
362 void HighlightSphere(
int highlight);
370 double LastPickPosition[3];
373 void Translate(
const double* p1,
const double* p2);
374 void Scale(
const double* p1,
const double* p2,
int X,
int Y);
376 virtual void SizeHandles();
380 virtual void AdaptCenterCursorBounds();
388 void CreateDefaultProperties();
394 void HighlightHandle(
int);
396 double HandleDirection[3];
397 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)
vtkPolyDataMapper * CenterMapper
void SetRepresentationToOff()
void GetCenter(double xyz[3])
vtkProperty * RadialLineProperty
generate a 3D cursor representation
#define VTK_SPHERE_WIREFRAME
void SetXTranslationAxisOn()
Toggles constraint translation axis on/off.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkActor2D * HandleTextActor
a class defining the representation for the vtkSphereWidget2
vtkActor * RadialLineActor
#define VTK_SPHERE_SURFACE
vtkSphereSource * SphereSource
bool IsTranslationConstrained()
Returns true if ContrainedAxis.
implicit function for a sphere
vtkCursor3D * CenterCursorSource
void SetThetaResolution(int r)
Set/Get the resolution of the sphere in the theta direction.
vtkTextMapper * HandleTextMapper
window superclass for vtkRenderWindow
vtkSphereSource * HandleSource
void SetHandlePosition(double x, double y, double z)
void SetPhiResolution(int r)
Set/Get the resolution of the sphere in the phi direction.
vtkCellPicker * HandlePicker
#define VTK_SIZEHINT(...)
vtkLineSource * RadialLineSource
vtkTypeBool HandleVisibility
create a polygonal sphere centered at the origin
void SetRepresentationToWireframe()
vtkTextProperty * HandleTextProperty
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 SetYTranslationAxisOn()
void SetTranslationAxisOff()
create a line defined by two end points
abstract specification for Viewports
represent text properties.
void SetRepresentationToSurface()
a actor that draws 2D data
vtkProperty * SphereProperty
vtkProperty * HandleProperty
vtkPolyDataMapper * HandleMapper
concrete dataset represents vertices, lines, polygons, and triangle strips
dynamic, self-adjusting array of double
represent surface properties of a geometric object
vtkProperty * SelectedHandleProperty
void SetZTranslationAxisOn()
vtkCellPicker * SpherePicker
ray-cast cell picker for all kinds of Prop3Ds
vtkPolyDataMapper * SphereMapper
vtkProperty * SelectedSphereProperty
Superclass for algorithms that produce only polydata as output.