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

柱状图形或环状条形 更多...

+ 类 BUI::CChartEleRangeBar 继承关系图:

Public 成员函数

 CChartEleRangeBar ()
 
 CChartEleRangeBar (CChartCoordinate *coordSys, double x, double weight, double by, double dy, const GColor &color)
 Construct a new CChartEleRangeBar object
 
 ~CChartEleRangeBar ()
 
void SetColor (GColor color)
 
void SetRangeBaseValue (double by)
 
void SetRangeValue (double dy)
 
double BaseValue () const
 
double Value () const
 
BOOL IsVaild () override
 
BOOL IsViewportArea () override
 
void DoPaintElement (ISurface *pSurface, const GColor &color, const RECT &rcDiagram, RECT *rcUpdate) override
 
BOOL OnNotifyMessage (IEventHandler *notify, UINT message, WPARAM wp, LPARAM lp) override
 
void ShellElementAttribute (const BeString &szName, const BeString &szText, ICoordList *crdlist=NULL) override
 命令控制和属性设置接口
 
- Public 成员函数 继承自 BUI::CChartElement
 CChartElement ()
 
virtual ~CChartElement ()
 
CChartDataLabelGetDataLabelInfo () const
 
void SetDataLabelInfo (CChartDataLabel *labelStyle)
 
BOOL IsDrawDataLabel () const
 
void DoChangeEleThemeColors (const BeString &name)
 
void DrawDataLabel (ISurface *pSurface, int x, int y, LPCTSTR str, const RECT &rcDiagram, RECT *rcUpdate)
 
virtual void DoPaintElement (ISurface *pSurface, const GColor &color, const RECT &rcDiagram, RECT *rcUpdate)
 
virtual VecFloat2 GetPoint ()
 
virtual VecFloat2 GetLogicPoint (int field=0)
 
virtual BOOL IsViewportArea ()
 
virtual BOOL IsVaild ()
 
virtual BOOL GetAxisXPoint (VecFloat2 &pt)
 
virtual BOOL OnNotifyMessage (IEventHandler *notify, UINT message, WPARAM wp, LPARAM lp)
 
virtual void ShellElementAttribute (const BeString &szName, const BeString &szText, ICoordList *crdlist=NULL)
 命令控制和属性设置接口
 
virtual void OnParseElementData (XMLItem *pNode, CControlUI *parent)
 
virtual void OnTranslateLanguage ()
 
virtual void ChangeThemeColors ()
 
- 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 (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 *pSurface, int paintState, RECT rcCell, const GColor &color_text, UINT textAlignFlag, PathTransInfo *clipborderpath=NULL)
 
void SetNodeData (std::shared_ptr< CNodeData > valuedata)
 设置单元格数据
 
std::shared_ptr< CNodeData > & GetNodeData ()
 获得单元格数据
 
void AddNodeData (std::shared_ptr< CNodeData > valuedata, int w=0, int h=0, SizeMode stw=AdaptFill, SizeMode sth=AdaptFill)
 
void InsertNodeData (int pos, std::shared_ptr< CNodeData > valuedata, int w=0, int h=0, SizeMode stw=AdaptFill, SizeMode sth=AdaptFill)
 
void SetNotifyHandler (IEventHandler *notify)
 设置消息通知处理者
 
void NeedUpdateUI ()
 刷新单元格ui
 
void NeedUpdateHostUI ()
 刷新宿主UI
 
void ShellNodeCellAttribute (const BeString &szName, const BeString &szText)
 属性设置
 
ItemState & GetNodeState ()
 单元格状态
 
void ResetNodeState ()
 重置单元格状态
 
BOOL PtInCell (POINT pt)
 鼠标命中单元格测试
 
RECT CellRect () const
 单元格位置矩形区域
 
void SetRect (int x, int y, int w, int h)
 设置单元格位置矩形区域
 

Protected 成员函数

void FillDrawBarInfo (DrawBarInfo &datainfo)
 

Protected 属性

CChartCoordinatem_coord_obj
 
double m_x
 
double m_weight
 
double m_by
 
double m_dy
 
GColor m_bru_color
 
BOOL m_is_swap
 
- 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
 

详细描述

柱状图形或环状条形

构造及析构函数说明

◆ CChartEleRangeBar() [1/2]

BUI::CChartEleRangeBar::CChartEleRangeBar ( )

◆ CChartEleRangeBar() [2/2]

BUI::CChartEleRangeBar::CChartEleRangeBar ( CChartCoordinate coordSys,
double  x,
double  weight,
double  by,
double  dy,
const GColor color 
)

Construct a new CChartEleRangeBar object

参数
coordSys坐标系
x自变量(在极坐标下x表示r, y表示theta)
weight权重宽度
by基准线
dy增量
color颜色

◆ ~CChartEleRangeBar()

BUI::CChartEleRangeBar::~CChartEleRangeBar ( )

成员函数说明

◆ BaseValue()

double BUI::CChartEleRangeBar::BaseValue ( ) const

◆ DoPaintElement()

void BUI::CChartEleRangeBar::DoPaintElement ( ISurface pSurface,
const GColor color,
const RECT rcDiagram,
RECT rcUpdate 
)
overridevirtual

◆ FillDrawBarInfo()

void BUI::CChartEleRangeBar::FillDrawBarInfo ( DrawBarInfo datainfo)
protected

◆ IsVaild()

BOOL BUI::CChartEleRangeBar::IsVaild ( )
overridevirtual

◆ IsViewportArea()

BOOL BUI::CChartEleRangeBar::IsViewportArea ( )
overridevirtual

◆ OnNotifyMessage()

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

◆ SetColor()

void BUI::CChartEleRangeBar::SetColor ( GColor  color)

◆ SetRangeBaseValue()

void BUI::CChartEleRangeBar::SetRangeBaseValue ( double  by)

◆ SetRangeValue()

void BUI::CChartEleRangeBar::SetRangeValue ( double  dy)

◆ ShellElementAttribute()

void BUI::CChartEleRangeBar::ShellElementAttribute ( const BeString szName,
const BeString szText,
ICoordList crdlist = NULL 
)
overridevirtual

命令控制和属性设置接口

szName属性 szText语法格式
Coord
设置坐标系
Coord="坐标系名称"
x
weight
权重宽度
by
基线
dy
偏移量
xySwap
xy交换
true / false
fill
颜色
fill="0x124578"

重载 BUI::CChartElement .

◆ Value()

double BUI::CChartEleRangeBar::Value ( ) const

类成员变量说明

◆ m_bru_color

GColor BUI::CChartEleRangeBar::m_bru_color
protected

◆ m_by

double BUI::CChartEleRangeBar::m_by
protected

◆ m_coord_obj

CChartCoordinate* BUI::CChartEleRangeBar::m_coord_obj
protected

◆ m_dy

double BUI::CChartEleRangeBar::m_dy
protected

◆ m_is_swap

BOOL BUI::CChartEleRangeBar::m_is_swap
protected

◆ m_weight

double BUI::CChartEleRangeBar::m_weight
protected

◆ m_x

double BUI::CChartEleRangeBar::m_x
protected
鄂公网安备42018502007752 鄂ICP备2024082886
Copyright © 2025 · CBlueStudio 版权所有