75 #ifndef vtkLineWidget_h
76 #define vtkLineWidget_h
109 {this->Superclass::PlaceWidget();}
110 void PlaceWidget(
double xmin,
double xmax,
double ymin,
double ymax,
111 double zmin,
double zmax)
112 {this->Superclass::PlaceWidget(xmin,xmax,ymin,ymax,zmin,zmax);}
118 { this->LineSource->SetResolution(r); }
120 {
return this->LineSource->GetResolution(); }
125 void SetPoint1(
double x,
double y,
double z);
127 {this->SetPoint1(x[0], x[1], x[2]); }
129 {
return this->LineSource->GetPoint1();}
131 {this->LineSource->GetPoint1(xyz);}
136 void SetPoint2(
double x,
double y,
double z);
138 {this->SetPoint2(x[0], x[1], x[2]);}
140 {
return this->LineSource->GetPoint2();}
142 {this->LineSource->GetPoint2(xyz);}
150 vtkSetClampMacro(Align,
int, XAxis, None);
151 vtkGetMacro(Align,
int);
163 vtkSetMacro(ClampToBounds,
int);
164 vtkGetMacro(ClampToBounds,
int);
165 vtkBooleanMacro(ClampToBounds,
int);
180 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
187 vtkGetObjectMacro(SelectedLineProperty,
vtkProperty);
195 friend class vtkPWCallback;
214 void OnLeftButtonDown();
215 void OnLeftButtonUp();
216 void OnMiddleButtonDown();
217 void OnMiddleButtonUp();
218 void OnRightButtonDown();
219 void OnRightButtonUp();
220 virtual void OnMouseMove();
236 void HighlightLine(
int highlight);
243 void BuildRepresentation();
245 void HandlesOn(
double length);
247 int HighlightHandle(
vtkProp *prop);
248 void HighlightHandles(
int highlight);
254 double LastPosition[3];
255 void SetLinePosition(
double x[3]);
261 void Scale(
double *p1,
double *p2,
int X,
int Y);
265 void ClampPosition(
double x[3]);
266 int InBounds(
double x[3]);
274 void CreateDefaultProperties();
286 void EnablePointWidget();
287 void DisablePointWidget();
288 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)
virtual void SetEnabled(int)
concrete dataset represents vertices, lines, polygons, and triangle strips
virtual void RegisterPickers()
create a polygonal sphere centered at the origin
a simple class to control print indentation
create a line defined by two end points
map vtkPolyData to graphics primitives
ray-cast cell picker for all kinds of Prop3Ds
represent and manipulate 3D points