medQtDataImageWriter::medQtDataImageWriter() { // Extensions with higher priority will appear first in supportedExtension list. // Generally we prefer lossless, and portable formats. m_supportedExtensionList.push_back(FormatInfo("png", QByteArray::fromRawData("PNG",3), 100) ); m_supportedExtensionList.push_back(FormatInfo("jpg", QByteArray::fromRawData("JPG",3), 50) ); m_supportedExtensionList.push_back(FormatInfo("jpeg", QByteArray::fromRawData("JPEG",4), 49) ); m_supportedExtensionList.push_back(FormatInfo("bmp", QByteArray::fromRawData("BMP",3), 60) ); m_supportedExtensionList.push_back(FormatInfo("ppm", QByteArray::fromRawData("PPM",3), 75) ); m_supportedExtensionList.push_back(FormatInfo("xbm", QByteArray::fromRawData("XBM",3), 72) ); m_supportedExtensionList.push_back(FormatInfo("tiff", QByteArray::fromRawData("TIFF",4), 70) ); m_supportedExtensionList.push_back(FormatInfo("tif", QByteArray::fromRawData("TIFF",4), 75) ); }
void Exception::Show() const { String caption = Caption(); String info = FormatInfo(); bool showOnGUI = s_useGUI && Thread::IsRootThread(); if ( s_useConsole || !showOnGUI ) { String text = caption + ": " + info; if ( HaveConsole() ) Console().CriticalLn( "<end><cbr>*** " + text ); else std::cerr << "\n*** " << RemoveHTMLTags( TranslateHTMLParagraphTags( TranslateHTMLBreakTags( text ) ) ) << '\n' << std::flush; } if ( showOnGUI ) pcl::MessageBox( info, caption, StdIcon::Error ).Execute(); }