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

双缓存线条 更多...

类 BUI::CChartSeriesDoubleBufferLine 继承关系图:

Public 成员函数

 CChartSeriesDoubleBufferLine ()
 CChartSeriesDoubleBufferLine (CChartCoordinate *sys)
virtual ~CChartSeriesDoubleBufferLine ()
void Attach (CChartCoordinate *sys)
void ClearAll ()
 清空
void Clear (int idx, BOOL no_clear_v1=FALSE)
 清空
void SetCapacity (UINT count)
 设置可容纳点数量的最大值
int GetCapacity () const
 获得可容纳点数量的最大值
void SetValue2Offset (double dv2)
 设置偏移量
void SetFirstPos (int idx, UINT first_pos)
 第一个数据在数组中的位置
int GetBackBufferIndex () const
 获取后端缓冲索引
int GetFrontBufferIndex () const
 获取前端缓冲索引
int GetBackBufferPointLength () const
 获取后端缓冲数据长度
int GetFrontBufferPointLength () const
 获取前端缓冲数据长度
void PresentSwapData ()
 交换前后端数据
void GetVectorV2Range (int idx, double &fMin, double &fMax) const
 获取后端缓冲第二组数据的范围
void InitVector1Data (int count, double begin, double step)
 初始化第一组数据
std::vector< double > & GetVector1 (int back_idx)
 获得第一个坐标轴指定缓冲的数组引用
std::vector< double > & GetVector2 (int back_idx)
 获得第二个坐标轴指定缓冲的数组引用
void AppendValuePair (int idx, double v1, double v2)
 向指定缓冲数组中添加数据。
void AppendValue2 (int idx, double v)
 向指定缓冲数组中添加数据。
BOOL AppendBackValue2AndAutoSwap (double v)
 向后端缓冲数组中添加数据。在满足一帧数据长度后,自动交换前后端
void OnPaintSeries (ISurface *surface, const RECT &rc_diagram, RECT *rect_update) override
void ShellSeriesAttribute (const BeString &str_name, const BeString &str_value, ICoordList *coord_list) override
 命令控制和属性设置接口
void GetSeriesRelationship (std::vector< BeString > &list) override
 获得类的继承关系
Public 成员函数 继承自 BUI::CChartSeriesLine
 CChartSeriesLine ()
virtual ~CChartSeriesLine ()
void UpdateRandomData (double low, double hight)
void SetLinePatternImage (GImage *img)
 设置线条图案
void SelectShadow (int dx, int dy, int blur_x, int blur_y, int spread_x, int spread_y, GColor color)
void OnPaintSeries (ISurface *surface, const RECT &rc_diagram, RECT *rect_update) override
BOOL OnNotifyMessage (IEventHandler *notify, UINT message, WPARAM wp, LPARAM lp) override
void ShellSeriesAttribute (const BeString &str_name, const BeString &str_value, ICoordList *coord_list) override
 命令控制和属性设置接口
void GetSeriesRelationship (std::vector< BeString > &list) override
 获得类的继承关系
void OnParseItemData (XMLItem *node, ICoordList *coord_list) override
Public 成员函数 继承自 BUI::CChartSeriesContain
 CChartSeriesContain ()
virtual ~CChartSeriesContain ()
std::shared_ptr< CChartElementAt (int i, BOOL reverse=FALSE)
 获得位置i的元素对象
template<class ElementType>
ElementType * Find (int i, BOOL reverse=FALSE)
void Add (std::shared_ptr< CChartElement > ele)
void Insert (int pos, std::shared_ptr< CChartElement > ele)
void Delete (int pos, int count=1)
void Clear ()
void MoveFirstEleToEnd ()
 将第一个元素移动到末尾
void GetValueY (std::vector< double > &vec, int field=0)
 获得Y轴数据数组
int Size () const
 图元总数
void ConvToPath (GPathStorage *path, LineMode mode, BOOL is_reverse, int field=0)
CChartElementFindChartElement (LPCTSTR name) override
void OnTranslateLanguage () override
void ChangeSeriesThemeColors () override
Public 成员函数 继承自 BUI::CChartSeries
 CChartSeries ()
virtual ~CChartSeries ()
LPCTSTR SeriesName ()
 序列名称
void SetSeriesName (LPCTSTR name)
 设置序列名称
void SetSeriesID (UINT id)
 设置序列整数ID
UINT SeriesID () const
 获取序列整数ID
BOOL IsEnable () const
 可用性
void SetEnable (BOOL enable)
 设置可用性
void DoChangeSeriesThemeColors (const BeString &name)
virtual void OnSizeChanged ()
Public 成员函数 继承自 BUI::VisibleProperty
 VisibleProperty ()
 ~VisibleProperty ()
