#include CORBA_SERVER_HEADER(Sierpinsky)
#include CORBA_CLIENT_HEADER(Randomizer)
#include CORBA_CLIENT_HEADER(SALOMEDS)
+#ifdef WITH_VISU
#include CORBA_CLIENT_HEADER(VISU_Gen)
+#endif
/*!
* Get Randomizer component engine
return aGen;
}
+#ifdef WITH_VISU
/*!
* Get VISU component engine
*/
}
return aGen;
}
+#endif
#define MY_EVENT QEvent::User + 555
class MyEvent : public QEvent
myMedCheck->setChecked( false );
myMedSize->setValue( 100 );
myVisuCheck->setChecked( true );
+#ifndef WITH_VISU
+ myVisuCheck->setVisible( false );
+#endif
updateState();
}
double aMEDSize = myMedSize->value();
if ( !aMEDFile.isEmpty() && aMEDSize > 0 ) {
bool res = getSierpinskyEngine()->ExportToMED( aMEDFile.toLatin1().data(), aMEDSize );
+#ifdef WITH_VISU
if ( res && myVisuCheck->isChecked() ) {
VISU::VISU_Gen_var aVisuGen = getVisuEngine();
if ( !CORBA::is_nil( aVisuGen ) ) {
myModule->getApp()->updateObjectBrowser( true );
}
}
+#endif
}
}
}