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

Public 成员函数

 GPathBufferStorage (value_type *src, int len)
 
 ~GPathBufferStorage ()
 
void generate_triangle_right_angle_path (RECT rect, int dir, int size, double subpixel_offset=0.0)
 构建直角三角行
 
void generate_triangle_path_with_radial (double x0, double y0, double r, double deflection, double angle, int size, int dir)
 根据径向规则,构建等腰三角形
 
void generate_triangle_scrollbar_path (RECT rect, int dir, int size, int fillsize, double subpixel_offset=0.0)
 构建滚动条箭头
 
void generate_triangle_sort_path (RECT rect, int dir, int size, double subpixel_offset=0.0)
 构建表格排序箭头
 
void generate_triangle_path (UINT flag, RECT rc, int size)
 构建箭头边框
 
void generate_arrowhead_path (GPathStorage &vs, PathConvType type, ArrowHead *head=NULL, ArrowTail *tail=NULL)
 为路径生成箭头箭尾
 
void generate_five_pointed_star (int x0, int y0, int r, double yAngle=0.0)
 为路径生成箭头箭尾
 
value_typeGetAt (unsigned int pos) override
 
void push_back (const value_type &vx) override
 
- Public 成员函数 继承自 BUI::GPathStorage
 GPathStorage ()
 
virtual ~GPathStorage ()
 
unsigned vertex (double *x, double *y)
 
unsigned last_command ()
 
unsigned last_vertex (double *x, double *y)
 
unsigned prev_vertex (double *x, double *y)
 
void rewind (unsigned path_id)
 
void add_vertex (double x, double y, unsigned cmd)
 
UINT size () const
 
void clear ()
 
value_typeoperator[] (unsigned int pos)
 
BOOL GetScreenPoint (POINT &pt, int pos, int dx, int dy)
 
void ConcatPath (GPathStorage &vs, unsigned path_id=0)
 
BoundRect PathBox (unsigned path_id=0, bool useTrans=false)
 获得路径的矩形区域
 
RECT PathBoxToRect (unsigned path_id=0, bool useTrans=false)
 
BOOL IsClosed ()
 
int StartNewPath ()
 
unsigned PathIDCounts ()
 组合路径数量
 
unsigned PathId ()
 当前的索引ID
 
void ClosePath ()
 
void RelToAbs (double *x, double *y)
 
void PathMoveTo (double x, double y)
 
void PathLineTo (double x, double y)
 
void PathHLineTo (double x)
 
void PathVLineTo (double y)
 
void Curve3 (double x_to, double y_to)
 
void Curve4 (double x_ctrl2, double y_ctrl2, double x_to, double y_to)
 
void PathCurve4 (POINT pt[4])
 
void PathCurve3 (POINT pt[3])
 
void PathCurve4WithDouble (VecFloat2 pt[4])
 
void PathCurve3WithDouble (VecFloat2 pt[3])
 
void PathBSpline (POINT *pt, int len)
 
void ParseCmdData (const char *data)
 
void PathArcTo (double x, double y, double rx, double ry, double a1, double a2, bool ccw=true)
 PathArcTo
 
void PathJoinArcTo (double x, double y, double rx, double ry, double a1, double a2, bool ccw)
 
void PathPie (double x0, double y0, double rx, double ry, double a1, double a2)
 
void PathRing (double x0, double y0, double rx, double ry, double a1, double a2, double dis)
 
void PathRingRound (double x0, double y0, double rx, double ry, double a1, double a2, double dis, double round=PI/45)
 
void PathEllipse (int cx, int cy, int rx, int ry)
 
void PathRect (double x1, double y1, double w, double h, double rx1=0, double ry1=0, double rx2=0, double ry2=0, double rx3=0, double ry3=0, double rx4=0, double ry4=0)
 
void SetTransform (PathTransform *trans)
 
void UpdateYValue (double low, double hight)
 随机生成Y更新测试数据
 
BOOL HitTestPoint (double x, double y)
 测试命中点
 
void ConvertToPolarCoordinate (double cx, double cy)
 将笛卡尔坐标系数据点,转换为极坐标系
 
void CreateWebTabPath (RECT rcBox, double angle, int dir, float r=4, BOOL isBorder=TRUE)
 Create a Web Tab Path object
 
void generate_soft_icon (int R)
 软件图标
 
void CreateG3RoundRectPath (RECT rcBox, int n)
 生成G3曲率的圆角矩形
 
void generate_star_round (int R)
 圆角五角星
 
void generate_petal5 (int R)
 五花瓣
 
void generate_gear_wheel (int R1, double a1, int R2, double a2)
 齿轮
 
