CBlueUI  
C++ 跨平台跨框架的数据可视化工具
载入中...
搜索中...
未找到
BUI::CChartElePath类 参考

路径图形 更多...

类 BUI::CChartElePath 继承关系图:

Public 成员函数

 CChartElePath ()
 CChartElePath (PathTransform *trans, PathConvType type=CONV_NONE)
virtual ~CChartElePath ()
GPathStorageGetPath ()
void ShowBackGround (BOOL show)
void ShowBorder (BOOL show)
void SetBrushFill (const GBrush &bru)
void SetBrushStroke (const GBrush &bru)
void SetStrokeStyle (LineStyle style)
void SetStrokeSize (int size)
void SetLinePatternImage (GImage *img)
 设置线条图案
void LoadGeoJson (LPCTSTR file)
 加载geojson地理文件数据
void UpdatePathBox ()
BOOL IsVaild () override
BOOL OnNotifyMessage (IEventHandler *notify, UINT message, WPARAM wp, LPARAM lp) override
void DoPaintElement (ISurface *surface, const GColor &color, const RECT &rc_diagram, RECT *rc_update) override
void ShellElementAttribute (const BeString &str_name, const BeString &str_value, ICoordList *coord_list=NULL) override
 命令控制和属性设置接口
void GetElementRelationship (std::vector< BeString > &list) override
 获得类的继承关系
void OnParseElementData (XMLItem *node, CControlUI *parent) override
Public 成员函数 继承自 BUI::CChartElement
 CChartElement ()
virtual ~CChartElement ()
CChartDataLabelGetDataLabelInfo () const
void SetDataLabelInfo (CChartDataLabel *label_style)
BOOL IsDrawDataLabel () const
void DoChangeEleThemeColors (const BeString &name)
void DrawDataLabel (ISurface *surface, int x, int y, LPCTSTR str, const RECT &rc_diagram, RECT *rc_update)
virtual VecFloat2 GetPoint ()
virtual VecFloat2 GetLogicPoint (int field=0)
virtual BOOL IsViewportArea ()
virtual BOOL GetAxisXPoint (VecFloat2 &pt)
virtual void OnTranslateLanguage ()
virtual void ChangeElementThemeColors ()
Public 成员函数 继承自 BUI::CNodeCell
 CNodeCell ()
 CNodeCell (std::shared_ptr< CNodeData > valuedata)
virtual ~CNodeCell ()
void BindAction (std::shared_ptr< IActionNotify > action)
 绑定事件
std::shared_ptr< IActionNotifyActionOfNode () const
 获得事件
void DoNodeAction () const
 执行事件
void SetBackNodeData (const std::shared_ptr< CNodeData > &valuedata)
 设置背景显示节点
void SetSyntaxAst (LPCTSTR str_script)
 设置内置脚本代码
void SetName (BeString id)
 设置单元格名称id
BeStringName ()
 单元格名称id
BOOL IsEnable () const
 是否可用
void SetEnable (BOOL enable)
 开启(或禁用)单元格。默认保持开启
void OnDrawNodeCell (ISurface *surface, int paint_state, RECT rc_cell, const GColor &color_text, UINT text_align, PathTransInfo *clip_path=NULL)
void SetNodeData (const std::shared_ptr< CNodeData > &valuedata)
 设置单元格数据
std::shared_ptr< CNodeData > & GetNodeData ()
 获得单元格数据
void AddNodeData (const std::shared_ptr< CNodeData > &valuedata, int w=0, int h=0, LayoutMode mw=AdaptFill, LayoutMode mh=AdaptFill)
void InsertNodeData (int pos, const std::shared_ptr< CNodeData > &valuedata, int w=0, int h=0, LayoutMode mw=AdaptFill, LayoutMode mh=AdaptFill)
void SetNotifyHandler (IEventHandler *notify)
 设置消息通知处理者
void NeedUpdateUI ()
 刷新单元格ui
void NeedUpdateHostUI ()
 刷新宿主UI
virtual void ShellNodeCellAttribute (const BeString &str_name, const BeString &str_value)
 属性设置
ItemState & GetNodeState ()
 单元格状态
void ResetNodeState ()
 重置单元格状态
BOOL PtInCell (POINT pt)
 鼠标命中单元格测试
RECT CellRect () const
 单元格位置矩形区域
void SetRect (int x, int y, int w, int h)
 设置单元格位置矩形区域

Protected 属性

GPathStorage m_path
PathTransformm_trans
PathConvType m_conv
BoundRect m_path_box
UINT m_show_flag
GBrush m_bru_fill
GBrush m_bru_stroke
GImagem_img_pattern
LineStyle m_border_style
int m_border_size
ItemState m_state
Protected 属性 继承自 BUI::CChartElement
CChartDataLabelm_data_label

额外继承的成员函数

