67 #ifndef vtkLineWidget_h 68 #define vtkLineWidget_h 71 #include "vtkInteractionWidgetsModule.h" 106 double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax)
override 108 this->Superclass::PlaceWidget(xmin, xmax, ymin, ymax, zmin, zmax);
121 void SetPoint1(
double x,
double y,
double z);
124 void GetPoint1(
double xyz[3]) { this->LineSource->GetPoint1(xyz); }
129 void SetPoint2(
double x,
double y,
double z);
132 void GetPoint2(
double xyz[3]) { this->LineSource->GetPoint2(xyz); }
141 vtkSetClampMacro(Align,
int, XAxis, None);
142 vtkGetMacro(Align,
int);
177 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
186 vtkGetObjectMacro(SelectedLineProperty,
vtkProperty);
194 friend class vtkPWCallback;
208 vtkObject*
object,
unsigned long event,
void* clientdata,
void* calldata);
211 void OnLeftButtonDown();
212 void OnLeftButtonUp();
213 void OnMiddleButtonDown();
214 void OnMiddleButtonUp();
215 void OnRightButtonDown();
216 void OnRightButtonUp();
217 virtual void OnMouseMove();
234 void HighlightLine(
int highlight);
241 void BuildRepresentation();
243 void HandlesOn(
double length);
245 int HighlightHandle(
vtkProp* prop);
246 void HighlightHandles(
int highlight);
252 double LastPosition[3];
253 void SetLinePosition(
double x[3]);
259 void Scale(
double* p1,
double* p2,
int X,
int Y);
263 void ClampPosition(
double x[3]);
264 int InBounds(
double x[3]);
272 void CreateDefaultProperties();
284 void EnablePointWidget();
285 void DisablePointWidget();
286 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