VTK
dox
Filters
Sources
vtkPolyLineSource.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkPolyLineSource.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
=========================================================================*/
23
#ifndef vtkPolyLineSource_h
24
#define vtkPolyLineSource_h
25
26
#include "vtkFiltersSourcesModule.h"
// For export macro
27
#include "
vtkPolyDataAlgorithm.h
"
28
29
class
vtkPoints
;
30
31
class
VTKFILTERSSOURCES_EXPORT
vtkPolyLineSource
:
public
vtkPolyDataAlgorithm
32
{
33
public
:
34
static
vtkPolyLineSource
*
New
();
35
vtkTypeMacro(
vtkPolyLineSource
,
vtkPolyDataAlgorithm
);
36
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
37
39
42
void
SetNumberOfPoints(
vtkIdType
numPoints);
43
vtkIdType
GetNumberOfPoints();
45
49
void
Resize(
vtkIdType
numPoints);
50
54
void
SetPoint(
vtkIdType
id
,
double
x,
double
y,
double
z);
55
57
60
void
SetPoints(
vtkPoints
*
points
);
61
vtkGetObjectMacro(Points,
vtkPoints
);
63
65
68
vtkSetMacro(Closed,
vtkTypeBool
);
69
vtkGetMacro(Closed,
vtkTypeBool
);
70
vtkBooleanMacro(Closed,
vtkTypeBool
);
72
73
protected
:
74
vtkPolyLineSource
();
75
~
vtkPolyLineSource
()
override
;
76
77
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
78
79
vtkPoints
*
Points
;
80
81
vtkTypeBool
Closed
;
82
83
private
:
84
vtkPolyLineSource
(
const
vtkPolyLineSource
&) =
delete
;
85
void
operator=(
const
vtkPolyLineSource
&) =
delete
;
86
};
87
88
#endif
vtkPoints
represent and manipulate 3D points
Definition:
vtkPoints.h:33
vtkIdType
int vtkIdType
Definition:
vtkType.h:347
vtkInformationVector
Store zero or more vtkInformation instances.
Definition:
vtkInformationVector.h:35
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPolyDataAlgorithm.h
vtkX3D::points
Definition:
vtkX3D.h:446
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
vtkPolyLineSource
create a poly line from a list of input points
Definition:
vtkPolyLineSource.h:31
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:80
vtkPolyLineSource::Points
vtkPoints * Points
Definition:
vtkPolyLineSource.h:79
vtkTypeBool
int vtkTypeBool
Definition:
vtkABI.h:69
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyLineSource::Closed
vtkTypeBool Closed
Definition:
vtkPolyLineSource.h:81
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition:
vtkPolyDataAlgorithm.h:41
Generated by
1.8.16