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

树节点图形 更多...

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

struct  EleTreeBoxRow
 

Public 成员函数

 CChartEleTree ()
 
virtual ~CChartEleTree ()
 
void Clear ()
 
CChartEleTreeInsertChild (CChartEleTree *prevslib, std::shared_ptr< CNodeData > &data)
 
void CalculateDimensions (ISurface *pSurface)
 
void GenerateCoordinates (int x, int y, int level_distance, int leaf_distance, int group_distance)
 预先计算节点布局位置
 
void TreePreLayoutCircle (ISurface *pSurface, int x, int y, double stepsize, int R, int level)
 
void TreeLimitRange (POINT &ptMin, POINT &ptMax)
 
int CenterPosOfChilds ()
 
void SetNodeSize (int r)
 
SIZE GetNodeSize (ISurface *pSurface) const
 
int GetChildNodeDistance (ISurface *pSurface) 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 * > > &maptree, int level, TreeLayoutType type)
 
void DoPaintElementSquarify (ISurface *pSurface, const GColor &color, const RECT &rcDiagram, RECT *rcUpdate)
 
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
 命令控制和属性设置接口
 
void OnParseElementData (XMLItem *pNode, CControlUI *parent) 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 ()
 
- Public 成员函数 继承自 BUI::GStyleMarkShape
 GStyleMarkShape ()
 
 ~GStyleMarkShape ()
 
void SetMarkStyle (TypeMarkShape style)
 
void SetMarkSize (double marksize)
 
void SetMarkColor (COLORREF color)
 
TypeMarkShape GetMarkStyle () const
 
double GetMarkSize () const
 
COLORREF GetMarkColor () const
 
void OnPaintMarkShape (ISurface *pSurface, int cx, int cy, const RECT &rcDiagram, RECT *rcClip)
 
void OnPaintMarkShape (ISurface *pSurface, int cx, int cy, int size, const RECT &rcDiagram, RECT *rcClip)
 
BOOL OnPtInMarkShape (POINT pt, int cx, int cy)
 
void ShellMarkAttribute (const BeString &szName, const BeString &szText)
 

Public 属性

int size_r
 
TreeLayoutType trLayType
 
bool bCollapsed
 
POINT position
 
SIZE box
 
BOOL isVisited
 
CChartEleTreeparent
 
CChartEleTreefirstChild
 
CChartEleTreelastChild
 
CChartEleTreeprevSibling
 
CChartEleTreenextSibling
 
- 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
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 BUI::GStyleMarkShape
static void PaintMarkShape (ISurface *pSurface, int cx, int cy, TypeMarkShape style, int size, COLORREF color, const RECT &rcDiagram, RECT *rcClip)
 
static void PaintMarkShapeBorder (ISurface *pSurface, int cx, int cy, TypeMarkShape style, int marksize, int bordersize, COLORREF color, const RECT &rcDiagram, RECT *rcClip)
 
static BOOL PtInMarkShape (POINT pt, int cx, int cy, TypeMarkShape style, int size)
 
- Protected 属性 继承自 BUI::CChartElement
CChartDataLabelm_datalabel
 
- Protected 属性 继承自 BUI::GStyleMarkShape
TypeMarkShape m_markStyle
 
double m_nMarkSize
 
COLORREF m_MarkColor
 
COLORREF m_MarkSelColor
 

详细描述

树节点图形

构造及析构函数说明

◆ CChartEleTree()

BUI::CChartEleTree::CChartEleTree ( )

◆ ~CChartEleTree()

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

成员函数说明

◆ CalculateDimensions()

void BUI::CChartEleTree::CalculateDimensions ( ISurface pSurface)

◆ CenterPosOfChilds()

int BUI::CChartEleTree::CenterPosOfChilds ( )

◆ Clear()

void BUI::CChartEleTree::Clear ( )

◆ DoPaintElement()

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

◆ DoPaintElementSquarify()

void BUI::CChartEleTree::DoPaintElementSquarify ( ISurface pSurface,
const GColor color,
const RECT rcDiagram,
RECT rcUpdate 
)

◆ GenerateCoordinates()

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

预先计算节点布局位置

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

◆ GetChildNodeDistance()

int BUI::CChartEleTree::GetChildNodeDistance ( ISurface pSurface) const

◆ GetNodeSize()

SIZE BUI::CChartEleTree::GetNodeSize ( ISurface pSurface) const

◆ InsertChild()

CChartEleTree * BUI::CChartEleTree::InsertChild ( CChartEleTree prevslib,
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 pNode,
CControlUI parent 
)
overridevirtual

◆ SetNodeSize()

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

◆ ShellElementAttribute()

void BUI::CChartEleTree::ShellElementAttribute ( const BeString szName,
const BeString szText,
ICoordList crdlist = 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 ptMin,
POINT ptMax 
)

◆ TreePreLayoutCircle()

void BUI::CChartEleTree::TreePreLayoutCircle ( ISurface pSurface,
int  x,
int  y,
double  stepsize,
int  R,
int  level 
)

◆ TreeToList()

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

类成员变量说明

◆ bCollapsed

bool BUI::CChartEleTree::bCollapsed

◆ box

SIZE BUI::CChartEleTree::box

◆ firstChild

CChartEleTree* BUI::CChartEleTree::firstChild

◆ isVisited

BOOL BUI::CChartEleTree::isVisited

◆ lastChild

CChartEleTree* BUI::CChartEleTree::lastChild

◆ nextSibling

CChartEleTree* BUI::CChartEleTree::nextSibling

◆ parent

CChartEleTree* BUI::CChartEleTree::parent

◆ position

POINT BUI::CChartEleTree::position

◆ prevSibling

CChartEleTree* BUI::CChartEleTree::prevSibling

◆ size_r

int BUI::CChartEleTree::size_r

◆ trLayType

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