Public 属性 继承自 BUI::CNodeCell
RECT m_rc_cell
ItemState m_state
BeString m_name_id
IEventHandlerm_notify_handler
std::shared_ptr< CNodeDatam_backdata
std::shared_ptr< CNodeDatam_rawdata
std::shared_ptr< IActionNotifym_action
syntax_infom_cmd_ast

详细描述

路径图形

构造及析构函数说明

◆ CChartElePath() [1/2]

BUI::CChartElePath::CChartElePath ( )

◆ CChartElePath() [2/2]

BUI::CChartElePath::CChartElePath ( PathTransform * trans,
PathConvType type = CONV_NONE )

◆ ~CChartElePath()

virtual BUI::CChartElePath::~CChartElePath ( )
virtual

成员函数说明

◆ DoPaintElement()

void BUI::CChartElePath::DoPaintElement ( ISurface * surface,
const GColor & color,
const RECT & rc_diagram,
RECT * rc_update )
overridevirtual

◆ GetElementRelationship()

void BUI::CChartElePath::GetElementRelationship ( std::vector< BeString > & list)
overridevirtual

获得类的继承关系

重载 BUI::CChartElement .

◆ GetPath()

GPathStorage * BUI::CChartElePath::GetPath ( )

◆ IsVaild()

BOOL BUI::CChartElePath::IsVaild ( )
overridevirtual

◆ LoadGeoJson()

void BUI::CChartElePath::LoadGeoJson ( LPCTSTR file)

加载geojson地理文件数据

◆ OnNotifyMessage()

BOOL BUI::CChartElePath::OnNotifyMessage ( IEventHandler * notify,
UINT message,
WPARAM wp,
LPARAM lp )
overridevirtual

◆ OnParseElementData()

void BUI::CChartElePath::OnParseElementData ( XMLItem * node,
CControlUI * parent )
overridevirtual

◆ SetBrushFill()

void BUI::CChartElePath::SetBrushFill ( const GBrush & bru)

◆ SetBrushStroke()

void BUI::CChartElePath::SetBrushStroke ( const GBrush & bru)

◆ SetLinePatternImage()

void BUI::CChartElePath::SetLinePatternImage ( GImage * img)

设置线条图案

◆ SetStrokeSize()

void BUI::CChartElePath::SetStrokeSize ( int size)

◆ SetStrokeStyle()

void BUI::CChartElePath::SetStrokeStyle ( LineStyle style)

◆ ShellElementAttribute()

void BUI::CChartElePath::ShellElementAttribute ( const BeString & str_name,
const BeString & str_value,
ICoordList * coord_list = NULL )
overridevirtual

命令控制和属性设置接口

szName属性 szText语法格式
Coord
设置坐标系
Coord="坐标系名称"
convtype
变换方式
bspline :贝塞尔样条
curve-inc : 二阶曲线 内存友好型
curve-div : 二阶曲线
none 无变换
x1
y1
x2
y2
矩形坐标
x1="0" y1="0" x2="100" y2="100"
back-show
绘制背景
true / false
border-show
绘制边框
true / false
stroke-line-type
边框线条风格
solid, dot, dash, dash-dot, dash-dot-dot
fill
背景实色颜色
fill="0x124578"
stroke
边框实色颜色
stroke="0x124578"
stroke-size
边框大小
stroke-size="2"
series
将已有的图形序列,提取其路径
series="序列名称"
geojson
加载geo json文件数据
geojson="json文件路径"
image-pattern
线条图案
image-pattern="nameid"

重载 BUI::CChartElement .

◆ ShowBackGround()

void BUI::CChartElePath::ShowBackGround ( BOOL show)

◆ ShowBorder()

void BUI::CChartElePath::ShowBorder ( BOOL show)

◆ UpdatePathBox()

void BUI::CChartElePath::UpdatePathBox ( )

类成员变量说明

◆ m_border_size

int BUI::CChartElePath::m_border_size
protected

◆ m_border_style

LineStyle BUI::CChartElePath::m_border_style
protected

◆ m_bru_fill

GBrush BUI::CChartElePath::m_bru_fill
protected

◆ m_bru_stroke

GBrush BUI::CChartElePath::m_bru_stroke
protected

◆ m_conv

PathConvType BUI::CChartElePath::m_conv
protected

◆ m_img_pattern

GImage* BUI::CChartElePath::m_img_pattern
protected

◆ m_path

GPathStorage BUI::CChartElePath::m_path
protected

◆ m_path_box

BoundRect BUI::CChartElePath::m_path_box
protected

◆ m_show_flag

UINT BUI::CChartElePath::m_show_flag
protected

◆ m_state

ItemState BUI::CChartElePath::m_state
protected

◆ m_trans

PathTransform* BUI::CChartElePath::m_trans
protected
鄂公网安备42018502007752 鄂ICP备2024082886
Copyright © 2026 · CBlueStudio 版权所有