|
CBlueUI
C++ 跨平台跨框架的数据可视化工具
|
坐标轴基础信息基类(单坐标轴也是一种坐标系,线性坐标系) 更多...
类 BUI::CChartAxis 继承关系图:Public 成员函数 | |
| CChartAxis () | |
| virtual | ~CChartAxis () |
| void | SetScientificLabel (BOOL is_scientific) |
| 设置为科学计数法 | |
| void | SetEditUI (CEditTextUI *editui) |
| 设置编辑UI | |
| CEditTextUI * | GetEditUI () const |
| 获得编辑UI | |
| void | SetAxisColor (const GColor &c) |
| void | SetGridStyle (BOOL bFill, BOOL bLine) |
| BOOL | IsShowGridFill () const |
| 是否填充背景 | |
| BOOL | IsShowGridLine () const |
| 是否显示网格线 | |
| void | SetGridLineType (PenType type) |
| 设置网格线风格 | |
| void | SetFont (GFont *font) |
| 设置字体 | |
| 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 |
| 获得va刻度,应该显示的文本 | |
| virtual LPCTSTR | GetAxisClassName () |
| 获得坐标轴类名 | |
| virtual void | Swap () |
| 若满足笛卡尔坐标系,可以将X和Y翻转 | |
| void | OnTranslateLanguage () override |
| 翻译处理函数 | |
| void | ChangeThemeColors () override |
| 主题改变时触发 | |
| BOOL | OnNotifyMessage (IEventHandler *notify, UINT message, WPARAM wp, LPARAM lp) override |
| 消息处理函数 | |
| void | ShellCoordinateAttribute (const BeString &szName, const BeString &szText, ICoordList *crdlist) override |
| 命令控制和属性设置接口 | |
Public 成员函数 继承自 BUI::CChartCoordinate | |
| 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 |
| 返回在坐标系下,是否存在命中的元素 | |
| BOOL | IsEnable () const |
| 获取可用性 | |
| void | SetEnable (BOOL enable) |
| 设置可用性 | |
| virtual BOOL | IsVaild () |
| 坐标系统是否是有效的 | |
| virtual VecFloat2 | GetCurHitPos () |
| 获得当前鼠标位置,转换为图标坐标系后的点 | |
| virtual RECT | RectDiagram () |
| 坐标系矩形区域 | |
| virtual void | ChangeThemeColors () |
| 主题改变时触发 | |
| virtual void | GetCoordinateValue (int mouse_x, int mouse_y, double *outValus, int out_len) |
| 获得鼠标处,表示的坐标值 | |
| virtual void | OnCalcAxisPosition (RECT rcDiagram) |
| 坐标轴位置时响应事件 | |
| virtual void | OnSetWindowRect (RECT rcWindow) |
| window窗口位置更新 | |
| 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 double | GetShowFactor (int axis_index) |
| 获得坐标轴(axis_index). 屏幕起点到终点的距离(D),和数值范围(V)的比值。即V/D。 | |
| virtual void | ShellCoordinateAttribute (const BeString &szName, const BeString &szText, ICoordList *crdlist) |
| 命令控制和属性设置接口 | |
| double | GetCoordinateWeight (double value) override |
| 获得权重 | |
Public 成员函数 继承自 BUI::PathTransform | |
| PathTransform () | |
| virtual | ~PathTransform () |
| virtual void | Transform (double *x, double *y) |
| 得到(x,y)转换后的值。转换后依然存入x和y变量中。 | |
| virtual void | TransformFloat (float *x, float *y) |
| virtual void | TransformLong (LONG *x, LONG *y) |
| virtual void | Transform2x2 (double *x, double *y) |
| 得到(x,y)转换(忽略平移值)后的值。通常用于计算宽度和高度的变化。转换后依然存入x和y变量中。 | |
| virtual BOOL | IsInPath (double x, double y) |
| 是否在坐标系内 | |
| virtual double | GetCoordinateWeight (double value) |
| 获得权重 | |
| virtual BOOL | IsCartesianSystem () |
| 是否是笛卡尔坐标系 | |
Public 成员函数 继承自 BUI::VisibleProperty | |
| VisibleProperty () | |
| ~VisibleProperty () | |
| BOOL | IsVisable () const |
| void | SetVisable (BOOL bShow) |
Protected 成员函数 | |
| void | ChangeCChartAxisTheme () |
Protected 成员函数 继承自 BUI::CChartCoordinate | |
| void | DrawBarStyle (ISurface *pSurface, DrawBarInfo *barinfo) |
| BOOL | HittestBar (DrawBarInfo *barinfo) |
| BOOL | IsVisibleView (DrawBarInfo *barinfo) |
| void | DoChangeThemeColors (const BeString &name) |
额外继承的成员函数 | |
Protected 属性 继承自 BUI::CChartCoordinate | |
| BeString | m_name_id |
| RECT | m_rect_diagram |
| POINT | m_point_centerView |
| VecFloat2 | m_point_cur_hit |
| WeightValueTransModel | m_weight_mode |
| UINT | m_coord_flags |
| BOOL | m_is_hit_ele |
| GBrushGradient * | m_color_map |
| double | m_time_axis_value |
| BOOL | m_is_enable |
Protected 属性 继承自 BUI::VisibleProperty | |
| BOOL | m_is_visbale |
坐标轴基础信息基类(单坐标轴也是一种坐标系,线性坐标系)
| BUI::CChartAxis::CChartAxis | ( | ) |
|
virtual |
|
protected |
|
overridevirtual |
|
virtual |
获得坐标轴类名
被 BUI::LinearAxis, BUI::CircleAxis, BUI::RadarAxis , 以及 BUI::TernaryAxis 重载.
| void BUI::CChartAxis::GetAxisLabelTickText | ( | BasicStringBuffer & | buf, |
| double | va | ||
| ) | const |
获得va刻度,应该显示的文本
| CEditTextUI * BUI::CChartAxis::GetEditUI | ( | ) | const |
获得编辑UI
| 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::SetScientificLabel | ( | BOOL | is_scientific | ) |
设置为科学计数法
| 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" |
| show-gridfill 显示网格填充 | true / false |
| show-gridline 显示网格线 | true / false |
| Precision 刻度文本显示精度 | Precision="2" |
| Scientific 刻度文本以科学计数法显示 | Scientific="true" |
| AlignTextSign 刻度文本正负符号对齐 | 默认为false. AlignTextSign="true" |
| fill | 轴背景颜色 |
| fill-interval 间隔颜色 | |
| fill-scroll 滚动滑块颜色 | |
| fill-text 文本颜色 | |
| fill-text-bg 文本背景颜色 | |
| stroke 轴线颜色 | |
| stroke-minor 长刻度颜色 | |
| stroke-major 小刻度颜色 | |
| stroke-grid 网格线颜色 | |
| stroke-cross 交叉线颜色 | |
| edit-ui 编辑输入UI | edit-ui="id" |
被 BUI::LinearAxis, BUI::CircleAxis, BUI::RadarAxis, BUI::TernaryAxis , 以及 BUI::ParallelAxis 重载.
|
virtual |
若满足笛卡尔坐标系,可以将X和Y翻转
被 BUI::LinearAxis 重载.
| GBrushArray BUI::CChartAxis::m_bru_fill_axis |
| GBrushArray BUI::CChartAxis::m_bru_fill_interval |
| GBrushArray BUI::CChartAxis::m_bru_fill_scroll |
| GBrushArray BUI::CChartAxis::m_bru_stroke_axis |
| GBrushArray BUI::CChartAxis::m_bru_stroke_cross |
| GBrushArray BUI::CChartAxis::m_bru_stroke_grid |
| GBrushArray BUI::CChartAxis::m_bru_stroke_major |
| GBrushArray BUI::CChartAxis::m_bru_stroke_minor |
| GBrushArray BUI::CChartAxis::m_bru_text |
| GBrushArray BUI::CChartAxis::m_bru_text_bg |
| int BUI::CChartAxis::m_decimal_precision |
| VecFloat2 BUI::CChartAxis::m_edit_left[4] |
| VecFloat2 BUI::CChartAxis::m_edit_right[4] |
| CEditTextUI* BUI::CChartAxis::m_edit_ui |
| GFont* BUI::CChartAxis::m_font |
| PenType BUI::CChartAxis::m_gridline_style |
| BOOL BUI::CChartAxis::m_is_align_text_sign |
| BOOL BUI::CChartAxis::m_is_fill_grid |
| BOOL BUI::CChartAxis::m_is_recalac_data |
| BOOL BUI::CChartAxis::m_is_remove_last_zero |
| BOOL BUI::CChartAxis::m_is_show_scientific |
| BOOL BUI::CChartAxis::m_is_stroke_grid_line |
| double BUI::CChartAxis::m_offset_label |
| LPTranformText BUI::CChartAxis::m_proc_conver_text |
| LPTranformValue BUI::CChartAxis::m_proc_conver_text_value |
| int BUI::CChartAxis::m_show_edit_mode |
| BeString BUI::CChartAxis::m_text_prefix |
| BeString BUI::CChartAxis::m_text_suffix |