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