|
CBlueUI
C++ 跨平台跨框架的数据可视化工具
|
插值曲线:支持双击加入控制点,移动控制点。对于任意点x,求出插值y。 更多...
Public 成员函数 | |
| CChartSeriesLineInterpolation () | |
| virtual | ~CChartSeriesLineInterpolation () |
| void | Clear () |
| 清空 | |
| void | DeleteControlPoint (int i) |
| 删除控制点 | |
| void | AddControlPoint (const VecFloat2 &pt) |
| 添加控制点 | |
| void | SetLinePatternImage (GImage *img) |
| 设置线条图案 | |
| void | SetRangeX (const VecFloat2 &v) |
| 设置插值显示的取值范围 | |
| void | SetSampleCountX (float step) |
| 设置X插值取样率 | |
| double | GetInterpolationValue (double xp) |
| 获得Y插值 | |
| void | BindAction (const std::shared_ptr< IActionNotify > ¬ify) |
| void | ClearAction () |
| 清空事件 | |
| void | TriggerAction () |
| 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< CChartElement > | At (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) |
| CChartElement * | FindChartElement (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 属性 | |
| CChartCoordinate * | m_coord_obj |
| CSplineBezier | m_spline |
| VecFloat2 | m_range_x |
| VecFloat2 | m_range_y |
| int | m_sample_count |
| GImage * | m_img_pattern |
| BeStringA | m_math_expr |
| ShadowInfo * | m_shadow |
| int | m_select_idx |
| ActionList | m_action |
| 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 |
插值曲线:支持双击加入控制点,移动控制点。对于任意点x,求出插值y。
| BUI::CChartSeriesLineInterpolation::CChartSeriesLineInterpolation | ( | ) |
|
virtual |
| void BUI::CChartSeriesLineInterpolation::AddControlPoint | ( | const VecFloat2 & | pt | ) |
添加控制点
| void BUI::CChartSeriesLineInterpolation::BindAction | ( | const std::shared_ptr< IActionNotify > & | notify | ) |
| void BUI::CChartSeriesLineInterpolation::Clear | ( | ) |
清空
| void BUI::CChartSeriesLineInterpolation::ClearAction | ( | ) |
清空事件
| void BUI::CChartSeriesLineInterpolation::DeleteControlPoint | ( | int | i | ) |
删除控制点
| double BUI::CChartSeriesLineInterpolation::GetInterpolationValue | ( | double | xp | ) |
获得Y插值
|
overridevirtual |
获得类的继承关系
重载 BUI::CChartSeries .
|
overridevirtual |
|
overridevirtual |
| void BUI::CChartSeriesLineInterpolation::SelectShadow | ( | int | dx, |
| int | dy, | ||
| int | blur_x, | ||
| int | blur_y, | ||
| int | spread_x, | ||
| int | spread_y, | ||
| GColor | color ) |
| void BUI::CChartSeriesLineInterpolation::SetLinePatternImage | ( | GImage * | img | ) |
设置线条图案
| void BUI::CChartSeriesLineInterpolation::SetRangeX | ( | const VecFloat2 & | v | ) |
设置插值显示的取值范围
| void BUI::CChartSeriesLineInterpolation::SetSampleCountX | ( | float | step | ) |
设置X插值取样率
|
overridevirtual |
命令控制和属性设置接口
| szName属性 | szText语法格式 |
|---|---|
| Coord 设置坐标系 | Coord="坐标系名称" |
| line-mode 线条模式:线段,样条,跳变等 | line-mode="bspline" 或 line,step,none |
| image-pattern 线条图案 | image-pattern="nameid" |
| line-color 线条颜色 | line-color="0x124578" 或 line-color="rbg(25,15,15)" |
| shadow 单个阴影特效 | shadow="dx,dy,blur_x,blur_y,spread_x,spread_y,color" |
| range-x X取值范围 | range-x="0,100" |
| range-y Y取值范围 | range-y="0,100" |
| sample-step X插值取样步长 | sample-step ="1" |
重载 BUI::CChartSeries .
| void BUI::CChartSeriesLineInterpolation::TriggerAction | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |