18 #ifndef vtkCurveRepresentation_h
19 #define vtkCurveRepresentation_h
21 #include "vtkInteractionWidgetsModule.h"
25 VTK_ABI_NAMESPACE_BEGIN
37 #define VTK_PROJECTION_YZ 0
38 #define VTK_PROJECTION_XZ 1
39 #define VTK_PROJECTION_XY 2
40 #define VTK_PROJECTION_OBLIQUE 3
65 vtkSetMacro(InteractionState,
int);
90 vtkGetMacro(ProjectionNormal,
int);
104 void SetProjectionPosition(
double position);
105 vtkGetMacro(ProjectionPosition,
double);
123 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
132 vtkGetObjectMacro(SelectedLineProperty,
vtkProperty);
139 virtual void SetNumberOfHandles(
int npts) = 0;
140 vtkGetMacro(NumberOfHandles,
int);
149 virtual void SetDirectional(
bool val);
150 vtkGetMacro(Directional,
bool);
151 vtkBooleanMacro(Directional,
bool);
159 virtual void SetHandlePosition(
int handle,
double x,
double y,
double z);
160 virtual void SetHandlePosition(
int handle,
double xyz[3]);
161 virtual void GetHandlePosition(
int handle,
double xyz[3]);
162 virtual double* GetHandlePosition(
int handle);
189 virtual double GetSummedLength() = 0;
228 void SetLineColor(
double r,
double g,
double b);
234 void SetInteractionColor(
double,
double,
double);
236 void SetForegroundColor(
double,
double,
double);
251 void SetCurrentHandleIndex(
int index);
252 vtkGetMacro(CurrentHandleIndex,
int);
260 vtkGetMacro(TranslationAxis,
int);
261 vtkSetClampMacro(TranslationAxis,
int, -1, 2);
294 double LastEventPosition[3];
304 void ProjectPointsToPlane();
305 void ProjectPointsToOrthoPlane();
306 void ProjectPointsToObliquePlane();
308 int NumberOfHandles = 0;
313 void HighlightLine(
int highlight);
314 int HighlightHandle(
vtkProp* prop);
323 virtual int GetHandleIndex(
vtkProp* prop) = 0;
324 virtual void SizeHandles();
329 virtual int InsertHandleOnLine(
double* pos) = 0;
331 virtual void PushHandle(
double* pos);
332 virtual void EraseHandle(
const int&);
337 double LastPickPosition[3];
343 void MovePoint(
double* p1,
double* p2);
344 void Scale(
double* p1,
double* p2,
int X,
int Y);
345 void Translate(
double* p1,
double* p2);
346 void Spin(
double* p1,
double* p2,
double* vpn);
352 bool Directional =
false;
360 void CreateDefaultProperties();
364 void CalculateCentroid();
372 VTK_ABI_NAMESPACE_END
vtkCellPicker * LinePicker
abstract superclass for all actors, volumes and annotations
base class for a widget that represents a curve that connects control points.
void SetTranslationAxisOff()
Toggles constraint translation axis on/off.
void SetProjectionNormalToZAxes()
represents an object (geometry & properties) in a rendered scene
double ProjectionPosition
vtkProperty * HandleProperty
abstract specification for Viewports
represent surface properties of a geometric object
interface that can be inherited to define handler sources for any kind of interaction.
void SetZTranslationAxisOn()
Toggles constraint translation axis on/off.
vtkProperty * SelectedLineProperty
concrete dataset represents vertices, lines, polygons, and triangle strips
vtkProperty * SelectedHandleProperty
dynamic, self-adjusting array of double
void SetProjectionNormalToYAxes()
vtkTypeBool ProjectToPlane
vtkCellPicker * HandlePicker
vtkPlaneSource * PlaneSource
window superclass for vtkRenderWindow
void SetYTranslationAxisOn()
Toggles constraint translation axis on/off.
a simple class to control print indentation
vtkProperty * LineProperty
void SetProjectionNormalToOblique()
void SetInteractionColor(double c[3])
Set the color when unselected and selected.
create an array of quadrilaterals located in a plane
void SetProjectionNormalToXAxes()
bool IsTranslationConstrained()
Returns true if ConstrainedAxis.
#define VTK_PROJECTION_OBLIQUE
ray-cast cell picker for all kinds of Prop3Ds
void SetXTranslationAxisOn()
Toggles constraint translation axis on/off.
#define VTK_PROJECTION_YZ
void SetForegroundColor(double c[3])
Set the color when unselected and selected.
represent and manipulate 3D points