VTK  9.1.0
vtkSplineGraphEdges.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkSplineGraphEdges.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=========================================================================*/
15/*-------------------------------------------------------------------------
16 Copyright 2008 Sandia Corporation.
17 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18 the U.S. Government retains certain rights in this software.
19-------------------------------------------------------------------------*/
36#ifndef vtkSplineGraphEdges_h
37#define vtkSplineGraphEdges_h
38
39#include "vtkGraphAlgorithm.h"
40#include "vtkInfovisLayoutModule.h" // For export macro
41#include "vtkSmartPointer.h" // For ivars
42
43class vtkSpline;
44
45class VTKINFOVISLAYOUT_EXPORT vtkSplineGraphEdges : public vtkGraphAlgorithm
46{
47public:
50 void PrintSelf(ostream& os, vtkIndent indent) override;
51
53
56 virtual void SetSpline(vtkSpline* s);
57 vtkGetObjectMacro(Spline, vtkSpline);
59
60 enum
61 {
62 BSPLINE = 0,
63 CUSTOM
64 };
65
67
72 vtkSetMacro(SplineType, int);
73 vtkGetMacro(SplineType, int);
75
77
80 vtkSetMacro(NumberOfSubdivisions, vtkIdType);
81 vtkGetMacro(NumberOfSubdivisions, vtkIdType);
83
84protected:
87
89
91
94
96
98
102
104
105private:
107 void operator=(const vtkSplineGraphEdges&) = delete;
108};
109
110#endif
Superclass for algorithms that produce only graph as output.
Base class for graph data types.
Definition: vtkGraph.h:339
a simple class to control print indentation
Definition: vtkIndent.h:113
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:82
int vtkIdType
Definition: vtkType.h:332
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287