00001
00006 #ifndef _XyResultLayer_h
00007 #define _XyResultLayer_h
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #include "AttributeDatabase.h"
00018 #include "ResultLayer.h"
00019
00020
00021
00022
00023
00024 class XyResultLayer
00025 : public ResultLayer
00026 {
00027 public:
00028
00029
00032 XyResultLayer(const PlotControl& plotControl,
00033 const Result& result,
00034 CountedPtr<PlotLayer> cpFunctionLayer);
00035
00036
00039 XyResultLayer(const XyResultLayer& from);
00040
00043 ~XyResultLayer(void);
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054 protected:
00055
00058 wxPoint PlotToDcPoint(const ColumnVector& point) const;
00059
00062 void DrawFinalResult(wxDC& dc) const;
00063
00066 void DrawBigPoint(wxDC& dc,
00067 const ColumnVector& point,
00068 AttributeDatabase::AttributeType attribute,
00069 SymbolType symbol = CIRCLE)
00070 const;
00071
00074 void DrawLine(wxDC& dc,
00075 const ColumnVector& point1,
00076 const ColumnVector& point2,
00077 AttributeDatabase::AttributeType attribute,
00078 int style = wxSOLID)
00079 const;
00080
00081
00082
00083
00084 unsigned mVariableXIndex;
00085 unsigned mVariableYIndex;
00086 private:
00087
00088 static const int SOLID_WIDTH;
00089 static const int FANCY_WIDTH;
00090 };
00091
00092
00093
00094
00095
00096
00097
00098 #endif // _XyResultLayer_h