VTK
vtkLineSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkLineSource.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
29 #ifndef __vtkLineSource_h
30 #define __vtkLineSource_h
31 
32 #include "vtkPolyDataAlgorithm.h"
33 
35 {
36 public:
37  static vtkLineSource *New();
39  void PrintSelf(ostream& os, vtkIndent indent);
40 
42 
43  vtkSetVector3Macro(Point1,double);
44  vtkGetVectorMacro(Point1,double,3);
46 
48 
49  vtkSetVector3Macro(Point2,double);
50  vtkGetVectorMacro(Point2,double,3);
52 
54 
55  vtkSetClampMacro(Resolution,int,1,VTK_LARGE_INTEGER);
56  vtkGetMacro(Resolution,int);
58 
59 protected:
60  vtkLineSource(int res=1);
62 
65  double Point1[3];
66  double Point2[3];
68 private:
69  vtkLineSource(const vtkLineSource&); // Not implemented.
70  void operator=(const vtkLineSource&); // Not implemented.
71 };
72 
73 #endif