TouchVG framework
GiGraphics
_drawPolygon
_xf
beginPaint
beginShape
calcPenColor
calcPenWidth
copy
drawArc
drawArc3P
drawArrayHead
drawBeeline
drawBeziers
drawBeziers
drawBSplines
drawCircle
drawEllipse
drawEllipse
drawHandle
drawHermiteSplines
drawLine
drawLines
drawPath
drawPath_
drawPathWithArrayHead
drawPie
drawPolygon
drawQuadSplines
drawRayline
drawRect
drawRoundRect
drawTextAt
drawTextAt
endPaint
endShape
fromHandle
getBkColor
getCanvas
getClipBox
getClipModel
getClipWorld
GiGraphics
GiGraphics
GiGraphics
isDrawing
isGrayMode
isPrint
isStopping
m_impl
operator=
rawBeginPath
rawBeziers
rawBezierTo
rawClosePath
rawEllipse
rawEndPath
rawImage
rawLine
rawLines
rawLineTo
rawMoveTo
rawPolygon
rawQuadTo
rawRect
rawText
setBkColor
setBrush
setClipBox
setClipWorld
setGrayMode
setMaxPenWidth
setPen
setPenWidthFactor
setPhaseEnabled
stopDrawing
toHandle
xf
~GiGraphics
◆
drawHermiteSplines()
bool GiGraphics::drawHermiteSplines
(
const
GiContext
*
ctx
,
int
count
,
const
Point2d
*
knots
,
const
Vector2d
*
knotvs
,
bool
closed
=
false
,
bool
modelUnit
=
true
)
绘制三次参数样条曲线(Hermite曲线),模型坐标或世界坐标
切矢量可以通过
mgcurv::cubicSplines
函数计算得到,一般先计算出切矢量供每次显示用
参数
ctx
绘图参数,忽略填充参数,为NULL时取为上一个绘图参数
count
型值点的点数,至少为2
knots
型值点坐标数组,元素个数为count
knotvs
型值点的切矢量数组,元素个数为count
closed
是否闭合
modelUnit
指定的坐标尺寸是模型坐标(true)还是世界坐标(false)
返回
是否显示成功。失败原因为参数错误或超出剪裁区域
参见
mgcurv::cubicSplines
函数调用图:
通用矢量图形框架
, 版权所有 (C)
张云贵
2004-2017,BSD 开源许可证