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 =========================================================================*/
33 #ifndef __vtkLineSource_h
34 #define __vtkLineSource_h
35 
36 #include "vtkPolyDataAlgorithm.h"
37 
38 class vtkPoints;
39 
41 {
42 public:
43  static vtkLineSource *New();
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
48 
49  vtkSetVector3Macro(Point1,double);
50  vtkGetVectorMacro(Point1,double,3);
51  void SetPoint1(float[3]);
53 
55 
56  vtkSetVector3Macro(Point2,double);
57  vtkGetVectorMacro(Point2,double,3);
58  void SetPoint2(float[3]);
60 
62 
63  virtual void SetPoints(vtkPoints*);
64  vtkGetObjectMacro(Points,vtkPoints);
66 
68 
69  vtkSetClampMacro(Resolution,int,1,VTK_LARGE_INTEGER);
70  vtkGetMacro(Resolution,int);
72 
73 protected:
74  vtkLineSource(int res=1);
75  virtual ~vtkLineSource();
76 
79  double Point1[3];
80  double Point2[3];
82 
86 
87 private:
88  vtkLineSource(const vtkLineSource&); // Not implemented.
89  void operator=(const vtkLineSource&); // Not implemented.
90 };
91 
92 #endif