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

virtual bool Impala::Core::ImageSet::IxsDocument::AddCursorToBookmarked (  )  [inline, virtual]

Definition at line 145 of file IxsDocument.h.

References Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Add(), Impala::Core::Database::DataDocument::CurFileId(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get1(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get2(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get7(), Impala::Core::Database::DataDocument::GetConcept(), Impala::Core::Database::DataDocument::GetRect(), Impala::Core::Database::DataDocument::HasCurFile(), mBookmarked, Impala::Core::Database::DataDocument::mDataSet, and Impala::Core::Table::Table::Size().

00146     {
00147         if (! HasCurFile())
00148             return false;
00149         Geometry::Rectangle rect = GetRect();
00150         std::string anno = GetConcept();
00151         int fileId = CurFileId();
00152         for (int i=0 ; i<mBookmarked->Size() ; i++)
00153         {
00154             if ((mBookmarked->Get7(i) == fileId) &&
00155                 (mBookmarked->Get1(i) == anno) &&
00156                 (mBookmarked->Get2(i) == rect))
00157             {
00158                 return false;
00159             }
00160         }
00161         if (mBookmarked->Add(anno, rect, mDataSet->GetFile(fileId),
00162                              mDataSet->GetSectionOfFile(fileId),
00163                              mDataSet->GetDirOfFile(fileId), "", fileId))
00164         {
00165             return true;
00166         }
00167         return false;
00168     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:20:05 2011 for ImpalaSrc by  doxygen 1.5.1