Blame view

src/ParamOutputImpl/Plot/InstantPlot/PlotFunctionNode.hh 1.56 KB
99ff615c   Menouard AZIB   Change nbEchantil...
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

#ifndef PlotFunctionNODE_HH_
#define PlotFunctionNODE_HH_

#include <boost/smart_ptr/shared_ptr.hpp>
#include <libxml/tree.h>

#include "AbstractPanelPlotNode.hh"
#include "Panel.hh"
#include "PanelPlotOutput.hh"
#include "PlotOutput.hh"

namespace plot
{
/**
 * xml node name, this name is used in both config and request xml files.
 */
#define PlotFunction_NODENAME "plotFunction"
#define PlotFunction_Abscisse "abscisse"
#define PlotFunction_Scale_Abscisse "scale_abscisse"
#define PlotFunction_Scale_Ordonnee "scale_ordonnee"
#define PlotFunction_Abscisse_Frequency "Frequency"
#define PlotFunction_Abscisse_Period "Period"
#define PlotFunction_Abscisse_Time "Time"
#define PlotFunctuion_Type "type"
#define PlotFunctuion_Type_FFT "FFT"
07bf1e7c   Menouard AZIB   EveryThing works ...
27
#define PlotFunctuion_Type_DFT "DFT"
99ff615c   Menouard AZIB   Change nbEchantil...
28
#define PlotFunctuion_Type_SUM "SUM"
5a638eb1   Menouard AZIB   Adding comments
29
#define PlotFunctuion_Type_AVG "AVG"
07bf1e7c   Menouard AZIB   EveryThing works ...
30
31
#define PlotFunction_Linear "linear"
#define PlotFunction_Log "logarithmic"
99ff615c   Menouard AZIB   Change nbEchantil...
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

    class PlotFunctionNode : public plot::AbstractPanelPlotNode
    {
    public:
        PlotFunctionNode();
        virtual ~PlotFunctionNode();

    protected:
        /**
         * @overload plot::AbstractPanelPlotNode::proceed
         */
        boost::shared_ptr<PanelPlotOutput> proceed(xmlNodePtr, PlotOutput *, Panel *);

    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 /* TIMEPLOTNODE_HH_ */