TickPlotNode.hh
1.18 KB
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
/*
* TickPlotNode.hh
*
* Created on: 16 janv. 2014
* Author: CS
*/
#ifndef TICKPLOTNODE_HH_
#define TICKPLOTNODE_HH_
#include "AbstractDecoratorPlotNode.hh"
namespace plot {
/**
* xml node name, this name is used in request xml files.
*/
#define TICKPLOT_NODENAME "tickPlot"
class TickPlot;
class TickPlotNode: public AbstractDecoratorPlotNode {
public:
/**
* @brief Default constructor.
*/
TickPlotNode();
/**
* @brief Destructor
*/
virtual ~TickPlotNode();
protected:
/*
* @override AbstractDecoratorPlotNode::createPlot Method to create the tick plot
*/
boost::shared_ptr<DecoratorPlot> createPlot(AMDA::Parameters::ParameterManager& manager, boost::shared_ptr<Panel> panel, bool isStandalone);
/*
* @override AbstractDecoratorPlotNode::parseAttributes method to parse tick plot specifics attributes
*/
void parseAttributes(xmlNodePtr xmlNode_, boost::shared_ptr<DecoratorPlot> plot);
private:
/**
* constant to uniquely identify this node in the registry
*/
static const std::string NODENAME;
/**
* artificial special attribute to force registering node.
*/
static std::string _key;
};
} /* namespace plot */
#endif /* TICKPLOTNODE_HH_ */