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 =========================================================================*/
28 #ifndef vtkLineSource_h
29 #define vtkLineSource_h
30 
31 #include "vtkFiltersSourcesModule.h" // For export macro
32 #include "vtkPolyDataAlgorithm.h"
33 
34 class vtkPoints;
35 
36 class VTKFILTERSSOURCES_EXPORT vtkLineSource : public vtkPolyDataAlgorithm
37 {
38 public:
39  static vtkLineSource *New();
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
44 
47  vtkSetVector3Macro(Point1,double);
48  vtkGetVectorMacro(Point1,double,3);
49  void SetPoint1(float[3]);
51 
53 
56  vtkSetVector3Macro(Point2,double);
57  vtkGetVectorMacro(Point2,double,3);
58  void SetPoint2(float[3]);
60 
62 
65  virtual void SetPoints(vtkPoints*);
66  vtkGetObjectMacro(Points,vtkPoints);
68 
70 
73  vtkSetClampMacro(Resolution,int,1,VTK_INT_MAX);
74  vtkGetMacro(Resolution,int);
76 
78 
83  vtkSetMacro(OutputPointsPrecision,int);
84  vtkGetMacro(OutputPointsPrecision,int);
86 
87 protected:
88  vtkLineSource(int res=1);
89  ~vtkLineSource() override;
90 
93  double Point1[3];
94  double Point2[3];
97 
103 
104 private:
105  vtkLineSource(const vtkLineSource&) = delete;
106  void operator=(const vtkLineSource&) = delete;
107 };
108 
109 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
#define VTK_INT_MAX
Definition: vtkType.h:159
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
int OutputPointsPrecision
Definition: vtkLineSource.h:96
create a line defined by two end points
Definition: vtkLineSource.h:36
Store zero or more vtkInformation instances.
represent and manipulate 3D points
Definition: vtkPoints.h:33
vtkPoints * Points
The list of points defining a broken line NB: The Point1/Point2 definition of a single line segment i...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.