X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpExtensions%2FDataStructures%2FSimple3DCurve.h;fp=lib%2FcpExtensions%2FDataStructures%2FSimple3DCurve.h;h=0000000000000000000000000000000000000000;hb=2e142df11d6f312a2a2b5097b8da73571ed523e8;hp=0641d43e8e0aaddc7aa742b51f77381ef8bd33e7;hpb=61b3659afe961ed248f30e26f9ca8f28fcfafddc;p=cpPlugins.git diff --git a/lib/cpExtensions/DataStructures/Simple3DCurve.h b/lib/cpExtensions/DataStructures/Simple3DCurve.h deleted file mode 100644 index 0641d43..0000000 --- a/lib/cpExtensions/DataStructures/Simple3DCurve.h +++ /dev/null @@ -1,75 +0,0 @@ -#ifndef __cpExtensions__DataStructures__Simple3DCurve__h__ -#define __cpExtensions__DataStructures__Simple3DCurve__h__ - -#include -#include -#include -#include -#include - -namespace cpExtensions -{ - namespace DataStructures - { - /** - */ - template< class _TScalar > - class cpExtensions_EXPORT Simple3DCurve - : public itk::DataObject - { - public: - typedef Simple3DCurve Self; - typedef itk::DataObject Superclass; - typedef itk::SmartPointer< Self > Pointer; - typedef itk::SmartPointer< const Self > ConstPointer; - - typedef _TScalar TScalar; - typedef itk::Matrix< TScalar, 3, 3 > TMatrix; - typedef itk::Point< TScalar, 3 > TPoint; - typedef typename TPoint::VectorType TVector; - - public: - itkNewMacro( Self ); - itkTypeMacro( Simple3DCurve, itk::DataObject ); - - public: - template< class _TVector > - inline void AddPoint( const _TVector& v ) - { - TPoint p; - p[ 0 ] = v[ 0 ]; - p[ 1 ] = v[ 1 ]; - p[ 2 ] = v[ 2 ]; - this->m_Points.push_back( p ); - this->Modified( ); - } - - virtual void Modified( ) const cpExtensions_OVERRIDE; - void Clear( ); - unsigned long GetNumberOfPoints( ) const; - const TMatrix& GetFrame( unsigned int id ) const; - const TPoint& GetPoint( unsigned int id ) const; - TVector GetVector( unsigned int id ) const; - - protected: - Simple3DCurve( ); - virtual ~Simple3DCurve( ); - - private: - // Purposely not implemented - Simple3DCurve( const Self& other ); - Self& operator=( const Self& other ); - - protected: - std::vector< TPoint > m_Points; - mutable std::vector< TMatrix > m_Frames; - mutable bool m_FramesUpdated; - }; - - } // ecapseman - -} // ecapseman - -#endif // __cpExtensions__DataStructures__Simple3DCurve__h__ - -// eof - $RCSfile$