00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00026 #ifndef __vtkLineSource_h
00027 #define __vtkLineSource_h
00028
00029 #include "vtkPolyDataAlgorithm.h"
00030
00031 class VTK_GRAPHICS_EXPORT vtkLineSource : public vtkPolyDataAlgorithm
00032 {
00033 public:
00034 static vtkLineSource *New();
00035 vtkTypeRevisionMacro(vtkLineSource,vtkPolyDataAlgorithm);
00036 void PrintSelf(ostream& os, vtkIndent indent);
00037
00039
00040 vtkSetVector3Macro(Point1,double);
00041 vtkGetVectorMacro(Point1,double,3);
00043
00045
00046 vtkSetVector3Macro(Point2,double);
00047 vtkGetVectorMacro(Point2,double,3);
00049
00051
00052 vtkSetClampMacro(Resolution,int,1,VTK_LARGE_INTEGER);
00053 vtkGetMacro(Resolution,int);
00055
00056 protected:
00057 vtkLineSource(int res=1);
00058 ~vtkLineSource() {};
00059
00060 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00061 int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00062 double Point1[3];
00063 double Point2[3];
00064 int Resolution;
00065 private:
00066 vtkLineSource(const vtkLineSource&);
00067 void operator=(const vtkLineSource&);
00068 };
00069
00070 #endif