VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 "vtkFiltersSourcesModule.h" // For export macro
37 #include "vtkPolyDataAlgorithm.h"
38 
39 class vtkPoints;
40 
41 class VTKFILTERSSOURCES_EXPORT vtkLineSource : public vtkPolyDataAlgorithm
42 {
43 public:
44  static vtkLineSource *New();
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
49 
50  vtkSetVector3Macro(Point1,double);
51  vtkGetVectorMacro(Point1,double,3);
52  void SetPoint1(float[3]);
54 
56 
57  vtkSetVector3Macro(Point2,double);
58  vtkGetVectorMacro(Point2,double,3);
59  void SetPoint2(float[3]);
61 
63 
64  virtual void SetPoints(vtkPoints*);
65  vtkGetObjectMacro(Points,vtkPoints);
67 
69 
70  vtkSetClampMacro(Resolution,int,1,VTK_INT_MAX);
71  vtkGetMacro(Resolution,int);
73 
74 protected:
75  vtkLineSource(int res=1);
76  virtual ~vtkLineSource();
77 
78  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
79  int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
80  double Point1[3];
81  double Point2[3];
83 
86  vtkPoints* Points;
87 
88 private:
89  vtkLineSource(const vtkLineSource&); // Not implemented.
90  void operator=(const vtkLineSource&); // Not implemented.
91 };
92 
93 #endif
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
create a line defined by two end points
Definition: vtkLineSource.h:41
vtkPoints * Points
Definition: vtkLineSource.h:86