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);}
121 { this->LineSource->SetResolution(r); }
123 {
return this->LineSource->GetResolution(); }
128 void SetPoint1(
double x,
double y,
double z);
130 {this->SetPoint1(x[0], x[1], x[2]); }
132 {
return this->LineSource->GetPoint1();}
134 {this->LineSource->GetPoint1(xyz);}
139 void SetPoint2(
double x,
double y,
double z);
141 {this->SetPoint2(x[0], x[1], x[2]);}
143 {
return this->LineSource->GetPoint2();}
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);
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
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