Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | 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   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 =========================================================================*/
00033 #ifndef __vtkLineSource_h
00034 #define __vtkLineSource_h
00035 
00036 #include "vtkPolyDataSource.h"
00037 
00038 class VTK_GRAPHICS_EXPORT vtkLineSource : public vtkPolyDataSource 
00039 {
00040 public:
00041   static vtkLineSource *New();
00042   vtkTypeRevisionMacro(vtkLineSource,vtkPolyDataSource);
00043   void PrintSelf(ostream& os, vtkIndent indent);
00044 
00046 
00047   vtkSetVector3Macro(Point1,float);
00048   vtkGetVectorMacro(Point1,float,3);
00050 
00052 
00053   vtkSetVector3Macro(Point2,float);
00054   vtkGetVectorMacro(Point2,float,3);
00056 
00058 
00059   vtkSetClampMacro(Resolution,int,1,VTK_LARGE_INTEGER);
00060   vtkGetMacro(Resolution,int);
00062 
00063 protected:
00064   vtkLineSource(int res=1);
00065   ~vtkLineSource() {};
00066 
00067   void Execute();
00068   float Point1[3];
00069   float Point2[3];
00070   int Resolution;
00071 private:
00072   vtkLineSource(const vtkLineSource&);  // Not implemented.
00073   void operator=(const vtkLineSource&);  // Not implemented.
00074 };
00075 
00076 #endif
00077 
00078