#include "QAD_Study.h"
#include "VISU_CutLines_i.hh"
+#include "VISU_Result_i.hh"
#include <memory>
#include <fstream>
return "";
}
+void VISU::Table_i::RemoveFromStudy(){
+ VISU::RemoveFromStudy(mySObj,false);
+}
+
//----------------------------------------------------------------
// Curve Object
//----------------------------------------------------------------
return NULL;
}
+void VISU::Curve_i::RemoveFromStudy(){
+ VISU::RemoveFromStudy(mySObj,false);
+}
+
//----------------------------------------------------------------
// Container Object
//----------------------------------------------------------------
"",
aComment.latin1(),
true );
+ mySObj = SALOMEDS::SObject::_duplicate(myStudy->FindObjectID(anEntry.c_str()));
}
return this;
}
/*!
Restores container data from the stream
*/
-VISU::Storable* VISU::Container_i::Restore( const Storable::TRestoringMap& theMap )
+VISU::Storable* VISU::Container_i::Restore( const Storable::TRestoringMap& theMap, SALOMEDS::SObject_ptr SO )
{
if(MYDEBUG) MESSAGE(GetComment());
+ mySObj = SALOMEDS::SObject::_duplicate(SO);
myName = VISU::Storable::FindValue( theMap, "myName" ).latin1();
QString val = VISU::Storable::FindValue( theMap, "myCurves" );
myCurves = QStringList::split( QString( "*" ), val, false );
{
SALOMEDS::Study_var aStudy = theSObject->GetStudy();
VISU::Container_i* pResent = new VISU::Container_i( aStudy );
- return pResent->Restore( theMap );
+ return pResent->Restore( theMap, theSObject );
+}
+
+void VISU::Container_i::RemoveFromStudy(){
+ VISU::RemoveFromStudy(mySObj,false);
}
//-------------------------------------------------------------
}
void ImportTables(const char* theFileName, TTableCont& theTableCont){
- static int STRPRECISION = 12;
ifstream aStmIn;
QFileInfo aFileInfo( theFileName );
if( !aFileInfo.isFile() || !aFileInfo.isReadable() || !aFileInfo.size() )
SALOMEDS::AttributeName_var aName = SALOMEDS::AttributeName::_narrow(anAttr);
QFileInfo aFileInfo(theFileName);
aName->SetValue(aFileInfo.fileName().latin1());
- int iEnd = aTableCont.size();
for(int i = 0, iEnd = aTableCont.size(); i < iEnd; i++){
const TTable2D& aTable2D = aTableCont[i];
SALOMEDS::SObject_var aRealObject = aStudyBuilder->NewObject(aFileObject);