Foxit PDF SDK
foxit::ofd::graphics::PathPoint类 参考

继承自 Object .

Public 类型

enum  PathPointType {
  e_PathPointTypeNormal = 0, e_PathPointTypeStart = 1, e_PathPointTypeMoveTo = 2, e_PathPointTypeLineTo = 3,
  e_PathPointTypeQuadraticBezierTo = 4, e_PathPointTypeCubicBezierTo = 5, e_PathPointTypeArcTo = 6, e_PathPointTypeClose = 7
}
 OFD路径类型枚举。 更多...
 

Public 成员函数

 PathPoint ()
 构造函数。
 
 PathPoint (float x, float y, PathPointType type)
 带参数的构造函数。 更多...
 
PathPointoperator= (const PathPoint &other)
 赋值操作符。 更多...
 
void Set (float x, float y, PathPointType type)
 设置值。 更多...
 

Public 属性

PathPointType type
 路径类型。请参考从 foxit::ofd::graphics::PathPoint::e_PathPointTypeNormal 开始的值, 应该是这些值中的一个。
 
float x
 x轴方向上的值。
 
float y
 y轴方向上的值。
 

详细描述

此类代表了Path数据点描述信息。

成员枚举类型说明

◆ PathPointType

OFD路径类型枚举。

该枚举值应单独使用。

枚举值
e_PathPointTypeNormal 

正常类型。

e_PathPointTypeStart 

起始类型。

e_PathPointTypeMoveTo 

移动类型。

e_PathPointTypeLineTo 

直线类型。

e_PathPointTypeQuadraticBezierTo 

二次贝塞尔曲线类型。

e_PathPointTypeCubicBezierTo 

三次贝塞尔曲线类型。

e_PathPointTypeArcTo 

弧线类型。

e_PathPointTypeClose 

结束类型。

构造及析构函数说明

◆ PathPoint()

foxit::ofd::graphics::PathPoint::PathPoint ( float  x,
float  y,
PathPointType  type 
)
inline

带参数的构造函数。

参数
[in]xx轴方向上的值。
[in]yy轴方向上的值。
[in]type路径类型。请参考从 foxit::ofd::graphics::PathPoint::e_PathPointTypeNormal 开始的值, 应该是这些值中的一个。

成员函数说明

◆ operator=()

PathPoint& foxit::ofd::graphics::PathPoint::operator= ( const PathPoint other)
inline

赋值操作符。

参数
[in]other另一个Path数据点描述信息对象,其值将被赋给当前对象。
返回
当前对象自身的引用。

◆ Set()

void foxit::ofd::graphics::PathPoint::Set ( float  x,
float  y,
PathPointType  type 
)
inline

设置值。

参数
[in]xx轴方向上的值。
[in]yy轴方向上的值。
[in]type路径类型。请参考从 foxit::ofd::graphics::PathPoint::e_PathPointTypeNormal 开始的值, 应该是这些值中的一个。
返回
无。