void generate_along_with_single_path (TransAlongSinglePath &tap)
 将图形沿单一路径变换
 
void generate_along_with_double_path (TransAlongDoublePath &tap)
 将图形沿双路径变换
 
void clip_polygon (GPathStorage *result_path, int x1, int y1, int x2, int y2)
 矩形区域裁剪路径
 

Protected 属性

value_typem_bufVx
 
int m_buf_len
 
- Protected 属性 继承自 BUI::GPathStorage
unsigned int m_index
 
unsigned int m_num_vertices
 
std::vector< value_typem_vertexs
 
PathTransformm_transform
 

额外继承的成员函数

- Public 类型 继承自 BUI::GPathStorage
enum  CombinationPathFlag {
  combination_or , combination_and , combination_xor , combination_a_minus_b ,
  combination_b_minus_a
}
 
typedef vertex_base_f value_type
 
- 静态 Public 成员函数 继承自 BUI::GPathStorage
static void generate_arrowhead (ArrowHead &head, int size)
 
static void build_radius_border_path (GPathStorage *path, RECT &rcRound, RoundRectRadius &radius, BOOL isRoundRadiusDrawLine, BOOL isRoundRadiusParl)
 构建边缘路径
 
static void build_radius_border_parl_path (GPathStorage *path, RECT &rcRound, RoundRectRadius &radius)
 
static void combination_path (GPathStorage *result_path, GPathStorage *path1, GPathStorage *path2, CombinationPathFlag cmp_op)
 路径组合操作
 
- Protected 成员函数 继承自 BUI::GPathStorage
virtual value_typeGetAt (unsigned int pos)
 
virtual void push_back (const value_type &vx)
 
unsigned get_transform_vertex (unsigned int pos, double *x, double *y)
 

构造及析构函数说明

◆ GPathBufferStorage()

BUI::GPathBufferStorage::GPathBufferStorage ( value_type src,
int  len 
)

◆ ~GPathBufferStorage()

BUI::GPathBufferStorage::~GPathBufferStorage ( )

成员函数说明

◆ generate_arrowhead_path()

void BUI::GPathBufferStorage::generate_arrowhead_path ( GPathStorage vs,
PathConvType  type,
ArrowHead head = NULL,
ArrowTail tail = NULL 
)

为路径生成箭头箭尾

◆ generate_five_pointed_star()

void BUI::GPathBufferStorage::generate_five_pointed_star ( int  x0,
int  y0,
int  r,
double  yAngle = 0.0 
)

为路径生成箭头箭尾

◆ generate_triangle_path()

void BUI::GPathBufferStorage::generate_triangle_path ( UINT  flag,
RECT  rc,
int  size 
)

构建箭头边框

参数
rect

◆ generate_triangle_path_with_radial()

void BUI::GPathBufferStorage::generate_triangle_path_with_radial ( double  x0,
double  y0,
double  r,
double  deflection,
double  angle,
int  size,
int  dir 
)

根据径向规则,构建等腰三角形

参数
x0,y0中心点
r半径
deflection在圆周上的角度
angle顶角角度,底角=(180-顶角)*0.5
size尺寸
dir0 外沿 1内沿

◆ generate_triangle_right_angle_path()

void BUI::GPathBufferStorage::generate_triangle_right_angle_path ( RECT  rect,
int  dir,
int  size,
double  subpixel_offset = 0.0 
)

构建直角三角行

参数
rect
dir方向 0(down) 1(up) 2(right) 3(left)
size尺寸

◆ generate_triangle_scrollbar_path()

void BUI::GPathBufferStorage::generate_triangle_scrollbar_path ( RECT  rect,
int  dir,
int  size,
int  fillsize,
double  subpixel_offset = 0.0 
)

构建滚动条箭头

参数
rect
dir方向 0(down) 1(up) 2(right) 3(left)
size尺寸

◆ generate_triangle_sort_path()

void BUI::GPathBufferStorage::generate_triangle_sort_path ( RECT  rect,
int  dir,
int  size,
double  subpixel_offset = 0.0 
)

构建表格排序箭头

参数
rect
dir方向 0(down) 1(up) 2(right) 3(left)
size尺寸

◆ GetAt()

value_type & BUI::GPathBufferStorage::GetAt ( unsigned int  pos)
overridevirtual

◆ push_back()

void BUI::GPathBufferStorage::push_back ( const value_type vx)
overridevirtual

类成员变量说明

◆ m_buf_len

int BUI::GPathBufferStorage::m_buf_len
protected

◆ m_bufVx

value_type* BUI::GPathBufferStorage::m_bufVx
protected
鄂公网安备42018502007752 鄂ICP备2024082886
Copyright © 2025 · CBlueStudio 版权所有