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

表针图形 更多...

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

Public 成员函数

 CChartEleMeterPin ()
 
 CChartEleMeterPin (PathTransform *trans, const GColor &color, double cx=0.0, double cy=0.0, double v1=0.0, double v2=0.0, double width=0, double weight=0)
 
 ~CChartEleMeterPin ()
 
void SetValue (double v1, double v2)
 
double GetValue (int field=0)
 
void SetDrawType (MeterPinDrawType type)
 
BOOL IsVaild () override
 
void DoPaintElement (ISurface *pSurface, const GColor &color, const RECT &rcDiagram, RECT *rcUpdate) 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 属性

PathTransformm_trans
 
double m_cx
 
double m_cy
 
double m_x1
 
double m_y1
 
double m_nPinTailWeight
 
double m_pinWidth
 
GColor m_Color
 
MeterPinDrawType m_pinDrawStyle
 
- 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
 

详细描述

表针图形

构造及析构函数说明

◆ CChartEleMeterPin() [1/2]

BUI::CChartEleMeterPin::CChartEleMeterPin ( )

◆ CChartEleMeterPin() [2/2]

BUI::CChartEleMeterPin::CChartEleMeterPin ( PathTransform trans,
const GColor color,
double  cx = 0.0,
double  cy = 0.0,
double  v1 = 0.0,
double  v2 = 0.0,
double  width = 0,
double  weight = 0 
)

◆ ~CChartEleMeterPin()

BUI::CChartEleMeterPin::~CChartEleMeterPin ( )

成员函数说明

◆ DoPaintElement()

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

◆ GetValue()

double BUI::CChartEleMeterPin::GetValue ( int  field = 0)

◆ IsVaild()

BOOL BUI::CChartEleMeterPin::IsVaild ( )
overridevirtual

◆ SetDrawType()

void BUI::CChartEleMeterPin::SetDrawType ( MeterPinDrawType  type)

◆ SetValue()

void BUI::CChartEleMeterPin::SetValue ( double  v1,
double  v2 
)

◆ ShellElementAttribute()

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

命令控制和属性设置接口

szName属性 szText语法格式
Coord
设置坐标系
Coord="坐标系名称"
cx
cy
圆心
cx="0.5"
cy="0.5"
v1
v2
针尖点
之所以不写成x,y是抽象定义了自变量轴(v1)和值域轴(v2)
v1="0.5"
v2="0.5"
pin-size
指针宽度
pin-size="4"
color
指针颜色
color="0x124578"
style-draw
指针风格
triangle:三角型
default :线条型

重载 BUI::CChartElement .

类成员变量说明

◆ m_Color

GColor BUI::CChartEleMeterPin::m_Color
protected

◆ m_cx

double BUI::CChartEleMeterPin::m_cx
protected

◆ m_cy

double BUI::CChartEleMeterPin::m_cy
protected

◆ m_nPinTailWeight

double BUI::CChartEleMeterPin::m_nPinTailWeight
protected

◆ m_pinDrawStyle

MeterPinDrawType BUI::CChartEleMeterPin::m_pinDrawStyle
protected

◆ m_pinWidth

double BUI::CChartEleMeterPin::m_pinWidth
protected

◆ m_trans

PathTransform* BUI::CChartEleMeterPin::m_trans
protected

◆ m_x1

double BUI::CChartEleMeterPin::m_x1
protected

◆ m_y1

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