myLabelColor[1] = VISU::Storable::FindValue(theMap,"myLabelColor[1]").toFloat();
myLabelColor[2] = VISU::Storable::FindValue(theMap,"myLabelColor[2]").toFloat();
+ bool isFound = false;
+ QString x,y,z;
+
+ x = VISU::Storable::FindValue(theMap,"myOffset[0]",&isFound);
+ y = VISU::Storable::FindValue(theMap,"myOffset[1]",&isFound);
+ z = VISU::Storable::FindValue(theMap,"myOffset[2]",&isFound);
+ if(isFound) {
+ myOffset[0] = x.toFloat();
+ myOffset[1] = y.toFloat();
+ myOffset[2] = z.toFloat();
+ }
+
myParamsTime.Modified();
return Build( true );
}
Storable::DataToStream( theStr, "myLabelColor[0]", myLabelColor[0] );
Storable::DataToStream( theStr, "myLabelColor[1]", myLabelColor[1] );
Storable::DataToStream( theStr, "myLabelColor[2]", myLabelColor[2] );
+
+ Storable::DataToStream( theStr, "myOffset[0]", myOffset[0] );
+ Storable::DataToStream( theStr, "myOffset[1]", myOffset[1] );
+ Storable::DataToStream( theStr, "myOffset[2]", myOffset[2] );
}
/*!
Called from engine to restore table from the file