Commit 58b353d59a820e2650cc2db235aeadbdaff46efb
1 parent
f6eaec4e
Exists in
master
and in
100 other branches
Set to version 3.4.0
Showing
6 changed files
with
17 additions
and
24 deletions
Show diff stats
CMakeLists.txt
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.6) | @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.6) | ||
3 | PROJECT(AMDA-Kernel) | 3 | PROJECT(AMDA-Kernel) |
4 | 4 | ||
5 | SET(CPACK_PACKAGE_VERSION_MAJOR "3") | 5 | SET(CPACK_PACKAGE_VERSION_MAJOR "3") |
6 | -SET(CPACK_PACKAGE_VERSION_MINOR "3") | 6 | +SET(CPACK_PACKAGE_VERSION_MINOR "4") |
7 | SET(CPACK_PACKAGE_VERSION_PATCH "0") | 7 | SET(CPACK_PACKAGE_VERSION_PATCH "0") |
8 | 8 | ||
9 | # configure a header file to pass some of the CMake settings to the source code | 9 | # configure a header file to pass some of the CMake settings to the source code |
sonar-project.properties
@@ -15,8 +15,8 @@ sonar.sourceEncoding=UTF-8 | @@ -15,8 +15,8 @@ sonar.sourceEncoding=UTF-8 | ||
15 | # required metadata | 15 | # required metadata |
16 | sonar.projectKey=AKKA:AMDA-Kernel | 16 | sonar.projectKey=AKKA:AMDA-Kernel |
17 | sonar.projectName=AMDA-Kernel | 17 | sonar.projectName=AMDA-Kernel |
18 | -sonar.projectVersion=3.3.0 | ||
19 | -sonar.branch=3.3 | 18 | +sonar.projectVersion=3.4.0 |
19 | +sonar.branch=3.4 | ||
20 | 20 | ||
21 | # path to source directories (required) | 21 | # path to source directories (required) |
22 | #sources=/var/lib/jenkins/.jenkins/workspace/AMDA_FitnesseTest/AMDA_Kernel | 22 | #sources=/var/lib/jenkins/.jenkins/workspace/AMDA_FitnesseTest/AMDA_Kernel |
src/Doxyfile
@@ -32,7 +32,7 @@ PROJECT_NAME = AMDA-Kernel | @@ -32,7 +32,7 @@ PROJECT_NAME = AMDA-Kernel | ||
32 | # This could be handy for archiving the generated documentation or | 32 | # This could be handy for archiving the generated documentation or |
33 | # if some version control system is used. | 33 | # if some version control system is used. |
34 | 34 | ||
35 | -PROJECT_NUMBER = V3.3.0 | 35 | +PROJECT_NUMBER = V3.4.0 |
36 | 36 | ||
37 | # Using the PROJECT_BRIEF tag one can provide an optional one line description | 37 | # Using the PROJECT_BRIEF tag one can provide an optional one line description |
38 | # for a project that appears at the top of each page and should give viewer | 38 | # for a project that appears at the top of each page and should give viewer |
src/ParamOutputImpl/Plot/PanelPlotOutput.cc
@@ -111,7 +111,7 @@ void PanelPlotOutput::calculatePlotArea(Bounds& bounds_) { | @@ -111,7 +111,7 @@ void PanelPlotOutput::calculatePlotArea(Bounds& bounds_) { | ||
111 | boost::shared_ptr<Axis> lAxis = it->second; | 111 | boost::shared_ptr<Axis> lAxis = it->second; |
112 | if ((lAxis == nullptr) || (lAxis->_isZAxis)) | 112 | if ((lAxis == nullptr) || (lAxis->_isZAxis)) |
113 | continue; | 113 | continue; |
114 | - reserveSpaceForAxis(lAxis, topSpace, bottomSpace, leftSpace, rightSpace); | 114 | + reserveSpaceForAxis(lAxis, titleHeight, topSpace, bottomSpace, leftSpace, rightSpace); |
115 | } | 115 | } |
116 | 116 | ||
117 | for (Axes::iterator it = _panel->_axes.begin(); it != _panel->_axes.end(); ++it) | 117 | for (Axes::iterator it = _panel->_axes.begin(); it != _panel->_axes.end(); ++it) |
@@ -120,7 +120,7 @@ void PanelPlotOutput::calculatePlotArea(Bounds& bounds_) { | @@ -120,7 +120,7 @@ void PanelPlotOutput::calculatePlotArea(Bounds& bounds_) { | ||
120 | boost::shared_ptr<Axis> lAxis = it->second; | 120 | boost::shared_ptr<Axis> lAxis = it->second; |
121 | if ((lAxis == nullptr) || (!lAxis->_isZAxis)) | 121 | if ((lAxis == nullptr) || (!lAxis->_isZAxis)) |
122 | continue; | 122 | continue; |
123 | - reserveSpaceForAxis(lAxis, topSpace, bottomSpace, leftSpace, rightSpace); | 123 | + reserveSpaceForAxis(lAxis, titleHeight, topSpace, bottomSpace, leftSpace, rightSpace); |
124 | } | 124 | } |
125 | 125 | ||
126 | // Get character size for panel. | 126 | // Get character size for panel. |
@@ -129,16 +129,6 @@ void PanelPlotOutput::calculatePlotArea(Bounds& bounds_) { | @@ -129,16 +129,6 @@ void PanelPlotOutput::calculatePlotArea(Bounds& bounds_) { | ||
129 | double panelCharWidth = lCharSizePanel.first; | 129 | double panelCharWidth = lCharSizePanel.first; |
130 | double panelCharHeight = lCharSizePanel.second; | 130 | double panelCharHeight = lCharSizePanel.second; |
131 | 131 | ||
132 | - int topTickMarkCharHeight = 0; | ||
133 | - int bottomTickMarkCharHeight = 0; | ||
134 | - int leftTickMarkCharWidth = 0; | ||
135 | - int rightTickMarkCharWidth = 0; | ||
136 | - | ||
137 | - float topTickMarkSpace = 0; | ||
138 | - float bottomTickMarkSpace = 0; | ||
139 | - float leftTickMarkSpace = 0; | ||
140 | - float rightTickMarkSpace = 0; | ||
141 | - | ||
142 | //add params legend right space when outside | 132 | //add params legend right space when outside |
143 | if (!_panel->_paramsLegendProperties.getLegendLines().empty() && | 133 | if (!_panel->_paramsLegendProperties.getLegendLines().empty() && |
144 | _panel->_paramsLegendProperties.isVisible() && | 134 | _panel->_paramsLegendProperties.isVisible() && |
@@ -221,7 +211,7 @@ void PanelPlotOutput::calculatePlotArea(Bounds& bounds_) { | @@ -221,7 +211,7 @@ void PanelPlotOutput::calculatePlotArea(Bounds& bounds_) { | ||
221 | bounds_._height -= (bottomSpace + topSpace); | 211 | bounds_._height -= (bottomSpace + topSpace); |
222 | } | 212 | } |
223 | 213 | ||
224 | -void PanelPlotOutput::reserveSpaceForAxis (boost::shared_ptr<Axis>& pAxis, double& topSpace, double& bottomSpace, double& leftSpace, double& rightSpace) { | 214 | +void PanelPlotOutput::reserveSpaceForAxis (boost::shared_ptr<Axis>& pAxis, double titleHeight, double& topSpace, double& bottomSpace, double& leftSpace, double& rightSpace) { |
225 | if (pAxis == nullptr || !pAxis->_used || !pAxis->_visible) | 215 | if (pAxis == nullptr || !pAxis->_used || !pAxis->_visible) |
226 | return; | 216 | return; |
227 | 217 | ||
@@ -263,7 +253,10 @@ void PanelPlotOutput::reserveSpaceForAxis (boost::shared_ptr<Axis>& pAxis, doubl | @@ -263,7 +253,10 @@ void PanelPlotOutput::reserveSpaceForAxis (boost::shared_ptr<Axis>& pAxis, doubl | ||
263 | // Reserve space for legend | 253 | // Reserve space for legend |
264 | if ((pAxis->_showLegend == true) && (nbLegendRows != 0)) { | 254 | if ((pAxis->_showLegend == true) && (nbLegendRows != 0)) { |
265 | bottomSpace += PlPlotUtil::LINE_SPACE_TITLE * legendCharSizePanel.second; | 255 | bottomSpace += PlPlotUtil::LINE_SPACE_TITLE * legendCharSizePanel.second; |
266 | - pAxis->setLegendOffset(bottomSpace + 0.5 * legendCharSizePanel.second); | 256 | + double legendOffset = bottomSpace + 0.5 * legendCharSizePanel.second; |
257 | + if (!_panel->getTitle()->_text.empty() && (_panel->_titlePosition == PlotCommon::Position::POS_BOTTOM)) | ||
258 | + legendOffset -= titleHeight; | ||
259 | + pAxis->setLegendOffset(legendOffset); | ||
267 | bottomSpace += (lAxisLegendRowInfo->size() + PlPlotUtil::LINE_SPACE_TITLE * (nbLegendRows + 1)) * legendCharSizePanel.second; | 260 | bottomSpace += (lAxisLegendRowInfo->size() + PlPlotUtil::LINE_SPACE_TITLE * (nbLegendRows + 1)) * legendCharSizePanel.second; |
268 | } | 261 | } |
269 | 262 | ||
@@ -291,7 +284,10 @@ void PanelPlotOutput::reserveSpaceForAxis (boost::shared_ptr<Axis>& pAxis, doubl | @@ -291,7 +284,10 @@ void PanelPlotOutput::reserveSpaceForAxis (boost::shared_ptr<Axis>& pAxis, doubl | ||
291 | // Reserve space for legend | 284 | // Reserve space for legend |
292 | if ((pAxis->_showLegend == true) && (nbLegendRows != 0)) { | 285 | if ((pAxis->_showLegend == true) && (nbLegendRows != 0)) { |
293 | topSpace += PlPlotUtil::LINE_SPACE_TITLE * legendCharSizePanel.second; | 286 | topSpace += PlPlotUtil::LINE_SPACE_TITLE * legendCharSizePanel.second; |
294 | - pAxis->setLegendOffset(topSpace - 0.5 * legendCharSizePanel.second); | 287 | + double legendOffset = topSpace - 0.5 * legendCharSizePanel.second; |
288 | + if (!_panel->getTitle()->_text.empty() && (_panel->_titlePosition == PlotCommon::Position::POS_TOP)) | ||
289 | + legendOffset += titleHeight; | ||
290 | + pAxis->setLegendOffset(legendOffset); | ||
295 | topSpace += (nbLegendRows + PlPlotUtil::LINE_SPACE_TITLE * (nbLegendRows + 1)) * legendCharSizePanel.second; | 291 | topSpace += (nbLegendRows + PlPlotUtil::LINE_SPACE_TITLE * (nbLegendRows + 1)) * legendCharSizePanel.second; |
296 | } | 292 | } |
297 | 293 | ||
@@ -418,9 +414,6 @@ void PanelPlotOutput::computePanelPlotXYRatio (void) { | @@ -418,9 +414,6 @@ void PanelPlotOutput::computePanelPlotXYRatio (void) { | ||
418 | void PanelPlotOutput::drawLegends(boost::shared_ptr<Axis>& pAxis, PlWindow& pPlWindow, Bounds& pPlotAreaSize) { | 414 | void PanelPlotOutput::drawLegends(boost::shared_ptr<Axis>& pAxis, PlWindow& pPlWindow, Bounds& pPlotAreaSize) { |
419 | LOG4CXX_DEBUG(gLogger, "Drawing legend for axis "<< pAxis->_id << " : " << pAxis->_legend._text); | 415 | LOG4CXX_DEBUG(gLogger, "Drawing legend for axis "<< pAxis->_id << " : " << pAxis->_legend._text); |
420 | 416 | ||
421 | - // Get axis offset in case of multi-axes | ||
422 | - double axisOffset = pAxis->getAxisOffset(); | ||
423 | - | ||
424 | // Set legend font | 417 | // Set legend font |
425 | Font legendFont(pAxis->getLegendFont(this->_panel.get())); | 418 | Font legendFont(pAxis->getLegendFont(this->_panel.get())); |
426 | PlPlotUtil::setPlFont(legendFont, &pAxis->_legend._style); | 419 | PlPlotUtil::setPlFont(legendFont, &pAxis->_legend._style); |
src/ParamOutputImpl/Plot/PanelPlotOutput.hh
@@ -528,7 +528,7 @@ private: | @@ -528,7 +528,7 @@ private: | ||
528 | */ | 528 | */ |
529 | int _automaticSerieColorCursor; | 529 | int _automaticSerieColorCursor; |
530 | 530 | ||
531 | - void reserveSpaceForAxis (boost::shared_ptr<Axis>& pAxis, double& topSpace, double& bottomSpace, double& leftSpace, double& rightSpace); | 531 | + void reserveSpaceForAxis (boost::shared_ptr<Axis>& pAxis, double titleHeight, double& topSpace, double& bottomSpace, double& leftSpace, double& rightSpace); |
532 | 532 | ||
533 | void reserveSpaceForTextLegend (boost::shared_ptr<TextLegendProperties>& pTextLegendProp, double titleHeight, double& topSpace, double& bottomSpace, double& leftSpace, double& rightSpace); | 533 | void reserveSpaceForTextLegend (boost::shared_ptr<TextLegendProperties>& pTextLegendProp, double titleHeight, double& topSpace, double& bottomSpace, double& leftSpace, double& rightSpace); |
534 | }; | 534 | }; |
src/amdaXMLRequestorTool/Main.cc
@@ -69,7 +69,7 @@ | @@ -69,7 +69,7 @@ | ||
69 | * - VOTable format support | 69 | * - VOTable format support |
70 | * | 70 | * |
71 | *@section References | 71 | *@section References |
72 | - *@version 3.3.0 | 72 | + *@version 3.4.0 |
73 | *@authors AKKA IS, CS. | 73 | *@authors AKKA IS, CS. |
74 | */ | 74 | */ |
75 | #include <iostream> | 75 | #include <iostream> |