BOOL IsVisable () const
void SetVisable (BOOL is_show)
Public 成员函数 继承自 BUI::CChartDataLabel
 CChartDataLabel ()
 ~CChartDataLabel ()
BOOL IsShowDataLabel () const
void ShowDataLabelLine (BOOL is_show)
BOOL IsShowDataLabelLine () const
void SetDataLabelBgColor (const GColor &color)
void SetEleColor (const GColor &color)
void ShowDataLabel (BOOL is_show)
void SetDatalabelTextDistance (double r)
void SetDatalabelAngle (double rad)
void SetDatalabelAngleDeg (double deg)
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 成员函数 继承自 BUI::GStyleLine
 GStyleLine ()
 ~GStyleLine ()
BOOL IsFillAreaPath () const
void FillAreaPath (BOOL is_fill)
void SetLineMode (LineMode mode)
LineMode GetLineMode () const
Public 成员函数 继承自 BUI::GPenInfo
 GPenInfo ()
 ~GPenInfo ()
void SetLineColor (GColor color)
 设置线颜色
void SetLineType (PenType style)
 设置画笔类型
void SetLineWidth (int weight)
 设置线宽
float GetLineWidth (BOOL display=TRUE) const
 获得线宽
GColor GetLineColor () const
 画笔颜色
PenType GetLineType () const
 画笔类型
void ShellAttributePen (const BeString &str_name, const BeString &str_value)
 属性设置

Protected 属性

BOOL m_enable_sampling_mode
CChartCoordinatem_coord_obj
std::vector< double > m_v1 [2]
std::vector< double > m_v2 [2]
double m_v2_offset
UINT m_first_pos [2]
int m_back_index
UINT m_value_capacity
AtomicLock m_mutex_rw
std::vector< GPathBufferStorage::value_typem_points
Protected 属性 继承自 BUI::CChartSeriesLine
GImagem_img_pattern
BeStringA m_math_expr
ShadowInfom_shadow
BeString m_text
GColor m_color_text
BOOL m_monotonicity_x
Protected 属性 继承自 BUI::CChartSeriesContain
std::vector< std::shared_ptr< CChartElement > > m_elements
Protected 属性 继承自 BUI::VisibleProperty
BOOL m_is_visbale
Protected 属性 继承自 BUI::GStyleMarkShape
TypeMarkShape m_mark_style
double m_mark_size
GColor m_mark_color
GColor m_mark_sel_color
Protected 属性 继承自 BUI::GStyleLine
LineMode m_line_mode
BOOL m_fill_path
Protected 属性 继承自 BUI::GPenInfo
PenType m_pen_type
GColor m_pen_color
int m_pen_size

额外继承的成员函数

静态 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)
Public 属性 继承自 BUI::CChartSeries
BeString m_name
UINT m_series_id
BOOL m_is_enable
GShadowContain m_shadow_contain
Public 属性 继承自 BUI::CChartDataLabel
BOOL m_is_show_data_label
BOOL m_is_draw_line
double m_text_angle
double m_text_distance
GColor m_color_text
GColor m_ele_color
Protected 成员函数 继承自 BUI::CChartSeriesContain
int GetFirstVisibleEleIndex () const
int GetVisibleEleEnd (int begin) const

详细描述

双缓存线条

构造及析构函数说明

◆ CChartSeriesDoubleBufferLine() [1/2]

BUI::CChartSeriesDoubleBufferLine::CChartSeriesDoubleBufferLine ( )

◆ CChartSeriesDoubleBufferLine() [2/2]

BUI::CChartSeriesDoubleBufferLine::CChartSeriesDoubleBufferLine ( CChartCoordinate * sys)

◆ ~CChartSeriesDoubleBufferLine()

virtual BUI::CChartSeriesDoubleBufferLine::~CChartSeriesDoubleBufferLine ( )
virtual

成员函数说明

◆ AppendBackValue2AndAutoSwap()

BOOL BUI::CChartSeriesDoubleBufferLine::AppendBackValue2AndAutoSwap ( double v)

向后端缓冲数组中添加数据。在满足一帧数据长度后,自动交换前后端

◆ AppendValue2()

void BUI::CChartSeriesDoubleBufferLine::AppendValue2 ( int idx,
double v )

向指定缓冲数组中添加数据。

◆ AppendValuePair()

void BUI::CChartSeriesDoubleBufferLine::AppendValuePair ( int idx,
double v1,
double v2 )

向指定缓冲数组中添加数据。

◆ Attach()

void BUI::CChartSeriesDoubleBufferLine::Attach ( CChartCoordinate * sys)

◆ Clear()

