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