Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayGraph::CGraphCfg Class Reference

#include <cGraphCfg.h>

Inheritance diagram for GrayGraph::CGraphCfg:
Gray::CObject

Public Member Functions

 CGraphCfg ()
 
 CGraphCfg (const CGraphCfg &src)
 
 ~CGraphCfg ()
 
const CGraphCfgoperator= (const CGraphCfg &src)
 
void CopyPenCfgs (const CGraphCfg *pSrc)
 
ITERATE_t GetPenCfgQty () const
 
const CGraphPenCfgGetPenCfg (ITERATE_t i) const
 
CGraphPenCfgGetPenCfg (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
 

Detailed Description

Describe the attributes of the graph. Serialize this configuration data.

Constructor & Destructor Documentation

◆ CGraphCfg() [1/2]

GrayGraph::CGraphCfg::CGraphCfg ( )

◆ CGraphCfg() [2/2]

GrayGraph::CGraphCfg::CGraphCfg ( const CGraphCfg src)
inline

◆ ~CGraphCfg()

GrayGraph::CGraphCfg::~CGraphCfg ( )

Member Function Documentation

◆ AddPenCfg()

ITERATE_t GrayGraph::CGraphCfg::AddPenCfg ( CGraphPenCfg PenCfg)
inline

◆ CopyPenCfgs()

void GrayGraph::CGraphCfg::CopyPenCfgs ( const CGraphCfg pSrc)

◆ DelPenCfg()

void GrayGraph::CGraphCfg::DelPenCfg ( ITERATE_t  i)
inline

◆ DrawPlotBackground()

void GrayGraph::CGraphCfg::DrawPlotBackground ( CDC &  dc,
CRect rect 
)

◆ GetPenCfg() [1/2]

CGraphPenCfg* GrayGraph::CGraphCfg::GetPenCfg ( ITERATE_t  i)
inline

◆ GetPenCfg() [2/2]

const CGraphPenCfg* GrayGraph::CGraphCfg::GetPenCfg ( ITERATE_t  i) const
inline

< Stupid MFC class makes this really difficult.

◆ GetPenCfgQty()

ITERATE_t GrayGraph::CGraphCfg::GetPenCfgQty ( ) const
inline

◆ GetUnusedPenColor()

COLORREF GrayGraph::CGraphCfg::GetUnusedPenColor ( ) const

Try to pick a color and point style that is not already used !

◆ GetUnusedPenPointType()

GraphPenPoint_Type GrayGraph::CGraphCfg::GetUnusedPenPointType ( ) const

◆ GetViewRect()

void GrayGraph::CGraphCfg::GetViewRect ( CGraphRect rectView,
int  iActivePen 
) const

◆ IsPenColorUsed()

bool GrayGraph::CGraphCfg::IsPenColorUsed ( COLORREF  Color) const

is it a duplicate color ?

◆ IsPenPointTypeUsed()

bool GrayGraph::CGraphCfg::IsPenPointTypeUsed ( GraphPenPoint_Type  ePenPoint) const

◆ LoadPlotBackground()

bool GrayGraph::CGraphCfg::LoadPlotBackground ( CString sFilename,
bool  fTest 
)

◆ operator=()

const CGraphCfg& GrayGraph::CGraphCfg::operator= ( const CGraphCfg src)
inline

◆ Serialize()

void GrayGraph::CGraphCfg::Serialize ( CArchive ar)
virtual

Reimplemented from Gray::CObject.

◆ SetViewRect()

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.

Note
it';s possible for the Active pen to be invalid here !

Member Data Documentation

◆ m_bmpPlotBack

CBitmap GrayGraph::CGraphCfg::m_bmpPlotBack

(NOT WORKING !) Loaded on demand.

◆ m_BorderBackColor

COLORREF GrayGraph::CGraphCfg::m_BorderBackColor

Background color.

◆ m_bPlotGrid

BOOL GrayGraph::CGraphCfg::m_bPlotGrid

Background grid.

◆ m_ePlotBackFormat

GraphPlotBackFormat_Type GrayGraph::CGraphCfg::m_ePlotBackFormat

tiled, centered etc.

◆ m_eShowPenLabels

int GrayGraph::CGraphCfg::m_eShowPenLabels

list our pens GraphPlotShowPens_Bottom

◆ m_fPenUnitSync

BOOL GrayGraph::CGraphCfg::m_fPenUnitSync

only one scale for all pens.

◆ m_fPenUnitVertical

BOOL GrayGraph::CGraphCfg::m_fPenUnitVertical

◆ m_fShowLabel

BOOL GrayGraph::CGraphCfg::m_fShowLabel

label at the top ?

◆ m_fShowPenUnits

BOOL GrayGraph::CGraphCfg::m_fShowPenUnits

range of the pens value.

◆ m_fShowTimeScale

BOOL GrayGraph::CGraphCfg::m_fShowTimeScale

time scale.

◆ m_fTimeScaleSync

BOOL GrayGraph::CGraphCfg::m_fTimeScaleSync

(NOT WORKING !)Sync all pens to the TimeScale.

◆ m_fTimeScaleVertical

BOOL GrayGraph::CGraphCfg::m_fTimeScaleVertical

◆ m_iMarginSize

int GrayGraph::CGraphCfg::m_iMarginSize

in dialog units.

◆ m_iTimeScaleGap

TIMESECD_t GrayGraph::CGraphCfg::m_iTimeScaleGap

(NOT WORKING !) How big may the gap be before we remove it. (seconds)

◆ m_LabelFont

CGraphFont GrayGraph::CGraphCfg::m_LabelFont

◆ m_PenLabelsFont

CGraphFont GrayGraph::CGraphCfg::m_PenLabelsFont

◆ m_PenUnitsFont

CGraphFont GrayGraph::CGraphCfg::m_PenUnitsFont

◆ m_PlotBackColor

COLORREF GrayGraph::CGraphCfg::m_PlotBackColor

Background color.

◆ m_sLabelText

CString GrayGraph::CGraphCfg::m_sLabelText

A general label for the whole graph.

◆ m_sPlotBackPic

CString GrayGraph::CGraphCfg::m_sPlotBackPic

(NOT WORKING !) Background picture.

◆ m_TimeScaleFont

CGraphFont GrayGraph::CGraphCfg::m_TimeScaleFont

The documentation for this class was generated from the following files: