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
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 
27 VTK_ABI_NAMESPACE_BEGIN
28 class vtkSpline;
29 
30 class VTKINFOVISLAYOUT_EXPORT vtkSplineGraphEdges : public vtkGraphAlgorithm
31 {
32 public:
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 
69 protected:
72 
74 
75  vtkMTimeType GetMTime() override;
76 
79 
81 
83 
87 
89 
90 private:
92  void operator=(const vtkSplineGraphEdges&) = delete;
93 };
94 
95 VTK_ABI_NAMESPACE_END
96 #endif
Superclass for algorithms that produce only graph as output.
Base class for graph data types.
Definition: vtkGraph.h:290
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
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.
vtkSmartPointer< vtkSpline > XSpline
vtkSmartPointer< vtkSpline > ZSpline
static vtkSplineGraphEdges * New()
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