VTK  9.3.0
vtkSplineGraphEdges.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
17#ifndef vtkSplineGraphEdges_h
18#define vtkSplineGraphEdges_h
19
20#include "vtkGraphAlgorithm.h"
21#include "vtkInfovisLayoutModule.h" // For export macro
22#include "vtkSmartPointer.h" // For ivars
23
24VTK_ABI_NAMESPACE_BEGIN
25class vtkSpline;
26
27class VTKINFOVISLAYOUT_EXPORT vtkSplineGraphEdges : public vtkGraphAlgorithm
28{
29public:
32 void PrintSelf(ostream& os, vtkIndent indent) override;
33
35
38 virtual void SetSpline(vtkSpline* s);
39 vtkGetObjectMacro(Spline, vtkSpline);
41
42 enum
43 {
44 BSPLINE = 0,
45 CUSTOM
46 };
47
49
54 vtkSetMacro(SplineType, int);
55 vtkGetMacro(SplineType, int);
57
59
62 vtkSetMacro(NumberOfSubdivisions, vtkIdType);
63 vtkGetMacro(NumberOfSubdivisions, vtkIdType);
65
66protected:
69
71
73
76
78
80
84
86
87private:
89 void operator=(const vtkSplineGraphEdges&) = delete;
90};
91
92VTK_ABI_NAMESPACE_END
93#endif
Superclass for algorithms that produce only graph as output.
Base class for graph data types.
Definition vtkGraph.h:281
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Hold a reference to a vtkObjectBase instance.
subsample graph edges to make smooth curves
~vtkSplineGraphEdges() override
vtkSmartPointer< vtkSpline > YSpline
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void GeneratePoints(vtkGraph *g, vtkIdType e)
void GenerateBSpline(vtkGraph *g, vtkIdType e)
vtkMTimeType GetMTime() override
Return this object's modified time.
virtual void SetSpline(vtkSpline *s)
If SplineType is CUSTOM, uses this spline.
static vtkSplineGraphEdges * New()
vtkSmartPointer< vtkSpline > XSpline
vtkSmartPointer< vtkSpline > ZSpline
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
spline abstract class for interpolating splines
Definition vtkSpline.h:52
int vtkIdType
Definition vtkType.h:315
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270