79 #ifndef __vtkLineWidget_h
80 #define __vtkLineWidget_h
112 {this->Superclass::PlaceWidget();}
113 void PlaceWidget(
double xmin,
double xmax,
double ymin,
double ymax,
114 double zmin,
double zmax)
115 {this->Superclass::PlaceWidget(xmin,xmax,ymin,ymax,zmin,zmax);}
120 void SetResolution(
int r)
121 { this->LineSource->SetResolution(r); }
123 {
return this->LineSource->GetResolution(); }
128 void SetPoint1(
double x,
double y,
double z);
129 void SetPoint1(
double x[3])
132 {
return this->LineSource->GetPoint1();}
133 void GetPoint1(
double xyz[3])
134 {this->LineSource->GetPoint1(xyz);}
139 void SetPoint2(
double x,
double y,
double z);
140 void SetPoint2(
double x[3])
143 {
return this->LineSource->GetPoint2();}
144 void GetPoint2(
double xyz[3])
145 {this->LineSource->GetPoint2(xyz);}
153 vtkSetClampMacro(Align,
int, XAxis, None);
154 vtkGetMacro(Align,
int);
166 vtkSetMacro(ClampToBounds,
int);
167 vtkGetMacro(ClampToBounds,
int);
168 vtkBooleanMacro(ClampToBounds,
int);
183 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
190 vtkGetObjectMacro(SelectedLineProperty,
vtkProperty);
198 friend class vtkPWCallback;
218 void OnLeftButtonDown();
219 void OnLeftButtonUp();
220 void OnMiddleButtonDown();
221 void OnMiddleButtonUp();
222 void OnRightButtonDown();
223 void OnRightButtonUp();
224 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 Scale(
double *p1,
double *p2,
int X,
int Y);
268 void ClampPosition(
double x[3]);
269 int InBounds(
double x[3]);
277 void CreateDefaultProperties();
289 void EnablePointWidget();
290 void DisablePointWidget();
291 int ForwardEvent(
unsigned long event);