From 3366bfd89a2fac0312a200a80695ccbcd0dbe7f5 Mon Sep 17 00:00:00 2001 From: Sylvie Lamy-Thepaut Date: Wed, 8 Jun 2022 10:57:15 +0100 Subject: [PATCH] Cleaning BoxPlot Visualiser [MAGP-616] --- src/attributes/BoxPlotBoxAttributes.cc | 146 ----------------- src/attributes/BoxPlotBoxAttributes.h | 69 -------- src/attributes/BoxPlotBoxBorderAttributes.cc | 121 -------------- src/attributes/BoxPlotBoxBorderAttributes.h | 67 -------- src/attributes/BoxPlotBoxBorderWrapper.cc | 91 ---------- src/attributes/BoxPlotBoxBorderWrapper.h | 93 ----------- src/attributes/BoxPlotBoxWrapper.cc | 155 ------------------ src/attributes/BoxPlotBoxWrapper.h | 93 ----------- src/attributes/BoxPlotMedianAttributes.cc | 121 -------------- src/attributes/BoxPlotMedianAttributes.h | 67 -------- src/attributes/BoxPlotMedianWrapper.cc | 91 ---------- src/attributes/BoxPlotMedianWrapper.h | 93 ----------- .../BoxPlotWhiskerBorderAttributes.cc | 123 -------------- .../BoxPlotWhiskerBorderAttributes.h | 67 -------- src/attributes/BoxPlotWhiskerBorderWrapper.cc | 84 ---------- src/attributes/BoxPlotWhiskerBorderWrapper.h | 91 ---------- src/attributes/BoxPlotWhiskerBoxAttributes.cc | 132 --------------- src/attributes/BoxPlotWhiskerBoxAttributes.h | 68 -------- src/attributes/BoxPlotWhiskerBoxWrapper.cc | 116 ------------- src/attributes/BoxPlotWhiskerBoxWrapper.h | 92 ----------- .../BoxPlotWhiskerLineAttributes.cc | 122 -------------- src/attributes/BoxPlotWhiskerLineAttributes.h | 67 -------- src/attributes/BoxPlotWhiskerLineWrapper.cc | 84 ---------- src/attributes/BoxPlotWhiskerLineWrapper.h | 91 ---------- src/attributes/NoBoxPlotAttributes.cc | 99 ----------- src/attributes/NoBoxPlotAttributes.h | 63 ------- src/attributes/NoBoxPlotBoxAttributes.cc | 99 ----------- src/attributes/NoBoxPlotBoxAttributes.h | 63 ------- .../NoBoxPlotBoxBorderAttributes.cc | 100 ----------- src/attributes/NoBoxPlotBoxBorderAttributes.h | 63 ------- src/attributes/NoBoxPlotBoxBorderWrapper.cc | 67 -------- src/attributes/NoBoxPlotBoxBorderWrapper.h | 91 ---------- src/attributes/NoBoxPlotBoxWrapper.cc | 67 -------- src/attributes/NoBoxPlotBoxWrapper.h | 91 ---------- src/attributes/NoBoxPlotMedianAttributes.cc | 100 ----------- src/attributes/NoBoxPlotMedianAttributes.h | 63 ------- src/attributes/NoBoxPlotMedianWrapper.cc | 67 -------- src/attributes/NoBoxPlotMedianWrapper.h | 91 ---------- src/attributes/NoBoxPlotWhiskerAttributes.cc | 99 ----------- src/attributes/NoBoxPlotWhiskerAttributes.h | 63 ------- src/attributes/NoBoxPlotWhiskerWrapper.cc | 67 -------- src/attributes/NoBoxPlotWhiskerWrapper.h | 91 ---------- src/attributes/NoBoxPlotWrapper.cc | 67 -------- src/attributes/NoBoxPlotWrapper.h | 91 ---------- src/params/BoxPlotBox.xml | 51 ------ src/params/BoxPlotBoxBorder.xml | 38 ----- src/params/BoxPlotMedian.xml | 38 ----- src/params/BoxPlotWhiskerBorder.xml | 33 ---- src/params/BoxPlotWhiskerBox.xml | 36 ---- src/params/BoxPlotWhiskerLine.xml | 33 ---- src/visualisers/BoxPlotVisualiser.cc | 2 +- 51 files changed, 1 insertion(+), 4176 deletions(-) delete mode 100644 src/attributes/BoxPlotBoxAttributes.cc delete mode 100644 src/attributes/BoxPlotBoxAttributes.h delete mode 100644 src/attributes/BoxPlotBoxBorderAttributes.cc delete mode 100644 src/attributes/BoxPlotBoxBorderAttributes.h delete mode 100644 src/attributes/BoxPlotBoxBorderWrapper.cc delete mode 100644 src/attributes/BoxPlotBoxBorderWrapper.h delete mode 100644 src/attributes/BoxPlotBoxWrapper.cc delete mode 100644 src/attributes/BoxPlotBoxWrapper.h delete mode 100644 src/attributes/BoxPlotMedianAttributes.cc delete mode 100644 src/attributes/BoxPlotMedianAttributes.h delete mode 100644 src/attributes/BoxPlotMedianWrapper.cc delete mode 100644 src/attributes/BoxPlotMedianWrapper.h delete mode 100644 src/attributes/BoxPlotWhiskerBorderAttributes.cc delete mode 100644 src/attributes/BoxPlotWhiskerBorderAttributes.h delete mode 100644 src/attributes/BoxPlotWhiskerBorderWrapper.cc delete mode 100644 src/attributes/BoxPlotWhiskerBorderWrapper.h delete mode 100644 src/attributes/BoxPlotWhiskerBoxAttributes.cc delete mode 100644 src/attributes/BoxPlotWhiskerBoxAttributes.h delete mode 100644 src/attributes/BoxPlotWhiskerBoxWrapper.cc delete mode 100644 src/attributes/BoxPlotWhiskerBoxWrapper.h delete mode 100644 src/attributes/BoxPlotWhiskerLineAttributes.cc delete mode 100644 src/attributes/BoxPlotWhiskerLineAttributes.h delete mode 100644 src/attributes/BoxPlotWhiskerLineWrapper.cc delete mode 100644 src/attributes/BoxPlotWhiskerLineWrapper.h delete mode 100644 src/attributes/NoBoxPlotAttributes.cc delete mode 100644 src/attributes/NoBoxPlotAttributes.h delete mode 100644 src/attributes/NoBoxPlotBoxAttributes.cc delete mode 100644 src/attributes/NoBoxPlotBoxAttributes.h delete mode 100644 src/attributes/NoBoxPlotBoxBorderAttributes.cc delete mode 100644 src/attributes/NoBoxPlotBoxBorderAttributes.h delete mode 100644 src/attributes/NoBoxPlotBoxBorderWrapper.cc delete mode 100644 src/attributes/NoBoxPlotBoxBorderWrapper.h delete mode 100644 src/attributes/NoBoxPlotBoxWrapper.cc delete mode 100644 src/attributes/NoBoxPlotBoxWrapper.h delete mode 100644 src/attributes/NoBoxPlotMedianAttributes.cc delete mode 100644 src/attributes/NoBoxPlotMedianAttributes.h delete mode 100644 src/attributes/NoBoxPlotMedianWrapper.cc delete mode 100644 src/attributes/NoBoxPlotMedianWrapper.h delete mode 100644 src/attributes/NoBoxPlotWhiskerAttributes.cc delete mode 100644 src/attributes/NoBoxPlotWhiskerAttributes.h delete mode 100644 src/attributes/NoBoxPlotWhiskerWrapper.cc delete mode 100644 src/attributes/NoBoxPlotWhiskerWrapper.h delete mode 100644 src/attributes/NoBoxPlotWrapper.cc delete mode 100644 src/attributes/NoBoxPlotWrapper.h delete mode 100644 src/params/BoxPlotBox.xml delete mode 100644 src/params/BoxPlotBoxBorder.xml delete mode 100644 src/params/BoxPlotMedian.xml delete mode 100644 src/params/BoxPlotWhiskerBorder.xml delete mode 100644 src/params/BoxPlotWhiskerBox.xml delete mode 100644 src/params/BoxPlotWhiskerLine.xml diff --git a/src/attributes/BoxPlotBoxAttributes.cc b/src/attributes/BoxPlotBoxAttributes.cc deleted file mode 100644 index 93a26a82e..000000000 --- a/src/attributes/BoxPlotBoxAttributes.cc +++ /dev/null @@ -1,146 +0,0 @@ - -/****************************** LICENSE ******************************* - - * (C) Copyright 1996-2017 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \\file BoxPlotBoxAttributes.h - \\brief Definition of BoxPlotBox Attributes class. - - This file is automatically generated. - Do Not Edit! -*/ - -#include "BoxPlotBoxAttributes.h" -#include "MagicsParameter.h" -#include "ParameterSettings.h" - -using namespace magics; - -BoxPlotBoxAttributes::BoxPlotBoxAttributes(): - width_(ParameterManager::getDouble("boxplot_box_width")) - , - colour_(MagTranslator().magics("boxplot_box_colour")), - border_(MagTranslator().magics("boxplot_box_border")), - median_(MagTranslator().magics("boxplot_median")) - -{ -} - - -BoxPlotBoxAttributes::~BoxPlotBoxAttributes() -{ - -} - - -void BoxPlotBoxAttributes::set(const std::map& params) -{ - vector prefix(2); - int i = 0; - prefix[i++] = "boxplot"; - prefix[i++] = "boxplot_box"; - - setAttribute(prefix, "boxplot_box_width", width_, params); - - setMember(prefix, "boxplot_box_colour", colour_, params); - setMember(prefix, "boxplot_box_border", border_, params); - setMember(prefix, "boxplot_median", median_, params); - -} - -void BoxPlotBoxAttributes::copy(const BoxPlotBoxAttributes& other) -{ - width_ = other.width_; - colour_ = unique_ptr(other.colour_->clone()); - border_ = unique_ptr(other.border_->clone()); - median_ = unique_ptr(other.median_->clone()); - -} - - -bool BoxPlotBoxAttributes::accept(const string& node) -{ - - if ( magCompare(node, "box") ) - return true; - if ( acceptNode(node, border_) ) - return true; - if ( acceptNode(node, median_) ) - return true; - - return false; -} - -void BoxPlotBoxAttributes::set(const XmlNode& node) -{ - bool apply = false; - - if ( this->accept(node.name()) == false ) - return; - - if ( magCompare(node.name(), "box") ) - apply = true; - - - if ( apply ) - set(node.attributes()); - else { - setMember(node.name(), border_, node); - setMember(node.name(), median_, node); - - } - for (auto &elt : node.elements()) - { - setMember(elt->name(), border_, *elt); - setMember(elt->name(), median_, *elt); - - } -} - -void BoxPlotBoxAttributes::print(ostream& out) const -{ - out << "Attributes["; - out << " width = " << width_; - out << " colour = " << *colour_; - out << " border = " << *border_; - out << " median = " << *median_; - - out << "]" << "\n"; -} - -void BoxPlotBoxAttributes::toxml(ostream& out) const -{ - out << "\"box\""; - out << ", \"boxplot_box_width\":"; - niceprint(out,width_); - out << ", \"boxplot_box_colour\":"; - niceprint(out, *colour_); - out << ", \"boxplot_box_border\":"; - border_->toxml(out); - out << ", \"boxplot_median\":"; - median_->toxml(out); - -} - -static MagicsParameter boxplot_box_width("boxplot_box_width", 1.0); -static MagicsParameter boxplot_box_colour("boxplot_box_colour", "sky"); -static MagicsParameter boxplot_box_border("boxplot_box_border", "on"); -static MagicsParameter boxplot_median("boxplot_median", "on"); -#include "BoxPlotItem.h" -#include "BoxPlotBasicItem.h" -static SimpleObjectMaker border_BoxPlotBoxBorder("border"); -static SimpleObjectMaker on_BoxPlotBoxBorder("on"); -static SimpleObjectMaker noborder_NoBoxPlotBoxBorder("noborder"); -static SimpleObjectMaker off_NoBoxPlotBoxBorder("off"); -static SimpleObjectMaker median_BoxPlotMedian("median"); -static SimpleObjectMaker on_BoxPlotMedian("on"); -static SimpleObjectMaker nomedian_NoBoxPlotMedian("nomedian"); -static SimpleObjectMaker off_NoBoxPlotMedian("off"); diff --git a/src/attributes/BoxPlotBoxAttributes.h b/src/attributes/BoxPlotBoxAttributes.h deleted file mode 100644 index 5c8a80869..000000000 --- a/src/attributes/BoxPlotBoxAttributes.h +++ /dev/null @@ -1,69 +0,0 @@ - -/******************************* LICENSE ******************************* - - * (C) Copyright 1996-2016 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \fileBoxPlotBoxAttributes.h - \brief Definition of BoxPlotBox Attributes class. - - This file is automatically generated. - Do Not Edit! - - Generated: -*/ - - -#ifndef BoxPlotBoxAttributes_H -#define BoxPlotBoxAttributes_H - -#include "magics.h" -#include "Colour.h" -#include "BoxPlotBasicItem.h" -namespace magics { - -class XmlNode; -class BoxPlotBoxAttributes -{ -public: -// -- constructor - BoxPlotBoxAttributes(); - -// -- destructor - virtual ~BoxPlotBoxAttributes(); - - virtual void set(const std::map&); - virtual void set(const XmlNode&); - virtual void copy(const BoxPlotBoxAttributes&); - virtual bool accept(const std::string&); - - void setTag(const std::string& tag) { tag_ = tag; } - -public: - // -- method - virtual void print(std::ostream&) const; - virtual void toxml(std::ostream& out) const; - // -- members: - string tag_; - double width_; - unique_ptr colour_; - unique_ptr border_; - unique_ptr median_; - - -private: - friend ostream& operator<<(ostream& s,const BoxPlotBoxAttributes& p) - { p.print(s); return s; } -}; - -} // namespace magics - -#endif - diff --git a/src/attributes/BoxPlotBoxBorderAttributes.cc b/src/attributes/BoxPlotBoxBorderAttributes.cc deleted file mode 100644 index 34fb3d96b..000000000 --- a/src/attributes/BoxPlotBoxBorderAttributes.cc +++ /dev/null @@ -1,121 +0,0 @@ - -/****************************** LICENSE ******************************* - - * (C) Copyright 1996-2017 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \\file BoxPlotBoxBorderAttributes.h - \\brief Definition of BoxPlotBoxBorder Attributes class. - - This file is automatically generated. - Do Not Edit! -*/ - -#include "BoxPlotBoxBorderAttributes.h" -#include "MagicsParameter.h" -#include "ParameterSettings.h" - -using namespace magics; - -BoxPlotBoxBorderAttributes::BoxPlotBoxBorderAttributes(): - thickness_(ParameterManager::getInt("boxplot_box_border_thickness")) - , - colour_(MagTranslator().magics("boxplot_box_border_colour")), - style_(MagTranslator().magics("boxplot_box_border_line_style")) - -{ -} - - -BoxPlotBoxBorderAttributes::~BoxPlotBoxBorderAttributes() -{ - -} - - -void BoxPlotBoxBorderAttributes::set(const std::map& params) -{ - vector prefix(2); - int i = 0; - prefix[i++] = "boxplot"; - prefix[i++] = "boxplot_box_border"; - - setAttribute(prefix, "boxplot_box_border_thickness", thickness_, params); - - setMember(prefix, "boxplot_box_border_colour", colour_, params); - setAttribute(prefix, "boxplot_box_border_line_style", style_, params); - -} - -void BoxPlotBoxBorderAttributes::copy(const BoxPlotBoxBorderAttributes& other) -{ - thickness_ = other.thickness_; - colour_ = unique_ptr(other.colour_->clone()); - style_ = other.style_; - -} - - -bool BoxPlotBoxBorderAttributes::accept(const string& node) -{ - - if ( magCompare(node, "box_border") ) - return true; - - return false; -} - -void BoxPlotBoxBorderAttributes::set(const XmlNode& node) -{ - bool apply = false; - - if ( this->accept(node.name()) == false ) - return; - - if ( magCompare(node.name(), "box_border") ) - apply = true; - - - if ( apply ) - set(node.attributes()); - else { - - } - for (auto &elt : node.elements()) - { - - } -} - -void BoxPlotBoxBorderAttributes::print(ostream& out) const -{ - out << "Attributes["; - out << " thickness = " << thickness_; - out << " colour = " << *colour_; - out << " style = " << style_; - - out << "]" << "\n"; -} - -void BoxPlotBoxBorderAttributes::toxml(ostream& out) const -{ - out << "\"box_border\""; - out << ", \"boxplot_box_border_thickness\":"; - niceprint(out,thickness_); - out << ", \"boxplot_box_border_colour\":"; - niceprint(out, *colour_); - out << ", \"boxplot_box_border_line_style\":"; - niceprint(out, style_); - -} - -static MagicsParameter boxplot_box_border_thickness("boxplot_box_border_thickness", 1); -static MagicsParameter boxplot_box_border_colour("boxplot_box_border_colour", "navy"); -static MagicsParameter boxplot_box_border_line_style("boxplot_box_border_line_style", "solid"); diff --git a/src/attributes/BoxPlotBoxBorderAttributes.h b/src/attributes/BoxPlotBoxBorderAttributes.h deleted file mode 100644 index 9a1009d8f..000000000 --- a/src/attributes/BoxPlotBoxBorderAttributes.h +++ /dev/null @@ -1,67 +0,0 @@ - -/******************************* LICENSE ******************************* - - * (C) Copyright 1996-2016 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \fileBoxPlotBoxBorderAttributes.h - \brief Definition of BoxPlotBoxBorder Attributes class. - - This file is automatically generated. - Do Not Edit! - - Generated: -*/ - - -#ifndef BoxPlotBoxBorderAttributes_H -#define BoxPlotBoxBorderAttributes_H - -#include "magics.h" -#include "Colour.h" -namespace magics { - -class XmlNode; -class BoxPlotBoxBorderAttributes -{ -public: -// -- constructor - BoxPlotBoxBorderAttributes(); - -// -- destructor - virtual ~BoxPlotBoxBorderAttributes(); - - virtual void set(const std::map&); - virtual void set(const XmlNode&); - virtual void copy(const BoxPlotBoxBorderAttributes&); - virtual bool accept(const std::string&); - - void setTag(const std::string& tag) { tag_ = tag; } - -public: - // -- method - virtual void print(std::ostream&) const; - virtual void toxml(std::ostream& out) const; - // -- members: - string tag_; - int thickness_; - unique_ptr colour_; - LineStyle style_; - - -private: - friend ostream& operator<<(ostream& s,const BoxPlotBoxBorderAttributes& p) - { p.print(s); return s; } -}; - -} // namespace magics - -#endif - diff --git a/src/attributes/BoxPlotBoxBorderWrapper.cc b/src/attributes/BoxPlotBoxBorderWrapper.cc deleted file mode 100644 index 4c8993bd9..000000000 --- a/src/attributes/BoxPlotBoxBorderWrapper.cc +++ /dev/null @@ -1,91 +0,0 @@ - -/****************************** LICENSE ******************************* - - * (C) Copyright 1996-2017 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \\file BoxPlotBoxBorderAttributes.h - \\brief Definition of BoxPlotBoxBorder Attributes class. - - This file is automatically generated. - Do Not Edit! - -*/ - -#include "MagRequest.h" -#include "BoxPlotBoxBorderWrapper.h" -#include "MagicsParameter.h" -#include "Factory.h" -#include "MagTranslator.h" -#include "MagicsGlobal.h" - -using namespace magics; - - - -BoxPlotBoxBorderWrapper::BoxPlotBoxBorderWrapper(): boxplotboxborder_(new BoxPlotBoxBorder()) - - -{ - - - - NoBoxPlotBoxBorderWrapper::object(boxplotboxborder_); - - -} -BoxPlotBoxBorderWrapper::BoxPlotBoxBorderWrapper(BoxPlotBoxBorder* boxplotboxborder): boxplotboxborder_(boxplotboxborder) -{ - - - NoBoxPlotBoxBorderWrapper::object(boxplotboxborder_); - -} - -BoxPlotBoxBorderWrapper::~BoxPlotBoxBorderWrapper() -{ - -} - -void BoxPlotBoxBorderWrapper::set(const MagRequest& request) -{ - - - - NoBoxPlotBoxBorderWrapper::set(request); - - - if (request.countValues("BOXPLOT_BOX_BORDER_THICKNESS") ) { - int thickness_value = request("BOXPLOT_BOX_BORDER_THICKNESS"); - boxplotboxborder_->thickness_ = thickness_value; - } - - if (request.countValues("BOXPLOT_BOX_BORDER_COLOUR") ) { - string colour_value = request("BOXPLOT_BOX_BORDER_COLOUR"); - boxplotboxborder_->colour_ = unique_ptr(MagTranslator()(colour_value)); - } - - - if (request.countValues("BOXPLOT_BOX_BORDER_LINE_STYLE") ) { - string style_value = request("BOXPLOT_BOX_BORDER_LINE_STYLE"); - boxplotboxborder_->style_ = MagTranslator()(style_value); - } - - -} - -void BoxPlotBoxBorderWrapper::print(ostream& out) const -{ - out << "BoxPlotBoxBorderWrapper[]"; -} - - - - diff --git a/src/attributes/BoxPlotBoxBorderWrapper.h b/src/attributes/BoxPlotBoxBorderWrapper.h deleted file mode 100644 index 6a9a0667d..000000000 --- a/src/attributes/BoxPlotBoxBorderWrapper.h +++ /dev/null @@ -1,93 +0,0 @@ - -/******************************* LICENSE ******************************* - - * (C) Copyright 1996-2016 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \fileBoxPlotBoxBorderAttributes.h - \brief Definition of BoxPlotBoxBorder Attributes class. - - This file is automatically generated. - Do Not Edit! - - Generated: -*/ - - -#ifndef BoxPlotBoxBorderWrapper_H -#define BoxPlotBoxBorderWrapper_H - -#include "magics.h" -#include "ParameterManager.h" -#include "Factory.h" - - - -#include "BoxPlotItem.h" - - - -#include "NoBoxPlotBoxBorderWrapper.h" - - - - - - - - -namespace magics { - -class MagRequest; - - -class BoxPlotBoxBorderWrapper: public NoBoxPlotBoxBorderWrapper - -{ -public: -// -- constructor - BoxPlotBoxBorderWrapper(); - BoxPlotBoxBorderWrapper(BoxPlotBoxBorder*); -// -- destructor - virtual ~BoxPlotBoxBorderWrapper(); - virtual void set(const MagRequest&); - - BoxPlotBoxBorder* me() { return boxplotboxborder_; } - - virtual BoxPlotBoxBorder* object() { return boxplotboxborder_; } - - - virtual void object(BoxPlotBoxBorder* o) { - // Remember to delete the previous object - boxplotboxborder_ = o; - NoBoxPlotBoxBorderWrapper::object(o); - - - } - - - -protected: - BoxPlotBoxBorder* boxplotboxborder_; - - -// -- method - virtual void print(ostream&) const; - - -private: - string tag_; - friend ostream& operator<<(ostream& s,const BoxPlotBoxBorderWrapper& p) - { p.print(s); return s; } -}; - -} // namespace magics - -#endif \ No newline at end of file diff --git a/src/attributes/BoxPlotBoxWrapper.cc b/src/attributes/BoxPlotBoxWrapper.cc deleted file mode 100644 index ba0db189f..000000000 --- a/src/attributes/BoxPlotBoxWrapper.cc +++ /dev/null @@ -1,155 +0,0 @@ - -/****************************** LICENSE ******************************* - - * (C) Copyright 1996-2017 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \\file BoxPlotBoxAttributes.h - \\brief Definition of BoxPlotBox Attributes class. - - This file is automatically generated. - Do Not Edit! - -*/ - -#include "MagRequest.h" -#include "BoxPlotBoxWrapper.h" -#include "MagicsParameter.h" -#include "Factory.h" -#include "MagTranslator.h" -#include "MagicsGlobal.h" - -using namespace magics; - - - -BoxPlotBoxWrapper::BoxPlotBoxWrapper(): boxplotbox_(new BoxPlotBox()) - - -{ - - - - -} -BoxPlotBoxWrapper::BoxPlotBoxWrapper(BoxPlotBox* boxplotbox): boxplotbox_(boxplotbox) -{ - - -} - -BoxPlotBoxWrapper::~BoxPlotBoxWrapper() -{ - -} - -void BoxPlotBoxWrapper::set(const MagRequest& request) -{ - - - - if (request.countValues("BOXPLOT_BOX_WIDTH") ) { - double width_value = request("BOXPLOT_BOX_WIDTH"); - boxplotbox_->width_ = width_value; - } - - if (request.countValues("BOXPLOT_BOX_COLOUR") ) { - string colour_value = request("BOXPLOT_BOX_COLOUR"); - boxplotbox_->colour_ = unique_ptr(MagTranslator()(colour_value)); - } - - - string border_value = request.countValues("BOXPLOT_BOX_BORDER") ? (string) request("BOXPLOT_BOX_BORDER") : "on"; - MagLog::debug() << " BOXPLOT_BOX_BORDER set to " << border_value << endl; - NoBoxPlotBoxBorderWrapper* border_wrapper = 0; - try - { - border_wrapper = SimpleFactory::create(border_value); - } - catch (NoFactoryException&) { - if (MagicsGlobal::strict()) { - throw; - } - MagLog::warning() << "[" << border_value << "] is not a valid value for border: reset to default -> [on]" << endl; - border_wrapper = SimpleFactory::create("on"); - } - border_wrapper->set(request); - boxplotbox_->border_ = unique_ptr(border_wrapper->object()); - delete border_wrapper; - - string median_value = request.countValues("BOXPLOT_MEDIAN") ? (string) request("BOXPLOT_MEDIAN") : "on"; - MagLog::debug() << " BOXPLOT_MEDIAN set to " << median_value << endl; - NoBoxPlotMedianWrapper* median_wrapper = 0; - try - { - median_wrapper = SimpleFactory::create(median_value); - } - catch (NoFactoryException&) { - if (MagicsGlobal::strict()) { - throw; - } - MagLog::warning() << "[" << median_value << "] is not a valid value for median: reset to default -> [on]" << endl; - median_wrapper = SimpleFactory::create("on"); - } - median_wrapper->set(request); - boxplotbox_->median_ = unique_ptr(median_wrapper->object()); - delete median_wrapper; - -} - -void BoxPlotBoxWrapper::print(ostream& out) const -{ - out << "BoxPlotBoxWrapper[]"; -} - - - -#include "BoxPlotBoxBorderWrapper.h" -static SimpleObjectMaker BoxPlotBox_boxplot_box_border_border ("border"); -static SimpleObjectMaker BoxPlotBox_boxplot_box_border_border_wrapper ("border"); - - -#include "BoxPlotBoxBorderWrapper.h" -static SimpleObjectMaker BoxPlotBox_boxplot_box_border_on ("on"); -static SimpleObjectMaker BoxPlotBox_boxplot_box_border_on_wrapper ("on"); - - -#include "NoBoxPlotBoxBorderWrapper.h" - -static SimpleObjectMaker BoxPlotBox_boxplot_box_border_noborder_Wrapper("noborder"); - - -#include "NoBoxPlotBoxBorderWrapper.h" - -static SimpleObjectMaker BoxPlotBox_boxplot_box_border_off_Wrapper("off"); - - - -#include "BoxPlotMedianWrapper.h" -static SimpleObjectMaker BoxPlotBox_boxplot_median_median ("median"); -static SimpleObjectMaker BoxPlotBox_boxplot_median_median_wrapper ("median"); - - -#include "BoxPlotMedianWrapper.h" -static SimpleObjectMaker BoxPlotBox_boxplot_median_on ("on"); -static SimpleObjectMaker BoxPlotBox_boxplot_median_on_wrapper ("on"); - - -#include "NoBoxPlotMedianWrapper.h" - -static SimpleObjectMaker BoxPlotBox_boxplot_median_nomedian_Wrapper("nomedian"); - - -#include "NoBoxPlotMedianWrapper.h" - -static SimpleObjectMaker BoxPlotBox_boxplot_median_off_Wrapper("off"); - - - diff --git a/src/attributes/BoxPlotBoxWrapper.h b/src/attributes/BoxPlotBoxWrapper.h deleted file mode 100644 index 4997d8a6e..000000000 --- a/src/attributes/BoxPlotBoxWrapper.h +++ /dev/null @@ -1,93 +0,0 @@ - -/******************************* LICENSE ******************************* - - * (C) Copyright 1996-2016 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \fileBoxPlotBoxAttributes.h - \brief Definition of BoxPlotBox Attributes class. - - This file is automatically generated. - Do Not Edit! - - Generated: -*/ - - -#ifndef BoxPlotBoxWrapper_H -#define BoxPlotBoxWrapper_H - -#include "magics.h" -#include "ParameterManager.h" -#include "Factory.h" - - - -#include "BoxPlotItem.h" - - - - - - - - -#include "NoBoxPlotBoxBorderWrapper.h" -#include "NoBoxPlotMedianWrapper.h" - - -namespace magics { - -class MagRequest; - - - -class BoxPlotBoxWrapper - -{ -public: -// -- constructor - BoxPlotBoxWrapper(); - BoxPlotBoxWrapper(BoxPlotBox*); -// -- destructor - virtual ~BoxPlotBoxWrapper(); - virtual void set(const MagRequest&); - - BoxPlotBox* me() { return boxplotbox_; } - - virtual BoxPlotBox* object() { return boxplotbox_; } - - - virtual void object(BoxPlotBox* o) { - // Remember to delete the previous object - boxplotbox_ = o; - - - } - - - -protected: - BoxPlotBox* boxplotbox_; - - -// -- method - virtual void print(ostream&) const; - - -private: - string tag_; - friend ostream& operator<<(ostream& s,const BoxPlotBoxWrapper& p) - { p.print(s); return s; } -}; - -} // namespace magics - -#endif \ No newline at end of file diff --git a/src/attributes/BoxPlotMedianAttributes.cc b/src/attributes/BoxPlotMedianAttributes.cc deleted file mode 100644 index d1503228e..000000000 --- a/src/attributes/BoxPlotMedianAttributes.cc +++ /dev/null @@ -1,121 +0,0 @@ - -/****************************** LICENSE ******************************* - - * (C) Copyright 1996-2017 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \\file BoxPlotMedianAttributes.h - \\brief Definition of BoxPlotMedian Attributes class. - - This file is automatically generated. - Do Not Edit! -*/ - -#include "BoxPlotMedianAttributes.h" -#include "MagicsParameter.h" -#include "ParameterSettings.h" - -using namespace magics; - -BoxPlotMedianAttributes::BoxPlotMedianAttributes(): - thickness_(ParameterManager::getInt("boxplot_median_thickness")) - , - colour_(MagTranslator().magics("boxplot_median_colour")), - style_(MagTranslator().magics("boxplot_median_line_style")) - -{ -} - - -BoxPlotMedianAttributes::~BoxPlotMedianAttributes() -{ - -} - - -void BoxPlotMedianAttributes::set(const std::map& params) -{ - vector prefix(2); - int i = 0; - prefix[i++] = "boxplot"; - prefix[i++] = "boxplot_median"; - - setAttribute(prefix, "boxplot_median_thickness", thickness_, params); - - setMember(prefix, "boxplot_median_colour", colour_, params); - setAttribute(prefix, "boxplot_median_line_style", style_, params); - -} - -void BoxPlotMedianAttributes::copy(const BoxPlotMedianAttributes& other) -{ - thickness_ = other.thickness_; - colour_ = unique_ptr(other.colour_->clone()); - style_ = other.style_; - -} - - -bool BoxPlotMedianAttributes::accept(const string& node) -{ - - if ( magCompare(node, "median") ) - return true; - - return false; -} - -void BoxPlotMedianAttributes::set(const XmlNode& node) -{ - bool apply = false; - - if ( this->accept(node.name()) == false ) - return; - - if ( magCompare(node.name(), "median") ) - apply = true; - - - if ( apply ) - set(node.attributes()); - else { - - } - for (auto &elt : node.elements()) - { - - } -} - -void BoxPlotMedianAttributes::print(ostream& out) const -{ - out << "Attributes["; - out << " thickness = " << thickness_; - out << " colour = " << *colour_; - out << " style = " << style_; - - out << "]" << "\n"; -} - -void BoxPlotMedianAttributes::toxml(ostream& out) const -{ - out << "\"median\""; - out << ", \"boxplot_median_thickness\":"; - niceprint(out,thickness_); - out << ", \"boxplot_median_colour\":"; - niceprint(out, *colour_); - out << ", \"boxplot_median_line_style\":"; - niceprint(out, style_); - -} - -static MagicsParameter boxplot_median_thickness("boxplot_median_thickness", 3); -static MagicsParameter boxplot_median_colour("boxplot_median_colour", "navy"); -static MagicsParameter boxplot_median_line_style("boxplot_median_line_style", "solid"); diff --git a/src/attributes/BoxPlotMedianAttributes.h b/src/attributes/BoxPlotMedianAttributes.h deleted file mode 100644 index b75f4389c..000000000 --- a/src/attributes/BoxPlotMedianAttributes.h +++ /dev/null @@ -1,67 +0,0 @@ - -/******************************* LICENSE ******************************* - - * (C) Copyright 1996-2016 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \fileBoxPlotMedianAttributes.h - \brief Definition of BoxPlotMedian Attributes class. - - This file is automatically generated. - Do Not Edit! - - Generated: -*/ - - -#ifndef BoxPlotMedianAttributes_H -#define BoxPlotMedianAttributes_H - -#include "magics.h" -#include "Colour.h" -namespace magics { - -class XmlNode; -class BoxPlotMedianAttributes -{ -public: -// -- constructor - BoxPlotMedianAttributes(); - -// -- destructor - virtual ~BoxPlotMedianAttributes(); - - virtual void set(const std::map&); - virtual void set(const XmlNode&); - virtual void copy(const BoxPlotMedianAttributes&); - virtual bool accept(const std::string&); - - void setTag(const std::string& tag) { tag_ = tag; } - -public: - // -- method - virtual void print(std::ostream&) const; - virtual void toxml(std::ostream& out) const; - // -- members: - string tag_; - int thickness_; - unique_ptr colour_; - LineStyle style_; - - -private: - friend ostream& operator<<(ostream& s,const BoxPlotMedianAttributes& p) - { p.print(s); return s; } -}; - -} // namespace magics - -#endif - diff --git a/src/attributes/BoxPlotMedianWrapper.cc b/src/attributes/BoxPlotMedianWrapper.cc deleted file mode 100644 index 33e839efd..000000000 --- a/src/attributes/BoxPlotMedianWrapper.cc +++ /dev/null @@ -1,91 +0,0 @@ - -/****************************** LICENSE ******************************* - - * (C) Copyright 1996-2017 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \\file BoxPlotMedianAttributes.h - \\brief Definition of BoxPlotMedian Attributes class. - - This file is automatically generated. - Do Not Edit! - -*/ - -#include "MagRequest.h" -#include "BoxPlotMedianWrapper.h" -#include "MagicsParameter.h" -#include "Factory.h" -#include "MagTranslator.h" -#include "MagicsGlobal.h" - -using namespace magics; - - - -BoxPlotMedianWrapper::BoxPlotMedianWrapper(): boxplotmedian_(new BoxPlotMedian()) - - -{ - - - - NoBoxPlotMedianWrapper::object(boxplotmedian_); - - -} -BoxPlotMedianWrapper::BoxPlotMedianWrapper(BoxPlotMedian* boxplotmedian): boxplotmedian_(boxplotmedian) -{ - - - NoBoxPlotMedianWrapper::object(boxplotmedian_); - -} - -BoxPlotMedianWrapper::~BoxPlotMedianWrapper() -{ - -} - -void BoxPlotMedianWrapper::set(const MagRequest& request) -{ - - - - NoBoxPlotMedianWrapper::set(request); - - - if (request.countValues("BOXPLOT_MEDIAN_THICKNESS") ) { - int thickness_value = request("BOXPLOT_MEDIAN_THICKNESS"); - boxplotmedian_->thickness_ = thickness_value; - } - - if (request.countValues("BOXPLOT_MEDIAN_COLOUR") ) { - string colour_value = request("BOXPLOT_MEDIAN_COLOUR"); - boxplotmedian_->colour_ = unique_ptr(MagTranslator()(colour_value)); - } - - - if (request.countValues("BOXPLOT_MEDIAN_LINE_STYLE") ) { - string style_value = request("BOXPLOT_MEDIAN_LINE_STYLE"); - boxplotmedian_->style_ = MagTranslator()(style_value); - } - - -} - -void BoxPlotMedianWrapper::print(ostream& out) const -{ - out << "BoxPlotMedianWrapper[]"; -} - - - - diff --git a/src/attributes/BoxPlotMedianWrapper.h b/src/attributes/BoxPlotMedianWrapper.h deleted file mode 100644 index be54a7947..000000000 --- a/src/attributes/BoxPlotMedianWrapper.h +++ /dev/null @@ -1,93 +0,0 @@ - -/******************************* LICENSE ******************************* - - * (C) Copyright 1996-2016 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \fileBoxPlotMedianAttributes.h - \brief Definition of BoxPlotMedian Attributes class. - - This file is automatically generated. - Do Not Edit! - - Generated: -*/ - - -#ifndef BoxPlotMedianWrapper_H -#define BoxPlotMedianWrapper_H - -#include "magics.h" -#include "ParameterManager.h" -#include "Factory.h" - - - -#include "BoxPlotItem.h" - - - -#include "NoBoxPlotMedianWrapper.h" - - - - - - - - -namespace magics { - -class MagRequest; - - -class BoxPlotMedianWrapper: public NoBoxPlotMedianWrapper - -{ -public: -// -- constructor - BoxPlotMedianWrapper(); - BoxPlotMedianWrapper(BoxPlotMedian*); -// -- destructor - virtual ~BoxPlotMedianWrapper(); - virtual void set(const MagRequest&); - - BoxPlotMedian* me() { return boxplotmedian_; } - - virtual BoxPlotMedian* object() { return boxplotmedian_; } - - - virtual void object(BoxPlotMedian* o) { - // Remember to delete the previous object - boxplotmedian_ = o; - NoBoxPlotMedianWrapper::object(o); - - - } - - - -protected: - BoxPlotMedian* boxplotmedian_; - - -// -- method - virtual void print(ostream&) const; - - -private: - string tag_; - friend ostream& operator<<(ostream& s,const BoxPlotMedianWrapper& p) - { p.print(s); return s; } -}; - -} // namespace magics - -#endif \ No newline at end of file diff --git a/src/attributes/BoxPlotWhiskerBorderAttributes.cc b/src/attributes/BoxPlotWhiskerBorderAttributes.cc deleted file mode 100644 index b5e881a75..000000000 --- a/src/attributes/BoxPlotWhiskerBorderAttributes.cc +++ /dev/null @@ -1,123 +0,0 @@ - -/****************************** LICENSE ******************************* - - * (C) Copyright 1996-2017 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \\file BoxPlotWhiskerBorderAttributes.h - \\brief Definition of BoxPlotWhiskerBorder Attributes class. - - This file is automatically generated. - Do Not Edit! -*/ - -#include "BoxPlotWhiskerBorderAttributes.h" -#include "MagicsParameter.h" -#include "ParameterSettings.h" - -using namespace magics; - -BoxPlotWhiskerBorderAttributes::BoxPlotWhiskerBorderAttributes(): - thickness_(ParameterManager::getInt("boxplot_whisker_box_border_thickness")) - , - colour_(MagTranslator().magics("boxplot_whisker_box_border_colour")), - style_(MagTranslator().magics("boxplot_whisker_box_border_line_style")) - -{ -} - - -BoxPlotWhiskerBorderAttributes::~BoxPlotWhiskerBorderAttributes() -{ - -} - - -void BoxPlotWhiskerBorderAttributes::set(const std::map& params) -{ - vector prefix(4); - int i = 0; - prefix[i++] = "boxplot"; - prefix[i++] = "boxplot_whisker"; - prefix[i++] = "boxplot_whisker_box"; - prefix[i++] = "boxplot_whisker_box_border"; - - setAttribute(prefix, "boxplot_whisker_box_border_thickness", thickness_, params); - - setMember(prefix, "boxplot_whisker_box_border_colour", colour_, params); - setAttribute(prefix, "boxplot_whisker_box_border_line_style", style_, params); - -} - -void BoxPlotWhiskerBorderAttributes::copy(const BoxPlotWhiskerBorderAttributes& other) -{ - thickness_ = other.thickness_; - colour_ = unique_ptr(other.colour_->clone()); - style_ = other.style_; - -} - - -bool BoxPlotWhiskerBorderAttributes::accept(const string& node) -{ - - if ( magCompare(node, "whisker_border") ) - return true; - - return false; -} - -void BoxPlotWhiskerBorderAttributes::set(const XmlNode& node) -{ - bool apply = false; - - if ( this->accept(node.name()) == false ) - return; - - if ( magCompare(node.name(), "whisker_border") ) - apply = true; - - - if ( apply ) - set(node.attributes()); - else { - - } - for (auto &elt : node.elements()) - { - - } -} - -void BoxPlotWhiskerBorderAttributes::print(ostream& out) const -{ - out << "Attributes["; - out << " thickness = " << thickness_; - out << " colour = " << *colour_; - out << " style = " << style_; - - out << "]" << "\n"; -} - -void BoxPlotWhiskerBorderAttributes::toxml(ostream& out) const -{ - out << "\"whisker_border\""; - out << ", \"boxplot_whisker_box_border_thickness\":"; - niceprint(out,thickness_); - out << ", \"boxplot_whisker_box_border_colour\":"; - niceprint(out, *colour_); - out << ", \"boxplot_whisker_box_border_line_style\":"; - niceprint(out, style_); - -} - -static MagicsParameter boxplot_whisker_box_border_thickness("boxplot_whisker_box_border_thickness", 1); -static MagicsParameter boxplot_whisker_box_border_colour("boxplot_whisker_box_border_colour", "navy"); -static MagicsParameter boxplot_whisker_box_border_line_style("boxplot_whisker_box_border_line_style", "solid"); diff --git a/src/attributes/BoxPlotWhiskerBorderAttributes.h b/src/attributes/BoxPlotWhiskerBorderAttributes.h deleted file mode 100644 index b33eca0d1..000000000 --- a/src/attributes/BoxPlotWhiskerBorderAttributes.h +++ /dev/null @@ -1,67 +0,0 @@ - -/******************************* LICENSE ******************************* - - * (C) Copyright 1996-2016 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \fileBoxPlotWhiskerBorderAttributes.h - \brief Definition of BoxPlotWhiskerBorder Attributes class. - - This file is automatically generated. - Do Not Edit! - - Generated: -*/ - - -#ifndef BoxPlotWhiskerBorderAttributes_H -#define BoxPlotWhiskerBorderAttributes_H - -#include "magics.h" -#include "Colour.h" -namespace magics { - -class XmlNode; -class BoxPlotWhiskerBorderAttributes -{ -public: -// -- constructor - BoxPlotWhiskerBorderAttributes(); - -// -- destructor - virtual ~BoxPlotWhiskerBorderAttributes(); - - virtual void set(const std::map&); - virtual void set(const XmlNode&); - virtual void copy(const BoxPlotWhiskerBorderAttributes&); - virtual bool accept(const std::string&); - - void setTag(const std::string& tag) { tag_ = tag; } - -public: - // -- method - virtual void print(std::ostream&) const; - virtual void toxml(std::ostream& out) const; - // -- members: - string tag_; - int thickness_; - unique_ptr colour_; - LineStyle style_; - - -private: - friend ostream& operator<<(ostream& s,const BoxPlotWhiskerBorderAttributes& p) - { p.print(s); return s; } -}; - -} // namespace magics - -#endif - diff --git a/src/attributes/BoxPlotWhiskerBorderWrapper.cc b/src/attributes/BoxPlotWhiskerBorderWrapper.cc deleted file mode 100644 index 1af523001..000000000 --- a/src/attributes/BoxPlotWhiskerBorderWrapper.cc +++ /dev/null @@ -1,84 +0,0 @@ - -/****************************** LICENSE ******************************* - - * (C) Copyright 1996-2017 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \\file BoxPlotWhiskerBorderAttributes.h - \\brief Definition of BoxPlotWhiskerBorder Attributes class. - - This file is automatically generated. - Do Not Edit! - -*/ - -#include "MagRequest.h" -#include "BoxPlotWhiskerBorderWrapper.h" -#include "MagicsParameter.h" -#include "Factory.h" -#include "MagTranslator.h" -#include "MagicsGlobal.h" - -using namespace magics; - - - -BoxPlotWhiskerBorderWrapper::BoxPlotWhiskerBorderWrapper(): boxplotwhiskerborder_(new BoxPlotWhiskerBorder()) - - -{ - - - - -} -BoxPlotWhiskerBorderWrapper::BoxPlotWhiskerBorderWrapper(BoxPlotWhiskerBorder* boxplotwhiskerborder): boxplotwhiskerborder_(boxplotwhiskerborder) -{ - - -} - -BoxPlotWhiskerBorderWrapper::~BoxPlotWhiskerBorderWrapper() -{ - -} - -void BoxPlotWhiskerBorderWrapper::set(const MagRequest& request) -{ - - - - if (request.countValues("BOXPLOT_WHISKER_BOX_BORDER_THICKNESS") ) { - int thickness_value = request("BOXPLOT_WHISKER_BOX_BORDER_THICKNESS"); - boxplotwhiskerborder_->thickness_ = thickness_value; - } - - if (request.countValues("BOXPLOT_WHISKER_BOX_BORDER_COLOUR") ) { - string colour_value = request("BOXPLOT_WHISKER_BOX_BORDER_COLOUR"); - boxplotwhiskerborder_->colour_ = unique_ptr(MagTranslator()(colour_value)); - } - - - if (request.countValues("BOXPLOT_WHISKER_BOX_BORDER_LINE_STYLE") ) { - string style_value = request("BOXPLOT_WHISKER_BOX_BORDER_LINE_STYLE"); - boxplotwhiskerborder_->style_ = MagTranslator()(style_value); - } - - -} - -void BoxPlotWhiskerBorderWrapper::print(ostream& out) const -{ - out << "BoxPlotWhiskerBorderWrapper[]"; -} - - - - diff --git a/src/attributes/BoxPlotWhiskerBorderWrapper.h b/src/attributes/BoxPlotWhiskerBorderWrapper.h deleted file mode 100644 index 5575b5199..000000000 --- a/src/attributes/BoxPlotWhiskerBorderWrapper.h +++ /dev/null @@ -1,91 +0,0 @@ - -/******************************* LICENSE ******************************* - - * (C) Copyright 1996-2016 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \fileBoxPlotWhiskerBorderAttributes.h - \brief Definition of BoxPlotWhiskerBorder Attributes class. - - This file is automatically generated. - Do Not Edit! - - Generated: -*/ - - -#ifndef BoxPlotWhiskerBorderWrapper_H -#define BoxPlotWhiskerBorderWrapper_H - -#include "magics.h" -#include "ParameterManager.h" -#include "Factory.h" - - - -#include "BoxPlotWhiskerBorder.h" - - - - - - - - - - -namespace magics { - -class MagRequest; - - - -class BoxPlotWhiskerBorderWrapper - -{ -public: -// -- constructor - BoxPlotWhiskerBorderWrapper(); - BoxPlotWhiskerBorderWrapper(BoxPlotWhiskerBorder*); -// -- destructor - virtual ~BoxPlotWhiskerBorderWrapper(); - virtual void set(const MagRequest&); - - BoxPlotWhiskerBorder* me() { return boxplotwhiskerborder_; } - - virtual BoxPlotWhiskerBorder* object() { return boxplotwhiskerborder_; } - - - virtual void object(BoxPlotWhiskerBorder* o) { - // Remember to delete the previous object - boxplotwhiskerborder_ = o; - - - } - - - -protected: - BoxPlotWhiskerBorder* boxplotwhiskerborder_; - - -// -- method - virtual void print(ostream&) const; - - -private: - string tag_; - friend ostream& operator<<(ostream& s,const BoxPlotWhiskerBorderWrapper& p) - { p.print(s); return s; } -}; - -} // namespace magics - -#endif \ No newline at end of file diff --git a/src/attributes/BoxPlotWhiskerBoxAttributes.cc b/src/attributes/BoxPlotWhiskerBoxAttributes.cc deleted file mode 100644 index 4277a3362..000000000 --- a/src/attributes/BoxPlotWhiskerBoxAttributes.cc +++ /dev/null @@ -1,132 +0,0 @@ - -/****************************** LICENSE ******************************* - - * (C) Copyright 1996-2017 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \\file BoxPlotWhiskerBoxAttributes.h - \\brief Definition of BoxPlotWhiskerBox Attributes class. - - This file is automatically generated. - Do Not Edit! -*/ - -#include "BoxPlotWhiskerBoxAttributes.h" -#include "MagicsParameter.h" -#include "ParameterSettings.h" - -using namespace magics; - -BoxPlotWhiskerBoxAttributes::BoxPlotWhiskerBoxAttributes(): - width_(ParameterManager::getDouble("boxplot_whisker_box_width")) - , - colour_(MagTranslator().magics("boxplot_whisker_box_colour")), - border_(MagTranslator().magics("boxplot_whisker_box_border")) - -{ -} - - -BoxPlotWhiskerBoxAttributes::~BoxPlotWhiskerBoxAttributes() -{ - -} - - -void BoxPlotWhiskerBoxAttributes::set(const std::map& params) -{ - vector prefix(3); - int i = 0; - prefix[i++] = "boxplot"; - prefix[i++] = "boxplot_whisker"; - prefix[i++] = "boxplot_whisker_box"; - - setAttribute(prefix, "boxplot_whisker_box_width", width_, params); - - setMember(prefix, "boxplot_whisker_box_colour", colour_, params); - setMember(prefix, "boxplot_whisker_box_border", border_, params); - -} - -void BoxPlotWhiskerBoxAttributes::copy(const BoxPlotWhiskerBoxAttributes& other) -{ - width_ = other.width_; - colour_ = unique_ptr(other.colour_->clone()); - border_ = unique_ptr(other.border_->clone()); - -} - - -bool BoxPlotWhiskerBoxAttributes::accept(const string& node) -{ - - if ( magCompare(node, "whisker_box") ) - return true; - if ( acceptNode(node, border_) ) - return true; - - return false; -} - -void BoxPlotWhiskerBoxAttributes::set(const XmlNode& node) -{ - bool apply = false; - - if ( this->accept(node.name()) == false ) - return; - - if ( magCompare(node.name(), "whisker_box") ) - apply = true; - - - if ( apply ) - set(node.attributes()); - else { - setMember(node.name(), border_, node); - - } - for (auto &elt : node.elements()) - { - setMember(elt->name(), border_, *elt); - - } -} - -void BoxPlotWhiskerBoxAttributes::print(ostream& out) const -{ - out << "Attributes["; - out << " width = " << width_; - out << " colour = " << *colour_; - out << " border = " << *border_; - - out << "]" << "\n"; -} - -void BoxPlotWhiskerBoxAttributes::toxml(ostream& out) const -{ - out << "\"whisker_box\""; - out << ", \"boxplot_whisker_box_width\":"; - niceprint(out,width_); - out << ", \"boxplot_whisker_box_colour\":"; - niceprint(out, *colour_); - out << ", \"boxplot_whisker_box_border\":"; - border_->toxml(out); - -} - -static MagicsParameter boxplot_whisker_box_width("boxplot_whisker_box_width", 0.25); -static MagicsParameter boxplot_whisker_box_colour("boxplot_whisker_box_colour", "sky"); -static MagicsParameter boxplot_whisker_box_border("boxplot_whisker_box_border", "on"); -#include "BoxPlotItem.h" -#include "BoxPlotBasicItem.h" -static SimpleObjectMaker border_BoxPlotWhiskerBorder("border"); -static SimpleObjectMaker on_BoxPlotWhiskerBorder("on"); -static SimpleObjectMaker noborder_NoBoxPlotWhiskerBorder("noborder"); -static SimpleObjectMaker off_NoBoxPlotWhiskerBorder("off"); diff --git a/src/attributes/BoxPlotWhiskerBoxAttributes.h b/src/attributes/BoxPlotWhiskerBoxAttributes.h deleted file mode 100644 index b0263b408..000000000 --- a/src/attributes/BoxPlotWhiskerBoxAttributes.h +++ /dev/null @@ -1,68 +0,0 @@ - -/******************************* LICENSE ******************************* - - * (C) Copyright 1996-2016 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \fileBoxPlotWhiskerBoxAttributes.h - \brief Definition of BoxPlotWhiskerBox Attributes class. - - This file is automatically generated. - Do Not Edit! - - Generated: -*/ - - -#ifndef BoxPlotWhiskerBoxAttributes_H -#define BoxPlotWhiskerBoxAttributes_H - -#include "magics.h" -#include "Colour.h" -#include "BoxPlotBasicItem.h" -namespace magics { - -class XmlNode; -class BoxPlotWhiskerBoxAttributes -{ -public: -// -- constructor - BoxPlotWhiskerBoxAttributes(); - -// -- destructor - virtual ~BoxPlotWhiskerBoxAttributes(); - - virtual void set(const std::map&); - virtual void set(const XmlNode&); - virtual void copy(const BoxPlotWhiskerBoxAttributes&); - virtual bool accept(const std::string&); - - void setTag(const std::string& tag) { tag_ = tag; } - -public: - // -- method - virtual void print(std::ostream&) const; - virtual void toxml(std::ostream& out) const; - // -- members: - string tag_; - double width_; - unique_ptr colour_; - unique_ptr border_; - - -private: - friend ostream& operator<<(ostream& s,const BoxPlotWhiskerBoxAttributes& p) - { p.print(s); return s; } -}; - -} // namespace magics - -#endif - diff --git a/src/attributes/BoxPlotWhiskerBoxWrapper.cc b/src/attributes/BoxPlotWhiskerBoxWrapper.cc deleted file mode 100644 index de0a33629..000000000 --- a/src/attributes/BoxPlotWhiskerBoxWrapper.cc +++ /dev/null @@ -1,116 +0,0 @@ - -/****************************** LICENSE ******************************* - - * (C) Copyright 1996-2017 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \\file BoxPlotWhiskerBoxAttributes.h - \\brief Definition of BoxPlotWhiskerBox Attributes class. - - This file is automatically generated. - Do Not Edit! - -*/ - -#include "MagRequest.h" -#include "BoxPlotWhiskerBoxWrapper.h" -#include "MagicsParameter.h" -#include "Factory.h" -#include "MagTranslator.h" -#include "MagicsGlobal.h" - -using namespace magics; - - - -BoxPlotWhiskerBoxWrapper::BoxPlotWhiskerBoxWrapper(): boxplotwhiskerbox_(new BoxPlotWhiskerBox()) - - -{ - - - - -} -BoxPlotWhiskerBoxWrapper::BoxPlotWhiskerBoxWrapper(BoxPlotWhiskerBox* boxplotwhiskerbox): boxplotwhiskerbox_(boxplotwhiskerbox) -{ - - -} - -BoxPlotWhiskerBoxWrapper::~BoxPlotWhiskerBoxWrapper() -{ - -} - -void BoxPlotWhiskerBoxWrapper::set(const MagRequest& request) -{ - - - - if (request.countValues("BOXPLOT_WHISKER_BOX_WIDTH") ) { - double width_value = request("BOXPLOT_WHISKER_BOX_WIDTH"); - boxplotwhiskerbox_->width_ = width_value; - } - - if (request.countValues("BOXPLOT_WHISKER_BOX_COLOUR") ) { - string colour_value = request("BOXPLOT_WHISKER_BOX_COLOUR"); - boxplotwhiskerbox_->colour_ = unique_ptr(MagTranslator()(colour_value)); - } - - - string border_value = request.countValues("BOXPLOT_WHISKER_BOX_BORDER") ? (string) request("BOXPLOT_WHISKER_BOX_BORDER") : "on"; - MagLog::debug() << " BOXPLOT_WHISKER_BOX_BORDER set to " << border_value << endl; - NoBoxPlotWhiskerBorderWrapper* border_wrapper = 0; - try - { - border_wrapper = SimpleFactory::create(border_value); - } - catch (NoFactoryException&) { - if (MagicsGlobal::strict()) { - throw; - } - MagLog::warning() << "[" << border_value << "] is not a valid value for border: reset to default -> [on]" << endl; - border_wrapper = SimpleFactory::create("on"); - } - border_wrapper->set(request); - boxplotwhiskerbox_->border_ = unique_ptr(border_wrapper->object()); - delete border_wrapper; - -} - -void BoxPlotWhiskerBoxWrapper::print(ostream& out) const -{ - out << "BoxPlotWhiskerBoxWrapper[]"; -} - - - -#include "BoxPlotWhiskerBorderWrapper.h" -static SimpleObjectMaker BoxPlotWhiskerBox_boxplot_whisker_box_border_border ("border"); -static SimpleObjectMaker BoxPlotWhiskerBox_boxplot_whisker_box_border_border_wrapper ("border"); - - -#include "BoxPlotWhiskerBorderWrapper.h" -static SimpleObjectMaker BoxPlotWhiskerBox_boxplot_whisker_box_border_on ("on"); -static SimpleObjectMaker BoxPlotWhiskerBox_boxplot_whisker_box_border_on_wrapper ("on"); - - -#include "NoBoxPlotWhiskerBorderWrapper.h" - -static SimpleObjectMaker BoxPlotWhiskerBox_boxplot_whisker_box_border_noborder_Wrapper("noborder"); - - -#include "NoBoxPlotWhiskerBorderWrapper.h" - -static SimpleObjectMaker BoxPlotWhiskerBox_boxplot_whisker_box_border_off_Wrapper("off"); - - - diff --git a/src/attributes/BoxPlotWhiskerBoxWrapper.h b/src/attributes/BoxPlotWhiskerBoxWrapper.h deleted file mode 100644 index 6d5da7401..000000000 --- a/src/attributes/BoxPlotWhiskerBoxWrapper.h +++ /dev/null @@ -1,92 +0,0 @@ - -/******************************* LICENSE ******************************* - - * (C) Copyright 1996-2016 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \fileBoxPlotWhiskerBoxAttributes.h - \brief Definition of BoxPlotWhiskerBox Attributes class. - - This file is automatically generated. - Do Not Edit! - - Generated: -*/ - - -#ifndef BoxPlotWhiskerBoxWrapper_H -#define BoxPlotWhiskerBoxWrapper_H - -#include "magics.h" -#include "ParameterManager.h" -#include "Factory.h" - - - -#include "BoxPlotWhiskerBox.h" - - - - - - - - -#include "NoBoxPlotWhiskerBorderWrapper.h" - - -namespace magics { - -class MagRequest; - - - -class BoxPlotWhiskerBoxWrapper - -{ -public: -// -- constructor - BoxPlotWhiskerBoxWrapper(); - BoxPlotWhiskerBoxWrapper(BoxPlotWhiskerBox*); -// -- destructor - virtual ~BoxPlotWhiskerBoxWrapper(); - virtual void set(const MagRequest&); - - BoxPlotWhiskerBox* me() { return boxplotwhiskerbox_; } - - virtual BoxPlotWhiskerBox* object() { return boxplotwhiskerbox_; } - - - virtual void object(BoxPlotWhiskerBox* o) { - // Remember to delete the previous object - boxplotwhiskerbox_ = o; - - - } - - - -protected: - BoxPlotWhiskerBox* boxplotwhiskerbox_; - - -// -- method - virtual void print(ostream&) const; - - -private: - string tag_; - friend ostream& operator<<(ostream& s,const BoxPlotWhiskerBoxWrapper& p) - { p.print(s); return s; } -}; - -} // namespace magics - -#endif \ No newline at end of file diff --git a/src/attributes/BoxPlotWhiskerLineAttributes.cc b/src/attributes/BoxPlotWhiskerLineAttributes.cc deleted file mode 100644 index 4d291e96f..000000000 --- a/src/attributes/BoxPlotWhiskerLineAttributes.cc +++ /dev/null @@ -1,122 +0,0 @@ - -/****************************** LICENSE ******************************* - - * (C) Copyright 1996-2017 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \\file BoxPlotWhiskerLineAttributes.h - \\brief Definition of BoxPlotWhiskerLine Attributes class. - - This file is automatically generated. - Do Not Edit! -*/ - -#include "BoxPlotWhiskerLineAttributes.h" -#include "MagicsParameter.h" -#include "ParameterSettings.h" - -using namespace magics; - -BoxPlotWhiskerLineAttributes::BoxPlotWhiskerLineAttributes(): - thickness_(ParameterManager::getInt("boxplot_whisker_line_thickness")) - , - colour_(MagTranslator().magics("boxplot_whisker_line_colour")), - style_(MagTranslator().magics("boxplot_whisker_line_style")) - -{ -} - - -BoxPlotWhiskerLineAttributes::~BoxPlotWhiskerLineAttributes() -{ - -} - - -void BoxPlotWhiskerLineAttributes::set(const std::map& params) -{ - vector prefix(3); - int i = 0; - prefix[i++] = "boxplot"; - prefix[i++] = "boxplot_whisker"; - prefix[i++] = "boxplot_whisker_line"; - - setAttribute(prefix, "boxplot_whisker_line_thickness", thickness_, params); - - setMember(prefix, "boxplot_whisker_line_colour", colour_, params); - setAttribute(prefix, "boxplot_whisker_line_style", style_, params); - -} - -void BoxPlotWhiskerLineAttributes::copy(const BoxPlotWhiskerLineAttributes& other) -{ - thickness_ = other.thickness_; - colour_ = unique_ptr(other.colour_->clone()); - style_ = other.style_; - -} - - -bool BoxPlotWhiskerLineAttributes::accept(const string& node) -{ - - if ( magCompare(node, "whisker_line") ) - return true; - - return false; -} - -void BoxPlotWhiskerLineAttributes::set(const XmlNode& node) -{ - bool apply = false; - - if ( this->accept(node.name()) == false ) - return; - - if ( magCompare(node.name(), "whisker_line") ) - apply = true; - - - if ( apply ) - set(node.attributes()); - else { - - } - for (auto &elt : node.elements()) - { - - } -} - -void BoxPlotWhiskerLineAttributes::print(ostream& out) const -{ - out << "Attributes["; - out << " thickness = " << thickness_; - out << " colour = " << *colour_; - out << " style = " << style_; - - out << "]" << "\n"; -} - -void BoxPlotWhiskerLineAttributes::toxml(ostream& out) const -{ - out << "\"whisker_line\""; - out << ", \"boxplot_whisker_line_thickness\":"; - niceprint(out,thickness_); - out << ", \"boxplot_whisker_line_colour\":"; - niceprint(out, *colour_); - out << ", \"boxplot_whisker_line_style\":"; - niceprint(out, style_); - -} - -static MagicsParameter boxplot_whisker_line_thickness("boxplot_whisker_line_thickness", 3); -static MagicsParameter boxplot_whisker_line_colour("boxplot_whisker_line_colour", "navy"); -static MagicsParameter boxplot_whisker_line_style("boxplot_whisker_line_style", "solid"); diff --git a/src/attributes/BoxPlotWhiskerLineAttributes.h b/src/attributes/BoxPlotWhiskerLineAttributes.h deleted file mode 100644 index ed7d910a9..000000000 --- a/src/attributes/BoxPlotWhiskerLineAttributes.h +++ /dev/null @@ -1,67 +0,0 @@ - -/******************************* LICENSE ******************************* - - * (C) Copyright 1996-2016 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \fileBoxPlotWhiskerLineAttributes.h - \brief Definition of BoxPlotWhiskerLine Attributes class. - - This file is automatically generated. - Do Not Edit! - - Generated: -*/ - - -#ifndef BoxPlotWhiskerLineAttributes_H -#define BoxPlotWhiskerLineAttributes_H - -#include "magics.h" -#include "Colour.h" -namespace magics { - -class XmlNode; -class BoxPlotWhiskerLineAttributes -{ -public: -// -- constructor - BoxPlotWhiskerLineAttributes(); - -// -- destructor - virtual ~BoxPlotWhiskerLineAttributes(); - - virtual void set(const std::map&); - virtual void set(const XmlNode&); - virtual void copy(const BoxPlotWhiskerLineAttributes&); - virtual bool accept(const std::string&); - - void setTag(const std::string& tag) { tag_ = tag; } - -public: - // -- method - virtual void print(std::ostream&) const; - virtual void toxml(std::ostream& out) const; - // -- members: - string tag_; - int thickness_; - unique_ptr colour_; - LineStyle style_; - - -private: - friend ostream& operator<<(ostream& s,const BoxPlotWhiskerLineAttributes& p) - { p.print(s); return s; } -}; - -} // namespace magics - -#endif - diff --git a/src/attributes/BoxPlotWhiskerLineWrapper.cc b/src/attributes/BoxPlotWhiskerLineWrapper.cc deleted file mode 100644 index bb17b8055..000000000 --- a/src/attributes/BoxPlotWhiskerLineWrapper.cc +++ /dev/null @@ -1,84 +0,0 @@ - -/****************************** LICENSE ******************************* - - * (C) Copyright 1996-2017 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \\file BoxPlotWhiskerLineAttributes.h - \\brief Definition of BoxPlotWhiskerLine Attributes class. - - This file is automatically generated. - Do Not Edit! - -*/ - -#include "MagRequest.h" -#include "BoxPlotWhiskerLineWrapper.h" -#include "MagicsParameter.h" -#include "Factory.h" -#include "MagTranslator.h" -#include "MagicsGlobal.h" - -using namespace magics; - - - -BoxPlotWhiskerLineWrapper::BoxPlotWhiskerLineWrapper(): boxplotwhiskerline_(new BoxPlotWhiskerLine()) - - -{ - - - - -} -BoxPlotWhiskerLineWrapper::BoxPlotWhiskerLineWrapper(BoxPlotWhiskerLine* boxplotwhiskerline): boxplotwhiskerline_(boxplotwhiskerline) -{ - - -} - -BoxPlotWhiskerLineWrapper::~BoxPlotWhiskerLineWrapper() -{ - -} - -void BoxPlotWhiskerLineWrapper::set(const MagRequest& request) -{ - - - - if (request.countValues("BOXPLOT_WHISKER_LINE_THICKNESS") ) { - int thickness_value = request("BOXPLOT_WHISKER_LINE_THICKNESS"); - boxplotwhiskerline_->thickness_ = thickness_value; - } - - if (request.countValues("BOXPLOT_WHISKER_LINE_COLOUR") ) { - string colour_value = request("BOXPLOT_WHISKER_LINE_COLOUR"); - boxplotwhiskerline_->colour_ = unique_ptr(MagTranslator()(colour_value)); - } - - - if (request.countValues("BOXPLOT_WHISKER_LINE_STYLE") ) { - string style_value = request("BOXPLOT_WHISKER_LINE_STYLE"); - boxplotwhiskerline_->style_ = MagTranslator()(style_value); - } - - -} - -void BoxPlotWhiskerLineWrapper::print(ostream& out) const -{ - out << "BoxPlotWhiskerLineWrapper[]"; -} - - - - diff --git a/src/attributes/BoxPlotWhiskerLineWrapper.h b/src/attributes/BoxPlotWhiskerLineWrapper.h deleted file mode 100644 index 1696ec867..000000000 --- a/src/attributes/BoxPlotWhiskerLineWrapper.h +++ /dev/null @@ -1,91 +0,0 @@ - -/******************************* LICENSE ******************************* - - * (C) Copyright 1996-2016 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \fileBoxPlotWhiskerLineAttributes.h - \brief Definition of BoxPlotWhiskerLine Attributes class. - - This file is automatically generated. - Do Not Edit! - - Generated: -*/ - - -#ifndef BoxPlotWhiskerLineWrapper_H -#define BoxPlotWhiskerLineWrapper_H - -#include "magics.h" -#include "ParameterManager.h" -#include "Factory.h" - - - -#include "BoxPlotWhiskerLine.h" - - - - - - - - - - -namespace magics { - -class MagRequest; - - - -class BoxPlotWhiskerLineWrapper - -{ -public: -// -- constructor - BoxPlotWhiskerLineWrapper(); - BoxPlotWhiskerLineWrapper(BoxPlotWhiskerLine*); -// -- destructor - virtual ~BoxPlotWhiskerLineWrapper(); - virtual void set(const MagRequest&); - - BoxPlotWhiskerLine* me() { return boxplotwhiskerline_; } - - virtual BoxPlotWhiskerLine* object() { return boxplotwhiskerline_; } - - - virtual void object(BoxPlotWhiskerLine* o) { - // Remember to delete the previous object - boxplotwhiskerline_ = o; - - - } - - - -protected: - BoxPlotWhiskerLine* boxplotwhiskerline_; - - -// -- method - virtual void print(ostream&) const; - - -private: - string tag_; - friend ostream& operator<<(ostream& s,const BoxPlotWhiskerLineWrapper& p) - { p.print(s); return s; } -}; - -} // namespace magics - -#endif \ No newline at end of file diff --git a/src/attributes/NoBoxPlotAttributes.cc b/src/attributes/NoBoxPlotAttributes.cc deleted file mode 100644 index a6d8d0c29..000000000 --- a/src/attributes/NoBoxPlotAttributes.cc +++ /dev/null @@ -1,99 +0,0 @@ - -/****************************** LICENSE ******************************* - - * (C) Copyright 1996-2017 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \\file NoBoxPlotAttributes.h - \\brief Definition of NoBoxPlot Attributes class. - - This file is automatically generated. - Do Not Edit! -*/ - -#include "NoBoxPlotAttributes.h" -#include "MagicsParameter.h" -#include "ParameterSettings.h" - -using namespace magics; - -NoBoxPlotAttributes::NoBoxPlotAttributes() - - -{ -} - - -NoBoxPlotAttributes::~NoBoxPlotAttributes() -{ - -} - - -void NoBoxPlotAttributes::set(const std::map& params) -{ - vector prefix(1); - int i = 0; - prefix[i++] = "boxplot"; - - - -} - -void NoBoxPlotAttributes::copy(const NoBoxPlotAttributes& other) -{ - -} - - -bool NoBoxPlotAttributes::accept(const string& node) -{ - - if ( magCompare(node, "boxplot") ) - return true; - - return false; -} - -void NoBoxPlotAttributes::set(const XmlNode& node) -{ - bool apply = false; - - if ( this->accept(node.name()) == false ) - return; - - if ( magCompare(node.name(), "boxplot") ) - apply = true; - - - if ( apply ) - set(node.attributes()); - else { - - } - for (auto &elt : node.elements()) - { - - } -} - -void NoBoxPlotAttributes::print(ostream& out) const -{ - out << "Attributes["; - - out << "]" << "\n"; -} - -void NoBoxPlotAttributes::toxml(ostream& out) const -{ - out << "\"boxplot\""; - -} - diff --git a/src/attributes/NoBoxPlotAttributes.h b/src/attributes/NoBoxPlotAttributes.h deleted file mode 100644 index 018ed8932..000000000 --- a/src/attributes/NoBoxPlotAttributes.h +++ /dev/null @@ -1,63 +0,0 @@ - -/******************************* LICENSE ******************************* - - * (C) Copyright 1996-2016 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \fileNoBoxPlotAttributes.h - \brief Definition of NoBoxPlot Attributes class. - - This file is automatically generated. - Do Not Edit! - - Generated: -*/ - - -#ifndef NoBoxPlotAttributes_H -#define NoBoxPlotAttributes_H - -#include "magics.h" -namespace magics { - -class XmlNode; -class NoBoxPlotAttributes -{ -public: -// -- constructor - NoBoxPlotAttributes(); - -// -- destructor - virtual ~NoBoxPlotAttributes(); - - virtual void set(const std::map&); - virtual void set(const XmlNode&); - virtual void copy(const NoBoxPlotAttributes&); - virtual bool accept(const std::string&); - - void setTag(const std::string& tag) { tag_ = tag; } - -public: - // -- method - virtual void print(std::ostream&) const; - virtual void toxml(std::ostream& out) const; - // -- members: - string tag_; - - -private: - friend ostream& operator<<(ostream& s,const NoBoxPlotAttributes& p) - { p.print(s); return s; } -}; - -} // namespace magics - -#endif - diff --git a/src/attributes/NoBoxPlotBoxAttributes.cc b/src/attributes/NoBoxPlotBoxAttributes.cc deleted file mode 100644 index c215ddd1e..000000000 --- a/src/attributes/NoBoxPlotBoxAttributes.cc +++ /dev/null @@ -1,99 +0,0 @@ - -/****************************** LICENSE ******************************* - - * (C) Copyright 1996-2017 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \\file NoBoxPlotBoxAttributes.h - \\brief Definition of NoBoxPlotBox Attributes class. - - This file is automatically generated. - Do Not Edit! -*/ - -#include "NoBoxPlotBoxAttributes.h" -#include "MagicsParameter.h" -#include "ParameterSettings.h" - -using namespace magics; - -NoBoxPlotBoxAttributes::NoBoxPlotBoxAttributes() - - -{ -} - - -NoBoxPlotBoxAttributes::~NoBoxPlotBoxAttributes() -{ - -} - - -void NoBoxPlotBoxAttributes::set(const std::map& params) -{ - vector prefix(1); - int i = 0; - prefix[i++] = "boxplot"; - - - -} - -void NoBoxPlotBoxAttributes::copy(const NoBoxPlotBoxAttributes& other) -{ - -} - - -bool NoBoxPlotBoxAttributes::accept(const string& node) -{ - - if ( magCompare(node, "boxplot") ) - return true; - - return false; -} - -void NoBoxPlotBoxAttributes::set(const XmlNode& node) -{ - bool apply = false; - - if ( this->accept(node.name()) == false ) - return; - - if ( magCompare(node.name(), "boxplot") ) - apply = true; - - - if ( apply ) - set(node.attributes()); - else { - - } - for (auto &elt : node.elements()) - { - - } -} - -void NoBoxPlotBoxAttributes::print(ostream& out) const -{ - out << "Attributes["; - - out << "]" << "\n"; -} - -void NoBoxPlotBoxAttributes::toxml(ostream& out) const -{ - out << "\"boxplot\""; - -} - diff --git a/src/attributes/NoBoxPlotBoxAttributes.h b/src/attributes/NoBoxPlotBoxAttributes.h deleted file mode 100644 index ddb177109..000000000 --- a/src/attributes/NoBoxPlotBoxAttributes.h +++ /dev/null @@ -1,63 +0,0 @@ - -/******************************* LICENSE ******************************* - - * (C) Copyright 1996-2016 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \fileNoBoxPlotBoxAttributes.h - \brief Definition of NoBoxPlotBox Attributes class. - - This file is automatically generated. - Do Not Edit! - - Generated: -*/ - - -#ifndef NoBoxPlotBoxAttributes_H -#define NoBoxPlotBoxAttributes_H - -#include "magics.h" -namespace magics { - -class XmlNode; -class NoBoxPlotBoxAttributes -{ -public: -// -- constructor - NoBoxPlotBoxAttributes(); - -// -- destructor - virtual ~NoBoxPlotBoxAttributes(); - - virtual void set(const std::map&); - virtual void set(const XmlNode&); - virtual void copy(const NoBoxPlotBoxAttributes&); - virtual bool accept(const std::string&); - - void setTag(const std::string& tag) { tag_ = tag; } - -public: - // -- method - virtual void print(std::ostream&) const; - virtual void toxml(std::ostream& out) const; - // -- members: - string tag_; - - -private: - friend ostream& operator<<(ostream& s,const NoBoxPlotBoxAttributes& p) - { p.print(s); return s; } -}; - -} // namespace magics - -#endif - diff --git a/src/attributes/NoBoxPlotBoxBorderAttributes.cc b/src/attributes/NoBoxPlotBoxBorderAttributes.cc deleted file mode 100644 index fdfea170c..000000000 --- a/src/attributes/NoBoxPlotBoxBorderAttributes.cc +++ /dev/null @@ -1,100 +0,0 @@ - -/****************************** LICENSE ******************************* - - * (C) Copyright 1996-2017 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \\file NoBoxPlotBoxBorderAttributes.h - \\brief Definition of NoBoxPlotBoxBorder Attributes class. - - This file is automatically generated. - Do Not Edit! -*/ - -#include "NoBoxPlotBoxBorderAttributes.h" -#include "MagicsParameter.h" -#include "ParameterSettings.h" - -using namespace magics; - -NoBoxPlotBoxBorderAttributes::NoBoxPlotBoxBorderAttributes() - - -{ -} - - -NoBoxPlotBoxBorderAttributes::~NoBoxPlotBoxBorderAttributes() -{ - -} - - -void NoBoxPlotBoxBorderAttributes::set(const std::map& params) -{ - vector prefix(2); - int i = 0; - prefix[i++] = "boxplot"; - prefix[i++] = "boxplot_median"; - - - -} - -void NoBoxPlotBoxBorderAttributes::copy(const NoBoxPlotBoxBorderAttributes& other) -{ - -} - - -bool NoBoxPlotBoxBorderAttributes::accept(const string& node) -{ - - if ( magCompare(node, "median") ) - return true; - - return false; -} - -void NoBoxPlotBoxBorderAttributes::set(const XmlNode& node) -{ - bool apply = false; - - if ( this->accept(node.name()) == false ) - return; - - if ( magCompare(node.name(), "median") ) - apply = true; - - - if ( apply ) - set(node.attributes()); - else { - - } - for (auto &elt : node.elements()) - { - - } -} - -void NoBoxPlotBoxBorderAttributes::print(ostream& out) const -{ - out << "Attributes["; - - out << "]" << "\n"; -} - -void NoBoxPlotBoxBorderAttributes::toxml(ostream& out) const -{ - out << "\"median\""; - -} - diff --git a/src/attributes/NoBoxPlotBoxBorderAttributes.h b/src/attributes/NoBoxPlotBoxBorderAttributes.h deleted file mode 100644 index cd9e91048..000000000 --- a/src/attributes/NoBoxPlotBoxBorderAttributes.h +++ /dev/null @@ -1,63 +0,0 @@ - -/******************************* LICENSE ******************************* - - * (C) Copyright 1996-2016 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \fileNoBoxPlotBoxBorderAttributes.h - \brief Definition of NoBoxPlotBoxBorder Attributes class. - - This file is automatically generated. - Do Not Edit! - - Generated: -*/ - - -#ifndef NoBoxPlotBoxBorderAttributes_H -#define NoBoxPlotBoxBorderAttributes_H - -#include "magics.h" -namespace magics { - -class XmlNode; -class NoBoxPlotBoxBorderAttributes -{ -public: -// -- constructor - NoBoxPlotBoxBorderAttributes(); - -// -- destructor - virtual ~NoBoxPlotBoxBorderAttributes(); - - virtual void set(const std::map&); - virtual void set(const XmlNode&); - virtual void copy(const NoBoxPlotBoxBorderAttributes&); - virtual bool accept(const std::string&); - - void setTag(const std::string& tag) { tag_ = tag; } - -public: - // -- method - virtual void print(std::ostream&) const; - virtual void toxml(std::ostream& out) const; - // -- members: - string tag_; - - -private: - friend ostream& operator<<(ostream& s,const NoBoxPlotBoxBorderAttributes& p) - { p.print(s); return s; } -}; - -} // namespace magics - -#endif - diff --git a/src/attributes/NoBoxPlotBoxBorderWrapper.cc b/src/attributes/NoBoxPlotBoxBorderWrapper.cc deleted file mode 100644 index 14fb00eb2..000000000 --- a/src/attributes/NoBoxPlotBoxBorderWrapper.cc +++ /dev/null @@ -1,67 +0,0 @@ - -/****************************** LICENSE ******************************* - - * (C) Copyright 1996-2017 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \\file NoBoxPlotBoxBorderAttributes.h - \\brief Definition of NoBoxPlotBoxBorder Attributes class. - - This file is automatically generated. - Do Not Edit! - -*/ - -#include "MagRequest.h" -#include "NoBoxPlotBoxBorderWrapper.h" -#include "MagicsParameter.h" -#include "Factory.h" -#include "MagTranslator.h" -#include "MagicsGlobal.h" - -using namespace magics; - - - -NoBoxPlotBoxBorderWrapper::NoBoxPlotBoxBorderWrapper(): noboxplotboxborder_(new NoBoxPlotBoxBorder()) - - -{ - - - - -} -NoBoxPlotBoxBorderWrapper::NoBoxPlotBoxBorderWrapper(NoBoxPlotBoxBorder* noboxplotboxborder): noboxplotboxborder_(noboxplotboxborder) -{ - - -} - -NoBoxPlotBoxBorderWrapper::~NoBoxPlotBoxBorderWrapper() -{ - -} - -void NoBoxPlotBoxBorderWrapper::set(const MagRequest& request) -{ - - - - - -} - -void NoBoxPlotBoxBorderWrapper::print(ostream& out) const -{ - out << "NoBoxPlotBoxBorderWrapper[]"; -} - - diff --git a/src/attributes/NoBoxPlotBoxBorderWrapper.h b/src/attributes/NoBoxPlotBoxBorderWrapper.h deleted file mode 100644 index bde7f82f2..000000000 --- a/src/attributes/NoBoxPlotBoxBorderWrapper.h +++ /dev/null @@ -1,91 +0,0 @@ - -/******************************* LICENSE ******************************* - - * (C) Copyright 1996-2016 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \fileNoBoxPlotBoxBorderAttributes.h - \brief Definition of NoBoxPlotBoxBorder Attributes class. - - This file is automatically generated. - Do Not Edit! - - Generated: -*/ - - -#ifndef NoBoxPlotBoxBorderWrapper_H -#define NoBoxPlotBoxBorderWrapper_H - -#include "magics.h" -#include "ParameterManager.h" -#include "Factory.h" - - - -#include "BoxPlotItem.h" - - - - - - - - - - -namespace magics { - -class MagRequest; - - - -class NoBoxPlotBoxBorderWrapper - -{ -public: -// -- constructor - NoBoxPlotBoxBorderWrapper(); - NoBoxPlotBoxBorderWrapper(NoBoxPlotBoxBorder*); -// -- destructor - virtual ~NoBoxPlotBoxBorderWrapper(); - virtual void set(const MagRequest&); - - NoBoxPlotBoxBorder* me() { return noboxplotboxborder_; } - - virtual NoBoxPlotBoxBorder* object() { return noboxplotboxborder_; } - - - virtual void object(NoBoxPlotBoxBorder* o) { - // Remember to delete the previous object - noboxplotboxborder_ = o; - - - } - - - -protected: - NoBoxPlotBoxBorder* noboxplotboxborder_; - - -// -- method - virtual void print(ostream&) const; - - -private: - string tag_; - friend ostream& operator<<(ostream& s,const NoBoxPlotBoxBorderWrapper& p) - { p.print(s); return s; } -}; - -} // namespace magics - -#endif \ No newline at end of file diff --git a/src/attributes/NoBoxPlotBoxWrapper.cc b/src/attributes/NoBoxPlotBoxWrapper.cc deleted file mode 100644 index 5458c6002..000000000 --- a/src/attributes/NoBoxPlotBoxWrapper.cc +++ /dev/null @@ -1,67 +0,0 @@ - -/****************************** LICENSE ******************************* - - * (C) Copyright 1996-2017 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \\file NoBoxPlotBoxAttributes.h - \\brief Definition of NoBoxPlotBox Attributes class. - - This file is automatically generated. - Do Not Edit! - -*/ - -#include "MagRequest.h" -#include "NoBoxPlotBoxWrapper.h" -#include "MagicsParameter.h" -#include "Factory.h" -#include "MagTranslator.h" -#include "MagicsGlobal.h" - -using namespace magics; - - - -NoBoxPlotBoxWrapper::NoBoxPlotBoxWrapper(): noboxplotbox_(new NoBoxPlotBox()) - - -{ - - - - -} -NoBoxPlotBoxWrapper::NoBoxPlotBoxWrapper(NoBoxPlotBox* noboxplotbox): noboxplotbox_(noboxplotbox) -{ - - -} - -NoBoxPlotBoxWrapper::~NoBoxPlotBoxWrapper() -{ - -} - -void NoBoxPlotBoxWrapper::set(const MagRequest& request) -{ - - - - - -} - -void NoBoxPlotBoxWrapper::print(ostream& out) const -{ - out << "NoBoxPlotBoxWrapper[]"; -} - - diff --git a/src/attributes/NoBoxPlotBoxWrapper.h b/src/attributes/NoBoxPlotBoxWrapper.h deleted file mode 100644 index 7d573a447..000000000 --- a/src/attributes/NoBoxPlotBoxWrapper.h +++ /dev/null @@ -1,91 +0,0 @@ - -/******************************* LICENSE ******************************* - - * (C) Copyright 1996-2016 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \fileNoBoxPlotBoxAttributes.h - \brief Definition of NoBoxPlotBox Attributes class. - - This file is automatically generated. - Do Not Edit! - - Generated: -*/ - - -#ifndef NoBoxPlotBoxWrapper_H -#define NoBoxPlotBoxWrapper_H - -#include "magics.h" -#include "ParameterManager.h" -#include "Factory.h" - - - -#include "BoxPlotItem.h" - - - - - - - - - - -namespace magics { - -class MagRequest; - - - -class NoBoxPlotBoxWrapper - -{ -public: -// -- constructor - NoBoxPlotBoxWrapper(); - NoBoxPlotBoxWrapper(NoBoxPlotBox*); -// -- destructor - virtual ~NoBoxPlotBoxWrapper(); - virtual void set(const MagRequest&); - - NoBoxPlotBox* me() { return noboxplotbox_; } - - virtual NoBoxPlotBox* object() { return noboxplotbox_; } - - - virtual void object(NoBoxPlotBox* o) { - // Remember to delete the previous object - noboxplotbox_ = o; - - - } - - - -protected: - NoBoxPlotBox* noboxplotbox_; - - -// -- method - virtual void print(ostream&) const; - - -private: - string tag_; - friend ostream& operator<<(ostream& s,const NoBoxPlotBoxWrapper& p) - { p.print(s); return s; } -}; - -} // namespace magics - -#endif \ No newline at end of file diff --git a/src/attributes/NoBoxPlotMedianAttributes.cc b/src/attributes/NoBoxPlotMedianAttributes.cc deleted file mode 100644 index 50dcf6f01..000000000 --- a/src/attributes/NoBoxPlotMedianAttributes.cc +++ /dev/null @@ -1,100 +0,0 @@ - -/****************************** LICENSE ******************************* - - * (C) Copyright 1996-2017 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \\file NoBoxPlotMedianAttributes.h - \\brief Definition of NoBoxPlotMedian Attributes class. - - This file is automatically generated. - Do Not Edit! -*/ - -#include "NoBoxPlotMedianAttributes.h" -#include "MagicsParameter.h" -#include "ParameterSettings.h" - -using namespace magics; - -NoBoxPlotMedianAttributes::NoBoxPlotMedianAttributes() - - -{ -} - - -NoBoxPlotMedianAttributes::~NoBoxPlotMedianAttributes() -{ - -} - - -void NoBoxPlotMedianAttributes::set(const std::map& params) -{ - vector prefix(2); - int i = 0; - prefix[i++] = "boxplot"; - prefix[i++] = "boxplot_median"; - - - -} - -void NoBoxPlotMedianAttributes::copy(const NoBoxPlotMedianAttributes& other) -{ - -} - - -bool NoBoxPlotMedianAttributes::accept(const string& node) -{ - - if ( magCompare(node, "median") ) - return true; - - return false; -} - -void NoBoxPlotMedianAttributes::set(const XmlNode& node) -{ - bool apply = false; - - if ( this->accept(node.name()) == false ) - return; - - if ( magCompare(node.name(), "median") ) - apply = true; - - - if ( apply ) - set(node.attributes()); - else { - - } - for (auto &elt : node.elements()) - { - - } -} - -void NoBoxPlotMedianAttributes::print(ostream& out) const -{ - out << "Attributes["; - - out << "]" << "\n"; -} - -void NoBoxPlotMedianAttributes::toxml(ostream& out) const -{ - out << "\"median\""; - -} - diff --git a/src/attributes/NoBoxPlotMedianAttributes.h b/src/attributes/NoBoxPlotMedianAttributes.h deleted file mode 100644 index 3a6b29a1c..000000000 --- a/src/attributes/NoBoxPlotMedianAttributes.h +++ /dev/null @@ -1,63 +0,0 @@ - -/******************************* LICENSE ******************************* - - * (C) Copyright 1996-2016 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \fileNoBoxPlotMedianAttributes.h - \brief Definition of NoBoxPlotMedian Attributes class. - - This file is automatically generated. - Do Not Edit! - - Generated: -*/ - - -#ifndef NoBoxPlotMedianAttributes_H -#define NoBoxPlotMedianAttributes_H - -#include "magics.h" -namespace magics { - -class XmlNode; -class NoBoxPlotMedianAttributes -{ -public: -// -- constructor - NoBoxPlotMedianAttributes(); - -// -- destructor - virtual ~NoBoxPlotMedianAttributes(); - - virtual void set(const std::map&); - virtual void set(const XmlNode&); - virtual void copy(const NoBoxPlotMedianAttributes&); - virtual bool accept(const std::string&); - - void setTag(const std::string& tag) { tag_ = tag; } - -public: - // -- method - virtual void print(std::ostream&) const; - virtual void toxml(std::ostream& out) const; - // -- members: - string tag_; - - -private: - friend ostream& operator<<(ostream& s,const NoBoxPlotMedianAttributes& p) - { p.print(s); return s; } -}; - -} // namespace magics - -#endif - diff --git a/src/attributes/NoBoxPlotMedianWrapper.cc b/src/attributes/NoBoxPlotMedianWrapper.cc deleted file mode 100644 index b3011118d..000000000 --- a/src/attributes/NoBoxPlotMedianWrapper.cc +++ /dev/null @@ -1,67 +0,0 @@ - -/****************************** LICENSE ******************************* - - * (C) Copyright 1996-2017 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \\file NoBoxPlotMedianAttributes.h - \\brief Definition of NoBoxPlotMedian Attributes class. - - This file is automatically generated. - Do Not Edit! - -*/ - -#include "MagRequest.h" -#include "NoBoxPlotMedianWrapper.h" -#include "MagicsParameter.h" -#include "Factory.h" -#include "MagTranslator.h" -#include "MagicsGlobal.h" - -using namespace magics; - - - -NoBoxPlotMedianWrapper::NoBoxPlotMedianWrapper(): noboxplotmedian_(new NoBoxPlotMedian()) - - -{ - - - - -} -NoBoxPlotMedianWrapper::NoBoxPlotMedianWrapper(NoBoxPlotMedian* noboxplotmedian): noboxplotmedian_(noboxplotmedian) -{ - - -} - -NoBoxPlotMedianWrapper::~NoBoxPlotMedianWrapper() -{ - -} - -void NoBoxPlotMedianWrapper::set(const MagRequest& request) -{ - - - - - -} - -void NoBoxPlotMedianWrapper::print(ostream& out) const -{ - out << "NoBoxPlotMedianWrapper[]"; -} - - diff --git a/src/attributes/NoBoxPlotMedianWrapper.h b/src/attributes/NoBoxPlotMedianWrapper.h deleted file mode 100644 index 97b82f4ba..000000000 --- a/src/attributes/NoBoxPlotMedianWrapper.h +++ /dev/null @@ -1,91 +0,0 @@ - -/******************************* LICENSE ******************************* - - * (C) Copyright 1996-2016 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \fileNoBoxPlotMedianAttributes.h - \brief Definition of NoBoxPlotMedian Attributes class. - - This file is automatically generated. - Do Not Edit! - - Generated: -*/ - - -#ifndef NoBoxPlotMedianWrapper_H -#define NoBoxPlotMedianWrapper_H - -#include "magics.h" -#include "ParameterManager.h" -#include "Factory.h" - - - -#include "BoxPlotItem.h" - - - - - - - - - - -namespace magics { - -class MagRequest; - - - -class NoBoxPlotMedianWrapper - -{ -public: -// -- constructor - NoBoxPlotMedianWrapper(); - NoBoxPlotMedianWrapper(NoBoxPlotMedian*); -// -- destructor - virtual ~NoBoxPlotMedianWrapper(); - virtual void set(const MagRequest&); - - NoBoxPlotMedian* me() { return noboxplotmedian_; } - - virtual NoBoxPlotMedian* object() { return noboxplotmedian_; } - - - virtual void object(NoBoxPlotMedian* o) { - // Remember to delete the previous object - noboxplotmedian_ = o; - - - } - - - -protected: - NoBoxPlotMedian* noboxplotmedian_; - - -// -- method - virtual void print(ostream&) const; - - -private: - string tag_; - friend ostream& operator<<(ostream& s,const NoBoxPlotMedianWrapper& p) - { p.print(s); return s; } -}; - -} // namespace magics - -#endif \ No newline at end of file diff --git a/src/attributes/NoBoxPlotWhiskerAttributes.cc b/src/attributes/NoBoxPlotWhiskerAttributes.cc deleted file mode 100644 index dc6d49cb1..000000000 --- a/src/attributes/NoBoxPlotWhiskerAttributes.cc +++ /dev/null @@ -1,99 +0,0 @@ - -/****************************** LICENSE ******************************* - - * (C) Copyright 1996-2017 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \\file NoBoxPlotWhiskerAttributes.h - \\brief Definition of NoBoxPlotWhisker Attributes class. - - This file is automatically generated. - Do Not Edit! -*/ - -#include "NoBoxPlotWhiskerAttributes.h" -#include "MagicsParameter.h" -#include "ParameterSettings.h" - -using namespace magics; - -NoBoxPlotWhiskerAttributes::NoBoxPlotWhiskerAttributes() - - -{ -} - - -NoBoxPlotWhiskerAttributes::~NoBoxPlotWhiskerAttributes() -{ - -} - - -void NoBoxPlotWhiskerAttributes::set(const std::map& params) -{ - vector prefix(1); - int i = 0; - prefix[i++] = "boxplot"; - - - -} - -void NoBoxPlotWhiskerAttributes::copy(const NoBoxPlotWhiskerAttributes& other) -{ - -} - - -bool NoBoxPlotWhiskerAttributes::accept(const string& node) -{ - - if ( magCompare(node, "boxplot") ) - return true; - - return false; -} - -void NoBoxPlotWhiskerAttributes::set(const XmlNode& node) -{ - bool apply = false; - - if ( this->accept(node.name()) == false ) - return; - - if ( magCompare(node.name(), "boxplot") ) - apply = true; - - - if ( apply ) - set(node.attributes()); - else { - - } - for (auto &elt : node.elements()) - { - - } -} - -void NoBoxPlotWhiskerAttributes::print(ostream& out) const -{ - out << "Attributes["; - - out << "]" << "\n"; -} - -void NoBoxPlotWhiskerAttributes::toxml(ostream& out) const -{ - out << "\"boxplot\""; - -} - diff --git a/src/attributes/NoBoxPlotWhiskerAttributes.h b/src/attributes/NoBoxPlotWhiskerAttributes.h deleted file mode 100644 index 6beadab70..000000000 --- a/src/attributes/NoBoxPlotWhiskerAttributes.h +++ /dev/null @@ -1,63 +0,0 @@ - -/******************************* LICENSE ******************************* - - * (C) Copyright 1996-2016 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \fileNoBoxPlotWhiskerAttributes.h - \brief Definition of NoBoxPlotWhisker Attributes class. - - This file is automatically generated. - Do Not Edit! - - Generated: -*/ - - -#ifndef NoBoxPlotWhiskerAttributes_H -#define NoBoxPlotWhiskerAttributes_H - -#include "magics.h" -namespace magics { - -class XmlNode; -class NoBoxPlotWhiskerAttributes -{ -public: -// -- constructor - NoBoxPlotWhiskerAttributes(); - -// -- destructor - virtual ~NoBoxPlotWhiskerAttributes(); - - virtual void set(const std::map&); - virtual void set(const XmlNode&); - virtual void copy(const NoBoxPlotWhiskerAttributes&); - virtual bool accept(const std::string&); - - void setTag(const std::string& tag) { tag_ = tag; } - -public: - // -- method - virtual void print(std::ostream&) const; - virtual void toxml(std::ostream& out) const; - // -- members: - string tag_; - - -private: - friend ostream& operator<<(ostream& s,const NoBoxPlotWhiskerAttributes& p) - { p.print(s); return s; } -}; - -} // namespace magics - -#endif - diff --git a/src/attributes/NoBoxPlotWhiskerWrapper.cc b/src/attributes/NoBoxPlotWhiskerWrapper.cc deleted file mode 100644 index 8bd638cb1..000000000 --- a/src/attributes/NoBoxPlotWhiskerWrapper.cc +++ /dev/null @@ -1,67 +0,0 @@ - -/****************************** LICENSE ******************************* - - * (C) Copyright 1996-2017 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \\file NoBoxPlotWhiskerAttributes.h - \\brief Definition of NoBoxPlotWhisker Attributes class. - - This file is automatically generated. - Do Not Edit! - -*/ - -#include "MagRequest.h" -#include "NoBoxPlotWhiskerWrapper.h" -#include "MagicsParameter.h" -#include "Factory.h" -#include "MagTranslator.h" -#include "MagicsGlobal.h" - -using namespace magics; - - - -NoBoxPlotWhiskerWrapper::NoBoxPlotWhiskerWrapper(): noboxplotwhisker_(new NoBoxPlotWhisker()) - - -{ - - - - -} -NoBoxPlotWhiskerWrapper::NoBoxPlotWhiskerWrapper(NoBoxPlotWhisker* noboxplotwhisker): noboxplotwhisker_(noboxplotwhisker) -{ - - -} - -NoBoxPlotWhiskerWrapper::~NoBoxPlotWhiskerWrapper() -{ - -} - -void NoBoxPlotWhiskerWrapper::set(const MagRequest& request) -{ - - - - - -} - -void NoBoxPlotWhiskerWrapper::print(ostream& out) const -{ - out << "NoBoxPlotWhiskerWrapper[]"; -} - - diff --git a/src/attributes/NoBoxPlotWhiskerWrapper.h b/src/attributes/NoBoxPlotWhiskerWrapper.h deleted file mode 100644 index 7258f3f1a..000000000 --- a/src/attributes/NoBoxPlotWhiskerWrapper.h +++ /dev/null @@ -1,91 +0,0 @@ - -/******************************* LICENSE ******************************* - - * (C) Copyright 1996-2016 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \fileNoBoxPlotWhiskerAttributes.h - \brief Definition of NoBoxPlotWhisker Attributes class. - - This file is automatically generated. - Do Not Edit! - - Generated: -*/ - - -#ifndef NoBoxPlotWhiskerWrapper_H -#define NoBoxPlotWhiskerWrapper_H - -#include "magics.h" -#include "ParameterManager.h" -#include "Factory.h" - - - -#include "BoxPlotItem.h" - - - - - - - - - - -namespace magics { - -class MagRequest; - - - -class NoBoxPlotWhiskerWrapper - -{ -public: -// -- constructor - NoBoxPlotWhiskerWrapper(); - NoBoxPlotWhiskerWrapper(NoBoxPlotWhisker*); -// -- destructor - virtual ~NoBoxPlotWhiskerWrapper(); - virtual void set(const MagRequest&); - - NoBoxPlotWhisker* me() { return noboxplotwhisker_; } - - virtual NoBoxPlotWhisker* object() { return noboxplotwhisker_; } - - - virtual void object(NoBoxPlotWhisker* o) { - // Remember to delete the previous object - noboxplotwhisker_ = o; - - - } - - - -protected: - NoBoxPlotWhisker* noboxplotwhisker_; - - -// -- method - virtual void print(ostream&) const; - - -private: - string tag_; - friend ostream& operator<<(ostream& s,const NoBoxPlotWhiskerWrapper& p) - { p.print(s); return s; } -}; - -} // namespace magics - -#endif \ No newline at end of file diff --git a/src/attributes/NoBoxPlotWrapper.cc b/src/attributes/NoBoxPlotWrapper.cc deleted file mode 100644 index 5b48f7a6d..000000000 --- a/src/attributes/NoBoxPlotWrapper.cc +++ /dev/null @@ -1,67 +0,0 @@ - -/****************************** LICENSE ******************************* - - * (C) Copyright 1996-2017 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \\file NoBoxPlotAttributes.h - \\brief Definition of NoBoxPlot Attributes class. - - This file is automatically generated. - Do Not Edit! - -*/ - -#include "MagRequest.h" -#include "NoBoxPlotWrapper.h" -#include "MagicsParameter.h" -#include "Factory.h" -#include "MagTranslator.h" -#include "MagicsGlobal.h" - -using namespace magics; - - - -NoBoxPlotWrapper::NoBoxPlotWrapper(): noboxplot_(new NoBoxPlot()) - - -{ - - - - -} -NoBoxPlotWrapper::NoBoxPlotWrapper(NoBoxPlot* noboxplot): noboxplot_(noboxplot) -{ - - -} - -NoBoxPlotWrapper::~NoBoxPlotWrapper() -{ - -} - -void NoBoxPlotWrapper::set(const MagRequest& request) -{ - - - - - -} - -void NoBoxPlotWrapper::print(ostream& out) const -{ - out << "NoBoxPlotWrapper[]"; -} - - diff --git a/src/attributes/NoBoxPlotWrapper.h b/src/attributes/NoBoxPlotWrapper.h deleted file mode 100644 index d634b7542..000000000 --- a/src/attributes/NoBoxPlotWrapper.h +++ /dev/null @@ -1,91 +0,0 @@ - -/******************************* LICENSE ******************************* - - * (C) Copyright 1996-2016 ECMWF. - * - * This software is licensed under the terms of the Apache Licence Version 2.0 - * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. - * In applying this licence, ECMWF does not waive the privileges and immunities - * granted to it by virtue of its status as an intergovernmental organisation nor - * does it submit to any jurisdiction. - - ******************************* LICENSE *******************************/ - -/*! \fileNoBoxPlotAttributes.h - \brief Definition of NoBoxPlot Attributes class. - - This file is automatically generated. - Do Not Edit! - - Generated: -*/ - - -#ifndef NoBoxPlotWrapper_H -#define NoBoxPlotWrapper_H - -#include "magics.h" -#include "ParameterManager.h" -#include "Factory.h" - - - -#include "BoxPlotItem.h" - - - - - - - - - - -namespace magics { - -class MagRequest; - - - -class NoBoxPlotWrapper - -{ -public: -// -- constructor - NoBoxPlotWrapper(); - NoBoxPlotWrapper(NoBoxPlot*); -// -- destructor - virtual ~NoBoxPlotWrapper(); - virtual void set(const MagRequest&); - - NoBoxPlot* me() { return noboxplot_; } - - virtual NoBoxPlot* object() { return noboxplot_; } - - - virtual void object(NoBoxPlot* o) { - // Remember to delete the previous object - noboxplot_ = o; - - - } - - - -protected: - NoBoxPlot* noboxplot_; - - -// -- method - virtual void print(ostream&) const; - - -private: - string tag_; - friend ostream& operator<<(ostream& s,const NoBoxPlotWrapper& p) - { p.print(s); return s; } -}; - -} // namespace magics - -#endif \ No newline at end of file diff --git a/src/params/BoxPlotBox.xml b/src/params/BoxPlotBox.xml deleted file mode 100644 index b329d2649..000000000 --- a/src/params/BoxPlotBox.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - Colour of the box - - - Width of the box in centimeters - - - Determines whether the box border is drawn or not - - - - - Determines whether the median line is drawn or not - - - Magics++1.3 - - - diff --git a/src/params/BoxPlotBoxBorder.xml b/src/params/BoxPlotBoxBorder.xml deleted file mode 100644 index b7acc4ff9..000000000 --- a/src/params/BoxPlotBoxBorder.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - Colour of the box border - - - Thickness of the box border - - - Line style of the box border - - - diff --git a/src/params/BoxPlotMedian.xml b/src/params/BoxPlotMedian.xml deleted file mode 100644 index eb6a146ea..000000000 --- a/src/params/BoxPlotMedian.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - Colour of the median line - - - Thickness of the median line - - - Line style of the median line - - - diff --git a/src/params/BoxPlotWhiskerBorder.xml b/src/params/BoxPlotWhiskerBorder.xml deleted file mode 100644 index 8e4fed9c9..000000000 --- a/src/params/BoxPlotWhiskerBorder.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - Colour of the whisker box border - - - Thickness of the whisker box border - - - Line style of the whisker box border - - - diff --git a/src/params/BoxPlotWhiskerBox.xml b/src/params/BoxPlotWhiskerBox.xml deleted file mode 100644 index f058aff7a..000000000 --- a/src/params/BoxPlotWhiskerBox.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - Colour of the whisker box - - - Width of the whisker box in centimeters - - - Determines whether the whisker box border is drawn or not - - - - - diff --git a/src/params/BoxPlotWhiskerLine.xml b/src/params/BoxPlotWhiskerLine.xml deleted file mode 100644 index c57a27977..000000000 --- a/src/params/BoxPlotWhiskerLine.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - Colour of the whisker line - - - Thickness of the whisker line - - - Line style of the whisker line - - - diff --git a/src/visualisers/BoxPlotVisualiser.cc b/src/visualisers/BoxPlotVisualiser.cc index 7bd4c279c..dae7b8f84 100644 --- a/src/visualisers/BoxPlotVisualiser.cc +++ b/src/visualisers/BoxPlotVisualiser.cc @@ -203,7 +203,7 @@ void BoxPlotVisualiser::whisker_box_bottom(BasicGraphicsObjectContainer& visito void BoxPlotVisualiser::whisker_line_top(BasicGraphicsObjectContainer& visitor, const CustomisedPoint& point) const { const Transformation& transformation = visitor.transformation(); Polyline* whisker = new Polyline(); - whisker->setColour(*whisker_box_colour_); + whisker->setColour(*whisker_line_colour_); whisker->setLineStyle(whisker_line_style_); whisker->setThickness(whisker_line_thickness_);