00001
00002
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00021
00030
00031
00032
00033
00034 #ifndef ANAPHE_AIDA_DATASTYLE_H
00035 #define ANAPHE_AIDA_DATASTYLE_H
00036
00037
00038 #include "AIDA/IDataStyle.h"
00039
00040
00041 namespace Anaphe {
00042
00043 class PlotStyle;
00044 }
00045
00046
00047
00048 namespace Anaphe {
00049 namespace AIDA_Plotter_Grace {
00050
00051
00052
00057 class AIDA_DataStyle : public AIDA::IDataStyle
00058 {
00059 public:
00060 AIDA_DataStyle();
00061 AIDA_DataStyle(PlotStyle*, bool ownership = true);
00062 virtual ~AIDA_DataStyle();
00063
00064 private:
00065 AIDA_DataStyle(const AIDA_DataStyle&);
00066 AIDA_DataStyle& operator=(const AIDA_DataStyle&);
00067
00068 public:
00069 virtual void reset();
00070 virtual bool setParameter(const std::string& paramName, const std::string& options);
00071 virtual std::vector<std::string> availableParameters() const;
00072 virtual std::string parameterValue(const std::string& paramName) const;
00073 virtual std::vector<std::string> availableParameterOptions(const std::string& paramName) const;
00074 virtual AIDA::ILineStyle & lineStyle();
00075 virtual AIDA::IMarkerStyle & markerStyle();
00076 virtual AIDA::IFillStyle & fillStyle();
00077 virtual bool setLineStyle(const AIDA::ILineStyle & lineStyle);
00078 virtual bool setMarkerStyle(const AIDA::IMarkerStyle & markerStyle);
00079 virtual bool setFillStyle(const AIDA::IFillStyle & fillStyle);
00080
00081 PlotStyle* theRep();
00082 void setRep(PlotStyle&, bool owns);
00083
00084 private:
00085 void crisis() const;
00086
00087 private:
00088 PlotStyle* rep;
00089 bool ownRep;
00090
00091 };
00092
00093
00094
00095 }
00096 }
00097
00098
00099 #endif // ANAPHE_AIDA_DATASTYLE_H
00100