1 #ifndef __LOGICAL_COLOR_BAR__
2 #define __LOGICAL_COLOR_BAR__
4 // -----------------------------------------------------------------------------------------------------------
5 // WX headers inclusion.
6 // For compilers that support precompilation, includes <wx/wx.h>.
7 // -----------------------------------------------------------------------------------------------------------
17 //------------------------------------------------------------------------------------------------------------
19 //------------------------------------------------------------------------------------------------------------
28 #include "pColorPoint.h"
30 /** file LogicalColorBar.h */
31 class LogicalColorBar {
35 //------------------------------------------------------------------------------------------------------------
36 // Constructors & Destructors
37 //------------------------------------------------------------------------------------------------------------
43 //------------------------------------------------------------------------------------------------------------
45 //------------------------------------------------------------------------------------------------------------
48 * Gets the first point
50 pColorPoint * getFirstPoint();
55 pColorPoint * getLastPoint();
59 void setMinValue(double valueMin);
63 void setMaxValue(double valueMax);
65 bool getOrientation();
67 void setOrientation(bool orientation);
69 bool addColorPoint(double xRealValue, wxColour theColour);
71 bool deleteColorPoint ( double valErase );
73 //void getListIndexRangeLimits( int &startIndex, int &endIndex, int startSearched, int endSearched );
75 void getPointersToRangeLimits( std::deque<pColorPoint *> &theInputQueue, int &startIndex, int &endIndex, int startSearched, int endSearched );
77 pColorPoint * getLastAddedPoint();
79 pColorPoint * getPointAtIndex(int anIndex);
83 void getDataAt(int index, double &x,int &red,int &green,int &blue);
87 double getMinAddedValue();
89 double getMaxAddedValue();
91 void changeColor(double pointValue, wxColour theNewColor);
93 bool setColorPoints (std::vector<pColorPoint *> pointsVector);
99 //wxList logicColorPoints;
100 std::vector<pColorPoint * > logicColorPoints;
102 pColorPoint * lastAddedPoint;
108 //DECLARE_CLASS(LogicalColorBar)