00001
00006 #ifndef _UnivariateResultLayer_h
00007 #define _UnivariateResultLayer_h
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #include "AttributeDatabase.h"
00018 #include "ResultLayer.h"
00019
00020
00021
00022
00023 class UnivariateResultLayer
00024 : public ResultLayer
00025 {
00026 public:
00027
00028
00031 UnivariateResultLayer(const PlotControl& plotControl,
00032 const Result& result,
00033 CountedPtr<PlotLayer> cpFunctionLayer);
00034
00035
00038 UnivariateResultLayer(const UnivariateResultLayer& from);
00039
00042 ~UnivariateResultLayer(void);
00043
00044
00045
00046
00047
00048
00049
00050
00051 protected:
00055 wxPoint PlotToDcPoint(double point) const;
00056
00059 void DrawFinalResult(wxDC& dc) const;
00060
00063 void DrawBigPoint(wxDC& dc,
00064 double point,
00065 AttributeDatabase::AttributeType attribute,
00066 SymbolType symbol = CIRCLE)
00067 const;
00068
00071 void DrawVerticalLine(
00072 wxDC& dc,
00073 double point,
00074 AttributeDatabase::AttributeType attribute) const;
00075
00078 void DrawRangeBackground(
00079 wxDC& dc,
00080 wxCoord left,
00081 wxCoord right,
00082 AttributeDatabase::AttributeType attribute) const;
00083
00090 void GreyOutBackground(
00091 wxDC& dc,
00092 AttributeDatabase::AttributeType attribute
00093 = AttributeDatabase::PLOT_OUTSIDE_BG) const;
00094
00095 AttributeDatabase::AttributeType
00096 BackgroundAttribute(unsigned iterationNumber) const;
00097
00098 private:
00099 };
00100
00101
00102
00103
00104
00105
00106
00107 #endif // _UnivariateResultLayer_h