70 #ifndef vtkLineWidget_h 71 #define vtkLineWidget_h 74 #include "vtkInteractionWidgetsModule.h" 109 double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax)
override 111 this->Superclass::PlaceWidget(xmin, xmax, ymin, ymax, zmin, zmax);
124 void SetPoint1(
double x,
double y,
double z);
127 void GetPoint1(
double xyz[3]) { this->LineSource->GetPoint1(xyz); }
132 void SetPoint2(
double x,
double y,
double z);
135 void GetPoint2(
double xyz[3]) { this->LineSource->GetPoint2(xyz); }
144 vtkSetClampMacro(Align,
int, XAxis, None);
145 vtkGetMacro(Align,
int);
180 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
189 vtkGetObjectMacro(SelectedLineProperty,
vtkProperty);
197 friend class vtkPWCallback;
211 vtkObject*
object,
unsigned long event,
void* clientdata,
void* calldata);
214 void OnLeftButtonDown();
215 void OnLeftButtonUp();
216 void OnMiddleButtonDown();
217 void OnMiddleButtonUp();
218 void OnRightButtonDown();
219 void OnRightButtonUp();
220 virtual void OnMouseMove();
237 void HighlightLine(
int highlight);
244 void BuildRepresentation();
246 void HandlesOn(
double length);
248 int HighlightHandle(
vtkProp* prop);
249 void HighlightHandles(
int highlight);
255 double LastPosition[3];
256 void SetLinePosition(
double x[3]);
262 void Scale(
double* p1,
double* p2,
int X,
int Y);
266 void ClampPosition(
double x[3]);
267 int InBounds(
double x[3]);
275 void CreateDefaultProperties();
287 void EnablePointWidget();
288 void DisablePointWidget();
289 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