Engines_Component_i()
{
if(MYDEBUG) MESSAGE("VISU_Gen_i::VISU_Gen_i : "<<theMutex);
- Mutex mt(theMutex,qApp);
+ Mutex mt(theMutex);
Base_i::myMutex = theMutex; //apo
Base_i::myOrb = CORBA::ORB::_duplicate(theORB);
Base_i::myPoa = PortableServer::POA::_duplicate(thePOA);
{
if(MYDEBUG) MESSAGE("VISU_Gen_i::Load - myMutex = "<<myMutex);
if(myMutex){
- Mutex mt(myMutex,qApp);
+ Mutex mt(myMutex);
SALOMEDS::Study_var aStudy = theComponent->GetStudy();
SALOMEDS::StudyBuilder_var aStudyBuilder = aStudy->NewBuilder();
TCollection_AsciiString aTmpDir =
if(myMutex){
CORBA::String_var aString("");
if(strcmp(aLocalPersistentID,"") != 0) {
- Mutex mt(myMutex,qApp);
+ Mutex mt(myMutex);
Storable* aStorable =
Storable::Create(theSObject,VisuTmpDir.c_str(),aLocalPersistentID);
if(aStorable != NULL) aString = aStorable->GetID();
{
if(MYDEBUG) MESSAGE("VISU_Gen_i::Save - myMutex = "<<myMutex);
if(myMutex){
- Mutex mt(myMutex,qApp);
+ Mutex mt(myMutex);
TCollection_AsciiString aTmpDir = isMultiFile? strdup(theURL): SALOMEDS_Tool::GetTmpDir();
if(MYDEBUG) MESSAGE("VISU_Gen_i::Save - "<<aTmpDir);
int aCounter = 0;
bool isMultiFile) {
if(MYDEBUG) MESSAGE("VISU_Gen_i::Save - myMutex = "<<myMutex);
if(myMutex){
- Mutex mt(myMutex,qApp);
+ Mutex mt(myMutex);
CORBA::String_var aString = SALOMEDS_Tool::GetTmpDir();
TCollection_AsciiString aTmpDir = isMultiFile? (const Standard_CString)theURL: (const Standard_CString)aString.in();
if(MYDEBUG) MESSAGE("VISU_Gen_i::Save - "<<aTmpDir);
if(!CORBA::is_nil(anObj)){
Storable* pStorable = dynamic_cast<Storable*>(GetServant(anObj).in());
if(pStorable != NULL){
- Mutex mt(myMutex,qApp);
+ Mutex mt(myMutex);
aString = pStorable->ToString().c_str();
return aString._retn();
}
//omni_mutex_lock aMutexLock(aMutex);
if(MYDEBUG) MESSAGE("VISU_Gen_i::GetViewManager : "<<myMutex);
if(myMutex){
- Mutex mt(myMutex,qApp);
+ Mutex mt(myMutex);
ViewManager_i * aViewManager = new ViewManager_i(myStudyDocument);
return ViewManager::_duplicate(aViewManager->_this());
}
SALOMEDS::SObject_ptr VISU_Gen_i::ImportTables(const char* theFileName){
if(myMutex){
if(myStudyDocument->GetProperties()->IsLocked()) return SALOMEDS::SObject::_nil();
- Mutex mt(myMutex,qApp);
+ Mutex mt(myMutex);
SALOMEDS::SObject_var aRes = VISU::ImportTables(theFileName,myStudyDocument);
return aRes._retn();
}
Result_ptr VISU_Gen_i::ImportFile(const char* theFileName){
if(myMutex){
if(myStudyDocument->GetProperties()->IsLocked()) return Result::_nil();
- Mutex mt(myMutex,qApp);
+ Mutex mt(myMutex);
aFileInfo.setFile(theFileName);
Result_i* pResult = new Result_i(myStudyDocument);
if(pResult->Create(theFileName) != NULL)
Result_ptr VISU_Gen_i::CopyAndImportFile(const char* theFileName){
if(myMutex){
if(myStudyDocument->GetProperties()->IsLocked()) return Result::_nil();
- Mutex mt(myMutex,qApp);
+ Mutex mt(myMutex);
VISU::Result_var aResult;
aFileInfo.setFile(theFileName);
Result_i* pResult = new Result_i(myStudyDocument,Result_i::eRestoredFile);
if(MYDEBUG) MESSAGE("VISU_Gen_i::ImportMed : "<<myMutex);
if(myMutex){
if(myStudyDocument->GetProperties()->IsLocked()) return Result::_nil();
- Mutex mt(myMutex,qApp);
+ Mutex mt(myMutex);
Result_i* pResult = new Result_i(myStudyDocument);
if(pResult->Create(theMedSObject) != NULL)
return pResult->_this();
if(MYDEBUG) MESSAGE("VISU_Gen_i::ImportMedField : "<<myMutex);
if(myMutex){
if(myStudyDocument->GetProperties()->IsLocked()) return Result::_nil();
- Mutex mt(myMutex,qApp);
+ Mutex mt(myMutex);
Result_i* pResult = new Result_i(myStudyDocument);
if(pResult->Create(theField) != NULL)
return pResult->_this();
if(MYDEBUG) MESSAGE("VISU_Gen_i::MeshOnEntity : "<<myMutex);
if(myMutex){
if(myStudyDocument->GetProperties()->IsLocked()) return Mesh::_nil();
- Mutex mt(myMutex,qApp);
+ Mutex mt(myMutex);
if(Result_i* pResult = dynamic_cast<Result_i*>(GetServant(theResult).in())){
Mesh_i* aPresent = new Mesh_i(pResult);
if(aPresent->Create(theMeshName,theEntity) != NULL)
if(MYDEBUG) MESSAGE("VISU_Gen_i::FamilyMeshOnEntity : "<<myMutex);
if(myMutex){
if(myStudyDocument->GetProperties()->IsLocked()) return Mesh::_nil();
- Mutex mt(myMutex,qApp);
+ Mutex mt(myMutex);
if(Result_i* pResult = dynamic_cast<Result_i*>(GetServant(theResult).in())){
Mesh_i* aPresent = new Mesh_i(pResult);
if(aPresent->Create(theMeshName,theEntity,theFamilyName) != NULL)
if(MYDEBUG) MESSAGE("VISU_Gen_i::GroupMesh : "<<myMutex);
if(myMutex){
if(myStudyDocument->GetProperties()->IsLocked()) return Mesh::_nil();
- Mutex mt(myMutex,qApp);
+ Mutex mt(myMutex);
if(Result_i* pResult = dynamic_cast<Result_i*>(GetServant(theResult).in())){
Mesh_i* aPresent = new Mesh_i(pResult);
if(aPresent->Create(theMeshName,theGroupName) != NULL)
if(MYDEBUG) MESSAGE("VISU_Gen_i::CreateTable : "<<myMutex);
if(myMutex){
if(myStudyDocument->GetProperties()->IsLocked()) return Table::_nil();
- Mutex mt(myMutex,qApp);
+ Mutex mt(myMutex);
Table_i* pPresent = new Table_i(myStudyDocument,theTableEntry);
if(pPresent->Create() != NULL)
return pPresent->_this();
if(MYDEBUG) MESSAGE("VISU_Gen_i::CreateCurve : "<<myMutex);
if(myMutex){
if(myStudyDocument->GetProperties()->IsLocked()) return Curve::_nil();
- Mutex mt(myMutex,qApp);
+ Mutex mt(myMutex);
PortableServer::POA_ptr aPOA = GetPOA();
Table_i* pTable = dynamic_cast<Table_i*>(aPOA->reference_to_servant(theTable));
Curve_i* pPresent = new Curve_i(myStudyDocument,pTable,theHRow,theVRow);
if(MYDEBUG) MESSAGE("VISU_Gen_i::CreateContainer : "<<myMutex);
if(myMutex){
if(myStudyDocument->GetProperties()->IsLocked()) return Container::_nil();
- Mutex mt(myMutex,qApp);
+ Mutex mt(myMutex);
Container_i* pPresent = new Container_i(myStudyDocument);
if(pPresent->Create() != NULL)
return pPresent->_this();
Animation_ptr VISU_Gen_i::CreateAnimation(View3D_ptr theView3D){
if(myMutex){
if(myStudyDocument->GetProperties()->IsLocked()) return Animation::_nil();
- Mutex mt(myMutex,qApp);
+ Mutex mt(myMutex);
if(MYDEBUG) MESSAGE("VISU_Gen_i::CreateAnimation : "<<myMutex);
- if(VISU_TimeAnimation* anAnim = new VISU_TimeAnimation(myStudyDocument,theView3D)){
+ if(VISU_TimeAnimation_i* anAnim = new VISU_TimeAnimation_i(myStudyDocument,theView3D)){
return anAnim->_this();
}else
return VISU::Animation::_nil();
void VISU_Gen_i::Close(SALOMEDS::SComponent_ptr theComponent){
if(MYDEBUG) MESSAGE("VISU_Gen_i::Close : "<<myMutex);
if(myMutex){
- //Mutex mt(myMutex,qApp);
+ //Mutex mt(myMutex);
//SALOMEDS::Study_var aStudy = theComponent->GetStudy();
//if(!aStudy->_is_nil()){
// SALOMEDS::ChildIterator_var aChildIter = aStudy->NewChildIterator(theComponent);
{
if(MYDEBUG) MESSAGE("VISU_Gen_i::PublishInStudy : "<<myMutex);
if(myMutex){
- Mutex mt(myMutex,qApp);
+ Mutex mt(myMutex);
SALOMEDS::SObject_var aResultSO;
Result_i* aResultObj = dynamic_cast<Result_i*>(GetServant(theObject).in());
if (!aResultObj) return aResultSO._retn();
CORBA::Boolean VISU_Gen_i::CanCopy(SALOMEDS::SObject_ptr theObject) {
if(0 && MYDEBUG) MESSAGE("VISU_Gen_i::CanCopy : "<<myMutex);
if(myMutex){
- //Mutex mt(myMutex,qApp);
+ //Mutex mt(myMutex);
SALOMEDS::GenericAttribute_var anAttr;
if (!theObject->FindAttribute(anAttr, "AttributeIOR")) return false;
try {
SALOMEDS::TMPFile* VISU_Gen_i::CopyFrom(SALOMEDS::SObject_ptr theObject, CORBA::Long& theObjectID) {
if(myMutex){
- Mutex mt(myMutex,qApp);
+ Mutex mt(myMutex);
theObjectID = 0;
SALOMEDS::TMPFile_var aStreamFile = new SALOMEDS::TMPFile;
SALOMEDS::SObject_ptr theObject) {
if(MYDEBUG) MESSAGE("VISU_Gen_i::PasteInto : "<<myMutex);
if(myMutex){
- Mutex mt(myMutex,qApp);
+ Mutex mt(myMutex);
SALOMEDS::SObject_var aResultSO;
if (theObjectID != 1) return aResultSO._retn();