85 #ifndef vtkBrokenLineWidget_h 86 #define vtkBrokenLineWidget_h 89 #include "vtkInteractionWidgetsModule.h" 103 #define VTK_PROJECTION_YZ 0 104 #define VTK_PROJECTION_XZ 1 105 #define VTK_PROJECTION_XY 2 106 #define VTK_PROJECTION_OBLIQUE 3 127 double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax)
override 129 this->Superclass::PlaceWidget(xmin, xmax, ymin, ymax, zmin, zmax);
154 vtkGetMacro(ProjectionNormal,
int);
168 void SetProjectionPosition(
double position);
169 vtkGetMacro(ProjectionPosition,
double);
188 virtual void SetSelectedHandleProperty(
vtkProperty*);
189 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
199 virtual void SetSelectedLineProperty(
vtkProperty*);
200 vtkGetObjectMacro(SelectedLineProperty,
vtkProperty);
207 virtual void SetNumberOfHandles(
int npts);
208 vtkGetMacro(NumberOfHandles,
int);
216 void SetHandlePosition(
int handle,
double x,
double y,
double z);
217 void SetHandlePosition(
int handle,
double xyz[3]);
218 void GetHandlePosition(
int handle,
double xyz[3]);
219 double* GetHandlePosition(
int handle);
225 double GetSummedLength();
238 vtkSetClampMacro(ProcessEvents,
vtkTypeBool, 0, 1);
248 vtkSetClampMacro(HandleSizeFactor,
double, 0., 100.);
249 vtkGetMacro(HandleSizeFactor,
double);
270 static void ProcessEventsHandler(
271 vtkObject*
object,
unsigned long event,
void* clientdata,
void* calldata);
274 void OnLeftButtonDown();
275 void OnLeftButtonUp();
276 void OnMiddleButtonDown();
277 void OnMiddleButtonUp();
278 void OnRightButtonDown();
279 void OnRightButtonUp();
289 void ProjectPointsToPlane();
290 void ProjectPointsToOrthoPlane();
291 void ProjectPointsToObliquePlane();
297 void HighlightLine(
int highlight);
299 void BuildRepresentation();
305 int HighlightHandle(
vtkProp* prop);
307 void InsertHandleOnLine(
double* pos);
308 void EraseHandle(
const int&);
320 void MovePoint(
double* p1,
double* p2);
321 void Scale(
double* p1,
double* p2,
int X,
int Y);
322 void Translate(
double* p1,
double* p2);
323 void Spin(
double* p1,
double* p2,
double* vpn);
334 void CreateDefaultProperties();
338 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
virtual void SetEnabled(int)
Methods for turning the interactor observer on and off, and determining its state.
concrete dataset represents vertices, lines, polygons, and triangle strips
virtual void RegisterPickers()
Register internal Pickers in the Picking Manager.
create a polygonal sphere centered at the origin
a simple class to control print indentation
create an array of quadrilaterals located in a plane
create a line defined by two end points
map vtkPolyData to graphics primitives
ray-cast cell picker for all kinds of Prop3Ds
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
represent and manipulate 3D points