1 #ifndef __cpExtensions__DataStructures__PolyLineParametricPath__h__
2 #define __cpExtensions__DataStructures__PolyLineParametricPath__h__
4 #include <itkPolyLineParametricPath.h>
5 #include <itkImageBase.h>
9 namespace DataStructures
13 template< unsigned int _VDim >
14 class PolyLineParametricPath
15 : public itk::PolyLineParametricPath< _VDim >
18 typedef PolyLineParametricPath Self;
19 typedef itk::PolyLineParametricPath< _VDim > Superclass;
20 typedef itk::SmartPointer< Self > Pointer;
21 typedef itk::SmartPointer< const Self > ConstPointer;
23 typedef itk::ImageBase< _VDim > TImageBase;
27 itkTypeMacro( PolyLineParametricPath, itk::PolyLineParametricPath );
30 TImageBase* GetReferenceImage( )
31 { return( this->m_ReferenceImage ); }
32 const TImageBase* GetReferenceImage( ) const
33 { return( this->m_ReferenceImage ); }
34 void SetReferenceImage( const TImageBase* image )
36 this->m_ReferenceImage = TImageBase::New( );
37 this->m_ReferenceImage->SetDirection( image->GetDirection( ) );
38 this->m_ReferenceImage->SetOrigin( image->GetOrigin( ) );
39 this->m_ReferenceImage->SetSpacing( image->GetSpacing( ) );
44 PolyLineParametricPath( ) { }
45 virtual ~PolyLineParametricPath( ) { }
48 // Purposely not implemented
49 PolyLineParametricPath( const Self& other );
50 Self& operator=( const Self& other );
53 typename TImageBase::Pointer m_ReferenceImage;
60 #endif // __cpExtensions__DataStructures__PolyLineParametricPath__h__