87 #ifndef vtkBrokenLineWidget_h
88 #define vtkBrokenLineWidget_h
105 #define VTK_PROJECTION_YZ 0
106 #define VTK_PROJECTION_XZ 1
107 #define VTK_PROJECTION_XY 2
108 #define VTK_PROJECTION_OBLIQUE 3
124 {this->Superclass::PlaceWidget();}
125 void PlaceWidget(
double xmin,
double xmax,
double ymin,
double ymax,
126 double zmin,
double zmax)
127 {this->Superclass::PlaceWidget(xmin,xmax,ymin,ymax,zmin,zmax);}
150 { this->SetProjectionNormal(0); }
152 { this->SetProjectionNormal(1); }
154 { this->SetProjectionNormal(2); }
156 { this->SetProjectionNormal(3); }
164 void SetProjectionPosition(
double position);
182 virtual void SetSelectedHandleProperty(
vtkProperty*);
191 virtual void SetSelectedLineProperty(
vtkProperty*);
197 virtual void SetNumberOfHandles(
int npts);
204 void SetHandlePosition(
int handle,
double x,
double y,
double z);
205 void SetHandlePosition(
int handle,
double xyz[3]);
206 void GetHandlePosition(
int handle,
double xyz[3]);
207 double* GetHandlePosition(
int handle);
211 double GetSummedLength();
251 static void ProcessEventsHandler(
vtkObject*
object,
257 void OnLeftButtonDown();
258 void OnLeftButtonUp();
259 void OnMiddleButtonDown();
260 void OnMiddleButtonUp();
261 void OnRightButtonDown();
262 void OnRightButtonUp();
272 void ProjectPointsToPlane();
273 void ProjectPointsToOrthoPlane();
274 void ProjectPointsToObliquePlane();
280 void HighlightLine(
int highlight);
282 void BuildRepresentation();
288 int HighlightHandle(
vtkProp *prop);
290 void InsertHandleOnLine(
double* pos);
291 void EraseHandle(
const int&);
303 void MovePoint(
double *p1,
double *p2);
304 void Scale(
double *p1,
double *p2,
int X,
int Y);
305 void Translate(
double *p1,
double *p2);
306 void Spin(
double *p1,
double *p2,
double *vpn);
317 void CreateDefaultProperties();
321 void CalculateCentroid();
abstract superclass for all actors, volumes and annotations
represents an object (geometry & properties) in a rendered scene
abstract base class for most VTK objects
represent surface properties of a geometric object
#define vtkGetMacro(name, type)
virtual void SetEnabled(int)
#define vtkSetClampMacro(name, type, min, max)
concrete dataset represents vertices, lines, polygons, and triangle strips
GLint GLint GLint GLint GLint GLint y
#define vtkTypeMacro(thisClass, superclass)
virtual void RegisterPickers()
GLint GLint GLint GLint GLint x
create a polygonal sphere centered at the origin
a simple class to control print indentation
#define vtkGetObjectMacro(name, type)
create an array of quadrilaterals located in a plane
create a line defined by two end points
map vtkPolyData to graphics primitives
GLsizei const GLfloat * points
ray-cast cell picker for all kinds of Prop3Ds
#define vtkBooleanMacro(name, type)
represent and manipulate 3D points
#define vtkSetMacro(name, type)