
/******************************  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 MvRootSceneNodeAttributes.h
    \\brief Definition of MvRootSceneNode Attributes class.

    This file is automatically generated.
    Do Not Edit!

    Generated: 2018-06-05
*/

#include "MagRequest.h" 
#include "MvRootSceneNodeWrapper.h"
#include "MagicsParameter.h"
#include "Factory.h"
#include "MagTranslator.h"

using namespace magics;

MvRootSceneNodeWrapper::MvRootSceneNodeWrapper(): mvrootscenenode_(new MvRootSceneNode())
{
} 
MvRootSceneNodeWrapper::MvRootSceneNodeWrapper(MvRootSceneNode* mvrootscenenode): mvrootscenenode_(mvrootscenenode)
{
} 

MvRootSceneNodeWrapper::~MvRootSceneNodeWrapper()
{
	
}

void MvRootSceneNodeWrapper::set(const MagRequest& request)
{

	
	if  (request.countValues("SUPER_PAGE_X_LENGTH") ) {
		double width_value = request("SUPER_PAGE_X_LENGTH");
		mvrootscenenode_->width_ = width_value;
		}
	if  (request.countValues("SUPER_PAGE_Y_LENGTH") ) {
		double height_value = request("SUPER_PAGE_Y_LENGTH");
		mvrootscenenode_->height_ = height_value;
		}
	if  (request.countValues("SUPER_PAGE_FRAME") ) {
		string frame_value = request("SUPER_PAGE_FRAME");
		mvrootscenenode_->frame_ = MagTranslator<string, bool>()(frame_value);
		}
	if  (request.countValues("SUPER_PAGE_FRAME_THICKNESS") ) {
		int thickness_value = request("SUPER_PAGE_FRAME_THICKNESS");
		mvrootscenenode_->thickness_ = thickness_value;
		}
	if  (request.countValues("LAYOUT") ) {
		string plot_layout_value = request("LAYOUT");
		mvrootscenenode_->plot_layout_ = plot_layout_value;
		}
	if  (request.countValues("PLOT_START") ) {
		string plot_start_value = request("PLOT_START");
		mvrootscenenode_->plot_start_ = plot_start_value;
		}
	if  (request.countValues("PLOT_DIRECTION") ) {
		string plot_direction_value = request("PLOT_DIRECTION");
		mvrootscenenode_->plot_direction_ = plot_direction_value;
		}
	if  (request.countValues("LEGEND") ) {
		string legend_value = request("LEGEND");
		mvrootscenenode_->legend_ = MagTranslator<string, bool>()(legend_value);
		}
	
	if  (request.countValues("SUPER_PAGE_FRAME_COLOUR") ) {
		string colour_value = request("SUPER_PAGE_FRAME_COLOUR");
		mvrootscenenode_->colour_ = unique_ptr<Colour>(MagTranslator<string, Colour>()(colour_value));
	}
	if  (request.countValues("SUPER_PAGE_FRAME_LINE_STYLE") ) {
		string style_value = request("SUPER_PAGE_FRAME_LINE_STYLE");
		mvrootscenenode_->style_ = unique_ptr<Colour>(MagTranslator<string, LineStyle>()(style_value));
	}
	
}

void MvRootSceneNodeWrapper::print(ostream& out)  const
{
	out << "MvRootSceneNodeWrapper[]";
}


    





