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 "vtkFiltersSourcesModule.h" // For export macro
37 #include "vtkPolyDataAlgorithm.h"
38 
39 class vtkPoints;
40 
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 
75 
79  vtkSetMacro(OutputPointsPrecision,int);
80  vtkGetMacro(OutputPointsPrecision,int);
82 
83 protected:
84  vtkLineSource(int res=1);
85  virtual ~vtkLineSource();
86 
89  double Point1[3];
90  double Point2[3];
93 
97 
98 private:
99  vtkLineSource(const vtkLineSource&); // Not implemented.
100  void operator=(const vtkLineSource&); // Not implemented.
101 };
102 
103 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTK_INT_MAX
Definition: vtkType.h:130
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKFILTERSSOURCES_EXPORT
int OutputPointsPrecision
Definition: vtkLineSource.h:92
create a line defined by two end points
Definition: vtkLineSource.h:41
Store zero or more vtkInformation instances.
represent and manipulate 3D points
Definition: vtkPoints.h:38
vtkPoints * Points
Definition: vtkLineSource.h:96