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

树节点图形 更多...

类 BUI::CChartEleTree 继承关系图:

struct  EleTreeBoxRow

Public 成员函数

 CChartEleTree ()
virtual ~CChartEleTree ()
void Clear ()
CChartEleTreeInsertChild (CChartEleTree *prev_slib, std::shared_ptr< CNodeData > &data)
void CalculateDimensions (ISurface *surface)
 计算节点占位尺寸
void GenerateCoordinates (int x, int y, int level_distance, int leaf_distance, int group_distance)
 预先计算节点布局位置
void TreePreLayoutCircle (ISurface *surface, int x, int y, double step_size, int R, int level)
void TreeLimitRange (POINT &pt_min, POINT &pt_max)
int CenterPosOfChilds ()
void SetNodeSize (int r)
SIZE GetNodeSize (ISurface *surface) const
int GetChildNodeDistance (ISurface *surface) const
 获取子节点之间的间距
void MovePosition (int dx, int dy)
void TransPos (TreeLayoutType type, int dx=0, int dy=0, int level=0)
void TreeToList (std::map< int, std::vector< CChartEleTree * > > &map_tree, int level, TreeLayoutType type)
void DoPaintElementSquarify (ISurface *surface, const GColor &color, const RECT &rc_diagram, RECT *rc_update)
void DoPaintElement (ISurface *surface, const GColor &color, const RECT &rc_diagram, RECT *rc_update) override
BOOL OnNotifyMessage (IEventHandler *notify, UINT message, WPARAM wp, LPARAM lp) 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 IsVaild ()
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)
 设置单元格位置矩形区域
Public 成员函数 继承自 BUI::GStyleMarkShape
 GStyleMarkShape ()
 ~GStyleMarkShape ()
void SetMarkStyle (TypeMarkShape style)
void SetMarkSize (double mark_size)
void SetMarkColor (const GColor &color)
TypeMarkShape GetMarkStyle () const
double GetMarkSize () const
GColor GetMarkColor () const
void OnPaintMarkShape (ISurface *surface, int cx, int cy, const RECT &rc_diagram, RECT *rc_clip)
void OnPaintMarkShape (ISurface *surface, int cx, int cy, int size, const RECT &rc_diagram, RECT *rc_clip)
BOOL OnPtInMarkShape (POINT pt, int cx, int cy)
void ShellMarkAttribute (const BeString &str_name, const BeString &str_value)

Public 属性

int size_r
TreeLayoutType tree_Layout_type
bool is_collapsed
POINT position
SIZE box
BOOL is_visited
CChartEleTreeparent
CChartEleTreefirst_child
CChartEleTreelast_child
CChartEleTreeprev_sibling
CChartEleTreenext_sibling
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

额外继承的成员函数

静态 Public 成员函数 继承自 BUI::GStyleMarkShape
static void PaintMarkShape (ISurface *surface, int cx, int cy, TypeMarkShape style, int size, const GColor &color, const RECT &rc_diagram, RECT *rc_clip)
static void PaintMarkShapeBorder (ISurface *surface, int cx, int cy, TypeMarkShape style, int mark_size, int border_size, const GColor &color, const RECT &rc_diagram, RECT *rc_clip)
static BOOL PtInMarkShape (POINT pt, int cx, int cy, TypeMarkShape style, int size)
Protected 属性 继承自 BUI::CChartElement
CChartDataLabelm_data_label
Protected 属性 继承自 BUI::GStyleMarkShape
TypeMarkShape m_mark_style
double m_mark_size
GColor m_mark_color
GColor m_mark_sel_color

详细描述

树节点图形

构造及析构函数说明

◆ CChartEleTree()

BUI::CChartEleTree::CChartEleTree ( )

◆ ~CChartEleTree()

virtual BUI::CChartEleTree::~CChartEleTree ( )
virtual

成员函数说明

◆ CalculateDimensions()

void BUI::CChartEleTree::CalculateDimensions ( ISurface * surface)

计算节点占位尺寸

◆ CenterPosOfChilds()

int BUI::CChartEleTree::CenterPosOfChilds ( )

◆ Clear()

void BUI::CChartEleTree::Clear ( )

◆ DoPaintElement()

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

◆ DoPaintElementSquarify()

void BUI::CChartEleTree::DoPaintElementSquarify ( ISurface * surface,
const GColor & color,
const RECT & rc_diagram,
RECT * rc_update )

◆ GenerateCoordinates()

void BUI::CChartEleTree::GenerateCoordinates ( int x,
int y,
int level_distance,
int leaf_distance,
int group_distance )

预先计算节点布局位置

参数
surface
x
y
level_distance不同层级之间的距离
leaf_distance相同层级之间的间距

◆ GetChildNodeDistance()

int BUI::CChartEleTree::GetChildNodeDistance ( ISurface * surface) const

获取子节点之间的间距

◆ GetElementRelationship()

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

获得类的继承关系

重载 BUI::CChartElement .

◆ GetNodeSize()

SIZE BUI::CChartEleTree::GetNodeSize ( ISurface * surface) const

◆ InsertChild()

CChartEleTree * BUI::CChartEleTree::InsertChild ( CChartEleTree * prev_slib,
std::shared_ptr< CNodeData > & data )

◆ MovePosition()

void BUI::CChartEleTree::MovePosition ( int dx,
int dy )

◆ OnNotifyMessage()

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

◆ OnParseElementData()

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

◆ SetNodeSize()

void BUI::CChartEleTree::SetNodeSize ( int r)

◆ ShellElementAttribute()

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

命令控制和属性设置接口

szName属性 szText语法格式
name
图形名称
name="xxx"

重载 BUI::CChartElement .

◆ TransPos()

void BUI::CChartEleTree::TransPos ( TreeLayoutType type,
int dx = 0,
int dy = 0,
int level = 0 )

◆ TreeLimitRange()

void BUI::CChartEleTree::TreeLimitRange ( POINT & pt_min,
POINT & pt_max )

◆ TreePreLayoutCircle()

void BUI::CChartEleTree::TreePreLayoutCircle ( ISurface * surface,
int x,
int y,
double step_size,
int R,
int level )

◆ TreeToList()

void BUI::CChartEleTree::TreeToList ( std::map< int, std::vector< CChartEleTree * > > & map_tree,
int level,
TreeLayoutType type )

类成员变量说明

◆ box

SIZE BUI::CChartEleTree::box

◆ first_child

CChartEleTree* BUI::CChartEleTree::first_child

◆ is_collapsed

bool BUI::CChartEleTree::is_collapsed

◆ is_visited

BOOL BUI::CChartEleTree::is_visited

◆ last_child

CChartEleTree* BUI::CChartEleTree::last_child

◆ next_sibling

CChartEleTree* BUI::CChartEleTree::next_sibling

◆ parent

CChartEleTree* BUI::CChartEleTree::parent

◆ position

POINT BUI::CChartEleTree::position

◆ prev_sibling

CChartEleTree* BUI::CChartEleTree::prev_sibling

◆ size_r

int BUI::CChartEleTree::size_r

◆ tree_Layout_type

TreeLayoutType BUI::CChartEleTree::tree_Layout_type
鄂公网安备42018502007752 鄂ICP备2024082886
Copyright © 2026 · CBlueStudio 版权所有