VMTK
vtkvmtkCardinalSpline.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: VMTK
4 Module: $RCSfile: vtkvmtkCardinalSpline.h,v $
5 Language: C++
6 
7  Copyright (c) Luca Antiga, David Steinman. All rights reserved.
8  See LICENSE file for details.
9 
10  Portions of this code are covered under the VTK copyright.
11  See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
12  for details.
13 
14  Portions of this code are covered under the ITK copyright.
15  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm
16  for details.
17 
18  This software is distributed WITHOUT ANY WARRANTY; without even
19  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
20  PURPOSE. See the above copyright notices for more information.
21 
22 =========================================================================*/
23 
33 #ifndef __vtkvmtkCardinalSpline_h
34 #define __vtkvmtkCardinalSpline_h
35 
36 #include "vtkCardinalSpline.h"
37 #include "vtkvmtkWin32Header.h"
38 
39 class VTK_VMTK_SEGMENTATION_EXPORT vtkvmtkCardinalSpline : public vtkCardinalSpline
40 {
41 public:
42  static vtkvmtkCardinalSpline *New();
43 
44  vtkTypeMacro(vtkvmtkCardinalSpline,vtkCardinalSpline);
45  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
46 
47  virtual double EvaluateDerivative(double t);
48 
49  virtual double EvaluateSecondDerivative(double t);
50 
51  virtual void EvaluateValueAndDerivatives(double t, double valueAndDerivatives[3]);
52 
53 protected:
56 
57 private:
58  vtkvmtkCardinalSpline(const vtkvmtkCardinalSpline&); // Not implemented.
59  void operator=(const vtkvmtkCardinalSpline&); // Not implemented.
60 };
61 
62 #endif
63 
Implementation of vtkCardinalSpline containing methods to calculate the spline derivative, second derivatives, at derivative values.