73 #ifndef vtkLineWidget_h
74 #define vtkLineWidget_h
77 #include "vtkInteractionWidgetsModule.h"
112 double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax)
override
114 this->Superclass::PlaceWidget(xmin, xmax, ymin, ymax, zmin, zmax);
127 void SetPoint1(
double x,
double y,
double z);
130 void GetPoint1(
double xyz[3]) { this->LineSource->GetPoint1(xyz); }
135 void SetPoint2(
double x,
double y,
double z);
138 void GetPoint2(
double xyz[3]) { this->LineSource->GetPoint2(xyz); }
147 vtkSetClampMacro(Align,
int, XAxis, None);
148 vtkGetMacro(Align,
int);
183 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
192 vtkGetObjectMacro(SelectedLineProperty,
vtkProperty);
200 friend class vtkPWCallback;
214 vtkObject*
object,
unsigned long event,
void* clientdata,
void* calldata);
217 void OnLeftButtonDown();
218 void OnLeftButtonUp();
219 void OnMiddleButtonDown();
220 void OnMiddleButtonUp();
221 void OnRightButtonDown();
222 void OnRightButtonUp();
223 virtual void OnMouseMove();
240 void HighlightLine(
int highlight);
247 void BuildRepresentation();
249 void HandlesOn(
double length);
251 int HighlightHandle(
vtkProp* prop);
252 void HighlightHandles(
int highlight);
258 double LastPosition[3];
259 void SetLinePosition(
double x[3]);
265 void Scale(
double* p1,
double* p2,
int X,
int Y);
269 void ClampPosition(
double x[3]);
270 int InBounds(
double x[3]);
278 void CreateDefaultProperties();
290 void EnablePointWidget();
291 void DisablePointWidget();
292 int ForwardEvent(
unsigned long event);
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
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.
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
#define VTK_SIZEHINT(...)
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