]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/VTK/Image/SkeletonToPolyDataFilter.h
...
[FrontAlgorithms.git] / lib / fpa / VTK / Image / SkeletonToPolyDataFilter.h
diff --git a/lib/fpa/VTK/Image/SkeletonToPolyDataFilter.h b/lib/fpa/VTK/Image/SkeletonToPolyDataFilter.h
new file mode 100644 (file)
index 0000000..f34ae2e
--- /dev/null
@@ -0,0 +1,71 @@
+// =========================================================================
+// @author Leonardo Florez Valencia
+// @email florez-l@javeriana.edu.co
+// =========================================================================
+#ifndef __fpa__VTK__Image__SkeletonToPolyDataFilter__h__
+#define __fpa__VTK__Image__SkeletonToPolyDataFilter__h__
+
+#include <vtkPolyDataAlgorithm.h>
+
+namespace fpa
+{
+  namespace VTK
+  {
+    namespace Image
+    {
+      /**
+       */
+      template< class _TSkeleton >
+      class SkeletonToPolyDataFilter
+        : public vtkPolyDataAlgorithm
+      {
+      public:
+        typedef SkeletonToPolyDataFilter Self;
+        typedef _TSkeleton               TSkeleton;
+
+      public:
+        vtkTypeMacro( SkeletonToPolyDataFilter, vtkPolyDataAlgorithm );
+
+      public:
+        static Self* New( );
+
+        const TSkeleton* GetInput( ) const;
+        void SetInput( const TSkeleton* sk );
+
+      protected:
+        SkeletonToPolyDataFilter( );
+        virtual ~SkeletonToPolyDataFilter( );
+
+        int RequestData(
+          vtkInformation* information,
+          vtkInformationVector** input,
+          vtkInformationVector* output
+          );
+        int RequestInformation(
+          vtkInformation* information,
+          vtkInformationVector** input,
+          vtkInformationVector* output
+          );
+
+      private:
+        // Purposely not implemented
+        SkeletonToPolyDataFilter( const Self& );
+        void operator=( const Self& );
+
+      protected:
+        const TSkeleton* m_Skeleton;
+      };
+
+    } // ecapseman
+
+  } // ecapseman
+
+} // ecapseman
+
+#ifndef ITK_MANUAL_INSTANTIATION
+#  include <fpa/VTK/Image/SkeletonToPolyDataFilter.hxx>
+#endif // ITK_MANUAL_INSTANTIATION
+
+#endif // __fpa__VTK__Image__SkeletonToPolyDataFilter__h__
+
+// eof - $RCSfile$