VISU::Storable* VISU::CutLines_i::Restore(const Storable::TRestoringMap& theMap)
{
- DoHook();
+ TSuperClass::Restore(theMap);
+
SetNbLines(VISU::Storable::FindValue(theMap,"myNbLines").toInt());
SetDisplacement(VISU::Storable::FindValue(theMap,"myDisplacement[0]").toDouble());
SetDisplacement2(VISU::Storable::FindValue(theMap,"myDisplacement[1]").toDouble());
SetCurveInverted(i,false);
}
- return ScalarMap_i::Restore(theMap);
+ return this;
}
VISU::Storable* VISU::CutPlanes_i::Restore(const Storable::TRestoringMap& theMap)
{
- DoHook();
+ TSuperClass::Restore(theMap);
+
SetNbPlanes(VISU::Storable::FindValue(theMap,"myNbPlanes").toInt());
SetDisplacement(VISU::Storable::FindValue(theMap,"myDisplacement").toDouble());
SetOrientation(VISU::CutPlanes::Orientation(VISU::Storable::FindValue(theMap,"myBasePlane").toInt()),
if(aCondList[i].toInt() == 0)
SetPlanePosition(i,aPosList[i].toDouble());
- return ScalarMap_i::Restore(theMap);
+ return this;
}
VISU::Storable* VISU::DeformedShape_i::Restore(const Storable::TRestoringMap& theMap)
{
- DoHook();
+ TSuperClass::Restore(theMap);
+
SetScale(VISU::Storable::FindValue(theMap,"myFactor").toDouble());
myIsColored = VISU::Storable::FindValue(theMap,"myIsColored").toInt();
myColor.R = VISU::Storable::FindValue(theMap,"myColor.R").toDouble();
myColor.G = VISU::Storable::FindValue(theMap,"myColor.G").toDouble();
myColor.B = VISU::Storable::FindValue(theMap,"myColor.B").toDouble();
- return ScalarMap_i::Restore(theMap);
+ return this;
}
VISU::Storable* VISU::IsoSurfaces_i::Restore(const Storable::TRestoringMap& theMap)
{
- DoHook();
+ TSuperClass::Restore(theMap);
+
SetNbSurfaces(VISU::Storable::FindValue(theMap,"myNbSurface").toInt());
float aMin = VISU::Storable::FindValue(theMap,"myRange[0]").toDouble();
float aMax = VISU::Storable::FindValue(theMap,"myRange[1]").toDouble();
SetSubRange(aMin,aMax);
- return ScalarMap_i::Restore(theMap);
+ return this;
}
void VISU::IsoSurfaces_i::ToStream(std::ostringstream& theStr){
VISU::Storable* VISU::Plot3D_i::Restore (const Storable::TRestoringMap& theMap)
{
- DoHook();
+ TSuperClass::Restore(theMap);
+
SetOrientation(VISU::Plot3D::Orientation(VISU::Storable::FindValue(theMap,"myBasePlane").toInt()),
Storable::FindValue(theMap,"aRot[0]").toDouble(),
Storable::FindValue(theMap,"aRot[1]").toDouble());
SetContourPrs(VISU::Storable::FindValue(theMap,"myContourPrs").toInt());
SetNbOfContours(VISU::Storable::FindValue(theMap,"myNbOfContours").toInt());
- return ScalarMap_i::Restore(theMap);
+ return this;
}
void VISU::Plot3D_i::ToStream (std::ostringstream& theStr)
VISU::Storable* VISU::StreamLines_i::Restore(const Storable::TRestoringMap& theMap)
{
- DoHook();
- VISU::Storable* aStorable = DeformedShape_i::Restore(theMap);
+ TSuperClass::Restore(theMap);
double anIntegrationStep = VISU::Storable::FindValue(theMap,"myIntegrationStep").toDouble();
double aPropagationTime = VISU::Storable::FindValue(theMap,"myPropagationTime").toDouble();
VISU::StreamLines::Direction(aDirection));
mySourceEntry = VISU::Storable::FindValue(theMap,"mySourceEntry").latin1();
- return aStorable;
+ return this;
}
VISU::Storable* VISU::Vectors_i::Restore(const Storable::TRestoringMap& theMap)
{
- DoHook();
+ TSuperClass::Restore(theMap);
+
SetGlyphType(VISU::Vectors::GlyphType(VISU::Storable::FindValue(theMap,"myTypeGlyph").toInt()));
SetGlyphPos(VISU::Vectors::GlyphPos(VISU::Storable::FindValue(theMap,"myPosGlyph").toInt()));
SetLineWidth(VISU::Storable::FindValue(theMap,"myLineWidth").toDouble());
- return DeformedShape_i::Restore(theMap);
+ return this;
}