|
Foxit PDF SDK
|
Public 成员函数 | |
| OFDPathData () | |
| 不带参数函数。 | |
| OFDPathData (const OFDPathData &other) | |
| 构造函数,通过另一个OFD路径数据。 更多... | |
| ~OFDPathData () | |
| 析构函数。 | |
| void | AddPoints (PathPointArray &points) |
| 添加路径点数据集合。 更多... | |
| void | AppendPath (const OFDPathData &path_append) |
| 附加path操作。 更多... | |
| void | ArcTo (EllipseInfo arc_info, float x, float y) |
| 从当前点连接一条到点的圆弧,并将当前点移动到点。 更多... | |
| void | ClearPath () |
| 清空path操作。 更多... | |
| void | CloseFigure () |
| 自动闭合,表示将当前点和起始点用线段直接连接。 更多... | |
| void | CopyPath (const OFDPathData &path) |
| 拷贝path。 更多... | |
| void | CubicBezierTo (float x1, float y1, float x2, float y2, float x3, float y3) |
| 从当前点连接一条到点pt3的三次贝塞尔曲线,并将当前点移动到点pt3,此贝塞尔曲线使用点pt1和点pt2作为其控制点。 更多... | |
| PathPoint | GetPoint (int index) |
| 获取指定索引的路径数据点。 更多... | |
| int | GetPointCount () |
| 获取路径数据点个数。 更多... | |
| bool | IsEmpty () const |
| 检查当前对象是否为空。 更多... | |
| void | LineTo (float x, float y) |
| 从当前点连接一条到指定点的线段,并将当前点移动到指定点。 更多... | |
| void | MoveTo (float x, float y) |
| 将当前点移动到指定点位置。 更多... | |
| bool | operator != (const OFDPathData &other) const |
| 不相等操作符。 更多... | |
| OFDPathData & | operator= (const OFDPathData &other) |
| 赋值操作符。 更多... | |
| bool | operator== (const OFDPathData &other) const |
| 相等操作符。 更多... | |
| void | QuadraticBezierTo (float x1, float y1, float x2, float y2) |
| 从当前点链接一条到点pt2的二次贝塞尔曲线,并将当前点移动到点pt2,此贝塞尔曲线使用点pt1作为其控制点。 更多... | |
| void | StartFigure (float x, float y) |
| 定义图形起始点坐标。 更多... | |
Public 成员函数 继承自 foxit::Base | |
| FS_HANDLE | Handle () const |
| 获取当前对象的句柄。 更多... | |
此类表示和OFD路径数据相关的方法。
| foxit::ofd::graphics::OFDPathData::OFDPathData | ( | const OFDPathData & | other | ) |
构造函数,通过另一个OFD路径数据。
| [in] | other | 另一个OFD路径数据。 |
| void foxit::ofd::graphics::OFDPathData::AddPoints | ( | PathPointArray & | points | ) |
添加路径点数据集合。
| [in] | points | 路径点数据集合。坐标系为OFD坐标系。 |
| void foxit::ofd::graphics::OFDPathData::AppendPath | ( | const OFDPathData & | path_append | ) |
附加path操作。
| [in] | path_append | 路径数据对象。 |
| void foxit::ofd::graphics::OFDPathData::ArcTo | ( | EllipseInfo | arc_info, |
| float | x, | ||
| float | y | ||
| ) |
从当前点连接一条到点的圆弧,并将当前点移动到点。
| [in] | arc_info | 圆弧的信息。 |
| [in] | x | x坐标。坐标系为OFD坐标系。 |
| [in] | y | y坐标。坐标系为OFD坐标系。 |
| void foxit::ofd::graphics::OFDPathData::ClearPath | ( | ) |
清空path操作。
| void foxit::ofd::graphics::OFDPathData::CloseFigure | ( | ) |
自动闭合,表示将当前点和起始点用线段直接连接。
| void foxit::ofd::graphics::OFDPathData::CopyPath | ( | const OFDPathData & | path | ) |
拷贝path。
| [in] | path | 路径数据对象。 |
| void foxit::ofd::graphics::OFDPathData::CubicBezierTo | ( | float | x1, |
| float | y1, | ||
| float | x2, | ||
| float | y2, | ||
| float | x3, | ||
| float | y3 | ||
| ) |
从当前点连接一条到点pt3的三次贝塞尔曲线,并将当前点移动到点pt3,此贝塞尔曲线使用点pt1和点pt2作为其控制点。
| [in] | x1 | x1坐标。坐标系为OFD坐标系。 |
| [in] | y1 | y1坐标。坐标系为OFD坐标系。 |
| [in] | x2 | x2坐标。坐标系为OFD坐标系。 |
| [in] | y2 | y2坐标。坐标系为OFD坐标系。 |
| [in] | x3 | x3坐标。坐标系为OFD坐标系。 |
| [in] | y3 | y3坐标。坐标系为OFD坐标系。 |
| PathPoint foxit::ofd::graphics::OFDPathData::GetPoint | ( | int | index | ) |
获取指定索引的路径数据点。
| [in] | index | 路径数据点索引(从0开始)。有效范围:从0到(count-1)。 count 由函数 OFDPathData::GetPointCount 返回。 |
| int foxit::ofd::graphics::OFDPathData::GetPointCount | ( | ) |
获取路径数据点个数。
| bool foxit::ofd::graphics::OFDPathData::IsEmpty | ( | ) | const |
检查当前对象是否为空。
当前对象为空时,表示当前对象是无用的。
| void foxit::ofd::graphics::OFDPathData::LineTo | ( | float | x, |
| float | y | ||
| ) |
从当前点连接一条到指定点的线段,并将当前点移动到指定点。
| [in] | x | x坐标。坐标系为OFD坐标系。 |
| [in] | y | y坐标。坐标系为OFD坐标系。 |
| void foxit::ofd::graphics::OFDPathData::MoveTo | ( | float | x, |
| float | y | ||
| ) |
将当前点移动到指定点位置。
| [in] | x | x坐标。坐标系为OFD坐标系。 |
| [in] | y | y坐标。坐标系为OFD坐标系。 |
| bool foxit::ofd::graphics::OFDPathData::operator != | ( | const OFDPathData & | other | ) | const |
不相等操作符。
| [in] | other | 另一个OFD路径数据对象。此函数将检查当前对象是否不等于这个对象。 |
| OFDPathData& foxit::ofd::graphics::OFDPathData::operator= | ( | const OFDPathData & | other | ) |
赋值操作符。
| [in] | other | 另一个OFD路径数据对象,其值将被赋给当前对象。 |
| bool foxit::ofd::graphics::OFDPathData::operator== | ( | const OFDPathData & | other | ) | const |
相等操作符。
| [in] | other | 另一个OFD路径数据对象。此函数将检查当前对象是否等于这个对象。 |
| void foxit::ofd::graphics::OFDPathData::QuadraticBezierTo | ( | float | x1, |
| float | y1, | ||
| float | x2, | ||
| float | y2 | ||
| ) |
从当前点链接一条到点pt2的二次贝塞尔曲线,并将当前点移动到点pt2,此贝塞尔曲线使用点pt1作为其控制点。
| [in] | x1 | x1坐标。坐标系为OFD坐标系。 |
| [in] | y1 | y1坐标。坐标系为OFD坐标系。 |
| [in] | x2 | x2坐标。坐标系为OFD坐标系。 |
| [in] | y2 | y2坐标。坐标系为OFD坐标系。 |
| void foxit::ofd::graphics::OFDPathData::StartFigure | ( | float | x, |
| float | y | ||
| ) |
定义图形起始点坐标。
| [in] | x | x坐标。坐标系为OFD坐标系。 |
| [in] | y | y坐标。坐标系为OFD坐标系。 |