_PTR(SObject) aFather = theStudyDocument->FindObjectID(theFatherEntry);
_PTR(SObject) aNewSObject;
if (theCreateNew)
+ {
aNewSObject = aStudyBuilder->NewObject(aFather);
+ }
else
aNewSObject = aFather;
//----------------------------------------------------------------------------
- Result_ptr
- VISU_Gen_i
- ::ImportMed(SALOMEDS::SObject_ptr theMedSObject)
+ Result_ptr VISU_Gen_i::ImportMed(SALOMEDS::SObject_ptr theMedSObject)
{
if (myStudyDocument->GetProperties()->IsLocked())
return Result::_nil();
true,
true);
if (aResult->Create(theMedSObject) != NULL)
+ {
return aResult->_this();
+ }
else
aResult->_remove_ref();
//---------------------------------------------------------------
-VISU::Storable*
-VISU::Result_i
-::Build(SALOMEDS::SObject_ptr theSObject,
- CORBA::Boolean theIsAtOnce)
+VISU::Storable* VISU::Result_i::Build(SALOMEDS::SObject_ptr theSObject,
+ CORBA::Boolean theIsAtOnce)
{
if(!myInput)
return NULL;
string aCompDataType = GetComponentDataType(theMedSObject);
myFileInfo.setFile(aCompDataType.c_str());
- SetInitFileName(aCompDataType);
-
myFileName = VISU::GenerateName("aResult").latin1();
+ SetInitFileName(aCompDataType);
+ SetName(VISU::GenerateName(myFileInfo.fileName()).latin1(), false);
+
return Build(theMedSObject);
}catch(std::exception& exc){
INFOS("Follow exception was occured :\n"<<exc.what());