Commit 86f623ff authored by Mathieu Tillet's avatar Mathieu Tillet
Browse files

Warn future developers not to modify the save shapes to table function

parent ddfaa736
......@@ -497,6 +497,9 @@ std::string Projection3D::saveToProject() const {
void Projection3D::saveShapesToTableWorkspace() {
m_maskShapes.saveToTableWorkspace();
// WARNING: Q1DWeighted heavily depends on the format of this function's
// output.
// Modify with great caution.
std::shared_ptr<Mantid::API::ITableWorkspace> table =
AnalysisDataService::Instance()
.retrieveWS<typename Mantid::API::ITableWorkspace>(
......
......@@ -1200,6 +1200,9 @@ Shape2D *Shape2DSector::loadFromProject(const std::string &lines) {
* @return a string representing the state of the sector
*/
std::string Shape2DSector::saveToProject() const {
// WARNING: Q1DWeighted heavily depends on the format of this function's
// output (via "Save Shapes to table" in the instrument viewer draw tab).
// Modify with great caution.
API::TSVSerialiser tsv;
tsv.writeLine("Type") << "sector";
......
......@@ -501,6 +501,9 @@ void Viewport::loadFromProject(const std::string &lines) {
}
std::string Viewport::saveToProject() const {
// WARNING: Q1DWeighted heavily depends on the format of this function's
// output (via "Save Shapes to table" in the instrument viewer draw tab).
// Modify with great caution.
API::TSVSerialiser tsv;
tsv.writeLine("Translation") << m_xTrans << m_yTrans;
tsv.writeLine("Zoom") << m_zoomFactor;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment