Blame view

src/Request/ParamsRequestImpl/Nodes/Requests/RequestOutputPlotElementNodeClass.php 1.94 KB
22521f1c   Benjamin Renard   First commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php

//require_once("RequestOutputPlotLegendsNodeClass.php");
require_once("RequestOutputPlotParamsNodeClass.php");
require_once("RequestOutputPlotAxesNodeClass.php");
//require_once("RequestOutputPlotAdditionalObjectsNodeClass.php");
//require_once("RequestOutputPlotFillsNodeClass.php");

/**
 * @class RequestOutputPlotElementNodeClass
 * @brief Definition of a plot element for a panel of a plot request
 * @details
*/
class RequestOutputPlotElementNodeClass extends NodeClass
{
	public function __construct($plotElementName, $defineLegends, $defineAdditionalObjects, $defineFills)
	{
		parent::__construct($plotElementName);
		//create plot element skeleton

		//ToDo legends if needed
		/*if ($defineLegends)
		 {
		$node = new RequestOutputPlotLegendsNodeClass();
		$this->addChild($node);
		}*/

		//params
		$node = new RequestOutputPlotParamsNodeClass();
		$this->addChild($node);

		//axes
		$node = new RequestOutputPlotAxesNodeClass();
		$this->addChild($node);

		//ToDo additional objects
		/*if ($defineAdditionalObjects)
		 {
		$node = new RequestOutputPlotAdditionalObjectsNodeClass();
		$this->addChild($node);
		}*/

		//ToDo fills
		/*if ($defineFills)
		 {
		$node = new RequestOutputPlotFillsNodeClass();
		$this->addChild($node);
		}*/
	}

	public function getLegends()
	{
		$node = $this->getChildInstanceByName(REQUESTOUTPUTPLOTLEGENDS_NAME);
		return $node;
	}

	public function getParams()
	{
		$node = $this->getChildInstanceByName(REQUESTOUTPUTPLOTPARAMS_NAME);
		return $node;
	}

	public function getAxes()
	{
		$node = $this->getChildInstanceByName(REQUESTOUTPUTPLOTAXES_NAME);
		return $node;
	}

	public function getAdditionalObjects()
	{
		$node = $this->getChildInstanceByName(REQUESTOUTPUTPLOTADDITIONALOBJECTS_NAME);
		return $node;
	}

	public function getFills()
	{
		$node = $this->getChildInstanceByName(REQUESTOUTPUTPLOTFILLS_NAME);
		return $node;
	}
}

?>