void BUI::CChartSeriesDoubleBufferLine::Clear ( int idx,
BOOL no_clear_v1 = FALSE )

清空

◆ ClearAll()

void BUI::CChartSeriesDoubleBufferLine::ClearAll ( )

清空

◆ GetBackBufferIndex()

int BUI::CChartSeriesDoubleBufferLine::GetBackBufferIndex ( ) const

获取后端缓冲索引

◆ GetBackBufferPointLength()

int BUI::CChartSeriesDoubleBufferLine::GetBackBufferPointLength ( ) const

获取后端缓冲数据长度

◆ GetCapacity()

int BUI::CChartSeriesDoubleBufferLine::GetCapacity ( ) const

获得可容纳点数量的最大值

◆ GetFrontBufferIndex()

int BUI::CChartSeriesDoubleBufferLine::GetFrontBufferIndex ( ) const

获取前端缓冲索引

◆ GetFrontBufferPointLength()

int BUI::CChartSeriesDoubleBufferLine::GetFrontBufferPointLength ( ) const

获取前端缓冲数据长度

◆ GetSeriesRelationship()

void BUI::CChartSeriesDoubleBufferLine::GetSeriesRelationship ( std::vector< BeString > & list)
overridevirtual

获得类的继承关系

重载 BUI::CChartSeries .

◆ GetVector1()

std::vector< double > & BUI::CChartSeriesDoubleBufferLine::GetVector1 ( int back_idx)

获得第一个坐标轴指定缓冲的数组引用

◆ GetVector2()

std::vector< double > & BUI::CChartSeriesDoubleBufferLine::GetVector2 ( int back_idx)

获得第二个坐标轴指定缓冲的数组引用

◆ GetVectorV2Range()

void BUI::CChartSeriesDoubleBufferLine::GetVectorV2Range ( int idx,
double & fMin,
double & fMax ) const

获取后端缓冲第二组数据的范围

◆ InitVector1Data()

void BUI::CChartSeriesDoubleBufferLine::InitVector1Data ( int count,
double begin,
double step )

初始化第一组数据

◆ OnPaintSeries()

void BUI::CChartSeriesDoubleBufferLine::OnPaintSeries ( ISurface * surface,
const RECT & rc_diagram,
RECT * rect_update )
overridevirtual

◆ PresentSwapData()

void BUI::CChartSeriesDoubleBufferLine::PresentSwapData ( )

交换前后端数据

◆ SetCapacity()

void BUI::CChartSeriesDoubleBufferLine::SetCapacity ( UINT count)

设置可容纳点数量的最大值

◆ SetFirstPos()

void BUI::CChartSeriesDoubleBufferLine::SetFirstPos ( int idx,
UINT first_pos )

第一个数据在数组中的位置

◆ SetValue2Offset()

void BUI::CChartSeriesDoubleBufferLine::SetValue2Offset ( double dv2)

设置偏移量

◆ ShellSeriesAttribute()

void BUI::CChartSeriesDoubleBufferLine::ShellSeriesAttribute ( const BeString & str_name,
const BeString & str_value,
ICoordList * coord_list )
overridevirtual

命令控制和属性设置接口

szName属性 szText语法格式
Coord
设置坐标系
Coord="坐标系名称"
capacity
可容纳最大点数
image-capacity="60"
overlap-x
重叠点优化
overlap-x="true"

重载 BUI::CChartSeries .

类成员变量说明

◆ m_back_index

int BUI::CChartSeriesDoubleBufferLine::m_back_index
protected

◆ m_coord_obj

CChartCoordinate* BUI::CChartSeriesDoubleBufferLine::m_coord_obj
protected

◆ m_enable_sampling_mode

BOOL BUI::CChartSeriesDoubleBufferLine::m_enable_sampling_mode
protected

◆ m_first_pos

UINT BUI::CChartSeriesDoubleBufferLine::m_first_pos[2]
protected

◆ m_mutex_rw

AtomicLock BUI::CChartSeriesDoubleBufferLine::m_mutex_rw
protected

◆ m_points

std::vector<GPathBufferStorage::value_type> BUI::CChartSeriesDoubleBufferLine::m_points
protected

◆ m_v1

std::vector<double> BUI::CChartSeriesDoubleBufferLine::m_v1[2]
protected

◆ m_v2

std::vector<double> BUI::CChartSeriesDoubleBufferLine::m_v2[2]
protected

◆ m_v2_offset

double BUI::CChartSeriesDoubleBufferLine::m_v2_offset
protected

◆ m_value_capacity

UINT BUI::CChartSeriesDoubleBufferLine::m_value_capacity
protected
鄂公网安备42018502007752 鄂ICP备2024082886
Copyright © 2026 · CBlueStudio 版权所有