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=========================================================================*/
34#ifndef vtkLineSource_h
35#define vtkLineSource_h
36
37#include "vtkFiltersSourcesModule.h" // For export macro
39
40class vtkPoints;
41
42class VTKFILTERSSOURCES_EXPORT vtkLineSource : public vtkPolyDataAlgorithm
43{
44public:
45 static vtkLineSource *New();
47 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
48
50
53 vtkSetVector3Macro(Point1,double);
54 vtkGetVectorMacro(Point1,double,3);
55 void SetPoint1(float[3]);
57
59
62 vtkSetVector3Macro(Point2,double);
63 vtkGetVectorMacro(Point2,double,3);
64 void SetPoint2(float[3]);
66
68
71 virtual void SetPoints(vtkPoints*);
72 vtkGetObjectMacro(Points,vtkPoints);
74
76
79 vtkSetClampMacro(Resolution,int,1,VTK_INT_MAX);
80 vtkGetMacro(Resolution,int);
82
84
89 vtkSetMacro(OutputPointsPrecision,int);
90 vtkGetMacro(OutputPointsPrecision,int);
92
93protected:
94 vtkLineSource(int res=1);
95 ~vtkLineSource() VTK_OVERRIDE;
96
97 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
98 int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
99 double Point1[3];
100 double Point2[3];
101 int Resolution;
102 int OutputPointsPrecision;
103
108 vtkPoints* Points;
109
110private:
111 vtkLineSource(const vtkLineSource&) VTK_DELETE_FUNCTION;
112 void operator=(const vtkLineSource&) VTK_DELETE_FUNCTION;
113};
114
115#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
create a line defined by two end points
Definition: vtkLineSource.h:43
virtual void SetPoints(vtkPoints *)
Set/Get the list of points defining a broken line.
static vtkLineSource * New()
~vtkLineSource() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkLineSource(int res=1)
void SetPoint2(float[3])
void SetPoint1(float[3])
represent and manipulate 3D points
Definition: vtkPoints.h:40
Superclass for algorithms that produce only polydata as output.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
#define VTK_INT_MAX
Definition: vtkType.h:153