#include <chart.h>
Public Member Functions | |
wxChart (wxFrame *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE, const wxString &name=wxPanelNameStr) | |
~wxChart () | |
void | OnPaint (wxPaintEvent &event) |
void | OnLeftClick (wxDC &dc, double x, double y, int keys) |
void | OnRightClick (wxDC &dc, double x, double y, int keys) |
void | Draw (wxDC &dc) |
bool | IsEmpty (int a, int item) |
double | GetDataX (int a, int item) |
double | GetDataY (int a, int item) |
void | SetData (int a, int item, double x, double y) |
void | SetMinX (double MinX) |
void | SetMaxX (double MaxX) |
void | SetMaxWidthHeight (int x, int y) |
void | SetCenterChart (int x, int y) |
void | SetShowPer (bool per) |
void | SetMaxValue (double max) |
void | SetStepSizeX (double sizeX) |
void | SetStepSizeY (double sizeY) |
void | SetStepSizePer (double sizePer) |
void | SetNumDataSet (int NumDataSet) |
void | SetNumItem (int NumItem) |
void | SetIncAxisX (double minor, double major) |
void | SetIncAxisY (double minor, double major) |
void | SetEdgeTop (int top) |
void | SetEdgeBottom (int bottom) |
void | SetEdgeLeft (int left) |
void | SetEdgeRight (int right) |
void | SetEdgeTopLegend (int top) |
void | SetEdgeBottomLegend (int bottom) |
void | SetEdgeLeftLegend (int left) |
void | SetEdgeRightLegend (int right) |
void | ShowDataSet (bool show, int dataset) |
double | GetMinX () |
double | GetMaxX () |
int | GetMaxValue () |
double | GetStepSizeX () |
double | GetStepSizeY () |
double | GetStepSizePer () |
int | GetValueCol () |
int | GetNumDataSet () |
int | GetNumItem () |
bool | GetShowPer () |
int | GetLargeur () |
int | GetHauteur () |
int | GetEdgeTop () |
int | GetEdgeBottom () |
int | GetEdgeLeft () |
int | GetEdgeRight () |
int | GetEdgeTopLegend () |
int | GetEdgeBottomLegend () |
int | GetEdgeLeftLegend () |
int | GetEdgeRightLegend () |
bool | GetShowDataSet (int dataset) |
wxChart (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE, const wxString &name=wxPanelNameStr) | |
~wxChart () | |
void | OnPaint (wxPaintEvent &event) |
void | OnLeftClick (wxDC &dc, double x, double y, int keys) |
void | OnRightClick (wxDC &dc, double x, double y, int keys) |
void | Draw (wxDC &dc) |
bool | IsEmpty (int a, int item) |
double | GetDataX (int a, int item) |
double | GetDataY (int a, int item) |
void | SetData (int a, int item, double x, double y) |
void | SetMinX (double MinX) |
void | SetMaxX (double MaxX) |
void | SetMaxWidthHeight (int x, int y) |
void | SetCenterChart (int x, int y) |
void | SetShowPer (bool per) |
void | SetMaxValue (double max) |
void | SetStepSizeX (double sizeX) |
void | SetStepSizeY (double sizeY) |
void | SetStepSizePer (double sizePer) |
void | SetNumDataSet (int NumDataSet) |
void | SetNumItem (int NumItem) |
void | SetIncAxisX (double minor, double major) |
void | SetIncAxisY (double minor, double major) |
void | SetEdgeTop (int top) |
void | SetEdgeBottom (int bottom) |
void | SetEdgeLeft (int left) |
void | SetEdgeRight (int right) |
void | SetEdgeTopLegend (int top) |
void | SetEdgeBottomLegend (int bottom) |
void | SetEdgeLeftLegend (int left) |
void | SetEdgeRightLegend (int right) |
void | ShowDataSet (bool show, int dataset) |
bool | GetShowDataSet (int dataset) |
double | GetMinX () |
double | GetMaxX () |
int | GetMaxValue () |
double | GetStepSizeX () |
double | GetStepSizeY () |
double | GetStepSizePer () |
int | GetValueCol () |
int | GetNumDataSet () |
int | GetNumItem () |
bool | GetShowPer () |
int | GetLargeur () |
int | GetHauteur () |
int | GetEdgeTop () |
int | GetEdgeBottom () |
int | GetEdgeLeft () |
int | GetEdgeRight () |
int | GetEdgeTopLegend () |
int | GetEdgeBottomLegend () |
int | GetEdgeLeftLegend () |
int | GetEdgeRightLegend () |
Private Member Functions | |
void | DrawLine (wxDC &dc, int a) |
void | DrawFond (wxDC &dc) |
void | DrawAxe (wxDC &dc) |
void | DrawAxePer (wxDC &dc) |
void | DrawLegend (wxDC &dc, int nbr) |
void | DrawGrille (wxDC &dc) |
void | SetInitEdge () |
void | SetChartBounds () |
void | SetChartBoundsLegend () |
void | SetCadreLegend (int nbr, int *bottom) |
void | InitDataSet () |
void | InitData () |
double | MaxValue () |
double | MinCol (double inf) |
double | MaxCol (double sup) |
void | SetInfX (double sup) |
void | SetSupX (double sup) |
void | SetSupY (double sup) |
void | InitChart () |
int | GetShow () |
void | DrawLine (wxDC &dc, int a) |
void | DrawFond (wxDC &dc) |
void | DrawAxe (wxDC &dc) |
void | DrawAxePer (wxDC &dc) |
void | DrawLegend (wxDC &dc, int nbr) |
void | DrawGrille (wxDC &dc) |
void | SetInitEdge () |
void | SetChartBounds () |
void | SetChartBoundsLegend () |
void | SetCadreLegend (int nbr, int *bottom) |
void | InitDataSet () |
void | InitData () |
double | MaxValue () |
double | MinCol (double inf) |
double | MaxCol (double sup) |
void | SetInfX (double sup) |
void | SetSupX (double sup) |
void | SetSupY (double sup) |
void | InitChart () |
int | GetShow () |
Private Attributes | |
int | m_NumDataSet |
int | m_NumItem |
Table | m_table [10][50] |
wxDataSet * | m_dataSetArray [10] |
double | m_MinX |
double | m_MaxX |
double | m_InfX |
double | m_SupX |
double | m_SupY |
double | m_StepSizeX |
double | m_StepSizeY |
double | m_StepSizePer |
double | m_MaxValue |
int | m_ValueCol |
bool | m_ShowPer |
int | m_MaxHauteur |
int | m_MaxLargeur |
int | m_CenterX |
int | m_CenterY |
int | m_EdgeTop |
int | m_EdgeBottom |
int | m_EdgeLeft |
int | m_EdgeRight |
int | m_Top |
int | m_Bottom |
int | m_Left |
int | m_Right |
int | m_EdgeTopLegend |
int | m_EdgeBottomLegend |
int | m_EdgeLeftLegend |
int | m_EdgeRightLegend |
int | m_TopLegend |
int | m_BottomLegend |
int | m_LeftLegend |
int | m_RightLegend |
double | m_MinorIncX |
double | m_MajorIncX |
double | m_MinorIncY |
double | m_MajorIncY |
Definition at line 98 of file chart.h.
wxChart::wxChart | ( | wxFrame * | parent, | |
wxWindowID | id, | |||
const wxPoint & | pos = wxDefaultPosition , |
|||
const wxSize & | size = wxDefaultSize , |
|||
long | style = wxDEFAULT_FRAME_STYLE , |
|||
const wxString & | name = wxPanelNameStr | |||
) |
Definition at line 86 of file chart.cpp.
00089 : wxWindow(parent, id, pos, size, style, name) 00090 { 00091 00092 SetMaxWidthHeight(size.GetWidth(), size.GetHeight()); 00093 SetCenterChart(pos.x + (GetLargeur()/2), pos.y + (GetHauteur()/2)); 00094 00095 InitDataSet(); 00096 00097 InitChart(); 00098 }
wxChart::wxChart | ( | wxWindow * | parent, | |
wxWindowID | id, | |||
const wxPoint & | pos = wxDefaultPosition , |
|||
const wxSize & | size = wxDefaultSize , |
|||
long | style = wxDEFAULT_FRAME_STYLE , |
|||
const wxString & | name = wxPanelNameStr | |||
) |
Definition at line 86 of file wxChart.cxx.
00089 : wxPanel(parent, id, pos, size, style, name) 00090 { 00091 SetMaxWidthHeight(size.GetWidth(), size.GetHeight()); 00092 SetCenterChart(pos.x + (GetLargeur()/2), pos.y + (GetHauteur()/2)); 00093 InitDataSet(); 00094 InitChart(); 00095 }
wxChart::~wxChart | ( | ) |
void wxChart::Draw | ( | wxDC & | dc | ) |
void wxChart::Draw | ( | wxDC & | dc | ) |
Definition at line 559 of file chart.cpp.
References DrawAxe(), DrawAxePer(), DrawGrille(), DrawLegend(), DrawLine(), wxDataSet::GetDataStyle(), GetHauteur(), GetLargeur(), wxDataSet::GetLineStyle(), GetNumDataSet(), GetShow(), m_dataSetArray, m_EdgeBottom, m_EdgeLeft, m_EdgeRight, m_EdgeTop, m_InfX, m_Left, m_MaxHauteur, m_MaxLargeur, m_MaxValue, m_MaxX, m_MinX, m_ShowPer, m_SupX, m_SupY, m_Top, MAJOR_STEP, MAX_PER, MaxCol(), MaxValue(), MinCol(), MINOR_STEP, SetCadreLegend(), SetCenterChart(), SetChartBounds(), SetChartBoundsLegend(), SetData(), SetEdgeRight(), SetIncAxisX(), SetIncAxisY(), SetInfX(), SetInitEdge(), SetMaxValue(), SetMaxWidthHeight(), SetMaxX(), SetMinX(), SetNumItem(), SetStepSizePer(), SetStepSizeX(), SetStepSizeY(), SetSupX(), SetSupY(), ShowDataSet(), st_difference(), wxArea, wxAverageDiameter, wxDiameterArea, wxDiameterPerimeter, wxMaximumDiameter, wxMinimumDiameter, wxPerimeter, and wxStenosis.
Referenced by OnPaint().
00560 { 00561 wxBrush *dataBrush; 00562 wxPen *dataPen; 00563 00564 //---------------------------------------------------------------------------- 00565 // Begin 00566 dc.BeginDrawing(); 00567 dc.Clear(); 00568 00569 00570 //---------------------------------------------------------------------------- 00571 // Font : one for all chart 00572 dc.SetFont(*(new wxFont(1, wxDEFAULT, wxNORMAL, wxLIGHT))); 00573 00574 //---------------------------------------------------------------------------- 00575 // Dimension 00576 wxSize size = GetClientSize(); 00577 SetMaxWidthHeight(size.GetWidth(), size.GetHeight()); 00578 SetCenterChart((GetLargeur()/2), (GetHauteur()/2)); 00579 SetInitEdge(); 00580 00581 //----------------------------------------------------------------------------- 00582 // Show Line 00583 ShowDataSet(true,wxArea); 00584 ShowDataSet(true,wxPerimeter); 00585 ShowDataSet(true,wxDiameterArea); 00586 ShowDataSet(false,wxDiameterPerimeter); 00587 ShowDataSet(false,wxMinimumDiameter); 00588 ShowDataSet(false,wxMaximumDiameter); 00589 ShowDataSet(false,wxAverageDiameter); 00590 ShowDataSet(false,wxStenosis); 00591 00592 m_ShowPer = true; 00593 00594 // Show Axe % 00595 if (m_ShowPer) 00596 { 00597 SetEdgeRight(45); 00598 ShowDataSet(true,wxStenosis); 00599 } 00600 00601 00602 //-------------------------------------------------------------------- 00603 // Legend 00604 int nbr = GetShow(); 00605 if (nbr > 0) 00606 { 00607 SetCadreLegend(nbr, &m_EdgeBottom); 00608 SetChartBoundsLegend(); 00609 DrawLegend(dc, nbr); 00610 } 00611 00612 //------------------------------------------------------------------- 00613 // Valeur Min et Max des abscisses 00614 SetMinX(MinCol(0)); 00615 SetMaxX(MaxCol(1)); 00616 SetInfX(st_difference(m_MinX,10,false)); 00617 SetSupX(st_difference(m_MaxX,10,true)); 00618 00619 //------------------------------------------------------------------ 00620 // Data 00621 // Stenosis 00622 SetNumItem(6); 00623 SetData(wxStenosis, 0, 0, -45); 00624 SetData(wxStenosis, 1, 0.4, 0); 00625 SetData(wxStenosis, 2, 0.6, -15); 00626 SetData(wxStenosis, 3, 0.8, 0); 00627 SetData(wxStenosis, 4, 0.9, 100); 00628 SetData(wxStenosis, 5, 1, 0); 00629 00630 // Area 00631 SetData(wxArea,0, 0, 0.8); 00632 SetData(wxArea,1, 0.2, 0.6); 00633 SetData(wxArea,2, 0.3, 0.8); 00634 SetData(wxArea,3, 0.4, 1); 00635 SetData(wxArea,4, 0.8, 0.4); 00636 SetData(wxArea,5, 1, 0.2); 00637 00638 //----------------------------------------------------------------- 00639 // Valeur Max du chart 00640 SetMaxValue(MaxValue()); 00641 SetSupY(st_difference(m_MaxValue, 10, true)); 00642 00643 //------------------------------------------------------------------------------- 00644 // Scale 00645 SetIncAxisX((m_MaxX + m_SupX - (m_MinX - m_InfX)) / (double)MINOR_STEP, 00646 (m_MaxX + m_SupX - (m_MinX - m_InfX)) / (double)MAJOR_STEP); 00647 SetIncAxisY((m_MaxValue + m_SupY) / (double)MINOR_STEP, 00648 (m_MaxValue + m_SupY) / (double)MAJOR_STEP); 00649 00650 SetStepSizeX(( m_MaxLargeur - (m_EdgeLeft + m_EdgeRight + m_SupX + m_InfX)) / 00651 (m_MaxX - m_MinX)); 00652 SetStepSizeY(( m_MaxHauteur - (m_EdgeBottom + m_EdgeTop + m_SupY )) / 00653 (m_MaxValue)); 00654 SetStepSizePer(( m_MaxHauteur - (m_EdgeBottom + m_EdgeTop)) / 00655 (double)MAX_PER); 00656 00657 00658 //----------------------------------------------------------------------------- 00659 // Empty Chart 00660 //--------------------------------------------------------------------------- 00661 SetChartBounds(); 00662 DrawGrille(dc); 00663 DrawAxe(dc); 00664 if (m_ShowPer) 00665 DrawAxePer(dc); 00666 00667 //----------------------------------------------------------------------------- 00668 // Clipping 00669 //--------------------------------------------------------------------------- 00670 dc.DestroyClippingRegion(); 00671 dc.SetClippingRegion(m_Left , m_Top , 00672 GetLargeur() - (m_EdgeRight + m_EdgeLeft ), 00673 GetHauteur() - (m_EdgeTop + m_EdgeBottom )); 00674 00675 //--------------------------------------------------------------------------- 00676 // Draw line 00677 //--------------------------------------------------------------------------- 00678 int maxdataset = GetNumDataSet(); 00679 for(int a=0; a < maxdataset; a++) 00680 { 00681 if(m_dataSetArray[a] && m_dataSetArray[a]->GetShow()) 00682 { 00683 dataBrush = m_dataSetArray[a]->GetDataStyle(); 00684 dataPen = m_dataSetArray[a]->GetLineStyle(); 00685 dc.SetBrush(*dataBrush); 00686 dc.SetPen(*dataPen); 00687 DrawLine(dc, a); 00688 } 00689 } 00690 00691 //--------------------------------------- 00692 // end 00693 dc.DestroyClippingRegion(); 00694 dc.EndDrawing(); 00695 }
void wxChart::DrawAxe | ( | wxDC & | dc | ) | [private] |
void wxChart::DrawAxe | ( | wxDC & | dc | ) | [private] |
Definition at line 699 of file chart.cpp.
References m_Bottom, m_Left, m_MajorIncX, m_MajorIncY, m_MinorIncX, m_MinorIncY, m_MinX, m_Right, m_StepSizeX, m_StepSizeY, m_SupX, m_SupY, m_Top, MARGE, st_decalage(), and st_origine().
Referenced by Draw().
00700 { 00701 double x,y; 00702 double val, supx; 00703 char text[20]; 00704 int widthx,heighty; 00705 00706 double minorIncStepY= m_MinorIncY * m_StepSizeY; 00707 double majorIncStepY= m_MajorIncY * m_StepSizeY; 00708 00709 double minorIncStepX= m_MinorIncX * m_StepSizeX; 00710 double majorIncStepX= m_MajorIncX * m_StepSizeX; 00711 00712 dc.SetPen(*wxBLACK_PEN); 00713 dc.SetBrush(*wxBLACK_BRUSH); 00714 00715 // Axe X 00716 dc.DrawLine(m_Left, m_Bottom+(7*MARGE/4), m_Right, m_Bottom+(7*MARGE/4)); 00717 // Axe Y 00718 dc.DrawLine(m_Left-(7*MARGE/4), m_Bottom, m_Left-(7*MARGE/4), m_Top); 00719 00720 // AXE Y 00721 // Major Tick Marks with values 00722 val=0.00; 00723 for(x=m_Left,y=m_Bottom; y >= m_Top; y-=majorIncStepY, val+=m_MajorIncY) 00724 { 00725 dc.DrawLine(m_Left-7-(7*MARGE/4),y,m_Left-(7*MARGE/4),y); 00726 sprintf(text,"%g", val); 00727 dc.GetTextExtent(text,&widthx,&heighty); 00728 dc.DrawText(text,m_Left-10-widthx-(7*MARGE/4),y-(heighty/2)); 00729 } 00730 // Ne pas Depasser 00731 if (m_SupY == 0 ) 00732 { 00733 dc.DrawLine(m_Left-7-(7*MARGE/4),m_Top,m_Left-(7*MARGE/4),m_Top); 00734 sprintf(text,"%g", val); 00735 dc.GetTextExtent(text,&widthx,&heighty); 00736 dc.DrawText(text,m_Left-10-widthx-(7*MARGE/4),m_Top-(heighty/2)); 00737 } 00738 00739 // Minor Tick Marks 00740 for(x=m_Left,y=m_Bottom; y >= m_Top; y-=minorIncStepY) 00741 { 00742 dc.DrawLine(m_Left-3-(7*MARGE/4),y,m_Left-(7*MARGE/4),y); 00743 } 00744 00745 // AXE X 00746 // Major Tick Marks with values 00747 supx = st_decalage(m_MajorIncX, m_MinX) * m_StepSizeX; 00748 val = st_origine(m_MajorIncX, m_MinX); 00749 for(y=m_Bottom,x=m_Left + supx; x <= m_Right; x+=majorIncStepX, val+=m_MajorIncX) 00750 { 00751 dc.DrawLine(x,m_Bottom+7+(7*MARGE/4),x,m_Bottom+(7*MARGE/4)); 00752 sprintf(text,"%g", val); 00753 dc.GetTextExtent(text,&widthx,&heighty); 00754 dc.DrawText(text,x-(widthx/2),y+3+heighty); 00755 } 00756 // Ne pas Depasser 00757 if ( m_SupX == 0 ) 00758 { 00759 dc.DrawLine(m_Right,m_Bottom+7+(7*MARGE/4),m_Right,m_Bottom+(7*MARGE/4)); 00760 sprintf(text,"%g", val); 00761 dc.GetTextExtent(text,&widthx,&heighty); 00762 dc.DrawText(text,m_Right-(widthx/2),m_Right+3+heighty); 00763 } 00764 00765 supx = st_decalage(m_MinorIncX, m_MinX) * m_StepSizeX; 00766 //Minor Tick Marks 00767 for(y=m_Bottom,x=m_Left + supx; x <= m_Right; x+=minorIncStepX) 00768 { 00769 dc.DrawLine(x,m_Bottom+3+(7*MARGE/4),x,m_Bottom+(7*MARGE/4)); 00770 } 00771 }
void wxChart::DrawAxePer | ( | wxDC & | dc | ) | [private] |
void wxChart::DrawAxePer | ( | wxDC & | dc | ) | [private] |
Definition at line 774 of file chart.cpp.
References m_Bottom, m_Right, m_StepSizePer, m_Top, MAJOR_PER, MARGE, MAX_PER, and MINOR_PER.
Referenced by Draw().
00775 { 00776 double x,y; 00777 double val; 00778 char text[20]; 00779 int widthx,heighty; 00780 00781 double minorIncStepPer= MINOR_PER * m_StepSizePer; 00782 double majorIncStepPer= MAJOR_PER * m_StepSizePer; 00783 00784 dc.SetPen(*wxBLACK_PEN); 00785 dc.SetBrush(*wxBLACK_BRUSH); 00786 00787 // AXE Per 00788 dc.DrawLine(m_Right+(7*MARGE/4), m_Bottom, m_Right+(7*MARGE/4), m_Top); 00789 00790 // Major Tick Marks with values 00791 val=0.00; 00792 for(x=m_Right,y=m_Bottom; y >= m_Top; y-=majorIncStepPer, val+=MAJOR_PER) 00793 { 00794 dc.DrawLine(m_Right+(7*MARGE/4),y,m_Right+7+(7*MARGE/4),y); 00795 sprintf(text,"%g",(val-(MAX_PER/2))); 00796 dc.GetTextExtent(text,&widthx,&heighty); 00797 dc.DrawText(text,m_Right+10+(7*MARGE/4),y-(heighty/2)); 00798 } 00799 dc.DrawLine(m_Right+(7*MARGE/4),m_Top,m_Right+7+(7*MARGE/4),m_Top); 00800 sprintf(text,"%g",(val-(MAX_PER/2))); 00801 dc.GetTextExtent(text,&widthx,&heighty); 00802 dc.DrawText(text,m_Right+10+(7*MARGE/4),m_Top-(heighty/2)); 00803 00804 // Minor Tick Marks 00805 for(x=m_Right,y=m_Bottom; y >= m_Top; y-=minorIncStepPer) 00806 { 00807 dc.DrawLine(m_Right+(7*MARGE/4),y,m_Right+3+(7*MARGE/4),y); 00808 } 00809 }
void wxChart::DrawFond | ( | wxDC & | dc | ) | [private] |
void wxChart::DrawFond | ( | wxDC & | dc | ) | [private] |
void wxChart::DrawGrille | ( | wxDC & | dc | ) | [private] |
void wxChart::DrawGrille | ( | wxDC & | dc | ) | [private] |
Definition at line 813 of file chart.cpp.
References m_Bottom, m_Left, m_MinorIncX, m_MinorIncY, m_MinX, m_Right, m_StepSizeX, m_StepSizeY, m_SupX, m_SupY, m_Top, MARGE, and st_decalage().
Referenced by Draw().
00814 { 00815 double x,y; 00816 double val; 00817 double minorIncStepY = m_MinorIncY * m_StepSizeY; 00818 double minorIncStepX = m_MinorIncX * m_StepSizeX; 00819 00820 dc.SetBrush(*wxLIGHT_GREY_BRUSH); 00821 00822 // Tracer DOT 00823 wxPen *Pen = new wxPen(*wxLIGHT_GREY, 1, wxDOT); 00824 dc.SetPen(*Pen); 00825 00826 // quadrillage en point 00827 // axe Y 00828 for(x=m_Left,y=m_Bottom; y >= m_Top; y-=minorIncStepY) 00829 dc.DrawLine(m_Left-MARGE,y,m_Right+MARGE,y); 00830 if (m_SupY == 0) 00831 dc.DrawLine(m_Left-MARGE,m_Top,m_Right+MARGE,m_Top); 00832 00833 // axe X 00834 val = st_decalage(m_MinorIncX, m_MinX) * m_StepSizeX; 00835 for(y=m_Bottom, x=m_Left + val ; x <= m_Right; x+=minorIncStepX) 00836 dc.DrawLine(x,m_Bottom+MARGE,x,m_Top-MARGE); 00837 if (m_SupX == 0) 00838 dc.DrawLine(m_Right,m_Bottom+MARGE,m_Right,m_Top-MARGE); 00839 00840 // Contour 00841 Pen->SetStyle(wxSOLID); 00842 dc.SetPen(*Pen); 00843 dc.DrawLine(m_Left-MARGE, m_Top-MARGE, m_Right+MARGE, m_Top-MARGE); 00844 dc.DrawLine(m_Right+MARGE, m_Top-MARGE, m_Right+MARGE, m_Bottom+MARGE); 00845 dc.DrawLine(m_Right+MARGE, m_Bottom+MARGE, m_Left-MARGE, m_Bottom+MARGE); 00846 dc.DrawLine(m_Left-MARGE, m_Bottom+MARGE, m_Left-MARGE, m_Top-MARGE); 00847 }
void wxChart::DrawLegend | ( | wxDC & | dc, | |
int | nbr | |||
) | [private] |
void wxChart::DrawLegend | ( | wxDC & | dc, | |
int | nbr | |||
) | [private] |
Definition at line 851 of file chart.cpp.
References wxDataSet::GetDataStyle(), wxDataSet::GetLineStyle(), GetNumDataSet(), GetShow(), wxDataSet::GetText(), m_BottomLegend, m_dataSetArray, m_LeftLegend, m_RightLegend, and m_TopLegend.
Referenced by Draw().
00852 { 00853 // Init 00854 wxString *string; 00855 wxPen *dataPen; 00856 wxBrush *dataBrush; 00857 int widthx, heighty, l_posx, l_posy; 00858 char text[30]; 00859 int haut_ligne, compt = 0; 00860 int l_haut = m_BottomLegend - m_TopLegend; 00861 int l_larg = m_RightLegend - m_LeftLegend; 00862 div_t result = div(nbre,2); 00863 div_t resulta; 00864 int l_debut = 30, l_trait = 15, l_space = 10; 00865 00866 if (result.rem == 0) 00867 haut_ligne = l_haut / result.quot; 00868 else 00869 haut_ligne = l_haut / (result.quot+1); 00870 00871 // Contour 00872 dc.SetPen(*wxBLACK_PEN); 00873 dc.SetBrush(*wxBLACK_BRUSH); 00874 dc.DrawLine(m_LeftLegend, m_TopLegend, m_RightLegend, m_TopLegend); 00875 dc.DrawLine(m_RightLegend, m_TopLegend, m_RightLegend, m_BottomLegend); 00876 dc.DrawLine(m_RightLegend, m_BottomLegend, m_LeftLegend, m_BottomLegend); 00877 dc.DrawLine(m_LeftLegend, m_BottomLegend, m_LeftLegend, m_TopLegend); 00878 00879 // For each dataset 00880 int maxdataset = GetNumDataSet(); 00881 for (int a=0; a < maxdataset; a++) 00882 { 00883 if (m_dataSetArray[a] && m_dataSetArray[a]->GetShow()) 00884 { 00885 compt++; 00886 // Text 00887 string = m_dataSetArray[a]->GetText(); 00888 sprintf(text,"%s",string); 00889 dc.GetTextExtent(text,&widthx,&heighty); 00890 00891 resulta = div(compt, 2); 00892 l_posx = m_LeftLegend; 00893 l_posy = m_TopLegend; 00894 if (resulta.rem == 0) 00895 { 00896 l_posx+= l_larg/2; 00897 l_posy+= (haut_ligne * resulta.quot); 00898 } 00899 else 00900 l_posy+= (haut_ligne * (resulta.quot+1)); 00901 00902 l_posy-= (haut_ligne/2); 00903 00904 // proportion 00905 if (nbre==1) 00906 l_posx = m_LeftLegend + ((l_larg - l_trait - l_space - widthx)/2) - l_debut; 00907 00908 // ligne 00909 dataBrush = m_dataSetArray[a]->GetDataStyle(); 00910 dataPen = m_dataSetArray[a]->GetLineStyle(); 00911 dataPen->SetWidth(2); 00912 dc.SetBrush(*dataBrush); 00913 dc.SetPen(*dataPen); 00914 dc.DrawLine(l_posx + l_debut, l_posy, l_posx + l_debut + 15, l_posy); 00915 dataPen->SetWidth(1); 00916 // text 00917 dc.SetFont(*(new wxFont(1, wxDEFAULT, wxNORMAL, wxBOLD))); 00918 dc.SetPen(*wxBLACK_PEN); 00919 dc.SetBrush(*wxBLACK_BRUSH); 00920 dc.DrawText(text,l_posx + l_debut + l_trait + l_space ,l_posy - (heighty/2)); 00921 dc.SetFont(*(new wxFont(1, wxDEFAULT, wxNORMAL, wxLIGHT))); 00922 } 00923 } 00924 }
void wxChart::DrawLine | ( | wxDC & | dc, | |
int | a | |||
) | [private] |
void wxChart::DrawLine | ( | wxDC & | dc, | |
int | a | |||
) | [private] |
Definition at line 928 of file chart.cpp.
References GetDataX(), GetDataY(), GetNumItem(), IsEmpty(), m_Bottom, m_Left, m_MinX, m_StepSizePer, m_StepSizeX, m_StepSizeY, m_Top, and wxStenosis.
Referenced by Draw().
00929 { 00930 int compt=0; 00931 double val; 00932 double mid = m_Bottom - ((m_Bottom-m_Top)/2); 00933 int maxitem = GetNumItem(); 00934 00935 float yprec, xprec; 00936 float xsuiv, ysuiv; 00937 00938 for(int j=0; j < maxitem; j++) 00939 { 00940 if ( IsEmpty(a,j) == false ) 00941 { 00942 compt++; 00943 xsuiv = m_Left + ((GetDataX(a,j) - m_MinX ) * m_StepSizeX); 00944 val = GetDataY(a,j); 00945 if ( a == wxStenosis) 00946 // Axe Per for Stenosis 00947 ysuiv = mid - (val * m_StepSizePer); 00948 else 00949 // Axe X 00950 ysuiv = m_Bottom - (val * m_StepSizeY); 00951 // Draw line 00952 if (compt > 1) 00953 dc.DrawLine(xprec, yprec, xsuiv, ysuiv); 00954 00955 // save point prec 00956 xprec = xsuiv; 00957 yprec = ysuiv; 00958 } 00959 } 00960 }
double wxChart::GetDataX | ( | int | a, | |
int | item | |||
) |
double wxChart::GetDataX | ( | int | a, | |
int | item | |||
) |
double wxChart::GetDataY | ( | int | a, | |
int | item | |||
) |
double wxChart::GetDataY | ( | int | a, | |
int | item | |||
) |
Definition at line 1004 of file chart.cpp.
References m_table, and Table::y.
Referenced by DrawLine(), and MaxValue().
int wxChart::GetEdgeBottom | ( | ) | [inline] |
int wxChart::GetEdgeBottom | ( | ) | [inline] |
Definition at line 201 of file chart.h.
References m_EdgeBottom.
Referenced by SetCadreLegend().
00201 { return m_EdgeBottom; }
int wxChart::GetEdgeBottomLegend | ( | ) | [inline] |
Definition at line 209 of file wxChart.h.
References m_EdgeBottomLegend.
00209 { return m_EdgeBottomLegend; }
int wxChart::GetEdgeBottomLegend | ( | ) | [inline] |
Definition at line 205 of file chart.h.
References m_EdgeBottomLegend.
00205 { return m_EdgeBottomLegend; }
int wxChart::GetEdgeLeft | ( | ) | [inline] |
int wxChart::GetEdgeLeft | ( | ) | [inline] |
Definition at line 202 of file chart.h.
References m_EdgeLeft.
Referenced by SetCadreLegend().
00202 { return m_EdgeLeft; }
int wxChart::GetEdgeLeftLegend | ( | ) | [inline] |
Definition at line 210 of file wxChart.h.
References m_EdgeLeftLegend.
00210 { return m_EdgeLeftLegend; }
int wxChart::GetEdgeLeftLegend | ( | ) | [inline] |
Definition at line 206 of file chart.h.
References m_EdgeLeftLegend.
00206 { return m_EdgeLeftLegend; }
int wxChart::GetEdgeRight | ( | ) | [inline] |
int wxChart::GetEdgeRight | ( | ) | [inline] |
Definition at line 203 of file chart.h.
References m_EdgeRight.
Referenced by SetCadreLegend().
00203 { return m_EdgeRight; }
int wxChart::GetEdgeRightLegend | ( | ) | [inline] |
Definition at line 211 of file wxChart.h.
References m_EdgeRightLegend.
00211 { return m_EdgeRightLegend; }
int wxChart::GetEdgeRightLegend | ( | ) | [inline] |
Definition at line 207 of file chart.h.
References m_EdgeRightLegend.
00207 { return m_EdgeRightLegend; }
int wxChart::GetEdgeTop | ( | ) | [inline] |
int wxChart::GetEdgeTop | ( | ) | [inline] |
int wxChart::GetEdgeTopLegend | ( | ) | [inline] |
Definition at line 208 of file wxChart.h.
References m_EdgeTopLegend.
00208 { return m_EdgeTopLegend; }
int wxChart::GetEdgeTopLegend | ( | ) | [inline] |
Definition at line 204 of file chart.h.
References m_EdgeTopLegend.
00204 { return m_EdgeTopLegend; }
int wxChart::GetHauteur | ( | ) | [inline] |
int wxChart::GetHauteur | ( | ) | [inline] |
Definition at line 199 of file chart.h.
References m_MaxHauteur.
Referenced by Draw().
00199 { return m_MaxHauteur; }
int wxChart::GetLargeur | ( | ) | [inline] |
int wxChart::GetLargeur | ( | ) | [inline] |
Definition at line 198 of file chart.h.
References m_MaxLargeur.
Referenced by Draw().
00198 { return m_MaxLargeur; }
int wxChart::GetMaxValue | ( | ) | [inline] |
int wxChart::GetMaxValue | ( | ) | [inline] |
double wxChart::GetMaxX | ( | ) | [inline] |
double wxChart::GetMaxX | ( | ) | [inline] |
double wxChart::GetMinX | ( | ) | [inline] |
double wxChart::GetMinX | ( | ) | [inline] |
int wxChart::GetNumDataSet | ( | ) | [inline] |
int wxChart::GetNumDataSet | ( | ) | [inline] |
Definition at line 195 of file chart.h.
References m_NumDataSet.
Referenced by Draw(), DrawLegend(), MaxCol(), MaxValue(), and MinCol().
00195 { return m_NumDataSet; }
int wxChart::GetNumItem | ( | ) | [inline] |
int wxChart::GetNumItem | ( | ) | [inline] |
Definition at line 196 of file chart.h.
References m_NumItem.
Referenced by DrawLine(), and MaxValue().
00196 { return m_NumItem; }
int wxChart::GetShow | ( | ) | [private] |
int wxChart::GetShow | ( | ) | [private] |
Definition at line 481 of file chart.cpp.
References GetShowDataSet(), and m_NumDataSet.
Referenced by Draw(), and DrawLegend().
00482 { 00483 int retour = 0; 00484 00485 for(int i=0; i < m_NumDataSet ; i++) 00486 { 00487 if (GetShowDataSet(i)) 00488 retour++; 00489 } 00490 return retour; 00491 }
bool wxChart::GetShowDataSet | ( | int | dataset | ) |
bool wxChart::GetShowDataSet | ( | int | dataset | ) |
Definition at line 1025 of file chart.cpp.
References wxDataSet::GetShow(), and m_dataSetArray.
Referenced by GetShow(), MaxCol(), MaxValue(), and MinCol().
01026 { 01027 01028 if(m_dataSetArray[dataset]) 01029 return m_dataSetArray[dataset]->GetShow(); 01030 else 01031 return 1; 01032 }
bool wxChart::GetShowPer | ( | ) | [inline] |
bool wxChart::GetShowPer | ( | ) | [inline] |
double wxChart::GetStepSizePer | ( | ) | [inline] |
double wxChart::GetStepSizePer | ( | ) | [inline] |
double wxChart::GetStepSizeX | ( | ) | [inline] |
double wxChart::GetStepSizeX | ( | ) | [inline] |
double wxChart::GetStepSizeY | ( | ) | [inline] |
double wxChart::GetStepSizeY | ( | ) | [inline] |
int wxChart::GetValueCol | ( | ) | [inline] |
int wxChart::GetValueCol | ( | ) | [inline] |
void wxChart::InitChart | ( | ) | [private] |
void wxChart::InitChart | ( | ) | [private] |
Definition at line 109 of file chart.cpp.
References InitData(), m_NumDataSet, SetShowPer(), and ShowDataSet().
00110 { 00111 SetShowPer(false); //not display line % per default 00112 00113 for(int i=0; i<m_NumDataSet ; i++) 00114 ShowDataSet(false, i); 00115 00116 InitData(); 00117 }
void wxChart::InitData | ( | ) | [private] |
void wxChart::InitData | ( | ) | [private] |
Definition at line 978 of file chart.cpp.
References Table::empty, m_table, MAX_DATASET, MAX_ITEM, SetNumItem(), Table::x, and Table::y.
Referenced by InitChart().
00979 { 00980 SetNumItem(0); 00981 for(int a=0; a<MAX_DATASET; a++) 00982 { 00983 for(int j=0; j<MAX_ITEM; j++) 00984 { 00985 m_table[a][j].x=0.00; 00986 m_table[a][j].y=0.00; 00987 m_table[a][j].empty = true; 00988 } 00989 } 00990 }
void wxChart::InitDataSet | ( | ) | [private] |
void wxChart::InitDataSet | ( | ) | [private] |
Definition at line 494 of file chart.cpp.
References m_dataSetArray, MAX_DATASET, SetNumDataSet(), wxArea, wxAverageDiameter, wxDiameterArea, wxDiameterPerimeter, wxMaximumDiameter, wxMinimumDiameter, wxPerimeter, and wxStenosis.
00495 { 00496 00497 // Initialization 00498 SetNumDataSet(8); 00499 for(int i=0; i<MAX_DATASET ; i++) 00500 m_dataSetArray[i]=NULL; 00501 00502 // Colour 00503 wxColour *BlueColour = new wxColour(0,0,255); 00504 wxColour *GreyColour = new wxColour(192,192,192); 00505 wxColour *YellowColour = new wxColour(255,255,0); 00506 wxColour *VioletColour = new wxColour(255,0,255); 00507 wxColour *CyanColour = new wxColour(0,255,255); 00508 00509 00510 // Create All DataSet 00511 // Per default : Show(false) 00512 m_dataSetArray[wxArea] = 00513 new wxDataSet(wxRED_PEN, wxRED_BRUSH, (wxString*)"Area"); 00514 00515 m_dataSetArray[wxPerimeter] = 00516 new wxDataSet(new wxPen(*BlueColour, 1, wxSOLID), 00517 new wxBrush(*BlueColour, wxSOLID), 00518 (wxString*)"Perimeter"); 00519 00520 m_dataSetArray[wxDiameterArea] = 00521 new wxDataSet(new wxPen(*GreyColour, 1, wxSOLID), 00522 new wxBrush(*GreyColour, wxSOLID), 00523 (wxString*)"Diameter from area"); 00524 00525 m_dataSetArray[wxDiameterPerimeter] = 00526 new wxDataSet(new wxPen(*YellowColour, 1, wxSOLID), 00527 new wxBrush(*YellowColour, wxSOLID), 00528 (wxString*)"Diameter from perimeter"); 00529 00530 m_dataSetArray[wxMinimumDiameter] = 00531 new wxDataSet(new wxPen(*VioletColour, 1, wxSOLID), 00532 new wxBrush(*VioletColour, wxSOLID), 00533 (wxString*)"Minimum diameter"); 00534 00535 m_dataSetArray[wxMaximumDiameter] = 00536 new wxDataSet(new wxPen(*CyanColour, 1, wxSOLID), 00537 new wxBrush(*CyanColour, wxSOLID), 00538 (wxString*)"Maximum diameter"); 00539 00540 m_dataSetArray[wxAverageDiameter] = 00541 new wxDataSet(wxBLACK_PEN, wxBLACK_BRUSH, (wxString*)"Average diameter"); 00542 00543 m_dataSetArray[wxStenosis] = 00544 new wxDataSet(wxGREEN_PEN, wxGREEN_BRUSH, (wxString*)"Stenosis"); 00545 00546 }
bool wxChart::IsEmpty | ( | int | a, | |
int | item | |||
) |
bool wxChart::IsEmpty | ( | int | a, | |
int | item | |||
) |
Definition at line 992 of file chart.cpp.
References Table::empty, and m_table.
Referenced by DrawLine(), and MaxValue().
double wxChart::MaxCol | ( | double | sup | ) | [private] |
double wxChart::MaxCol | ( | double | sup | ) | [private] |
Definition at line 362 of file chart.cpp.
References GetNumDataSet(), and GetShowDataSet().
Referenced by Draw().
00363 { 00364 double retour = 1.00; 00365 int maxdata = GetNumDataSet()-1; 00366 00367 // Exclure Stenosis for calcul MaxValue 00368 for(int a=0; a < maxdata; a++) 00369 { 00370 if (GetShowDataSet(a)) 00371 { 00372 if (max > retour) 00373 retour = max; 00374 a = maxdata - 1; 00375 } 00376 } 00377 00378 return retour; 00379 }
double wxChart::MaxValue | ( | ) | [private] |
double wxChart::MaxValue | ( | ) | [private] |
Definition at line 315 of file chart.cpp.
References GetDataY(), GetNumDataSet(), GetNumItem(), GetShowDataSet(), and IsEmpty().
Referenced by Draw().
00316 { 00317 double data, val = 1.00; 00318 int maxdata = GetNumDataSet()-1; 00319 int maxitem = GetNumItem(); 00320 00321 // Exclure Stenosis for calcul MaxValue 00322 for(int a=0; a < maxdata; a++) 00323 { 00324 if (GetShowDataSet(a)) 00325 { 00326 for(int j=0; j<=maxitem; j++) 00327 { 00328 if ( IsEmpty(a,j) == false ) 00329 { 00330 data = GetDataY(a,j); 00331 if (data > val) 00332 val = data; 00333 } 00334 } 00335 } 00336 } 00337 return val; 00338 }
double wxChart::MinCol | ( | double | inf | ) | [private] |
double wxChart::MinCol | ( | double | inf | ) | [private] |
Definition at line 342 of file chart.cpp.
References GetNumDataSet(), and GetShowDataSet().
Referenced by Draw().
00343 { 00344 double retour = 0.00; 00345 int maxdata = GetNumDataSet()-1; 00346 00347 // Exclure Stenosis for calcul MaxValue 00348 for(int a=0; a < maxdata; a++) 00349 { 00350 if (GetShowDataSet(a)) 00351 { 00352 if (min > retour) 00353 retour = min; 00354 a = maxdata - 1; 00355 } 00356 } 00357 00358 return retour; 00359 }
void wxChart::OnLeftClick | ( | wxDC & | dc, | |
double | x, | |||
double | y, | |||
int | keys | |||
) |
void wxChart::OnLeftClick | ( | wxDC & | dc, | |
double | x, | |||
double | y, | |||
int | keys | |||
) |
void wxChart::OnPaint | ( | wxPaintEvent & | event | ) |
void wxChart::OnPaint | ( | wxPaintEvent & | event | ) |
void wxChart::OnRightClick | ( | wxDC & | dc, | |
double | x, | |||
double | y, | |||
int | keys | |||
) |
void wxChart::OnRightClick | ( | wxDC & | dc, | |
double | x, | |||
double | y, | |||
int | keys | |||
) |
void wxChart::SetCadreLegend | ( | int | nbr, | |
int * | bottom | |||
) | [private] |
void wxChart::SetCadreLegend | ( | int | nbr, | |
int * | bottom | |||
) | [private] |
Definition at line 268 of file chart.cpp.
References GetEdgeBottom(), GetEdgeLeft(), GetEdgeRight(), m_CenterX, m_CenterY, m_MaxHauteur, m_MaxLargeur, SetEdgeBottomLegend(), SetEdgeLeftLegend(), SetEdgeRightLegend(), and SetEdgeTopLegend().
Referenced by Draw().
00269 { 00270 int val=GetEdgeBottom(); 00271 div_t result = div(nbr, 2); 00272 00273 if (result.rem == 0) 00274 val+= (nbr * 10) + 5; 00275 else 00276 val+= (( nbr + 1 ) * 10) + 5; 00277 00278 *bottom = val; 00279 00280 SetEdgeTopLegend(m_CenterY + (m_MaxHauteur/2) - val + 33); 00281 SetEdgeBottomLegend(8); 00282 00283 int l_left = GetEdgeLeft(); 00284 int l_right = GetEdgeRight(); 00285 00286 // more small for only 1 line 00287 if (nbr == 1) 00288 { 00289 l_left+=m_CenterX - (m_MaxLargeur/3); 00290 l_right+=m_CenterX - (m_MaxLargeur/3); 00291 } 00292 00293 SetEdgeLeftLegend(l_left); 00294 SetEdgeRightLegend(l_right); 00295 }
void wxChart::SetCenterChart | ( | int | x, | |
int | y | |||
) |
void wxChart::SetCenterChart | ( | int | x, | |
int | y | |||
) |
void wxChart::SetChartBounds | ( | ) | [private] |
void wxChart::SetChartBounds | ( | ) | [private] |
Definition at line 250 of file chart.cpp.
References m_Bottom, m_CenterX, m_CenterY, m_EdgeBottom, m_EdgeLeft, m_EdgeRight, m_EdgeTop, m_Left, m_MaxHauteur, m_MaxLargeur, m_Right, and m_Top.
Referenced by Draw().
00251 { 00252 m_Top = m_CenterY - (m_MaxHauteur/2) + m_EdgeTop; 00253 m_Bottom = m_CenterY + (m_MaxHauteur/2) - m_EdgeBottom; 00254 m_Left = m_CenterX - (m_MaxLargeur/2) + m_EdgeLeft; 00255 m_Right = m_CenterX + (m_MaxLargeur/2) - m_EdgeRight; 00256 00257 }
void wxChart::SetChartBoundsLegend | ( | ) | [private] |
void wxChart::SetChartBoundsLegend | ( | ) | [private] |
Definition at line 259 of file chart.cpp.
References m_BottomLegend, m_CenterX, m_CenterY, m_EdgeBottomLegend, m_EdgeLeftLegend, m_EdgeRightLegend, m_EdgeTopLegend, m_LeftLegend, m_MaxHauteur, m_MaxLargeur, m_RightLegend, and m_TopLegend.
Referenced by Draw().
00260 { 00261 m_TopLegend = m_CenterY - (m_MaxHauteur/2) + m_EdgeTopLegend; 00262 m_BottomLegend = m_CenterY + (m_MaxHauteur/2) - m_EdgeBottomLegend; 00263 m_LeftLegend = m_CenterX - (m_MaxLargeur/2) + m_EdgeLeftLegend; 00264 m_RightLegend = m_CenterX + (m_MaxLargeur/2) - m_EdgeRightLegend; 00265 }
void wxChart::SetData | ( | int | a, | |
int | item, | |||
double | x, | |||
double | y | |||
) |
void wxChart::SetData | ( | int | a, | |
int | item, | |||
double | x, | |||
double | y | |||
) |
void wxChart::SetEdgeBottom | ( | int | bottom | ) |
void wxChart::SetEdgeBottom | ( | int | bottom | ) |
Definition at line 431 of file chart.cpp.
References m_EdgeBottom.
Referenced by SetInitEdge().
00432 { 00433 m_EdgeBottom = bottom; 00434 }
void wxChart::SetEdgeBottomLegend | ( | int | bottom | ) |
void wxChart::SetEdgeBottomLegend | ( | int | bottom | ) |
Definition at line 452 of file chart.cpp.
References m_EdgeBottomLegend.
Referenced by SetCadreLegend().
00453 { 00454 m_EdgeBottomLegend = bottom; 00455 }
void wxChart::SetEdgeLeft | ( | int | left | ) |
void wxChart::SetEdgeLeft | ( | int | left | ) |
Definition at line 436 of file chart.cpp.
References m_EdgeLeft.
Referenced by SetInitEdge().
00437 { 00438 m_EdgeLeft = left; 00439 }
void wxChart::SetEdgeLeftLegend | ( | int | left | ) |
void wxChart::SetEdgeLeftLegend | ( | int | left | ) |
Definition at line 457 of file chart.cpp.
References m_EdgeLeftLegend.
Referenced by SetCadreLegend().
00458 { 00459 m_EdgeLeftLegend = left; 00460 }
void wxChart::SetEdgeRight | ( | int | right | ) |
void wxChart::SetEdgeRight | ( | int | right | ) |
Definition at line 441 of file chart.cpp.
References m_EdgeRight.
Referenced by Draw(), and SetInitEdge().
00442 { 00443 m_EdgeRight = right; 00444 }
void wxChart::SetEdgeRightLegend | ( | int | right | ) |
void wxChart::SetEdgeRightLegend | ( | int | right | ) |
Definition at line 463 of file chart.cpp.
References m_EdgeRightLegend.
Referenced by SetCadreLegend().
00464 { 00465 m_EdgeRightLegend = right; 00466 }
void wxChart::SetEdgeTop | ( | int | top | ) |
void wxChart::SetEdgeTop | ( | int | top | ) |
Definition at line 426 of file chart.cpp.
References m_EdgeTop.
Referenced by SetInitEdge().
00427 { 00428 m_EdgeTop = top; 00429 }
void wxChart::SetEdgeTopLegend | ( | int | top | ) |
void wxChart::SetEdgeTopLegend | ( | int | top | ) |
Definition at line 447 of file chart.cpp.
References m_EdgeTopLegend.
Referenced by SetCadreLegend().
00448 { 00449 m_EdgeTopLegend = top; 00450 }
void wxChart::SetIncAxisX | ( | double | minor, | |
double | major | |||
) |
void wxChart::SetIncAxisX | ( | double | minor, | |
double | major | |||
) |
Definition at line 227 of file chart.cpp.
References m_MajorIncX, and m_MinorIncX.
Referenced by Draw().
00228 { 00229 m_MinorIncX = minor; 00230 m_MajorIncX = major; 00231 }
void wxChart::SetIncAxisY | ( | double | minor, | |
double | major | |||
) |
void wxChart::SetIncAxisY | ( | double | minor, | |
double | major | |||
) |
Definition at line 233 of file chart.cpp.
References m_MajorIncY, and m_MinorIncY.
Referenced by Draw().
00234 { 00235 m_MinorIncY = minor; 00236 m_MajorIncY = major; 00237 }
void wxChart::SetInfX | ( | double | sup | ) | [private] |
void wxChart::SetInfX | ( | double | sup | ) | [private] |
void wxChart::SetInitEdge | ( | ) | [private] |
void wxChart::SetInitEdge | ( | ) | [private] |
Definition at line 240 of file chart.cpp.
References SetEdgeBottom(), SetEdgeLeft(), SetEdgeRight(), and SetEdgeTop().
Referenced by Draw().
00241 { 00242 SetEdgeTop(15); 00243 SetEdgeBottom(35); 00244 SetEdgeLeft(37); 00245 SetEdgeRight(15); 00246 }
void wxChart::SetMaxValue | ( | double | max | ) |
void wxChart::SetMaxValue | ( | double | max | ) |
Definition at line 306 of file chart.cpp.
References m_MaxValue.
Referenced by Draw().
00307 { 00308 // Axe Y 00309 m_MaxValue = max; 00310 }
void wxChart::SetMaxWidthHeight | ( | int | x, | |
int | y | |||
) |
void wxChart::SetMaxWidthHeight | ( | int | x, | |
int | y | |||
) |
Definition at line 406 of file chart.cpp.
References m_MaxHauteur, and m_MaxLargeur.
Referenced by Draw().
00407 { 00408 m_MaxLargeur = x; 00409 m_MaxHauteur = y; 00410 }
void wxChart::SetMaxX | ( | double | MaxX | ) |
void wxChart::SetMaxX | ( | double | MaxX | ) |
void wxChart::SetMinX | ( | double | MinX | ) |
void wxChart::SetMinX | ( | double | MinX | ) |
void wxChart::SetNumDataSet | ( | int | NumDataSet | ) |
void wxChart::SetNumDataSet | ( | int | NumDataSet | ) |
Definition at line 470 of file chart.cpp.
References m_NumDataSet.
Referenced by InitDataSet().
00471 { 00472 m_NumDataSet = num; 00473 }
void wxChart::SetNumItem | ( | int | NumItem | ) |
void wxChart::SetNumItem | ( | int | NumItem | ) |
void wxChart::SetShowPer | ( | bool | per | ) |
void wxChart::SetShowPer | ( | bool | per | ) |
Definition at line 299 of file chart.cpp.
References m_ShowPer.
Referenced by InitChart().
00300 { 00301 m_ShowPer = per; 00302 00303 }
void wxChart::SetStepSizePer | ( | double | sizePer | ) |
void wxChart::SetStepSizePer | ( | double | sizePer | ) |
Definition at line 394 of file chart.cpp.
References m_StepSizePer.
Referenced by Draw().
00395 { 00396 m_StepSizePer = stepPer; 00397 }
void wxChart::SetStepSizeX | ( | double | sizeX | ) |
void wxChart::SetStepSizeX | ( | double | sizeX | ) |
Definition at line 383 of file chart.cpp.
References m_StepSizeX.
Referenced by Draw().
00384 { 00385 m_StepSizeX = stepX; 00386 }
void wxChart::SetStepSizeY | ( | double | sizeY | ) |
void wxChart::SetStepSizeY | ( | double | sizeY | ) |
Definition at line 388 of file chart.cpp.
References m_StepSizeY.
Referenced by Draw().
00389 { 00390 m_StepSizeY = stepY; 00391 }
void wxChart::SetSupX | ( | double | sup | ) | [private] |
void wxChart::SetSupX | ( | double | sup | ) | [private] |
void wxChart::SetSupY | ( | double | sup | ) | [private] |
void wxChart::SetSupY | ( | double | sup | ) | [private] |
void wxChart::ShowDataSet | ( | bool | show, | |
int | dataset | |||
) |
void wxChart::ShowDataSet | ( | bool | show, | |
int | dataset | |||
) |
Definition at line 1019 of file chart.cpp.
References m_dataSetArray, and wxDataSet::Show().
Referenced by Draw(), and InitChart().
01020 { 01021 if(m_dataSetArray[dataset]) 01022 m_dataSetArray[dataset]->Show(show); 01023 }
int wxChart::m_Bottom [private] |
Definition at line 119 of file chart.h.
Referenced by DrawAxe(), DrawAxePer(), DrawGrille(), DrawLine(), and SetChartBounds().
int wxChart::m_BottomLegend [private] |
Definition at line 122 of file chart.h.
Referenced by DrawLegend(), and SetChartBoundsLegend().
int wxChart::m_CenterX [private] |
Definition at line 117 of file chart.h.
Referenced by SetCadreLegend(), SetCenterChart(), SetChartBounds(), and SetChartBoundsLegend().
int wxChart::m_CenterY [private] |
Definition at line 117 of file chart.h.
Referenced by SetCadreLegend(), SetCenterChart(), SetChartBounds(), and SetChartBoundsLegend().
wxDataSet * wxChart::m_dataSetArray [private] |
Definition at line 105 of file chart.h.
Referenced by Draw(), DrawLegend(), GetShowDataSet(), InitDataSet(), and ShowDataSet().
int wxChart::m_EdgeBottom [private] |
Definition at line 118 of file chart.h.
Referenced by Draw(), GetEdgeBottom(), SetChartBounds(), and SetEdgeBottom().
int wxChart::m_EdgeBottomLegend [private] |
Definition at line 121 of file chart.h.
Referenced by GetEdgeBottomLegend(), SetChartBoundsLegend(), and SetEdgeBottomLegend().
int wxChart::m_EdgeLeft [private] |
Definition at line 118 of file chart.h.
Referenced by Draw(), GetEdgeLeft(), SetChartBounds(), and SetEdgeLeft().
int wxChart::m_EdgeLeftLegend [private] |
Definition at line 121 of file chart.h.
Referenced by GetEdgeLeftLegend(), SetChartBoundsLegend(), and SetEdgeLeftLegend().
int wxChart::m_EdgeRight [private] |
Definition at line 118 of file chart.h.
Referenced by Draw(), GetEdgeRight(), SetChartBounds(), and SetEdgeRight().
int wxChart::m_EdgeRightLegend [private] |
Definition at line 121 of file chart.h.
Referenced by GetEdgeRightLegend(), SetChartBoundsLegend(), and SetEdgeRightLegend().
int wxChart::m_EdgeTop [private] |
Definition at line 118 of file chart.h.
Referenced by Draw(), GetEdgeTop(), SetChartBounds(), and SetEdgeTop().
int wxChart::m_EdgeTopLegend [private] |
Definition at line 121 of file chart.h.
Referenced by GetEdgeTopLegend(), SetChartBoundsLegend(), and SetEdgeTopLegend().
double wxChart::m_InfX [private] |
int wxChart::m_Left [private] |
Definition at line 119 of file chart.h.
Referenced by Draw(), DrawAxe(), DrawGrille(), DrawLine(), and SetChartBounds().
int wxChart::m_LeftLegend [private] |
Definition at line 122 of file chart.h.
Referenced by DrawLegend(), and SetChartBoundsLegend().
double wxChart::m_MajorIncX [private] |
Definition at line 124 of file chart.h.
Referenced by DrawAxe(), and SetIncAxisX().
double wxChart::m_MajorIncY [private] |
Definition at line 125 of file chart.h.
Referenced by DrawAxe(), and SetIncAxisY().
int wxChart::m_MaxHauteur [private] |
Definition at line 116 of file chart.h.
Referenced by Draw(), GetHauteur(), SetCadreLegend(), SetChartBounds(), SetChartBoundsLegend(), and SetMaxWidthHeight().
int wxChart::m_MaxLargeur [private] |
Definition at line 116 of file chart.h.
Referenced by Draw(), GetLargeur(), SetCadreLegend(), SetChartBounds(), SetChartBoundsLegend(), and SetMaxWidthHeight().
double wxChart::m_MaxValue [private] |
Definition at line 111 of file chart.h.
Referenced by Draw(), GetMaxValue(), and SetMaxValue().
double wxChart::m_MaxX [private] |
double wxChart::m_MinorIncX [private] |
Definition at line 124 of file chart.h.
Referenced by DrawAxe(), DrawGrille(), and SetIncAxisX().
double wxChart::m_MinorIncY [private] |
Definition at line 125 of file chart.h.
Referenced by DrawAxe(), DrawGrille(), and SetIncAxisY().
double wxChart::m_MinX [private] |
Definition at line 107 of file chart.h.
Referenced by Draw(), DrawAxe(), DrawGrille(), DrawLine(), GetMinX(), and SetMinX().
int wxChart::m_NumDataSet [private] |
Definition at line 102 of file chart.h.
Referenced by GetNumDataSet(), GetShow(), InitChart(), and SetNumDataSet().
int wxChart::m_NumItem [private] |
Definition at line 103 of file chart.h.
Referenced by GetNumItem(), and SetNumItem().
int wxChart::m_Right [private] |
Definition at line 119 of file chart.h.
Referenced by DrawAxe(), DrawAxePer(), DrawGrille(), and SetChartBounds().
int wxChart::m_RightLegend [private] |
Definition at line 122 of file chart.h.
Referenced by DrawLegend(), and SetChartBoundsLegend().
bool wxChart::m_ShowPer [private] |
Definition at line 114 of file chart.h.
Referenced by Draw(), GetShowPer(), and SetShowPer().
double wxChart::m_StepSizePer [private] |
Definition at line 110 of file chart.h.
Referenced by DrawAxePer(), DrawLine(), GetStepSizePer(), and SetStepSizePer().
double wxChart::m_StepSizeX [private] |
Definition at line 110 of file chart.h.
Referenced by DrawAxe(), DrawGrille(), DrawLine(), GetStepSizeX(), and SetStepSizeX().
double wxChart::m_StepSizeY [private] |
Definition at line 110 of file chart.h.
Referenced by DrawAxe(), DrawGrille(), DrawLine(), GetStepSizeY(), and SetStepSizeY().
double wxChart::m_SupX [private] |
double wxChart::m_SupY [private] |
Table wxChart::m_table [private] |
Definition at line 104 of file chart.h.
Referenced by GetDataX(), GetDataY(), InitData(), IsEmpty(), and SetData().
int wxChart::m_Top [private] |
Definition at line 119 of file chart.h.
Referenced by Draw(), DrawAxe(), DrawAxePer(), DrawGrille(), DrawLine(), and SetChartBounds().
int wxChart::m_TopLegend [private] |
Definition at line 122 of file chart.h.
Referenced by DrawLegend(), and SetChartBoundsLegend().
int wxChart::m_ValueCol [private] |
Definition at line 113 of file chart.h.
Referenced by GetValueCol().