VTK  9.2.6
vtkSCurveSpline.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSCurveSpline.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 2009 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  -------------------------------------------------------------------------*/
42 #ifndef vtkSCurveSpline_h
43 #define vtkSCurveSpline_h
44 
45 #include "vtkSpline.h"
46 #include "vtkViewsInfovisModule.h" // For export macro
47 
48 class VTKVIEWSINFOVIS_EXPORT vtkSCurveSpline : public vtkSpline
49 {
50 public:
51  static vtkSCurveSpline* New();
52 
53  vtkTypeMacro(vtkSCurveSpline, vtkSpline);
54  void PrintSelf(ostream& os, vtkIndent indent) override;
55 
59  void Compute() override;
60 
64  double Evaluate(double t) override;
65 
69  void DeepCopy(vtkSpline* s) override;
70 
71  vtkSetMacro(NodeWeight, double);
72  vtkGetMacro(NodeWeight, double);
73 
74 protected:
76  ~vtkSCurveSpline() override = default;
77 
78  double NodeWeight;
79 
80 private:
81  vtkSCurveSpline(const vtkSCurveSpline&) = delete;
82  void operator=(const vtkSCurveSpline&) = delete;
83 };
84 
85 #endif
a simple class to control print indentation
Definition: vtkIndent.h:49
computes an interpolating spline using a a SCurve basis.
static vtkSCurveSpline * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkSCurveSpline() override=default
void DeepCopy(vtkSpline *s) override
Deep copy of SCurve spline data.
double Evaluate(double t) override
Evaluate a 1D SCurve spline.
void Compute() override
Compute SCurve Splines for each dependent variable.
spline abstract class for interpolating splines
Definition: vtkSpline.h:63