|
CBlueUI
C++ 跨平台跨框架的数据可视化工具
|
自定义位置线性颜色表 更多...
Public 成员函数 | |
| GradientStopsColors () | |
| virtual | ~GradientStopsColors () |
| void | ClearColor () |
| 清空所有位置颜色信息 | |
| void | AddColor (float offset, const GColor &color) |
| 添加或(更新)在offset位置的颜色信息。 | |
| BOOL | RemoveColor (int pos) |
| 删除索引位置(pos)的颜色 | |
| void | UpdateColor (int pos, float offset, const GColor &color) |
| 更新索引位置(pos)的颜色 | |
| void | UpdateOffset (int pos, float offset) |
| 仅更新索引位置(pos)的颜色位置 | |
| BOOL | InsertColorWithAuto (int pos) |
| 在指定索引位置(pos),自动插入一个节点。节点颜色取当前节点和下一个节点的中间值 | |
| int | StopColorCount () const |
| void | ClearProfilePoint () |
| void | GetStopColor (int i, float &offset, GColor &color) const |
| 获得当前索引位置i处的,颜色信息 | |
| void | SetProfilePoint (std::map< float, GColor > &points) |
| void | SetRangeOfKey (float fmin, float fmax) |
| BOOL | IsLutColorEmpty () const |
| void | BuildLutColorBuffer () |
| void | SetLutColorsSize (int size) override |
| 设置颜色映射表的大小。值越大,颜色越细腻。此函数仅在软渲染下有效 | |
| unsigned | LutColorsSize () const override |
| GColor | operator[] (unsigned i) override |
| GColor | GetColor (float p, float alpha=1.0, BOOL is_raw=FALSE) override |
| 根据百分比获得颜色值 | |
| Public 成员函数 继承自 BUI::GradientColors | |
| GradientColors () | |
| virtual | ~GradientColors () |
| void | ResetResourceState () |
| 重置渐变色缓存资源 | |
| float | SetAlpha (float alpha) |
| 设置颜色透明度。默认为1 | |
| BOOL | SetGrayMode (BOOL is_gray) |
| // 设置灰度模式 | |
额外继承的成员函数 | |
| Public 属性 继承自 BUI::GradientColors | |
| float | m_alpha |
| BOOL | m_is_gray |
| BOOL | m_is_need_rebuild |
自定义位置线性颜色表
| BUI::GradientStopsColors::GradientStopsColors | ( | ) |
|
virtual |
| void BUI::GradientStopsColors::AddColor | ( | float | offset, |
| const GColor & | color ) |
添加或(更新)在offset位置的颜色信息。
| offset:颜色位置。范围[0,1] | |
| color | 颜色 |
| void BUI::GradientStopsColors::BuildLutColorBuffer | ( | ) |
| void BUI::GradientStopsColors::ClearColor | ( | ) |
清空所有位置颜色信息
| void BUI::GradientStopsColors::ClearProfilePoint | ( | ) |
| void BUI::GradientStopsColors::GetStopColor | ( | int | i, |
| float & | offset, | ||
| GColor & | color ) const |
获得当前索引位置i处的,颜色信息
| i:索引位置 | |
| offset | 颜色位置 |
| color:颜色 |
| BOOL BUI::GradientStopsColors::InsertColorWithAuto | ( | int | pos | ) |
在指定索引位置(pos),自动插入一个节点。节点颜色取当前节点和下一个节点的中间值
| pos | :索引位置 |
| BOOL BUI::GradientStopsColors::IsLutColorEmpty | ( | ) | const |
|
overridevirtual |
实现了 BUI::GradientColors.
|
overridevirtual |
实现了 BUI::GradientColors.
| BOOL BUI::GradientStopsColors::RemoveColor | ( | int | pos | ) |
删除索引位置(pos)的颜色
| pos:索引位置 |
|
overridevirtual |
| void BUI::GradientStopsColors::SetProfilePoint | ( | std::map< float, GColor > & | points | ) |
| void BUI::GradientStopsColors::SetRangeOfKey | ( | float | fmin, |
| float | fmax ) |
| int BUI::GradientStopsColors::StopColorCount | ( | ) | const |
| void BUI::GradientStopsColors::UpdateColor | ( | int | pos, |
| float | offset, | ||
| const GColor & | color ) |
更新索引位置(pos)的颜色
| pos | :索引位置 |
| offset | :颜色位置。范围[0,1] |
| color | :颜色 |
| void BUI::GradientStopsColors::UpdateOffset | ( | int | pos, |
| float | offset ) |
仅更新索引位置(pos)的颜色位置
| pos:索引位置 | |
| offset:颜色位置。范围[0,1] |