in string theMeshName,
in double_array theTStamps );
+ Result GetResult(in SALOMEDS::SObject theResultObj);
+
};
/*! \brief %View interface
return myVisuGen->VTK2MED(theVTKFiles, theMEDFile, theMeshName, theTStamps);
}
+ Result_ptr VISU_Gen_i::GetResult(SALOMEDS::SObject_ptr theResultObj)
+ {
+ return myVisuGen->GetResult(theResultObj);
+ }
+
};
const char* theMEDFile,
const char* theMeshName,
const VISU::double_array& theTStamps );
+
+ virtual Result_ptr GetResult(SALOMEDS::SObject_ptr theResultObj);
};
};
aFiles);
}
}
+
if(MYDEBUG) MESSAGE("VISU_Gen_i::Save - aFileNames.size() - "<<aFileNames.size());
SALOMEDS::TMPFile_var aStreamFile = new SALOMEDS::TMPFile(0);
return res == 0;
}
+
+
+ Result_ptr VISU_Gen_i::GetResult(SALOMEDS::SObject_ptr theResultObj)
+ {
+ if(CORBA::is_nil(myStudyDocument))
+ return Result::_nil();
+
+ //CORBA::Object_var anObject = SObjectToObject(theResultObj);
+ CORBA::Object_var anObject = theResultObj->GetObject();
+ if (CORBA::is_nil(anObject))
+ return Result::_nil();
+
+ VISU::Result_i* aResult = dynamic_cast<VISU::Result_i*>(GetServant(anObject).in());
+
+ return aResult->_this();
+ }
+
}
const char* theMeshName,
const VISU::double_array& theTStamps);
+
+ virtual Result_ptr GetResult(SALOMEDS::SObject_ptr theResultObj);
+
};
}
aPixmap = SALOMEDS::AttributePixMap::_narrow( anAttr );
aPixmap ->SetPixMap("ICON_TREE_RESULT");
+ anAttr = aStudyBuilder->FindOrCreateAttribute( mySObject, "AttributeLocalID" );
+ SALOMEDS::AttributeLocalID_var aId = SALOMEDS::AttributeLocalID::_narrow( anAttr );
+ aId->SetValue(VISU::TRESULT);
+
if(theIsBuildAll)
return BuildAll();
return true;
if(myInput){
if(myIsBuildImmediately)
- Build(SALOMEDS::SObject::_nil());
+ Build(SALOMEDS::SObject::_nil());
return this;
}
}catch(std::exception& exc){