VTK  9.3.1
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:
33  static vtkSplineGraphEdges* New();
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:
71  ~vtkSplineGraphEdges() override;
72 
74 
75  vtkMTimeType GetMTime() override;
76 
77  void GeneratePoints(vtkGraph* g, vtkIdType e);
78  void GenerateBSpline(vtkGraph* g, vtkIdType e);
79 
81 
83 
87 
89 
90 private:
92  void operator=(const vtkSplineGraphEdges&) = delete;
93 };
94 
95 VTK_ABI_NAMESPACE_END
96 #endif
static vtkGraphAlgorithm * New()
vtkSmartPointer< vtkSpline > ZSpline
subsample graph edges to make smooth curves
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270
int vtkIdType
Definition: vtkType.h:315
Superclass for algorithms that produce only graph as output.
Base class for graph data types.
Definition: vtkGraph.h:280
a simple class to control print indentation
Definition: vtkIndent.h:28
vtkSmartPointer< vtkSpline > YSpline
spline abstract class for interpolating splines
Definition: vtkSpline.h:51
virtual vtkMTimeType GetMTime()
Return this object's modified time.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkSmartPointer< vtkSpline > XSpline
Store zero or more vtkInformation instances.