]> Creatis software - cpPlugins.git/blobdiff - lib/cpExtensions/Algorithms/PolyLineParametricPathWriter.h
yet another refactoring
[cpPlugins.git] / lib / cpExtensions / Algorithms / PolyLineParametricPathWriter.h
diff --git a/lib/cpExtensions/Algorithms/PolyLineParametricPathWriter.h b/lib/cpExtensions/Algorithms/PolyLineParametricPathWriter.h
new file mode 100644 (file)
index 0000000..f699602
--- /dev/null
@@ -0,0 +1,69 @@
+// -------------------------------------------------------------------------
+// @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
+// -------------------------------------------------------------------------
+
+#ifndef __cpExtensions__Algorithms__PolyLineParametricPathWriter__h__
+#define __cpExtensions__Algorithms__PolyLineParametricPathWriter__h__
+
+#include <itkProcessObject.h>
+
+// -------------------------------------------------------------------------
+namespace cpExtensions
+{
+  namespace Algorithms
+  {
+    /**
+     */
+    template< class _TPolyLine >
+    class PolyLineParametricPathWriter
+      : public itk::ProcessObject
+    {
+    public:
+      // Basic types
+      typedef PolyLineParametricPathWriter Self;
+      typedef itk::ProcessObject                    Superclass;
+      typedef itk::SmartPointer< Self >             Pointer;
+      typedef itk::SmartPointer< const Self >       ConstPointer;
+
+    public:
+      itkNewMacro( Self );
+      itkTypeMacro( PolyLineParametricPathWriter, itk::ProcessObject );
+
+      itkGetConstMacro( FileName, std::string );
+      itkGetConstMacro( NumberOfPoints, long );
+
+      itkSetMacro( FileName, std::string );
+      itkSetMacro( NumberOfPoints, long );
+
+    public:
+      void SetInput( const _TPolyLine* input );
+      const _TPolyLine* GetInput( );
+      virtual void Update( );
+
+    protected:
+      PolyLineParametricPathWriter( );
+      virtual ~PolyLineParametricPathWriter( );
+
+      virtual void GenerateData( ) override;
+
+    private:
+      // Purposely not implemented
+      PolyLineParametricPathWriter( const Self& );
+      void operator=( const Self& );
+
+    protected:
+      std::string m_FileName;
+      long m_NumberOfPoints;
+    };
+
+  } // ecapseman
+
+} // ecapseman
+
+#ifndef ITK_MANUAL_INSTANTIATION
+#  include <cpExtensions/Algorithms/PolyLineParametricPathWriter.hxx>
+#endif // ITK_MANUAL_INSTANTIATION
+
+#endif // __cpExtensions__Algorithms__PolyLineParametricPathWriter__h__
+
+// eof - $RCSfile$