void ossimQtTopographicCorrectionDialogController::setObject(ossimConnectableObject* obj)
{
  theObject = PTR_CAST(ossimTopographicCorrectionFilter, obj);
  if(theObject)
    {
      transferToDialog();
    }
  else
    {
      theDialog->close(true);
    }
}
コード例 #2
0
void ossimQtViewDialogController::apply()
{
    if ( isIdentityMode() )
    {
        emit setIdentityMode(true);
    }
    else
    {
        emit setIdentityMode(false);
        transferFromDialog();
        emit applyView(theViewObject.get());
        transferToDialog();
    }
}
void ossimQtTopographicCorrectionDialogController::typeActivated(const QString& type)
{
  if(theObject)
    {
      if(type == "Minnaert")
	{
	  theObject->setTopoCorrectionType(ossimTopographicCorrectionFilter::TOPO_CORRECTION_MINNAERT);
	}
      else
	{
	  theObject->setTopoCorrectionType(ossimTopographicCorrectionFilter::TOPO_CORRECTION_COSINE);
	}
      transferToDialog();
      applyChanges();
    }
}
コード例 #4
0
void ossimQtViewDialogController::setView(const ossimObject* view)
{
    theViewObject = 0;
    if(view) theViewObject = view->dup();
    transferToDialog();
}