VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkLineSource.h 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 =========================================================================*/ 00033 #ifndef __vtkLineSource_h 00034 #define __vtkLineSource_h 00035 00036 #include "vtkPolyDataAlgorithm.h" 00037 00038 class vtkPoints; 00039 00040 class VTK_GRAPHICS_EXPORT vtkLineSource : public vtkPolyDataAlgorithm 00041 { 00042 public: 00043 static vtkLineSource *New(); 00044 vtkTypeMacro(vtkLineSource,vtkPolyDataAlgorithm); 00045 void PrintSelf(ostream& os, vtkIndent indent); 00046 00048 00049 vtkSetVector3Macro(Point1,double); 00050 vtkGetVectorMacro(Point1,double,3); 00051 void SetPoint1(float[3]); 00053 00055 00056 vtkSetVector3Macro(Point2,double); 00057 vtkGetVectorMacro(Point2,double,3); 00058 void SetPoint2(float[3]); 00060 00062 00063 virtual void SetPoints(vtkPoints*); 00064 vtkGetObjectMacro(Points,vtkPoints); 00066 00068 00069 vtkSetClampMacro(Resolution,int,1,VTK_LARGE_INTEGER); 00070 vtkGetMacro(Resolution,int); 00072 00073 protected: 00074 vtkLineSource(int res=1); 00075 virtual ~vtkLineSource(); 00076 00077 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00078 int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00079 double Point1[3]; 00080 double Point2[3]; 00081 int Resolution; 00082 00085 vtkPoints* Points; 00086 00087 private: 00088 vtkLineSource(const vtkLineSource&); // Not implemented. 00089 void operator=(const vtkLineSource&); // Not implemented. 00090 }; 00091 00092 #endif