Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

template<class Iterator>
void Impala::Core::Geometry::FileWriteIxRectangle ( std::string  fileName,
Iterator  begin,
Iterator  end 
) [inline]

Definition at line 17 of file FileWriteIxRectangle.h.

Referenced by Impala::Core::Table::TableIxs::WriteIxsFile().

00018 {
00019     File f(fileName, "w");
00020     if (! f.Valid())
00021         return;
00022     fprintf(f.Fp(), "#@ \"imageName\" \"anno\" \"rect\" \"section\" \"dir\" \"extra\"\n");
00023     fprintf(f.Fp(), "#= \"string\" \"string\" \"string\" \"string\" \"string\" \"string\"\n");
00024     for (Iterator it=begin ; it!=end ; it++)
00025     {
00026         IxRectangle ir = *it;
00027         fprintf(f.Fp(), "\"%s\" \"%s\" \"%d %d %d %d\" \"%s\" \"%s\" \"%s\"\n",
00028                 ir.mImageName.c_str(), ir.mAnno.c_str(),
00029                 ir.mRect.mLeft, ir.mRect.mTop, ir.mRect.mRight, ir.mRect.mBottom,
00030                 ir.mSection.c_str(), ir.mDir.c_str(), ir.mExtra.c_str());
00031     }
00032 }


Generated on Thu Jan 13 09:19:36 2011 for ImpalaSrc by  doxygen 1.5.1