VISU::Storable* VISU::Plot3D_i::Restore (const Storable::TRestoringMap& theMap)
{
DoHook();
- SetNbOfContours(VISU::Storable::FindValue(theMap,"myNbOfContours").toInt());
- SetScaleFactor(VISU::Storable::FindValue(theMap,"myScaleFactor").toDouble());
SetOrientation(VISU::Plot3D::Orientation(VISU::Storable::FindValue(theMap,"myBasePlane").toInt()),
Storable::FindValue(theMap,"aRot[0]").toDouble(),
Storable::FindValue(theMap,"aRot[1]").toDouble());
SetPlanePosition(VISU::Storable::FindValue(theMap,"myPlanePosition").toDouble(),
VISU::Storable::FindValue(theMap,"myPlaneCondition").toInt());
+ SetScaleFactor(VISU::Storable::FindValue(theMap,"myScaleFactor").toDouble());
+ SetContourPrs(VISU::Storable::FindValue(theMap,"myContourPrs").toInt());
+ SetNbOfContours(VISU::Storable::FindValue(theMap,"myNbOfContours").toInt());
return ScalarMap_i::Restore(theMap);
}
{
ScalarMap_i::ToStream(theStr);
- Storable::DataToStream(theStr, "myNbOfContours", int(GetNbOfContours()));
- Storable::DataToStream(theStr, "myScaleFactor", GetScaleFactor());
Storable::DataToStream(theStr, "myBasePlane", int(GetOrientationType()));
- Storable::DataToStream(theStr, "aRot[0]", 0);
- Storable::DataToStream(theStr, "aRot[1]", 0);
+ Storable::DataToStream(theStr, "aRot[0]", GetRotateX());
+ Storable::DataToStream(theStr, "aRot[1]", GetRotateY());
Storable::DataToStream(theStr, "myPlanePosition", GetPlanePosition());
Storable::DataToStream(theStr, "myPlaneCondition", int(IsPositionRelative()));
+ Storable::DataToStream(theStr, "myScaleFactor", GetScaleFactor());
+ Storable::DataToStream(theStr, "myContourPrs", int(GetIsContourPrs()));
+ Storable::DataToStream(theStr, "myNbOfContours", int(GetNbOfContours()));
}
VISU::Plot3D_i::~Plot3D_i(){