Go to the documentation of this file.
60 #ifndef vtkImageTracerWidget_h
61 #define vtkImageTracerWidget_h
63 #include "vtkInteractionWidgetsModule.h"
80 #define VTK_ITW_PROJECTION_YZ 0
81 #define VTK_ITW_PROJECTION_XZ 1
82 #define VTK_ITW_PROJECTION_XY 2
83 #define VTK_ITW_SNAP_CELLS 0
84 #define VTK_ITW_SNAP_POINTS 1
104 {this->Superclass::PlaceWidget();}
105 void PlaceWidget(
double xmin,
double xmax,
double ymin,
double ymax,
106 double zmin,
double zmax)
override
107 {this->Superclass::PlaceWidget(xmin,xmax,ymin,ymax,zmin,zmax);}
117 virtual void SetSelectedHandleProperty(
vtkProperty*);
118 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
128 virtual void SetSelectedLineProperty(
vtkProperty*);
129 vtkGetObjectMacro(SelectedLineProperty,
vtkProperty);
135 void SetViewProp(
vtkProp* prop);
154 vtkGetMacro(ProjectionNormal,
int);
156 { this->SetProjectionNormal(0); }
158 { this->SetProjectionNormal(1); }
160 { this->SetProjectionNormal(2); }
171 void SetProjectionPosition(
double position);
172 vtkGetMacro(ProjectionPosition,
double);
202 vtkSetMacro(CaptureRadius,
double);
203 vtkGetMacro(CaptureRadius,
double);
225 vtkGetMacro(ImageSnapType,
int);
232 void SetHandlePosition(
int handle,
double xyz[3]);
233 void SetHandlePosition(
int handle,
double x,
double y,
double z);
234 void GetHandlePosition(
int handle,
double xyz[3]);
242 vtkGetMacro(NumberOfHandles,
int);
272 vtkBooleanMacro(HandleLeftMouseButton,
vtkTypeBool);
275 vtkBooleanMacro(HandleMiddleMouseButton,
vtkTypeBool);
278 vtkBooleanMacro(HandleRightMouseButton,
vtkTypeBool);
306 void OnLeftButtonDown();
307 void OnLeftButtonUp();
308 void OnMiddleButtonDown();
309 void OnMiddleButtonUp();
310 void OnRightButtonDown();
311 void OnRightButtonUp();
329 void Trace(
int ,
int );
331 void MovePoint(
const double* ,
const double* );
332 void Translate(
const double* ,
const double* );
345 void AppendHandles(
double*);
347 void AllocateHandles(
const int& );
348 void AdjustHandlePosition(
const int& ,
double*);
349 int HighlightHandle(
vtkProp* );
350 void EraseHandle(
const int& );
352 void InsertHandleOnLine(
double* );
368 void HighlightLine(
const int& );
369 void BuildLinesFromHandles();
370 void ResetLine(
double* );
371 void AppendLine(
double* );
388 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