Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
86f623ff
Commit
86f623ff
authored
Jan 26, 2021
by
Mathieu Tillet
Browse files
Warn future developers not to modify the save shapes to table function
parent
ddfaa736
Changes
3
Hide whitespace changes
Inline
Side-by-side
qt/widgets/instrumentview/src/Projection3D.cpp
View file @
86f623ff
...
...
@@ -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
>
(
...
...
qt/widgets/instrumentview/src/Shape2D.cpp
View file @
86f623ff
...
...
@@ -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"
;
...
...
qt/widgets/instrumentview/src/Viewport.cpp
View file @
86f623ff
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment