typeset 0.1.0
縦書き・横書きの日本語組版ライブラリ(JLReq 水準、ラスタ / PDF / SVG)
読み取り中…
検索中…
一致する文字列を見つけられません
typeset::Path 構造体

パス(moveTo / lineTo / quadTo / cubicTo / close) [詳解]

#include <typeset/geom.hpp>

公開型

enum class  Cmd : uint8_t {
  Move , Line , Quad , Cubic ,
  Close
}
 

公開メンバ関数

bool empty () const
 
void moveTo (Pt x, Pt y)
 
void lineTo (Pt x, Pt y)
 
void quadTo (Pt cx, Pt cy, Pt x, Pt y)
 
void cubicTo (Pt c1x, Pt c1y, Pt c2x, Pt c2y, Pt x, Pt y)
 
void close ()
 
void addRect (const Rect &r)
 
void addEllipse (const Rect &r)
 楕円(矩形に内接)を 4 本の 3 次ベジェで近似
 
void addLine (Point a, Point b)
 
Path transformed (const Matrix &m) const
 
Rect controlBounds () const
 制御点を含むバウンディングボックス
 

公開変数類

std::vector< Cmdcmds
 
std::vector< Pointpts
 

詳解

パス(moveTo / lineTo / quadTo / cubicTo / close)

pts は Cmd ごとに Move:1 Line:1 Quad:2 Cubic:3 Close:0 個消費する。

geom.hpp256 行目に定義があります。

列挙型メンバ詳解

◆ Cmd

enum class typeset::Path::Cmd : uint8_t
strong
列挙値
Move 
Line 
Quad 
Cubic 
Close 

geom.hpp257 行目に定義があります。

関数詳解

◆ empty()

bool typeset::Path::empty ( ) const
inline

geom.hpp262 行目に定義があります。

参照先 cmds.

◆ moveTo()

void typeset::Path::moveTo ( Pt  x,
Pt  y 
)
inline

geom.hpp264 行目に定義があります。

参照先 cmds, Move, pts.

参照元 addLine().

◆ lineTo()

void typeset::Path::lineTo ( Pt  x,
Pt  y 
)
inline

geom.hpp265 行目に定義があります。

参照先 cmds, Line, pts.

参照元 addLine().

◆ quadTo()

void typeset::Path::quadTo ( Pt  cx,
Pt  cy,
Pt  x,
Pt  y 
)
inline

geom.hpp266 行目に定義があります。

参照先 cmds, pts, Quad.

◆ cubicTo()

void typeset::Path::cubicTo ( Pt  c1x,
Pt  c1y,
Pt  c2x,
Pt  c2y,
Pt  x,
Pt  y 
)
inline

geom.hpp269 行目に定義があります。

参照先 cmds, Cubic, pts.

◆ close()

void typeset::Path::close ( )
inline

geom.hpp273 行目に定義があります。

参照先 Close, cmds.

◆ addRect()

void typeset::Path::addRect ( const Rect r)

◆ addEllipse()

void typeset::Path::addEllipse ( const Rect r)

楕円(矩形に内接)を 4 本の 3 次ベジェで近似

◆ addLine()

void typeset::Path::addLine ( Point  a,
Point  b 
)
inline

geom.hpp278 行目に定義があります。

参照先 lineTo(), moveTo(), typeset::Point::x, typeset::Point::y.

参照元 typeset::dl::DisplayList::addLine().

◆ transformed()

Path typeset::Path::transformed ( const Matrix m) const

◆ controlBounds()

Rect typeset::Path::controlBounds ( ) const

制御点を含むバウンディングボックス

メンバ詳解

◆ cmds

std::vector<Cmd> typeset::Path::cmds

geom.hpp259 行目に定義があります。

参照元 close(), cubicTo(), empty(), lineTo(), moveTo(), quadTo().

◆ pts

std::vector<Point> typeset::Path::pts

geom.hpp260 行目に定義があります。

参照元 cubicTo(), lineTo(), moveTo(), quadTo().


この構造体詳解は次のファイルから抽出されました: