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

飞控姿态表盘(AttitudeIndicator) 更多...

类 BUI::CChartEleAttitudeIndicator 继承关系图:

Public 成员函数

 CChartEleAttitudeIndicator ()
 CChartEleAttitudeIndicator (CChartCoordinate *coord_sys, double cx, double cy, double r_outer, double r_inner)
 ~CChartEleAttitudeIndicator ()
void SetBankAngle (double a)
 设置偏角
void SetPitchAngle (double a)
 设置仰角
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
 获得类的继承关系
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 IsVaild ()
virtual BOOL GetAxisXPoint (VecFloat2 &pt)
virtual void OnParseElementData (XMLItem *node, CControlUI *parent)
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 属性

CChartCoordinatem_coord_obj
GColor m_color_text
 文本和标线颜色
GColor m_color_sky
 天空颜色
GColor m_color_earth
 地平线颜色
GColor m_color_mark
VecFloat2 m_point_center
double m_r_outer
double m_r_inner
double m_angle_bank
double m_angle_pitch
double m_pitch_max
double m_pitch_unit
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

详细描述

飞控姿态表盘(AttitudeIndicator)

构造及析构函数说明

◆ CChartEleAttitudeIndicator() [1/2]

BUI::CChartEleAttitudeIndicator::CChartEleAttitudeIndicator ( )

◆ CChartEleAttitudeIndicator() [2/2]

BUI::CChartEleAttitudeIndicator::CChartEleAttitudeIndicator ( CChartCoordinate * coord_sys,
double cx,
double cy,
double r_outer,
double r_inner )

◆ ~CChartEleAttitudeIndicator()

BUI::CChartEleAttitudeIndicator::~CChartEleAttitudeIndicator ( )

成员函数说明

◆ DoPaintElement()

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

◆ GetElementRelationship()

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

获得类的继承关系

重载 BUI::CChartElement .

◆ OnNotifyMessage()

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

◆ SetBankAngle()

void BUI::CChartEleAttitudeIndicator::SetBankAngle ( double a)

设置偏角

◆ SetPitchAngle()

void BUI::CChartEleAttitudeIndicator::SetPitchAngle ( double a)

设置仰角

◆ ShellElementAttribute()

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

命令控制和属性设置接口

szName属性 szText语法格式
Coord
设置坐标系
Coord="坐标系名称"
cx
中心点X
cx="50"
cy
中心点Y
cy="50"
r-outer
外环半径
r-outer="50"
r-inner
内环半径
r-inner="50"
color-mark
标记颜色
color-mark="0x000000"
color-sky
天空颜色
color-sky="0x000000"
color-earth
地表颜色
color-earth="0x000000"
color-text
文本和标线颜色
color-text="0x000000"
angle-bank
偏角(单位角度)
angle-bank="10"
angle-pitch
仰角 (单位角度)
angle-pitch="5"

重载 BUI::CChartElement .

类成员变量说明

◆ m_angle_bank

double BUI::CChartEleAttitudeIndicator::m_angle_bank
protected

◆ m_angle_pitch

double BUI::CChartEleAttitudeIndicator::m_angle_pitch
protected

◆ m_color_earth

GColor BUI::CChartEleAttitudeIndicator::m_color_earth
protected

地平线颜色

◆ m_color_mark

GColor BUI::CChartEleAttitudeIndicator::m_color_mark
protected

◆ m_color_sky

GColor BUI::CChartEleAttitudeIndicator::m_color_sky
protected

天空颜色

◆ m_color_text

GColor BUI::CChartEleAttitudeIndicator::m_color_text
protected

文本和标线颜色

◆ m_coord_obj

CChartCoordinate* BUI::CChartEleAttitudeIndicator::m_coord_obj
protected

◆ m_pitch_max

double BUI::CChartEleAttitudeIndicator::m_pitch_max
protected

◆ m_pitch_unit

double BUI::CChartEleAttitudeIndicator::m_pitch_unit
protected

◆ m_point_center

VecFloat2 BUI::CChartEleAttitudeIndicator::m_point_center
protected

◆ m_r_inner

double BUI::CChartEleAttitudeIndicator::m_r_inner
protected

◆ m_r_outer

double BUI::CChartEleAttitudeIndicator::m_r_outer
protected
鄂公网安备42018502007752 鄂ICP备2024082886
Copyright © 2026 · CBlueStudio 版权所有