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

Graphics/vtkLineSource.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkLineSource.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00044 #ifndef __vtkLineSource_h
00045 #define __vtkLineSource_h
00046 
00047 #include "vtkPolyDataSource.h"
00048 
00049 class VTK_GRAPHICS_EXPORT vtkLineSource : public vtkPolyDataSource 
00050 {
00051 public:
00052   static vtkLineSource *New();
00053   vtkTypeRevisionMacro(vtkLineSource,vtkPolyDataSource);
00054   void PrintSelf(ostream& os, vtkIndent indent);
00055 
00057 
00058   vtkSetVector3Macro(Point1,float);
00059   vtkGetVectorMacro(Point1,float,3);
00061 
00063 
00064   vtkSetVector3Macro(Point2,float);
00065   vtkGetVectorMacro(Point2,float,3);
00067 
00069 
00070   vtkSetClampMacro(Resolution,int,1,VTK_LARGE_INTEGER);
00071   vtkGetMacro(Resolution,int);
00073 
00074 protected:
00075   vtkLineSource(int res=1);
00076   ~vtkLineSource() {};
00077 
00078   void Execute();
00079   float Point1[3];
00080   float Point2[3];
00081   int Resolution;
00082 private:
00083   vtkLineSource(const vtkLineSource&);  // Not implemented.
00084   void operator=(const vtkLineSource&);  // Not implemented.
00085 };
00086 
00087 #endif
00088 
00089