67 #ifndef vtkLineWidget_h 68 #define vtkLineWidget_h 70 #include "vtkInteractionWidgetsModule.h" 105 {this->Superclass::PlaceWidget();}
106 void PlaceWidget(
double xmin,
double xmax,
double ymin,
double ymax,
107 double zmin,
double zmax) VTK_OVERRIDE
108 {this->Superclass::PlaceWidget(xmin,xmax,ymin,ymax,zmin,zmax);}
115 { this->LineSource->SetResolution(r); }
117 {
return this->LineSource->GetResolution(); }
122 void SetPoint1(
double x,
double y,
double z);
124 {this->SetPoint1(x[0], x[1], x[2]); }
126 {
return this->LineSource->GetPoint1();}
128 {this->LineSource->GetPoint1(xyz);}
133 void SetPoint2(
double x,
double y,
double z);
135 {this->SetPoint2(x[0], x[1], x[2]);}
137 {
return this->LineSource->GetPoint2();}
139 {this->LineSource->GetPoint2(xyz);}
148 vtkSetClampMacro(Align,
int, XAxis, None);
149 vtkGetMacro(Align,
int);
164 vtkGetMacro(ClampToBounds,
int);
184 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
193 vtkGetObjectMacro(SelectedLineProperty,
vtkProperty);
201 friend class vtkPWCallback;
220 void OnLeftButtonDown();
221 void OnLeftButtonUp();
222 void OnMiddleButtonDown();
223 void OnMiddleButtonUp();
224 void OnRightButtonDown();
225 void OnRightButtonUp();
226 virtual void OnMouseMove();
242 void HighlightLine(
int highlight);
249 void BuildRepresentation();
251 void HandlesOn(
double length);
253 int HighlightHandle(
vtkProp *prop);
254 void HighlightHandles(
int highlight);
260 double LastPosition[3];
261 void SetLinePosition(
double x[3]);
264 void RegisterPickers() VTK_OVERRIDE;
267 void Scale(
double *p1,
double *p2,
int X,
int Y);
271 void ClampPosition(
double x[3]);
272 int InBounds(
double x[3]);
280 void CreateDefaultProperties();
288 vtkPWCallback *PWCallback;
289 vtkPW1Callback *PW1Callback;
290 vtkPW2Callback *PW2Callback;
292 void EnablePointWidget();
293 void DisablePointWidget();
294 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
create a polygonal sphere centered at the origin
a simple class to control print indentation
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
create a line defined by two end points
map vtkPolyData to graphics primitives
ray-cast cell picker for all kinds of Prop3Ds
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