Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Instrument Control
NomadCommandSystem
Commits
9c8e93d4
Commit
9c8e93d4
authored
Apr 24, 2020
by
Locatelli
Browse files
Pass property names to ploty2 instead of ids
parent
e06c9ce4
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
9c8e93d4
* Pass property names to ploty2 instead of ids
4.0.7 23/04/2020
4.0.7 23/04/2020
-----
-----
* Merge ploty2 branch
* Merge ploty2 branch
...
...
src/main/java/fr/ill/ics/nscclient/ploty/PlotyInstance.java
View file @
9c8e93d4
...
@@ -186,35 +186,35 @@ public class PlotyInstance {
...
@@ -186,35 +186,35 @@ public class PlotyInstance {
plotRequester
.
send
(
messageFirst
.
toByteArray
());
plotRequester
.
send
(
messageFirst
.
toByteArray
());
}
}
public
void
plot
(
String
plotkey
,
List
<
String
>
key
,
List
<
String
>
legend_key
,
List
<
String
>
color
,
public
void
plot
(
String
controllerName
,
String
plotkey
,
List
<
String
>
key
,
List
<
String
>
legend_key
,
List
<
String
>
color
,
List
<
Integer
>
datax_
id
,
List
<
Integer
>
datay_id
,
List
<
Integer
>
dataz_id
,
List
<
Boolean
>
errorBars
,
List
<
String
>
datax_
prop_name
,
List
<
String
>
datay_prop_name
,
List
<
String
>
dataz_prop_name
,
List
<
Boolean
>
errorBars
,
String
windowTitle
,
String
plotTitle
,
String
xAxisTitle
,
String
yAxisTitle
,
Property
titleProperty
,
String
windowTitle
,
String
plotTitle
,
String
xAxisTitle
,
String
yAxisTitle
,
Property
titleProperty
,
Property
xAxisTitleProperty
,
Property
yAxisTitleProperty
,
List
<
Integer
>
dataState_
id
,
Property
xAxisTitleProperty
,
Property
yAxisTitleProperty
,
List
<
String
>
dataState_
prop_name
,
List
<
Integer
>
xSlice_
id
,
List
<
Integer
>
ySlice_id
,
List
<
Integer
>
zSlice_id
,
List
<
Integer
>
wSlice_id
,
List
<
String
>
xSlice_
prop_name
,
List
<
String
>
ySlice_prop_name
,
List
<
String
>
zSlice_prop_name
,
List
<
String
>
wSlice_prop_name
,
List
<
Integer
>
maxXSlice_
id
,
List
<
Integer
>
maxYSlice_id
,
List
<
Integer
>
maxZSlice_
id
,
List
<
String
>
maxXSlice_
prop_name
,
List
<
String
>
maxYSlice_prop_name
,
List
<
String
>
maxZSlice_
prop_name
,
List
<
Integer
>
maxWSlice_
id
,
List
<
Integer
>
xPhysicalSize_id
,
List
<
Integer
>
yPhysicalSize_
id
,
List
<
String
>
maxWSlice_
prop_name
,
List
<
String
>
xPhysicalSize_prop_name
,
List
<
String
>
yPhysicalSize_
prop_name
,
List
<
Integer
>
optimizationResultFound_
id
,
List
<
Integer
>
optimizationResultValue_
id
,
List
<
String
>
optimizationResultFound_
prop_name
,
List
<
String
>
optimizationResultValue_
prop_name
,
List
<
String
>
optimizationColor
,
List
<
Integer
>
optimizationFitFound_
id
,
List
<
String
>
optimizationColor
,
List
<
String
>
optimizationFitFound_
prop_name
,
List
<
Integer
>
optimizationFitArray_
id
,
List
<
String
>
optimizationFitColor
,
Integer
use_grid_
id
,
List
<
String
>
optimizationFitArray_
prop_name
,
List
<
String
>
optimizationFitColor
,
String
use_grid_
prop_name
,
Integer
use_log_
id
,
Integer
color_map_id
,
Integer
min_color_limit_id
,
Integer
max_color_limit_id
,
Integer
nbRois_id
,
List
<
Integer
>
roiX0_parent
Id
,
String
use_log_
prop_name
,
String
color_map_prop_name
,
String
min_color_limit_prop_name
,
String
max_color_limit_prop_name
,
String
nbRois_prop_name
,
List
<
String
>
roiX0_parent
PropName
,
List
<
Integer
>
roiY0_parent
Id
,
List
<
Integer
>
roiX1_parentId
,
List
<
Integer
>
roiY1_parent
Id
,
List
<
String
>
roiY0_parent
PropName
,
List
<
String
>
roiX1_parentPropName
,
List
<
String
>
roiY1_parent
PropName
,
List
<
Integer
>
roiSum_parent
Id
,
Integer
roiSelectedPlot_
id
,
Integer
roiSelectedRoi_
id
,
List
<
String
>
roiSum_parent
PropName
,
String
roiSelectedPlot_
prop_name
,
String
roiSelectedRoi_
prop_name
,
Integer
roiSelectedX0_
id
,
Integer
roiSelectedY0_id
,
Integer
roiSelectedX1_id
,
Integer
roiSelectedY1_
id
,
String
roiSelectedX0_
prop_name
,
String
roiSelectedY0_prop_name
,
String
roiSelectedX1_prop_name
,
String
roiSelectedY1_
prop_name
,
Integer
roiCommandAdd_
id
,
Integer
roiCommandRaz_id
,
Integer
countActivated_
id
)
{
String
roiCommandAdd_
prop_name
,
String
roiCommandRaz_prop_name
,
String
countActivated_
prop_name
)
{
if
(
initOk
==
false
)
return
;
if
(
initOk
==
false
)
return
;
in
t
title
id
=
0
;
Str
in
g
title
_prop_name
=
""
;
if
(
titleProperty
!=
null
)
{
if
(
titleProperty
!=
null
)
{
title
id
=
titleProperty
.
get
PropertyID
();
title
_prop_name
=
titleProperty
.
get
Name
();
}
}
in
t
xaxistitle
id
=
0
;
Str
in
g
xaxistitle
_prop_name
=
""
;
if
(
xAxisTitleProperty
!=
null
)
{
if
(
xAxisTitleProperty
!=
null
)
{
xaxistitle
id
=
xAxisTitleProperty
.
get
PropertyID
();
xaxistitle
_prop_name
=
xAxisTitleProperty
.
get
Name
();
}
}
in
t
yaxistitle
id
=
0
;
Str
in
g
yaxistitle
_prop_name
=
""
;
if
(
yAxisTitleProperty
!=
null
)
{
if
(
yAxisTitleProperty
!=
null
)
{
yaxistitle
id
=
yAxisTitleProperty
.
get
PropertyID
();
yaxistitle
_prop_name
=
yAxisTitleProperty
.
get
Name
();
}
}
...
@@ -223,58 +223,59 @@ public class PlotyInstance {
...
@@ -223,58 +223,59 @@ public class PlotyInstance {
build
();
build
();
PlotPropertyDataMessage
messageSecond
=
DataPlotMessages
.
PlotPropertyDataMessage
.
newBuilder
().
PlotPropertyDataMessage
messageSecond
=
DataPlotMessages
.
PlotPropertyDataMessage
.
newBuilder
().
setControllerName
(
controllerName
).
setPlotkey
(
plotkey
).
setPlotkey
(
plotkey
).
addAllKeys
(
key
).
addAllKeys
(
key
).
addAllLegendKeys
(
legend_key
).
addAllLegendKeys
(
legend_key
).
addAllColors
(
color
).
addAllColors
(
color
).
addAllDatax
Ids
(
datax_id
).
addAllDatax
PropName
(
datax_prop_name
).
addAllDatay
Ids
(
datay_id
).
addAllDatay
PropName
(
datay_prop_name
).
addAllDataz
Ids
(
dataz_id
).
addAllDataz
PropName
(
dataz_prop_name
).
addAllPlottype
Id
(
dataState_
id
).
addAllPlottype
PropName
(
dataState_
prop_name
).
addAllX
Id
(
xSlice_id
).
addAllX
PropName
(
xSlice_prop_name
).
addAllY
Id
(
ySlice_id
).
addAllY
PropName
(
ySlice_prop_name
).
addAllChannel
Id
(
zSlice_id
).
addAllChannel
PropName
(
zSlice_prop_name
).
addAllSlice
Id
(
wSlice_id
).
addAllSlice
PropName
(
wSlice_prop_name
).
addAllMaxX
Id
(
maxXSlice_
id
).
addAllMaxX
PropName
(
maxXSlice_
prop_name
).
addAllMaxY
Id
(
maxYSlice_
id
).
addAllMaxY
PropName
(
maxYSlice_
prop_name
).
addAllMaxChannel
Id
(
maxZSlice_
id
).
addAllMaxChannel
PropName
(
maxZSlice_
prop_name
).
addAllMaxSlice
Id
(
maxWSlice_
id
).
addAllMaxSlice
PropName
(
maxWSlice_
prop_name
).
addAllXphysicalSize
Id
(
xPhysicalSize_
id
).
addAllXphysicalSize
PropName
(
xPhysicalSize_
prop_name
).
addAllYphysicalSize
Id
(
yPhysicalSize_
id
).
addAllYphysicalSize
PropName
(
yPhysicalSize_
prop_name
).
addAllErrorBars
(
errorBars
).
addAllErrorBars
(
errorBars
).
addAllOptimizationResultFound
Id
(
optimizationResultFound_
id
).
addAllOptimizationResultFound
PropName
(
optimizationResultFound_
prop_name
).
addAllOptimizationResultX
Id
(
optimizationResultValue_
id
).
addAllOptimizationResultX
PropName
(
optimizationResultValue_
prop_name
).
addAllOptimizationResultColor
(
optimizationColor
).
addAllOptimizationResultColor
(
optimizationColor
).
addAllOptimizationFitFound
Id
(
optimizationFitFound_
id
).
addAllOptimizationFitFound
PropName
(
optimizationFitFound_
prop_name
).
addAllOptimizationFitY
Id
(
optimizationFitArray_
id
).
addAllOptimizationFitY
PropName
(
optimizationFitArray_
prop_name
).
addAllOptimizationFitColor
(
optimizationFitColor
).
addAllOptimizationFitColor
(
optimizationFitColor
).
setUseGrid
Id
(
use_grid_
id
).
setUseGrid
PropName
(
use_grid_
prop_name
).
setUseLog
Id
(
use_log_
id
).
setUseLog
PropName
(
use_log_
prop_name
).
setColorMap
Id
(
color_map_
id
).
setColorMap
PropName
(
color_map_
prop_name
).
setMinColorLimit
Id
(
min_color_limit_
id
).
setMinColorLimit
PropName
(
min_color_limit_
prop_name
).
setMaxColorLimit
Id
(
max_color_limit_
id
).
setMaxColorLimit
PropName
(
max_color_limit_
prop_name
).
setWindowTitle
(
windowTitle
).
setWindowTitle
(
windowTitle
).
setPlotTitle
(
plotTitle
).
setPlotTitle
(
plotTitle
).
setXaxisTitle
(
yAxisTitle
).
setXaxisTitle
(
yAxisTitle
).
setYaxisTitle
(
yAxisTitle
).
setYaxisTitle
(
yAxisTitle
).
setTitle
Id
(
titleid
).
setTitle
PropName
(
title_prop_name
).
setXaxisTitle
Id
(
xaxistitle
id
).
setXaxisTitle
PropName
(
xaxistitle
_prop_name
).
setYaxisTitle
Id
(
yaxistitle
id
).
setYaxisTitle
PropName
(
yaxistitle
_prop_name
).
setNbRois
Id
(
nbRois_id
).
setNbRois
PropName
(
nbRois_prop_name
).
addAllX0Parent
Id
(
roiX0_parent
Id
).
addAllX0Parent
PropName
(
roiX0_parent
PropName
).
addAllY0Parent
Id
(
roiY0_parent
Id
).
addAllY0Parent
PropName
(
roiY0_parent
PropName
).
addAllX1Parent
Id
(
roiX1_parent
Id
).
addAllX1Parent
PropName
(
roiX1_parent
PropName
).
addAllY1Parent
Id
(
roiY1_parent
Id
).
addAllY1Parent
PropName
(
roiY1_parent
PropName
).
addAllSumParent
Id
(
roiSum_parent
Id
).
addAllSumParent
PropName
(
roiSum_parent
PropName
).
setSelectedPlot
Id
(
roiSelectedPlot_
id
).
setSelectedPlot
PropName
(
roiSelectedPlot_
prop_name
).
setSelectedRoi
Id
(
roiSelectedRoi_
id
).
setSelectedRoi
PropName
(
roiSelectedRoi_
prop_name
).
setSelectedX0
Id
(
roiSelectedX0_
id
).
setSelectedX0
PropName
(
roiSelectedX0_
prop_name
).
setSelectedY0
Id
(
roiSelectedY0_
id
).
setSelectedY0
PropName
(
roiSelectedY0_
prop_name
).
setSelectedX1
Id
(
roiSelectedX1_
id
).
setSelectedX1
PropName
(
roiSelectedX1_
prop_name
).
setSelectedY1
Id
(
roiSelectedY1_
id
).
setSelectedY1
PropName
(
roiSelectedY1_
prop_name
).
setCommandRoiAdd
Id
(
roiCommandAdd_
id
).
setCommandRoiAdd
PropName
(
roiCommandAdd_
prop_name
).
setCommandRoiRaz
Id
(
roiCommandRaz_
id
).
setCommandRoiRaz
PropName
(
roiCommandRaz_
prop_name
).
setCountActivated
Id
(
countActivated_
id
).
setCountActivated
PropName
(
countActivated_
prop_name
).
build
();
build
();
plotRequester
.
sendTwoParts
(
messageFirst
.
toByteArray
(),
messageSecond
.
toByteArray
());
plotRequester
.
sendTwoParts
(
messageFirst
.
toByteArray
(),
messageSecond
.
toByteArray
());
...
...
src/main/java/fr/ill/ics/ploty/DataPlotMessages.java
View file @
9c8e93d4
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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