Go to the documentation of this file.
54 #ifndef vtkImageTracerWidget_h
55 #define vtkImageTracerWidget_h
57 #include "vtkInteractionWidgetsModule.h"
74 #define VTK_ITW_PROJECTION_YZ 0
75 #define VTK_ITW_PROJECTION_XZ 1
76 #define VTK_ITW_PROJECTION_XY 2
77 #define VTK_ITW_SNAP_CELLS 0
78 #define VTK_ITW_SNAP_POINTS 1
98 {this->Superclass::PlaceWidget();}
99 void PlaceWidget(
double xmin,
double xmax,
double ymin,
double ymax,
100 double zmin,
double zmax)
override
101 {this->Superclass::PlaceWidget(xmin,xmax,ymin,ymax,zmin,zmax);}
111 virtual void SetSelectedHandleProperty(
vtkProperty*);
112 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
122 virtual void SetSelectedLineProperty(
vtkProperty*);
123 vtkGetObjectMacro(SelectedLineProperty,
vtkProperty);
129 void SetViewProp(
vtkProp* prop);
148 vtkGetMacro(ProjectionNormal,
int);
150 { this->SetProjectionNormal(0); }
152 { this->SetProjectionNormal(1); }
154 { this->SetProjectionNormal(2); }
165 void SetProjectionPosition(
double position);
166 vtkGetMacro(ProjectionPosition,
double);
196 vtkSetMacro(CaptureRadius,
double);
197 vtkGetMacro(CaptureRadius,
double);
219 vtkGetMacro(ImageSnapType,
int);
226 void SetHandlePosition(
int handle,
double xyz[3]);
227 void SetHandlePosition(
int handle,
double x,
double y,
double z);
228 void GetHandlePosition(
int handle,
double xyz[3]);
236 vtkGetMacro(NumberOfHandles,
int);
266 vtkBooleanMacro(HandleLeftMouseButton,
vtkTypeBool);
269 vtkBooleanMacro(HandleMiddleMouseButton,
vtkTypeBool);
272 vtkBooleanMacro(HandleRightMouseButton,
vtkTypeBool);
300 void OnLeftButtonDown();
301 void OnLeftButtonUp();
302 void OnMiddleButtonDown();
303 void OnMiddleButtonUp();
304 void OnRightButtonDown();
305 void OnRightButtonUp();
323 void Trace(
int ,
int );
325 void MovePoint(
const double* ,
const double* );
326 void Translate(
const double* ,
const double* );
339 void AppendHandles(
double*);
341 void AllocateHandles(
const int& );
342 void AdjustHandlePosition(
const int& ,
double*);
343 int HighlightHandle(
vtkProp* );
344 void EraseHandle(
const int& );
346 void InsertHandleOnLine(
double* );
362 void HighlightLine(
const int& );
363 void BuildLinesFromHandles();
364 void ResetLine(
double* );
365 void AppendLine(
double* );
382 void CreateDefaultProperties();
represent and manipulate 3D points
create 2D glyphs represented by vtkPolyData
dynamic, self-adjusting array of float
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
abstract base class for most VTK objects
#define VTK_SIZEHINT(...)
static void ProcessEvents(vtkObject *object, unsigned long event, void *clientdata, void *calldata)
Handles the char widget activation event.
represents an object (geometry & properties) in a rendered scene
virtual void SetEnabled(int)
Methods for turning the interactor observer on and off, and determining its state.
a simple class to control print indentation
object to represent cell connectivity
pick an actor/prop using graphics hardware
abstract API for pickers that can pick an instance of vtkProp
virtual void RegisterPickers()
Register internal Pickers in the Picking Manager.
abstract superclass for all actors, volumes and annotations
concrete dataset represents vertices, lines, polygons, and triangle strips
represent surface properties of a geometric object
ray-cast cell picker for all kinds of Prop3Ds