![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cGraphCfg.h>
Public Member Functions | |
| CGraphCfg () | |
| CGraphCfg (const CGraphCfg &src) | |
| ~CGraphCfg () | |
| const CGraphCfg & | operator= (const CGraphCfg &src) |
| void | CopyPenCfgs (const CGraphCfg *pSrc) |
| ITERATE_t | GetPenCfgQty () const |
| const CGraphPenCfg * | GetPenCfg (ITERATE_t i) const |
| CGraphPenCfg * | GetPenCfg (ITERATE_t i) |
| ITERATE_t | AddPenCfg (CGraphPenCfg &PenCfg) |
| void | DelPenCfg (ITERATE_t i) |
| void | DrawPlotBackground (CDC &dc, CRect &rect) |
| virtual void | Serialize (CArchive &ar) |
| bool | LoadPlotBackground (CString &sFilename, bool fTest) |
| void | GetViewRect (CGraphRect &rectView, int iActivePen) const |
| void | SetViewRect (CGraphRect &rectView, int iActivePen) |
| bool | IsPenColorUsed (COLORREF Color) const |
| COLORREF | GetUnusedPenColor () const |
| bool | IsPenPointTypeUsed (GraphPenPoint_Type ePenPoint) const |
| GraphPenPoint_Type | GetUnusedPenPointType () const |
Public Member Functions inherited from Gray::CObject | |
| virtual | ~CObject () |
| virtual bool | isValidCheck () const noexcept |
| < memory allocation and structure definitions are valid. More... | |
| virtual void | AssertValid () const |
| < memory allocation and structure definitions are valid. More... | |
Public Attributes | |
| BOOL | m_fShowPenUnits |
| range of the pens value. More... | |
| BOOL | m_fShowTimeScale |
| time scale. More... | |
| int | m_eShowPenLabels |
| list our pens GraphPlotShowPens_Bottom More... | |
| BOOL | m_fShowLabel |
| label at the top ? More... | |
| int | m_iMarginSize |
| in dialog units. More... | |
| COLORREF | m_BorderBackColor |
| Background color. More... | |
| CString | m_sLabelText |
| A general label for the whole graph. More... | |
| GraphPlotBackFormat_Type | m_ePlotBackFormat |
| tiled, centered etc. More... | |
| COLORREF | m_PlotBackColor |
| Background color. More... | |
| CString | m_sPlotBackPic |
| (NOT WORKING !) Background picture. More... | |
| BOOL | m_bPlotGrid |
| Background grid. More... | |
| CBitmap | m_bmpPlotBack |
| (NOT WORKING !) Loaded on demand. More... | |
| BOOL | m_fTimeScaleSync |
| (NOT WORKING !)Sync all pens to the TimeScale. More... | |
| TIMESECD_t | m_iTimeScaleGap |
| (NOT WORKING !) How big may the gap be before we remove it. (seconds) More... | |
| BOOL | m_fTimeScaleVertical |
| BOOL | m_fPenUnitVertical |
| BOOL | m_fPenUnitSync |
| only one scale for all pens. More... | |
| CGraphFont | m_LabelFont |
| CGraphFont | m_PenUnitsFont |
| CGraphFont | m_TimeScaleFont |
| CGraphFont | m_PenLabelsFont |
Describe the attributes of the graph. Serialize this configuration data.
| GrayGraph::CGraphCfg::CGraphCfg | ( | ) |
|
inline |
| GrayGraph::CGraphCfg::~CGraphCfg | ( | ) |
|
inline |
| void GrayGraph::CGraphCfg::CopyPenCfgs | ( | const CGraphCfg * | pSrc | ) |
|
inline |
| void GrayGraph::CGraphCfg::DrawPlotBackground | ( | CDC & | dc, |
| CRect & | rect | ||
| ) |
|
inline |
|
inline |
< Stupid MFC class makes this really difficult.
|
inline |
| COLORREF GrayGraph::CGraphCfg::GetUnusedPenColor | ( | ) | const |
Try to pick a color and point style that is not already used !
| GraphPenPoint_Type GrayGraph::CGraphCfg::GetUnusedPenPointType | ( | ) | const |
| void GrayGraph::CGraphCfg::GetViewRect | ( | CGraphRect & | rectView, |
| int | iActivePen | ||
| ) | const |
| bool GrayGraph::CGraphCfg::IsPenColorUsed | ( | COLORREF | Color | ) | const |
is it a duplicate color ?
| bool GrayGraph::CGraphCfg::IsPenPointTypeUsed | ( | GraphPenPoint_Type | ePenPoint | ) | const |
| bool GrayGraph::CGraphCfg::LoadPlotBackground | ( | CString & | sFilename, |
| bool | fTest | ||
| ) |
|
virtual |
Reimplemented from Gray::CObject.
| void GrayGraph::CGraphCfg::SetViewRect | ( | CGraphRect & | rectView, |
| int | iActivePen | ||
| ) |
The view rectangle has changed by user request. so remember this for the active pen or all pens.
| CBitmap GrayGraph::CGraphCfg::m_bmpPlotBack |
(NOT WORKING !) Loaded on demand.
| COLORREF GrayGraph::CGraphCfg::m_BorderBackColor |
Background color.
| BOOL GrayGraph::CGraphCfg::m_bPlotGrid |
Background grid.
| GraphPlotBackFormat_Type GrayGraph::CGraphCfg::m_ePlotBackFormat |
tiled, centered etc.
| int GrayGraph::CGraphCfg::m_eShowPenLabels |
list our pens GraphPlotShowPens_Bottom
| BOOL GrayGraph::CGraphCfg::m_fPenUnitSync |
only one scale for all pens.
| BOOL GrayGraph::CGraphCfg::m_fPenUnitVertical |
| BOOL GrayGraph::CGraphCfg::m_fShowLabel |
label at the top ?
| BOOL GrayGraph::CGraphCfg::m_fShowPenUnits |
range of the pens value.
| BOOL GrayGraph::CGraphCfg::m_fShowTimeScale |
time scale.
| BOOL GrayGraph::CGraphCfg::m_fTimeScaleSync |
(NOT WORKING !)Sync all pens to the TimeScale.
| BOOL GrayGraph::CGraphCfg::m_fTimeScaleVertical |
| int GrayGraph::CGraphCfg::m_iMarginSize |
in dialog units.
| TIMESECD_t GrayGraph::CGraphCfg::m_iTimeScaleGap |
(NOT WORKING !) How big may the gap be before we remove it. (seconds)
| CGraphFont GrayGraph::CGraphCfg::m_LabelFont |
| CGraphFont GrayGraph::CGraphCfg::m_PenLabelsFont |
| CGraphFont GrayGraph::CGraphCfg::m_PenUnitsFont |
| COLORREF GrayGraph::CGraphCfg::m_PlotBackColor |
Background color.
| CString GrayGraph::CGraphCfg::m_sLabelText |
A general label for the whole graph.
| CString GrayGraph::CGraphCfg::m_sPlotBackPic |
(NOT WORKING !) Background picture.
| CGraphFont GrayGraph::CGraphCfg::m_TimeScaleFont |