Ejemplo n.º 1
0
BOOL CRunHistoRange::CallIpp(BOOL bMessage)
{
   UpdateLUT(FALSE);
   CParmHistoRangeDlg dlg(this);
   UpdateData(&dlg, FALSE);
   if (dlg.DoModal() != IDOK)
      return FALSE;
   ShowHistogram();
   UpdateLUT();
   return TRUE;
}
Ejemplo n.º 2
0
DialogLoadVolume::DialogLoadVolume(QWidget *parent) :
  QDialog(parent),
  ui(new Ui::DialogLoadVolume)
{
  ui->setupUi(this);
#ifdef Q_WS_MAC
  setWindowFlags( Qt::Sheet );
#endif

  UpdateLUT();
}
Ejemplo n.º 3
0
void DialogLoadVolume::OnLUT( int nSel )
{
  LUTDataHolder* luts = MainWindow::GetMainWindow()->GetLUTData();
  if ( nSel >= luts->GetCount() )
  {
    QString filename = QFileDialog::getOpenFileName( this, "Load lookup table file",
                       m_strLastDir,
                       "LUT files (*)" );
    if ( !filename.isEmpty() && luts->LoadColorTable( filename ) )
    {
      UpdateLUT();
      ui->comboBoxLUT->setCurrentIndex( luts->GetCount() - 1 );
    }
  }
}