CBlueUI
C++ 跨平台跨框架的数据可视化工具
|
坐标轴基础信息基类(单坐标轴也是一种坐标系,线性坐标系) 更多...
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) |
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 |
翻译处理函数 | |
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 |
命令控制和属性设置接口 | |
![]() | |
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 POINT | 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 | 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)的比值。即D/V。 | |
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 | TransformLong (LONG *x, LONG *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 () |
![]() | |
void | DrawBarStyle (ISurface *pSurface, DrawBarInfo *barinfo) |
BOOL | HittestBar (DrawBarInfo *barinfo) |
BOOL | IsVisibleView (DrawBarInfo *barinfo) |
void | DoChangeThemeColors (const BeString &name) |
额外继承的成员函数 | |
![]() | |
BeString | m_name_id |
RECT | m_rect_diagram |
POINT | m_point_centerView |
POINT | 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 |
![]() | |
BOOL | m_is_visbale |
坐标轴基础信息基类(单坐标轴也是一种坐标系,线性坐标系)
BUI::CChartAxis::CChartAxis | ( | ) |
|
virtual |
|
protected |
|
overridevirtual |
被 BUI::TernaryAxis 重载.
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 | 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 |
被 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 |