Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound 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 =========================================================================*/
00043 #ifndef __vtkLineSource_h
00044 #define __vtkLineSource_h
00045 
00046 #include "vtkPolyDataSource.h"
00047 
00048 class VTK_GRAPHICS_EXPORT vtkLineSource : public vtkPolyDataSource 
00049 {
00050 public:
00051   static vtkLineSource *New();
00052   vtkTypeRevisionMacro(vtkLineSource,vtkPolyDataSource);
00053   void PrintSelf(ostream& os, vtkIndent indent);
00054 
00056 
00057   vtkSetVector3Macro(Point1,float);
00058   vtkGetVectorMacro(Point1,float,3);
00060 
00062 
00063   vtkSetVector3Macro(Point2,float);
00064   vtkGetVectorMacro(Point2,float,3);
00066 
00068 
00069   vtkSetClampMacro(Resolution,int,1,VTK_LARGE_INTEGER);
00070   vtkGetMacro(Resolution,int);
00072 
00073 protected:
00074   vtkLineSource(int res=1);
00075   ~vtkLineSource() {};
00076 
00077   void Execute();
00078   float Point1[3];
00079   float Point2[3];
00080   int Resolution;
00081 private:
00082   vtkLineSource(const vtkLineSource&);  // Not implemented.
00083   void operator=(const vtkLineSource&);  // Not implemented.
00084 };
00085 
00086 #endif
00087 
00088