]> Creatis software - creaImageIO.git/blobdiff - src/creaImageIODicomNode.cpp
Added a List Item Menu
[creaImageIO.git] / src / creaImageIODicomNode.cpp
index 011c434d073b27844b335112585c73761c5a7183..04879c8477346f0e74c1bbeedf6cd91361e05ff6 100644 (file)
@@ -165,10 +165,31 @@ namespace creaImageIO
   }
   //=============================================================
 
+  //=============================================================
+  int DicomNode::ImageGetRows() const
+  {
+    return atoi(UnsafeGetFieldValue("A0028_0010").c_str());
+  }
+  //=============================================================
+
+  //=============================================================
+  int DicomNode::ImageGetColumns() const
+  {
+    return atoi(UnsafeGetFieldValue("A0028_0011").c_str());
+  }
+  //=============================================================
+
+  //=============================================================
+  int DicomNode::ImageGetFrames() const
+  {
+    return atoi(UnsafeGetFieldValue("A0028_0008").c_str());
+  }
+  //=============================================================
+
   //=============================================================
   void DicomNode::Print() const 
   {
-    for (int i=0;i<GetType()+1;++i) std::cout << " ";
+    for (int ii=0;ii<GetType()+1;++ii) std::cout << " ";
     std::cout << "-> "<<GetLabel() << std::endl;
     ChildrenListType::const_iterator i;
     for (i=GetChildrenList().begin(); i!=GetChildrenList().end(); i++)