VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkLineSource.h,v $ 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 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&); // Not implemented. 00067 void operator=(const vtkLineSource&); // Not implemented. 00068 }; 00069 00070 #endif