]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/PointList.h
...
[cpPlugins.git] / lib / cpPlugins / Interface / PointList.h
diff --git a/lib/cpPlugins/Interface/PointList.h b/lib/cpPlugins/Interface/PointList.h
new file mode 100644 (file)
index 0000000..f41fb18
--- /dev/null
@@ -0,0 +1,58 @@
+#ifndef __CPPLUGINS__INTERFACE__POINTLIST__H__
+#define __CPPLUGINS__INTERFACE__POINTLIST__H__
+
+#include <cpPlugins/Interface/DataObject.h>
+
+namespace cpPlugins
+{
+  namespace Interface
+  {
+    /**
+     */
+    class cpPlugins_Interface_EXPORT PointList
+      : public DataObject
+    {
+    public:
+      typedef PointList                       Self;
+      typedef DataObject                      Superclass;
+      typedef itk::SmartPointer< Self >       Pointer;
+      typedef itk::SmartPointer< const Self > ConstPointer;
+
+    public:
+      itkNewMacro( Self );
+      itkTypeMacro( PointList, DataObject );
+      cpPlugins_Id_Macro( PointList, DataObject );
+
+    public:
+      unsigned long GetNumberOfPoints( ) const;
+
+      void Clear( );
+
+      template< class P >
+        inline void AddPoint( const P& p );
+
+      template< class P >
+        inline P GetPoint( const unsigned long& i ) const;
+
+    protected:
+      PointList( );
+      virtual ~PointList( );
+
+    private:
+      // Purposely not implemented
+      PointList( const Self& );
+      Self& operator=( const Self& );
+
+    protected:
+      unsigned long m_NumberOfPoints;
+    };
+
+  } // ecapseman
+
+} // ecapseman
+
+#include <cpPlugins/Interface/PointList.hxx>
+
+#endif // __CPPLUGINS__INTERFACE__POINTLIST__H__
+
+// eof - $RCSfile$