CBlueUI
C++ 跨平台跨框架的数据可视化工具
|
坐标轴基础信息基类(单坐标轴也是一种坐标系,线性坐标系) 更多...
Public 成员函数 | |
CChartAxis () | |
virtual | ~CChartAxis () |
void | SetScientificLabel (BOOL isScientific) |
设置为科学计数法 | |
void | SetEditUI (CEditTextUI *editui) |
设置编辑UI | |
CEditTextUI * | GetEditUI () const |
获得编辑UI | |
void | SetAxisColor (const GColor &c) |
void | SetGridStyle (BOOL bFill, BOOL bLine) |
void | SetGridLineType (PenType type) |
void | SetFont (GFont *font) |
BOOL | IsShowGridFill () const |
BOOL | IsShowGridLine () const |
BOOL | IsNeedCalcDataScreenPoint () const |
void | SetReCalcDataScreenPoint (BOOL bReCalc) |
void | SetLabelPrefix (BeString str) |
void | SetLabelSuffix (BeString str) |
void | SetDecimalPrecision (int preci) |
void | SetLabelOffsetRelativeToMajortick (double weight) |
void | SetTranformAxisLabelFunc (LPTranformText fn) |
在显示轴上的文本时,完全由回调函数显示。轴文本自定义转换函数 | |
void | SetTranformAxisLabelValueFunc (LPTranformValue fn) |
在显示轴上的文本时,仅对数值进行转换 | |
void | GetAxisLabelTickText (BasicStringBuffer &buf, double va) const |
virtual LPCTSTR | GetAxisTypeId () |
virtual void | Swap () |
void | OnTranslateLanguage () override |
翻译处理函数 | |
BOOL | OnNotifyMessage (IEventHandler *notify, UINT message, WPARAM wp, LPARAM lp) override |
消息处理函数 | |
void | ShellCoordinateAttribute (const BeString &szName, const BeString &szText, ICoordList *crdlist) override |
命令控制和属性设置接口 | |
![]() | |
CChartCoordinate () | |
virtual | ~CChartCoordinate () |
void | SetAxisNameText (const BeString &str) |
const BeString & | GetAxisName () |
POINT | CoordinateCenterPoint () const |
void | SetCoordinateCenterPoint (LONG x, LONG y) |
VecFloat2 | GetPointFromPercent (double xp, double yp) const |
返回百分比坐标 | |
void | ModifyCoordinateFlags (UINT style, UINT op=ADD_FLAGS) |
UINT | IsHasCoordinateFlags (UINT flags) const |
void | SetAxisColorMapGradient (GBrushGradient *color_map) |
GBrushGradient * | GetAxisColorMapGradient () const |
< 设置取色器 | |
void | SetCoordHitState (BOOL hit) |
BOOL | GetCoordHitState () const |
< 设置坐标系下,是否存在命中的元素 | |
virtual BOOL | IsVaild () |
坐标系统是否是有效的 | |
virtual POINT | GetCurHitPos () |
获得当前鼠标位置,转换为图标坐标系后的点 | |
virtual RECT | RectDiagram () |
virtual void | GetCoordinateValue (int mouse_x, int mouse_y, double *outValus, int out_len) |
获得鼠标处,表示的坐标值 | |
virtual void | OnCalcAxisPosition (RECT rcDiagram) |
坐标轴位置时响应事件 | |
virtual void | OnTranslateLanguage () |
翻译处理函数 | |
virtual void | OnPaintChartBackground (ISurface *pSurface, RECT *rcClip) |
virtual void | OnPaintChart (ISurface *pSurface, RECT *rcClip) |
virtual void | OnPaintChartCrossLine (ISurface *pSurface, RECT *rcClip, double v1, double v2, LineStyle *style, const GColor &crosslinecolor) |
virtual BOOL | OnNotifyMessage (IEventHandler *notify, UINT message, WPARAM wp, LPARAM lp) |
消息处理函数 | |
virtual VecFloat2 | ViewIntSizeByValueTrans (double cx, double cy, AxisValueTransModel mx, AxisValueTransModel my) |
virtual VecFloat2 | ViewIntPointByValueTrans (double x, double y, AxisValueTransModel mx, AxisValueTransModel my) |
virtual BOOL | IsViewportAreaByValueTrans (double x, double y, AxisValueTransModel mx, AxisValueTransModel my) |
virtual double | GetAxisNewTimePos (int axis_index) |
获得当前最新时间的数据坐标轴位置 | |
virtual void | GetDataRange (int axis_index, double &fmin, double &fmax) |
获得坐标轴(axis_index)的数据范围 | |
virtual void | ShellCoordinateAttribute (const BeString &szName, const BeString &szText, ICoordList *crdlist) |
命令控制和属性设置接口 | |
double | GetCoordinateWeight (double value) override |
![]() | |
PathTransform () | |
virtual | ~PathTransform () |
virtual void | Transform (double *x, double *y) |
virtual void | TransformFloat (float *x, float *y) |
virtual void | Transform2x2 (double *x, double *y) |
virtual BOOL | IsInPath (double x, double y) |
virtual double | GetCoordinateWeight (double value) |
virtual BOOL | IsCartesianSystem () |
![]() | |
VisibleProperty () | |
~VisibleProperty () | |
BOOL | IsVisable () const |
void | SetVisable (BOOL bShow) |
Protected 成员函数 | |
void | ChangeCChartAxisTheme (int theme) |
![]() | |
void | DrawBarStyle (ISurface *pSurface, DrawBarInfo *barinfo) |
BOOL | HittestBar (DrawBarInfo *barinfo) |
BOOL | IsVisibleView (DrawBarInfo *barinfo) |
额外继承的成员函数 | |
![]() | |
BeString | m_nameid |
RECT | m_rcDiagram |
POINT | m_ptCenterView |
POINT | m_ptCurHit |
WeightValueTransModel | m_weight_mode |
UINT | m_coord_flags |
BOOL | m_isHasHitEle |
GBrushGradient * | m_color_map |
double | m_time_axis_value |
![]() | |
BOOL | m_bVisbale |
坐标轴基础信息基类(单坐标轴也是一种坐标系,线性坐标系)
BUI::CChartAxis::CChartAxis | ( | ) |
|
virtual |
|
protected |
void BUI::CChartAxis::GetAxisLabelTickText | ( | BasicStringBuffer & | buf, |
double | va | ||
) | const |
|
virtual |
被 BUI::LinearAxis, BUI::CircleAxis, BUI::RadarAxis , 以及 BUI::TernaryAxis 重载.
CEditTextUI * BUI::CChartAxis::GetEditUI | ( | ) | const |
获得编辑UI
BOOL BUI::CChartAxis::IsNeedCalcDataScreenPoint | ( | ) | const |
BOOL BUI::CChartAxis::IsShowGridFill | ( | ) | const |
BOOL BUI::CChartAxis::IsShowGridLine | ( | ) | const |
|
overridevirtual |
消息处理函数
notify | 指向图标UI控件,用于外部事件回调 |
被 BUI::LinearAxis, BUI::CircleAxis, BUI::RadarAxis, BUI::TernaryAxis , 以及 BUI::ParallelAxis 重载.
|
overridevirtual |
void BUI::CChartAxis::SetAxisColor | ( | const GColor & | c | ) |
void BUI::CChartAxis::SetDecimalPrecision | ( | int | preci | ) |
void BUI::CChartAxis::SetEditUI | ( | CEditTextUI * | editui | ) |
设置编辑UI
void BUI::CChartAxis::SetFont | ( | GFont * | font | ) |
void BUI::CChartAxis::SetGridLineType | ( | PenType | type | ) |
void BUI::CChartAxis::SetLabelOffsetRelativeToMajortick | ( | double | weight | ) |
void BUI::CChartAxis::SetLabelPrefix | ( | BeString | str | ) |
void BUI::CChartAxis::SetLabelSuffix | ( | BeString | str | ) |
void BUI::CChartAxis::SetReCalcDataScreenPoint | ( | BOOL | bReCalc | ) |
void BUI::CChartAxis::SetScientificLabel | ( | BOOL | isScientific | ) |
设置为科学计数法
void BUI::CChartAxis::SetTranformAxisLabelFunc | ( | LPTranformText | fn | ) |
在显示轴上的文本时,完全由回调函数显示。轴文本自定义转换函数
void BUI::CChartAxis::SetTranformAxisLabelValueFunc | ( | LPTranformValue | fn | ) |
在显示轴上的文本时,仅对数值进行转换
|
overridevirtual |
命令控制和属性设置接口
szName属性 | szText语法格式 |
---|---|
line-type 线条类型 | solid, dot, dash, dash-dot, dash-dot-dot |
font 字体 | font="字体唯一资源符" |
text-offset 文本偏移量 | text-offset="5,10" |
colors 颜色 | name="axis:0x124578;tickMajor:#235689" |
axis :轴颜色 | |
tickMajor : 长刻度颜色 | |
tickMinor : 小刻度颜色 | |
text : 文本颜色 | |
gridline : 网格线颜色 | |
back : 背景颜色 | |
interval : 间隔颜色 | |
scroll : 滚动滑块颜色 | |
show-gridfill 显示网格填充 | true / false |
show-gridline 显示网格线 | true / false |
Precision 刻度文本显示精度 | Precision="2" |
Scientific 刻度文本以科学计数法显示 | Scientific="true" |
AlignTextSign 刻度文本正负符号对齐 | 默认为false. AlignTextSign="true" |
edit-ui 编辑输入UI | edit-ui="id" |
被 BUI::LinearAxis, BUI::CircleAxis, BUI::RadarAxis, BUI::TernaryAxis , 以及 BUI::ParallelAxis 重载.
|
virtual |
被 BUI::LinearAxis 重载.
COLORREF BUI::CChartAxis::m_axiscolor |
BOOL BUI::CChartAxis::m_bGirdLine |
BOOL BUI::CChartAxis::m_bGridFill |
COLORREF BUI::CChartAxis::m_bkcolor |
BOOL BUI::CChartAxis::m_bReCalacData |
COLORREF BUI::CChartAxis::m_crossLineColor |
int BUI::CChartAxis::m_decimalPrecision |
VecFloat2 BUI::CChartAxis::m_edit_left[4] |
VecFloat2 BUI::CChartAxis::m_edit_right[4] |
CEditTextUI* BUI::CChartAxis::m_edit_ui |
LPTranformText BUI::CChartAxis::m_fConverText |
LPTranformValue BUI::CChartAxis::m_fConverTextValue |
GFont* BUI::CChartAxis::m_font |
COLORREF BUI::CChartAxis::m_gridcolor |
PenType BUI::CChartAxis::m_gridlineStyle |
COLORREF BUI::CChartAxis::m_Intervalcolor |
BOOL BUI::CChartAxis::m_isAlignTextSign |
BOOL BUI::CChartAxis::m_isRemoveLastZero |
BOOL BUI::CChartAxis::m_isScientific |
int BUI::CChartAxis::m_isShowIdx |
COLORREF BUI::CChartAxis::m_labelcolor |
COLORREF BUI::CChartAxis::m_majorTickColor |
COLORREF BUI::CChartAxis::m_minorTickColor |
double BUI::CChartAxis::m_offset_label |
COLORREF BUI::CChartAxis::m_scrollcolor |
BeString BUI::CChartAxis::m_textPrefix |
BeString BUI::CChartAxis::m_textSuffix |