VTK  9.4.20250202
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
20#ifndef vtkSplineGraphEdges_h
21#define vtkSplineGraphEdges_h
22
23#include "vtkGraphAlgorithm.h"
24#include "vtkInfovisLayoutModule.h" // For export macro
25#include "vtkSmartPointer.h" // For ivars
26
27VTK_ABI_NAMESPACE_BEGIN
28class vtkSpline;
29
30class VTKINFOVISLAYOUT_EXPORT vtkSplineGraphEdges : public vtkGraphAlgorithm
31{
32public:
35 void PrintSelf(ostream& os, vtkIndent indent) override;
36
38
41 virtual void SetSpline(vtkSpline* s);
42 vtkGetObjectMacro(Spline, vtkSpline);
44
45 enum
46 {
47 BSPLINE = 0,
48 CUSTOM
49 };
50
52
57 vtkSetMacro(SplineType, int);
58 vtkGetMacro(SplineType, int);
60
62
65 vtkSetMacro(NumberOfSubdivisions, vtkIdType);
66 vtkGetMacro(NumberOfSubdivisions, vtkIdType);
68
69protected:
72
74
76
79
81
83
87
89
90private:
92 void operator=(const vtkSplineGraphEdges&) = delete;
93};
94
95VTK_ABI_NAMESPACE_END
96#endif
Superclass for algorithms that produce only graph as output.
Base class for graph data types.
Definition vtkGraph.h:340
a simple class to control print indentation
Definition vtkIndent.h:108
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