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

饼图扇形图形 更多...

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

Public 成员函数

 CChartElePie ()
 
 CChartElePie (CChartCoordinate *coordSys, double cx, double cy, double startAngle, double endAngle, float r0, float r1, const GColor &color, int nCenterOffset=0)
 
 ~CChartElePie ()
 
void ShowRoundStyle (BOOL isRound)
 
BOOL IsVaild () 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 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 ()
 
- 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)
 
BeStringName ()
 
void OnDrawNodeCell (ISurface *pSurface, int paintState, RECT rcCell, COLORREF textColor, UINT textAlignFlag, PathTransInfo *clipborderpath=NULL)
 
void SetNodeData (std::shared_ptr< CNodeData > valuedata)
 
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)
 
BOOL NotifyMsg (UINT message, WPARAM wp, LPARAM lp)
 
void NeedUpdateUI ()
 
void NeedUpdateHostUI ()
 
void ShellNodeCellAttribute (const BeString &szName, const BeString &szText)
 
ItemState & GetNodeState ()
 
void Clear ()
 
BOOL PtInCell (POINT pt)
 
void SetRect (int x, int y, int w, int h)
 
RECT CellRect () const
 
std::shared_ptr< CNodeData > & GetNodeData ()
 

Protected 属性

CChartCoordinatem_CoordSys
 
BeString m_strLabel
 
GColor m_pieColor
 
double m_cx
 
double m_cy
 
double m_fStartAngle
 
double m_fEndAngle
 
int m_nCenterOffset
 
float m_fRadius0
 
float m_fRadius1
 
BOOL m_isRound
 
- Protected 属性 继承自 BUI::CChartElement
CChartDataLabelm_datalabel
 

额外继承的成员函数

- Public 属性 继承自 BUI::CNodeCell
RECT m_rcCell
 
ItemState m_state
 
BeString m_nameid
 
IEventHandlerm_notifyHandler
 
std::shared_ptr< CNodeDatam_backdata
 
std::shared_ptr< CNodeDatam_rawdata
 
std::shared_ptr< IActionNotifym_action
 
syntax_infom_cmd_ast
 

详细描述

饼图扇形图形

构造及析构函数说明

◆ CChartElePie() [1/2]

BUI::CChartElePie::CChartElePie ( )

◆ CChartElePie() [2/2]

BUI::CChartElePie::CChartElePie ( CChartCoordinate coordSys,
double  cx,
double  cy,
double  startAngle,
double  endAngle,
float  r0,
float  r1,
const GColor color,
int  nCenterOffset = 0 
)

◆ ~CChartElePie()

BUI::CChartElePie::~CChartElePie ( )

成员函数说明

◆ DoPaintElement()

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

◆ IsVaild()

BOOL BUI::CChartElePie::IsVaild ( )
overridevirtual

◆ OnNotifyMessage()

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

◆ ShellElementAttribute()

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

命令控制和属性设置接口

szName属性 szText语法格式
Coord
极坐标系
Coord="坐标系名称"
cx cy
圆心
a1
开始角度
a2
结束角度
center-offset
圆心偏移量
center-offset="10,10"
r0
内环半径
r1
外环半径
isRound
拐角连续可导,更加平滑
true / false
color
颜色
color="0x124578"

重载 BUI::CChartElement .

◆ ShowRoundStyle()

void BUI::CChartElePie::ShowRoundStyle ( BOOL  isRound)

类成员变量说明

◆ m_CoordSys

CChartCoordinate* BUI::CChartElePie::m_CoordSys
protected

◆ m_cx

double BUI::CChartElePie::m_cx
protected

◆ m_cy

double BUI::CChartElePie::m_cy
protected

◆ m_fEndAngle

double BUI::CChartElePie::m_fEndAngle
protected

◆ m_fRadius0

float BUI::CChartElePie::m_fRadius0
protected

◆ m_fRadius1

float BUI::CChartElePie::m_fRadius1
protected

◆ m_fStartAngle

double BUI::CChartElePie::m_fStartAngle
protected

◆ m_isRound

BOOL BUI::CChartElePie::m_isRound
protected

◆ m_nCenterOffset

int BUI::CChartElePie::m_nCenterOffset
protected

◆ m_pieColor

GColor BUI::CChartElePie::m_pieColor
protected

◆ m_strLabel

BeString BUI::CChartElePie::m_strLabel
protected
鄂公网安备42018502007752 鄂ICP备2024082886
Copyright © 2025 · CBlueStudio 版权所有