NAME
vtkLineSource - create a line defined by two end points
SYNOPSIS
#include "/opt/vtk-c++/graphics/vtkLineSource.h"
class VTK_EXPORT vtkLineSource : public vtkPolyDataSource
vtkLineSource(int res=1);
static vtkLineSource *New() {return new vtkLineSource;};
const char *GetClassName() {return "vtkLineSource";};
void PrintSelf(ostream& os, vtkIndent indent);
void SetPoint1(float, float, float);
void SetPoint1(float *);
float *GetPoint1();
void GetPoint1(float data[3]);
void SetPoint2(float, float, float);
void SetPoint2(float *);
float *GetPoint2();
void GetPoint2(float data[3]);
void SetResolution(int);
int GetResolution();
DESCRIPTION
vtkLineSource is a source object that creates a polyline defined by two endpoints. The number of segments composing the polyline is controlled by setting the object resolution.
SUMMARY
void SetPoint1(float, float, float)
void SetPoint1(float *)
Set position of first end point.
void SetPoint2(float, float, float)
void SetPoint2(float *)
Set position of other end point.
void SetResolution(int)
Divide line into resolution number of pieces.