Ignore:
Timestamp:
08/15/2009 08:56:54 PM (3 years ago)
Author:
guyru
Message:

highlight pie plot segments when moving over them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/simple_pie_plot.h

    r206 r207  
    3535        void OnPaint(wxPaintEvent& event); 
    3636        void OnResize(wxSizeEvent& event); 
     37        void OnMouseLeaveWindow(wxMouseEvent& event); 
     38        void OnMouseMove(wxMouseEvent& event); 
    3739private: 
    3840        /** 
    3941         * Gets the color suiting the \a i th segment. 
    4042         * \param i The segment number. 
    41          * \param hightlight Return color suiting for highlighting. 
    4243         */ 
    43         wxColour GetSegmentColor(int i, bool highlight); 
     44        wxColour GetSegmentColor(int i); 
     45 
     46        void Highlight(int i); 
     47        void ClearHighlight(); 
    4448 
    4549        std::vector<double> m_data; 
     50        std::vector<double> m_angles; 
    4651        double m_data_total; 
     52        int m_highlight; 
    4753}; 
    4854 
Note: See TracChangeset for help on using the changeset viewer.