template<class ArrayT>
Definition at line 30 of file mainShow.cpp. References Impala::FileNameExt(), Impala::CmdOptions::GetBool(), Impala::Persistency::RepositoryInFileSystem::GetFile(), Impala::Persistency::RepositoryInFileSystem::GetInstance(), Impala::CmdOptions::GetInstance(), Impala::Visualization::AppController::Instance(), Impala::Visualization::AppController::MainLoop(), Impala::Application::WindowShow< ArrayT >::mArchive, Impala::Application::WindowShow< ArrayT >::mCurNr, Impala::Application::WindowShow< ArrayT >::mDispMode, Impala::Application::WindowShow< ArrayT >::mFileIm, Impala::Application::WindowShow< ArrayT >::mImages, Impala::Core::Array::ReadRawList(), Impala::Application::WindowShow< ArrayT >::RequestNext(), OglGui::OglWindow::SetDimensions(), and Impala::Application::WindowShow< ArrayT >::UpdateFileImage(). 00031 : 00032 Visualization::Window(0, 0, 400, 400 + 25, true) 00033 { 00034 CmdOptions& options = CmdOptions::GetInstance(); 00035 bool fset = options.GetBool("fset"); 00036 mArchive = 0; 00037 mDispMode = dispMode; 00038 if (fset || (FileNameExt(fileName) == "fset")) 00039 { 00040 ImageArchiveLocator loc(locString, setName, fileName); 00041 loc.SetIsFset(true); 00042 mArchive = ImageArchiveRepository().Get(loc); 00043 mFileIm = 0; 00044 UpdateFileImage(0); 00045 SetDimensions(0, 0, mFileIm->CW() + 2, mFileIm->CH() + 25); 00046 } 00047 else if (FileNameExt(fileName) != "raw") 00048 { 00049 /* 00050 Locator loc(locString, setName); 00051 RepositoryInFileSystem& rep = RepositoryInFileSystem::GetInstance(); 00052 Persistency::File f = rep.GetFile(loc, "", fileName, false, false); 00053 ArrayT* im = 0; 00054 ReadFile(im, f); 00055 */ 00056 ImageLocator loc(locString, setName, "", fileName); 00057 Array2dVec3UInt8* im = ImageRepository().Get(loc); 00058 mImages.push_back((ArrayT*) im); 00059 SetDimensions(0, 0, im->CW() + 2, im->CH() + 25); 00060 } 00061 else if ((mDispMode == "jpg") || (mDispMode == "png")) 00062 { 00063 ImageArchiveLocator loc(locString, setName, fileName); 00064 mArchive = ImageArchiveRepository().Get(loc); 00065 mFileIm = 0; 00066 UpdateFileImage(0); 00067 SetDimensions(0, 0, mFileIm->CW() + 2, mFileIm->CH() + 25); 00068 } 00069 else 00070 { 00071 Locator loc(locString, setName); 00072 RepositoryInFileSystem& rep = RepositoryInFileSystem::GetInstance(); 00073 Persistency::File f = rep.GetFile(loc, "", fileName, false, false); 00074 ReadRawList(mImages, f); 00075 SetDimensions(0, 0, mImages[0]->CW() + 2, mImages[0]->CH() + 25); 00076 } 00077 mCurNr = -1; 00078 RequestNext(1); 00079 Visualization::AppController::Instance().MainLoop(); 00080 }
Here is the call graph for this function:
|