RequestOutputPlotOrbitSerieNodeClass.php 1.07 KB
<?php

define ("REQUESTOUTPUTPLOTORBITSERIE_NAME", "orbitserie");

define ("REQUESTOUTPUTPLOTORBITSERIE_PROJECTION", "projection");

abstract class RequestOutputPlotOrbitSerieProjectionEnum
{
	const XY = "XY";
	const XZ = "XZ";
	const YZ = "YZ";
	const XR = "XR";
	const YR = "YR";
	const ZR = "ZR";
}

/**
 * @class RequestOutputPlotOrbitSerieNodeClass
 * @brief Definition of an orbit serie for a plot of a plot request
 * @details
*/
class RequestOutputPlotOrbitSerieNodeClass extends RequestOutputPlotBaseSerieNodeClass
{
	public function __construct()
	{
		parent::__construct(REQUESTOUTPUTPLOTORBITSERIE_NAME);
	}

	public function setProjection($projection)
	{
		$this->setAttribute(REQUESTOUTPUTPLOTORBITSERIE_PROJECTION, $projection);
	}

	public function getProjection()
	{
		return $this->getAttribute(REQUESTOUTPUTPLOTORBITSERIE_PROJECTION);
	}
	
	public function loadFromNode($xmlNode)
	{
		$this->setProjection($this->getXmlNodeAttribute($xmlNode, REQUESTOUTPUTPLOTORBITSERIE_PROJECTION));
		parent::loadFromNode($xmlNode);
	}
}

?>