oss << "pvs.Hide(" << _objVar << ", view=" << getRenderViewVar() << ");";
execPyLine(oss.str());
- execPyLine(getRenderViewVar() + ".ResetCamera();");
- execPyLine("pvs.Render();");
+ // :TRICKY: The two following lines raise an exception when closing MED module
+ // after sequence: MED - load file - PARAVIS - MED - close SALOME
+ // (see Mantis #23461)
+ //execPyLine(getRenderViewVar() + ".ResetCamera();");
+ //execPyLine("pvs.Render();");
}
}
// oss << _srcObjVar << ".Function = '" << _fieldName << "_0*iHat + " << _fieldName << "_1*jHat + 0.0*zHat';";
// pushAndExecPyLine(oss.str()); oss.str("");
//}
-
-// Copyright (C) 2011-2016 CEA/DEN, EDF R&D
+// Copyright (C) 2011-2017 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
MEDPresentation*
MEDPresentationManager_i::_getPresentation(MEDPresentation::TypeID presentationID) const
{
+ STDLOG("Get presentation " << presentationID);
std::map<MEDPresentation::TypeID, MEDPresentation*>::const_iterator citr = _presentations.find(presentationID);
if (citr == _presentations.end())
return NULL;
CORBA::Boolean
MEDPresentationManager_i::removePresentation(MEDPresentation::TypeID presentationID)
{
+ STDLOG("Remove presentation " << presentationID);
std::map<MEDPresentation::TypeID, MEDPresentation*>::const_iterator citr = _presentations.find(presentationID);
if (citr == _presentations.end()) {
std::cerr << "removePresentation(): presentation not found!!" << std::endl;
void
MEDPresentationManager_i::cleanUp()
{
+ STDLOG("Cleanup");
_activeViewPythonId = -1;
std::map<MEDPresentation::TypeID, MEDPresentation*>::iterator it;
for (it = _presentations.begin(); it != _presentations.end(); ++it)
-// Copyright (C) 2007-2016 CEA/DEN, EDF R&D
+// Copyright (C) 2007-2017 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
return -1;
}
+ STDLOG("Add new presentation " << newID);
_presentations.insert( std::pair<MEDPresentation::TypeID, MEDPresentation *>(newID, presentation) );
presentation->generatePipeline();
void
MEDPresentationManager_i::_updatePresentation(MEDPresentation::TypeID presentationID, const PresentationParameters params)
{
+ STDLOG("Update presentation " << presentationID);
MEDPresentation* presentation = _getPresentation(presentationID);
if (!presentation) {
std::cerr << "_updatePresentation(): presentation not found!!" << std::endl;
-// Copyright (C) 2007-2016 CEA/DEN, EDF R&D
+// Copyright (C) 2007-2017 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
MEDModule::~MEDModule()
{
+ // Clean up engine:
+ STDLOG("MEDModule::~MEDModule(): cleaning up engine side.");
+ _MED_engine->cleanUp();
+ MEDFactoryClient::getFactory()->getPresentationManager()->cleanUp();
+ MEDFactoryClient::getFactory()->getDataManager()->cleanUp();
+
if (_studyEditor)
delete _studyEditor;
if (_datasourceController)
bool
MEDModule::deactivateModule( SUIT_Study* theStudy )
{
- // Clean up engine:
- STDLOG("MEDModule::deactivateModule(): cleaning up engine side.");
- _MED_engine->cleanUp();
- MEDFactoryClient::getFactory()->getPresentationManager()->cleanUp();
- MEDFactoryClient::getFactory()->getDataManager()->cleanUp();
-
_workspaceController->showDockWidgets(false);
_presentationController->showDockWidgets(false);
//this->unsetDockLayout();