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) VTK_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);
136 vtkGetMacro(ProjectToPlane,
int);
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);
173 void SetSnapToImage(
int snap);
174 vtkGetMacro(SnapToImage,
int);
185 vtkGetMacro(AutoClose,
int);
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]);
229 double* GetHandlePosition(
int handle);
236 vtkGetMacro(NumberOfHandles,
int);
243 void SetInteraction(
int interact);
244 vtkGetMacro(Interaction,
int);
265 vtkGetMacro(HandleLeftMouseButton,
int);
268 vtkGetMacro(HandleMiddleMouseButton,
int);
271 vtkGetMacro(HandleRightMouseButton,
int);
275 #ifdef VTK_WORKAROUND_WINDOWS_MANGLE 276 # define SetPropA SetProp 277 # define SetPropW SetProp 280 #ifdef VTK_WORKAROUND_WINDOWS_MANGLE 310 void OnLeftButtonDown();
311 void OnLeftButtonUp();
312 void OnMiddleButtonDown();
313 void OnMiddleButtonUp();
314 void OnRightButtonDown();
315 void OnRightButtonUp();
333 void Trace(
int ,
int );
335 void MovePoint(
const double* ,
const double* );
336 void Translate(
const double* ,
const double* );
349 void AppendHandles(
double*);
351 void AllocateHandles(
const int& );
352 void AdjustHandlePosition(
const int& ,
double*);
353 int HighlightHandle(
vtkProp* );
354 void EraseHandle(
const int& );
356 void InsertHandleOnLine(
double* );
360 int CurrentHandleIndex;
372 void HighlightLine(const
int& );
373 void BuildLinesFromHandles();
374 void ResetLine(
double* );
375 void AppendLine(
double* );
384 void RegisterPickers() VTK_OVERRIDE;
392 void CreateDefaultProperties();
395 int HandleLeftMouseButton;
396 int HandleMiddleMouseButton;
397 int HandleRightMouseButton;
abstract superclass for all actors, volumes and annotations
represents an object (geometry & properties) in a rendered scene
abstract base class for most VTK objects
pick an actor/prop using graphics hardware
represent surface properties of a geometric object
static void ProcessEvents(vtkObject *object, unsigned long event, void *clientdata, void *calldata)
Handles the char widget activation event.
virtual void SetEnabled(int)
Methods for turning the interactor observer on and off, and determining its state.
dynamic, self-adjusting array of float
concrete dataset represents vertices, lines, polygons, and triangle strips
a simple class to control print indentation
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
object to represent cell connectivity
abstract API for pickers that can pick an instance of vtkProp
ray-cast cell picker for all kinds of Prop3Ds
create 2D glyphs represented by vtkPolyData
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
represent and manipulate 3D points