VTK
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  -------------------------------------------------------------------------*/
33 #ifndef vtkSCurveSpline_h
34 #define vtkSCurveSpline_h
35 
36 #include "vtkViewsInfovisModule.h" // For export macro
37 #include "vtkSpline.h"
38 
39 class VTKVIEWSINFOVIS_EXPORT vtkSCurveSpline : public vtkSpline
40 {
41 public:
42  static vtkSCurveSpline *New();
43 
44  vtkTypeMacro(vtkSCurveSpline,vtkSpline);
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
50  void Compute () override;
51 
55  double Evaluate (double t) override;
56 
60  void DeepCopy(vtkSpline *s) override;
61 
62  vtkSetMacro(NodeWeight,double);
63  vtkGetMacro(NodeWeight,double);
64 protected:
66  ~vtkSCurveSpline() override {}
67 
68  double NodeWeight;
69 
70 private:
71  vtkSCurveSpline(const vtkSCurveSpline&) = delete;
72  void operator=(const vtkSCurveSpline&) = delete;
73 };
74 
75 #endif
virtual double Evaluate(double t)=0
Interpolate the value of the spline at parametric location of t.
a simple class to control print indentation
Definition: vtkIndent.h:39
spline abstract class for interpolating splines
Definition: vtkSpline.h:62
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkSCurveSpline() override
virtual void DeepCopy(vtkSpline *s)
Deep copy of spline data.
virtual void Compute()=0
Compute the coefficients for the spline.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
computes an interpolating spline using a a SCurve basis.