Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkLineSource.h

Go to the documentation of this file.
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 =========================================================================*/
00040 #ifndef __vtkLineSource_h
00041 #define __vtkLineSource_h
00042 
00043 #include "vtkPolyDataSource.h"
00044 
00045 class VTK_GRAPHICS_EXPORT vtkLineSource : public vtkPolyDataSource 
00046 {
00047 public:
00048   static vtkLineSource *New();
00049   vtkTypeRevisionMacro(vtkLineSource,vtkPolyDataSource);
00050   void PrintSelf(ostream& os, vtkIndent indent);
00051 
00053 
00054   vtkSetVector3Macro(Point1,double);
00055   vtkGetVectorMacro(Point1,double,3);
00057 
00059 
00060   vtkSetVector3Macro(Point2,double);
00061   vtkGetVectorMacro(Point2,double,3);
00063 
00065 
00066   vtkSetClampMacro(Resolution,int,1,VTK_LARGE_INTEGER);
00067   vtkGetMacro(Resolution,int);
00069 
00070 protected:
00071   vtkLineSource(int res=1);
00072   ~vtkLineSource() {};
00073 
00074   void Execute();
00075   void ExecuteInformation();
00076   double Point1[3];
00077   double Point2[3];
00078   int Resolution;
00079 private:
00080   vtkLineSource(const vtkLineSource&);  // Not implemented.
00081   void operator=(const vtkLineSource&);  // Not implemented.
00082 };
00083 
00084 #endif
00085 
00086