/*=========================================================================

  Program:   Diffusion Applications
  Module:    $HeadURL$
  Language:  C++
  Date:      $Date$
  Version:   $Revision$

  Copyright (c) Brigham and Women's Hospital (BWH) All Rights Reserved.

  See License.txt or http://www.slicer.org/copyright/copyright.txt for details.

==========================================================================*/
#ifndef itkDiffusionTensor3DBSplineInterpolateImageFunction_hxx
#define itkDiffusionTensor3DBSplineInterpolateImageFunction_hxx

#include "itkDiffusionTensor3DBSplineInterpolateImageFunction.h"

namespace itk
{

template <class TData, class TCoordRep>
DiffusionTensor3DBSplineInterpolateImageFunction<TData, TCoordRep>::DiffusionTensor3DBSplineInterpolateImageFunction()
{
  m_SplineOrder = 1;
}

template <class TData, class TCoordRep>
void DiffusionTensor3DBSplineInterpolateImageFunction<TData, TCoordRep>::AllocateInterpolator()
{
  for (int i = 0; i < 6; i++)
  {
    bSplineInterpolateFunction[i] = BSplineInterpolateFunction::New();
    bSplineInterpolateFunction[i]->SetSplineOrder(m_SplineOrder);
    this->m_Interpol[i] = bSplineInterpolateFunction[i];
  }
}

} // namespace itk

#endif
