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