00001
00006 #ifndef _GradientMethodLayer_h
00007 #define _GradientMethodLayer_h
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #include "XyUnconstrainedLayer.h"
00018
00019
00020
00021
00022
00023 class GradientMethodLayer
00024 : public XyUnconstrainedLayer
00025 {
00026 public:
00027
00028
00031 GradientMethodLayer(const PlotControl& plotControl,
00032 const Result& result,
00033 CountedPtr<PlotLayer> cpFunctionLayer);
00034
00037 GradientMethodLayer(const GradientMethodLayer& from);
00038
00041 ~GradientMethodLayer(void);
00042
00043
00044
00045
00046
00047
00048 virtual Region IterationBoundingBox(unsigned iterationNumber) const;
00049
00052 static std::auto_ptr<ResultLayer> Create(
00053 const PlotControl& plotControl,
00054 const Result& result,
00055 CountedPtr<PlotLayer> cpFunctionLayer);
00056
00057
00058
00059
00060
00061 protected:
00062 private:
00063 virtual void DrawIteration(wxDC& dc,
00064 unsigned iterationNumber,
00065 bool highlight) const;
00066
00067 const static void* mRegistrationDummy;
00068 };
00069
00070
00071
00072
00073
00074
00075
00076 #endif // _GradientMethodLayer_h