X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=plugins%2FcpPluginsImageMeshFilters%2FTriangleMeshToBinaryImageFilter.h;fp=plugins%2FcpPluginsImageMeshFilters%2FTriangleMeshToBinaryImageFilter.h;h=7965e2b92c2c4b825d620a5f0d7d0c165ad8f9d0;hb=eccc88f770fd53f8ef8d578127a8788315573c52;hp=0000000000000000000000000000000000000000;hpb=7989665e222981539e3c354e9d50bf142e777a2c;p=cpPlugins.git diff --git a/plugins/cpPluginsImageMeshFilters/TriangleMeshToBinaryImageFilter.h b/plugins/cpPluginsImageMeshFilters/TriangleMeshToBinaryImageFilter.h new file mode 100644 index 0000000..7965e2b --- /dev/null +++ b/plugins/cpPluginsImageMeshFilters/TriangleMeshToBinaryImageFilter.h @@ -0,0 +1,47 @@ +#ifndef __CPPLUGINSIMAGEMESH__TRIANGLEMESHTOBINARYIMAGEFILTER__H__ +#define __CPPLUGINSIMAGEMESH__TRIANGLEMESHTOBINARYIMAGEFILTER__H__ + +#include +#include + +namespace cpPluginsImageMeshFilters +{ + /** + */ + class cpPluginsImageMeshFilters_EXPORT TriangleMeshToBinaryImageFilter + : public cpPlugins::ProcessObject + { + public: + typedef TriangleMeshToBinaryImageFilter Self; + typedef cpPlugins::ProcessObject Superclass; + typedef itk::SmartPointer< Self > Pointer; + typedef itk::SmartPointer< const Self > ConstPointer; + + public: + itkNewMacro( Self ); + itkTypeMacro( TriangleMeshToBinaryImageFilter, cpPlugins::ProcessObject ); + cpPlugins_Id_Macro( TriangleMeshToBinaryImageFilter, MeshToImageFilters ); + + protected: + TriangleMeshToBinaryImageFilter( ); + virtual ~TriangleMeshToBinaryImageFilter( ); + + virtual std::string _GenerateData( ) override; + + template< class _TMesh > + inline std::string _GD0( _TMesh* mesh ); + + template< class _TMesh, class _TPixel > + inline std::string _GD1( _TMesh* mesh ); + + private: + // Purposely not implemented + TriangleMeshToBinaryImageFilter( const Self& ); + Self& operator=( const Self& ); + }; + +} // ecapseman + +#endif // __CPPLUGINSIMAGEMESH__TRIANGLEMESHTOBINARYIMAGEFILTER__H__ + +// eof - $RCSfile$