GraphicLibrary  0.5.0
GArc 名前空間

円弧描画用関数 [詳解]

関数

void Stroke (DrawingArea_IF &draw, GPixelOp &pixelOp, Coord< int > o, int r, double sa, double ea, bool isOut=false)
 円弧描画関数 [詳解]
 
void Fill (DrawingArea_IF &draw, GPixelOp &pixelOp, Coord< int > o, int r, double sa, double ea, bool isOut=false)
 円弧塗りつぶし関数 [詳解]
 
void Draw (DrawingArea_IF &draw, GPixelOp &pixelOp, Coord< int > o, int r, double sa, double ea, bool isOut=false, bool filled=false)
 円弧描画/塗りつぶし関数 [詳解]
 
void Stroke (DrawingArea_IF &draw, GPixelOp &pixelOp, Coord< int > o, int r, Coord< int > c1, Coord< int > c2, bool isOut=false)
 円弧描画関数 [詳解]
 
void Fill (DrawingArea_IF &draw, GPixelOp &pixelOp, Coord< int > o, int r, Coord< int > c1, Coord< int > c2, bool isOut=false)
 円弧塗りつぶし関数 [詳解]
 
void Draw (DrawingArea_IF &draw, GPixelOp &pixelOp, Coord< int > o, int r, Coord< int > c1, Coord< int > c2, bool isOut=false, bool filled=false)
 円弧描画/塗りつぶし関数 [詳解]
 

詳解

円弧描画用関数

関数詳解

◆ Draw() [1/2]

void GArc::Draw ( DrawingArea_IF draw,
GPixelOp pixelOp,
Coord< int >  o,
int  r,
double  sa,
double  ea,
bool  isOut = false,
bool  filled = false 
)
inline

円弧描画/塗りつぶし関数

描画する範囲の角度は sa から ea まで時計回りで表される。どちらの角度も 0 から 2π の間の値に変換されることに注意。

引数 filled に応じて GArc::StrokeGArc::Fill を切り替えて呼び出す。

半径 r がゼロ以下の場合は処理をしない ( エラーにはならないことに注意 )。

ピクセル操作領域 draw、ピクセル操作関数オブジェクト pixelOp が未定義の場合は assert を実行する。

引数
drawピクセル操作領域
pixelOpピクセル操作関数オブジェクト
o円弧の中心
r円弧の半径
sa,ea円弧の開始・終了角度
isOut範囲内を描画するなら false
filled塗りつぶしをするなら true
戻り値
なし

◆ Draw() [2/2]

void GArc::Draw ( DrawingArea_IF draw,
GPixelOp pixelOp,
Coord< int >  o,
int  r,
Coord< int >  c1,
Coord< int >  c2,
bool  isOut = false,
bool  filled = false 
)
inline

円弧描画/塗りつぶし関数

描画する範囲の角度は点 c1, c2 を元に計算され、c1 から c2 まで時計回りで表される。

引数 filled に応じて GArc::StrokeGArc::Fill を切り替えて呼び出す。

半径 r がゼロ以下の場合は処理をしない ( エラーにはならないことに注意 )。

ピクセル操作領域 draw、ピクセル操作関数オブジェクト pixelOp が未定義の場合は assert を実行する。

引数
drawピクセル操作領域
pixelOpピクセル操作関数オブジェクト
o円弧の中心
r円弧の半径
c1,c2円弧の開始・終了角度を示す点
isOut範囲内を描画するなら false
filled塗りつぶしをするなら true
戻り値
なし

◆ Fill() [1/2]

void GArc::Fill ( DrawingArea_IF draw,
GPixelOp pixelOp,
Coord< int >  o,
int  r,
double  sa,
double  ea,
bool  isOut = false 
)

円弧塗りつぶし関数

描画する範囲の角度は sa から ea まで時計回りで表される。どちらの角度も 0 から 2π の間の値に変換されることに注意。

半径 r がゼロ以下の場合は処理をしない ( エラーにはならないことに注意 )。

ピクセル操作領域 draw、ピクセル操作関数オブジェクト pixelOp が未定義の場合は assert を実行する。

引数
drawピクセル操作領域
pixelOpピクセル操作関数オブジェクト
o円弧の中心
r円弧の半径
sa,ea円弧の開始・終了角度
isOut範囲内を描画するなら false
戻り値
なし

◆ Fill() [2/2]

void GArc::Fill ( DrawingArea_IF draw,
GPixelOp pixelOp,
Coord< int >  o,
int  r,
Coord< int >  c1,
Coord< int >  c2,
bool  isOut = false 
)

円弧塗りつぶし関数

描画する範囲の角度は点 c1, c2 を元に計算され、c1 から c2 まで時計回りで表される。

半径 r がゼロ以下の場合は処理をしない ( エラーにはならないことに注意 )。

ピクセル操作領域 draw、ピクセル操作関数オブジェクト pixelOp が未定義の場合は assert を実行する。

引数
drawピクセル操作領域
pixelOpピクセル操作関数オブジェクト
o円弧の中心
r円弧の半径
c1,c2円弧の開始・終了角度を示す点
isOut範囲内を描画するなら false
戻り値
なし

◆ Stroke() [1/2]

void GArc::Stroke ( DrawingArea_IF draw,
GPixelOp pixelOp,
Coord< int >  o,
int  r,
double  sa,
double  ea,
bool  isOut = false 
)

円弧描画関数

描画する範囲の角度は sa から ea まで時計回りで表される。どちらの角度も 0 から 2π の間の値に変換されることに注意。

半径 r がゼロ以下の場合は処理をしない ( エラーにはならないことに注意 )。

ピクセル操作領域 draw、ピクセル操作関数オブジェクト pixelOp が未定義の場合は assert を実行する。

引数
drawピクセル操作領域
pixelOpピクセル操作関数オブジェクト
o円弧の中心
r円弧の半径
sa,ea円弧の開始・終了角度
isOut範囲内を描画するなら false
戻り値
なし

◆ Stroke() [2/2]

void GArc::Stroke ( DrawingArea_IF draw,
GPixelOp pixelOp,
Coord< int >  o,
int  r,
Coord< int >  c1,
Coord< int >  c2,
bool  isOut = false 
)

円弧描画関数

描画する範囲の角度は点 c1, c2 を元に計算され、c1 から c2 まで時計回りで表される。

半径 r がゼロ以下の場合は処理をしない ( エラーにはならないことに注意 )。

ピクセル操作領域 draw、ピクセル操作関数オブジェクト pixelOp が未定義の場合は assert を実行する。

引数
drawピクセル操作領域
pixelOpピクセル操作関数オブジェクト
o円弧の中心
r円弧の半径
c1,c2円弧の開始・終了角度を示す点
isOut範囲内を描画するなら false
戻り値
なし