61 #ifndef vtkLineWidget_h
62 #define vtkLineWidget_h
65 #include "vtkInteractionWidgetsModule.h"
68 VTK_ABI_NAMESPACE_BEGIN
99 void PlaceWidget()
override { this->Superclass::PlaceWidget(); }
101 double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax)
override
103 this->Superclass::PlaceWidget(xmin, xmax, ymin, ymax, zmin, zmax);
116 void SetPoint1(
double x,
double y,
double z);
119 void GetPoint1(
double xyz[3]) { this->LineSource->GetPoint1(xyz); }
124 void SetPoint2(
double x,
double y,
double z);
127 void GetPoint2(
double xyz[3]) { this->LineSource->GetPoint2(xyz); }
136 vtkSetClampMacro(Align,
int, XAxis, None);
137 vtkGetMacro(Align,
int);
172 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
181 vtkGetObjectMacro(SelectedLineProperty,
vtkProperty);
189 friend class vtkPWCallback;
203 vtkObject*
object,
unsigned long event,
void* clientdata,
void* calldata);
206 void OnLeftButtonDown();
207 void OnLeftButtonUp();
208 void OnMiddleButtonDown();
209 void OnMiddleButtonUp();
210 void OnRightButtonDown();
211 void OnRightButtonUp();
212 virtual void OnMouseMove();
229 void HighlightLine(
int highlight);
236 void BuildRepresentation();
238 void HandlesOn(
double length);
240 int HighlightHandle(
vtkProp* prop);
241 void HighlightHandles(
int highlight);
247 double LastPosition[3];
248 void SetLinePosition(
double x[3]);
254 void Scale(
double* p1,
double* p2,
int X,
int Y);
258 void ClampPosition(
double x[3]);
259 int InBounds(
double x[3]);
267 void CreateDefaultProperties();
279 void EnablePointWidget();
280 void DisablePointWidget();
281 int ForwardEvent(
unsigned long event);
288 VTK_ABI_NAMESPACE_END
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