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
_datasourceController(0), _workspaceController(0), _presentationController(0),
_processingController(0), _pvGuiElements(0)
{
+ STDLOG("MEDModule::MEDModule()");
// Note also that we can't use the getApp() function here because
// the initialize(...) function has not been called yet.
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)
void
MEDModule::initialize( CAM_Application* app )
{
+ STDLOG("MEDModule::initialize()");
// call the parent implementation
SalomeApp_Module::initialize( app );
+ if (! getApp()->objectBrowser())
+ getApp()->getWindow(SalomeApp_Application::WT_ObjectBrowser);
+
getApp()->objectBrowser()->setAutoOpenLevel(5);
if (app && app->desktop()) {
void
MEDModule::windows( QMap<int, int>& theMap ) const
{
+ STDLOG("MEDModule::windows()");
// want Object browser, in the left area
theMap.insert( SalomeApp_Application::WT_ObjectBrowser,
Qt::LeftDockWidgetArea );
bool
MEDModule::activateModule( SUIT_Study* theStudy )
{
+ STDLOG("MEDModule::activateModule()");
if ( CORBA::is_nil( _MED_engine ) )
return false;
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();
-
+ STDLOG("MEDModule::deactivateModule()");
_workspaceController->showDockWidgets(false);
_presentationController->showDockWidgets(false);
//this->unsetDockLayout();
def MEDCouplingDataArrayDoubleIpow(self,*args):
import _MEDCouplingClient
return _MEDCouplingClient.DataArrayDouble____ipow___(self, self, *args)
+def MEDCouplingFieldIntnew(cls,*args):
+ import _MEDCouplingClient
+ return _MEDCouplingClient.MEDCouplingFieldInt____new___(cls,args)
+def MEDCouplingFieldFloatnew(cls,*args):
+ import _MEDCouplingClient
+ return _MEDCouplingClient.MEDCouplingFieldFloat____new___(cls,args)
def MEDCouplingFieldDoublenew(cls,*args):
import _MEDCouplingClient
return _MEDCouplingClient.MEDCouplingFieldDouble____new___(cls,args)
def MEDCouplingDataArrayBytenew(cls,*args):
import _MEDCouplingClient
return _MEDCouplingClient.DataArrayByte____new___(cls,args)
+def MEDCouplingDataArrayFloatnew(cls,*args):
+ import _MEDCouplingClient
+ return _MEDCouplingClient.DataArrayFloat____new___(cls,args)
+def MEDCouplingDataArrayFloatIadd(self,*args):
+ import _MEDCouplingClient
+ return _MEDCouplingClient.DataArrayFloat____iadd___(self, self, *args)
+def MEDCouplingDataArrayFloatIsub(self,*args):
+ import _MEDCouplingClient
+ return _MEDCouplingClient.DataArrayFloat____isub___(self, self, *args)
+def MEDCouplingDataArrayFloatImul(self,*args):
+ import _MEDCouplingClient
+ return _MEDCouplingClient.DataArrayFloat____imul___(self, self, *args)
+def MEDCouplingDataArrayFloatIdiv(self,*args):
+ import _MEDCouplingClient
+ return _MEDCouplingClient.DataArrayFloat____idiv___(self, self, *args)
def MEDCouplingDataArrayDoubleTupleIadd(self,*args):
import _MEDCouplingClient
return _MEDCouplingClient.DataArrayDoubleTuple____iadd___(self, self, *args)
def MEDCouplingDataArrayDoubleIpow(self,*args):
import _MEDCouplingCorba
return _MEDCouplingCorba.DataArrayDouble____ipow___(self, self, *args)
+def MEDCouplingFieldIntnew(cls,*args):
+ import _MEDCouplingCorba
+ return _MEDCouplingCorba.MEDCouplingFieldInt____new___(cls,args)
+def MEDCouplingFieldFloatnew(cls,*args):
+ import _MEDCouplingCorba
+ return _MEDCouplingCorba.MEDCouplingFieldFloat____new___(cls,args)
def MEDCouplingFieldDoublenew(cls,*args):
import _MEDCouplingCorba
return _MEDCouplingCorba.MEDCouplingFieldDouble____new___(cls,args)
def MEDCouplingDataArrayBytenew(cls,*args):
import _MEDCouplingCorba
return _MEDCouplingCorba.DataArrayByte____new___(cls,args)
+def MEDCouplingDataArrayFloatnew(cls,*args):
+ import _MEDCouplingCorba
+ return _MEDCouplingCorba.DataArrayFloat____new___(cls,args)
+def MEDCouplingDataArrayFloatIadd(self,*args):
+ import _MEDCouplingCorba
+ return _MEDCouplingCorba.DataArrayFloat____iadd___(self, self, *args)
+def MEDCouplingDataArrayFloatIsub(self,*args):
+ import _MEDCouplingCorba
+ return _MEDCouplingCorba.DataArrayFloat____isub___(self, self, *args)
+def MEDCouplingDataArrayFloatImul(self,*args):
+ import _MEDCouplingCorba
+ return _MEDCouplingCorba.DataArrayFloat____imul___(self, self, *args)
+def MEDCouplingDataArrayFloatIdiv(self,*args):
+ import _MEDCouplingCorba
+ return _MEDCouplingCorba.DataArrayFloat____idiv___(self, self, *args)
def MEDCouplingDataArrayDoubleTupleIadd(self,*args):
import _MEDCouplingCorba
return _MEDCouplingCorba.DataArrayDoubleTuple____iadd___(self, self, *args)