ConstraintsLayer.h

00001 
00006 #ifndef _ConstraintsLayer_h
00007 #define _ConstraintsLayer_h
00008 
00009 // SYSTEM INCLUDES
00010 //
00011 
00012 // PROJECT INCLUDES
00013 //
00014 
00015 // LOCAL INCLUDES
00016 //
00017 #include "../Constraint.h"
00018 #include "PlotLayer.h"
00019 
00020 // FORWARD REFERENCES
00021 //
00022 
00023 
00024 class ConstraintsLayer
00025     : public PlotLayer
00026 {
00027 public:
00028 // LIFECYCLE
00029 
00032     ConstraintsLayer(const PlotControl&           plotControl,
00033                      const Constraint::Container  constraints);
00034 
00037     ConstraintsLayer(const ConstraintsLayer& from);
00038 
00041     ~ConstraintsLayer(void);
00042 
00043 
00044 // OPERATORS
00045 
00046 // OPERATIONS
00047 
00048     virtual vector<ToolbarTool> CreateTools(PlotControl* pPlotControl);
00049 
00050 // ACCESS
00051 
00054     bool&           rLegend();
00055 
00056 // INQUIRY
00057 
00060     bool            IsLegend() const;
00061 
00062 protected:
00063     void            DrawLegend(wxDC& dc) const;
00064 
00065     const wxPen&    GetConstraintPen(const Constraint&  constraint,
00066                                      unsigned&          rEqualityIndex,
00067                                      unsigned&          rInequalityIndex) const;
00068 
00070     const Constraint::Container     mConstraints;
00071 
00072 private:
00073     bool    mLegend;
00074 };
00075 
00076 // INLINE METHODS
00077 //
00078 
00079 // EXTERNAL REFERENCES
00080 //
00081 
00082 #endif  // _ConstraintsLayer_h

Wygenerowano Fri Sep 29 21:04:48 2006 dla EduOptim2 programem  doxygen 1.4.6