X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FOrthoNormalBase.h;fp=lib%2FcpPlugins%2FOrthoNormalBase.h;h=11bf87b986766b823ce1b5b8fd7a8877048d505b;hb=201c5026430f9bcc33f9db6a39f5d03db096c860;hp=0000000000000000000000000000000000000000;hpb=aa77db36cc1d87ba014c982a235239c3c87224f3;p=cpPlugins.git diff --git a/lib/cpPlugins/OrthoNormalBase.h b/lib/cpPlugins/OrthoNormalBase.h new file mode 100644 index 0000000..11bf87b --- /dev/null +++ b/lib/cpPlugins/OrthoNormalBase.h @@ -0,0 +1,58 @@ +#ifndef __CPPLUGINS__ORTHONORMALBASE__H__ +#define __CPPLUGINS__ORTHONORMALBASE__H__ + +#include + +#include +#include + +namespace cpPlugins +{ + /** + */ + class cpPlugins_EXPORT OrthoNormalBase + : public DataObject + { + public: + typedef OrthoNormalBase Self; + typedef DataObject Superclass; + typedef itk::SmartPointer< Self > Pointer; + typedef itk::SmartPointer< const Self > ConstPointer; + + public: + itkNewMacro( Self ); + itkTypeMacro( OrthoNormalBase, DataObject ); + cpPlugins_Id_Macro( OrthoNormalBase, Object ); + + public: + virtual void SetITK( itk::LightObject* o ) ITK_OVERRIDE; + virtual void SetVTK( vtkObjectBase* o ) ITK_OVERRIDE; + + template< class _TMatrix > + inline void SetITK( const _TMatrix& m ); + + template< class _TMatrix, class _TVector > + inline void SetITK( const _TMatrix& m, const _TVector& v ); + + protected: + OrthoNormalBase( ); + virtual ~OrthoNormalBase( ); + + virtual void _CreateVTKActor( ) const ITK_OVERRIDE; + + private: + // Purposely not implemented + OrthoNormalBase( const Self& ); + Self& operator=( const Self& ); + + protected: + mutable vtkSmartPointer< vtkAxesActor > m_BaseActor; + }; + +} // ecapseman + +#include + +#endif // __CPPLUGINS__ORTHONORMALBASE__H__ + +// eof - $RCSfile$