JunkBox_Lib 1.10.1
|
グラフィック用ワールド座標系サポート More...
#include "window.h"
Go to the source code of this file.
Functions | |
void | setWindow (WSGraph vp, double x1, double y1, double x2, double y2) |
void | wSetPixel (WSGraph vp, double x, double y, int cc) |
int | wGetPixel (WSGraph vp, double x, double y) |
void | wLine (WSGraph vp, double x1, double y1, double x2, double y2, int cc) |
void | wMove (double x1, double y1) |
void | wDraw (WSGraph vp, double x1, double y1, int cc) |
void | wMove_Rel (double x1, double y1) |
void | wDraw_Rel (WSGraph vp, double x1, double y1, int cc) |
Variables | |
double | X_Dx |
ワールド座標系の x成分1ドットに対するスクリーン座標系のドット数. | |
double | X_Dy |
ワールド座標系の y成分1ドットに対するスクリーン座標系のドット数. | |
double | X_Wx |
スクリーン座標系の原点に対するワールド座標系の x成分. | |
double | X_Wy |
スクリーン座標系の原点に対するワールド座標系の y成分. | |
double | X_Now = 0.0 |
ペンの現地点の x成分(ワールド座標系) | |
double | Y_Now = 0.0 |
ペンの現地点の y成分(ワールド座標系) | |
Definition in file window.c.
void setWindow | ( | WSGraph | vp, |
double | x1, | ||
double | y1, | ||
double | x2, | ||
double | y2 ) |
void setWindow(WSGraph vp, double x1, double y1, double x2, double y2)
2Dのワールド座標系に表示用の窓(ビューポート)を設定する.
vp | 窓(ビューポート)を割り付ける 2Dグラフィックデータ. |
x1 | 窓(ビューポート)の一つの角の座標の x成分. |
y1 | 窓(ビューポート)の一つの角の座標の y成分. |
x2 | 窓(ビューポート)の(x1,y1)の対角の座標の x成分. |
y2 | 窓(ビューポート)の(x1,y1)の対角の座標の y成分. |
Definition at line 26 of file window.c.
References Max, Min, X_Dx, X_Dy, X_Wx, X_Wy, Xabs, WSGraph::xs, and WSGraph::ys.
void wDraw | ( | WSGraph | vp, |
double | x1, | ||
double | y1, | ||
int | cc ) |
void wDraw(WSGraph vp, double x1, double y1, int cc)
ワールド座標系で現地点から指定した地点へ線を引く. 指定した地点が現地点となる.
vp | 操作対象のグラフィックデータ. |
x1 | 線の終点の x座標(ワールド座標系). |
y1 | 線の終点の y座標(ワールド座標系). |
cc | 線の輝度値. |
Definition at line 131 of file window.c.
References wLine(), X_Now, and Y_Now.
void wDraw_Rel | ( | WSGraph | vp, |
double | x1, | ||
double | y1, | ||
int | cc ) |
void wDraw_Rel(WSGraph vp, double x1, double y1, int cc)
ワールド座標系で現地点を起点として相対的に線を引く. 線の終点が現地点となる.
vp | 操作対象のグラフィックデータ. |
x1 | 現地点から x方向への移動距離(ワールド座標系). |
y1 | 現地点から x方向への移動距離(ワールド座標系). |
cc | 線の輝度値. |
Definition at line 166 of file window.c.
References wLine(), X_Now, and Y_Now.
int wGetPixel | ( | WSGraph | vp, |
double | x, | ||
double | y ) |
int wGetPixel(WSGraph vp, double x, double y)
ワールド座標系に点を打つ.
vp | 操作対象のグラフィックデータ. |
x | 点の x座標(ワールド座標系). |
y | 点の y座標(ワールド座標系). |
Definition at line 69 of file window.c.
void wLine | ( | WSGraph | vp, |
double | x1, | ||
double | y1, | ||
double | x2, | ||
double | y2, | ||
int | cc ) |
void wLine(WSGraph vp, double x1, double y1, double x2, double y2, int cc)
ワールド座標系に線を引く.
vp | 操作対象のグラフィックデータ. |
x1 | 線の始点の x座標(ワールド座標系). |
y1 | 線の始点の y座標(ワールド座標系). |
x2 | 線の終点の x座標(ワールド座標系). |
y2 | 線の終点の y座標(ワールド座標系). |
cc | 線の輝度値. |
Definition at line 92 of file window.c.
References line(), X_Dx, X_Dy, X_Wx, and X_Wy.
Referenced by wDraw(), and wDraw_Rel().
void wMove | ( | double | x1, |
double | y1 ) |
void wMove_Rel | ( | double | x1, |
double | y1 ) |
void wSetPixel | ( | WSGraph | vp, |
double | x, | ||
double | y, | ||
int | cc ) |
void wSetPixel(WSGraph vp, double x, double y, int cc)
ワールド座標系に点を打つ.
vp | 操作対象のグラフィックデータ. |
x | 点の x座標(ワールド座標系). |
y | 点の y座標(ワールド座標系). |
cc | 点の輝度値. |
double X_Dx |
Definition at line 11 of file window.c.
Referenced by setWindow(), wGetPixel(), wLine(), and wSetPixel().
double X_Dy |
Definition at line 11 of file window.c.
Referenced by setWindow(), wGetPixel(), wLine(), and wSetPixel().
double X_Now = 0.0 |
Definition at line 12 of file window.c.
Referenced by wDraw(), wDraw_Rel(), wMove(), and wMove_Rel().
double X_Wx |
Definition at line 11 of file window.c.
Referenced by setWindow(), wGetPixel(), wLine(), and wSetPixel().
double X_Wy |
Definition at line 11 of file window.c.
Referenced by setWindow(), wGetPixel(), wLine(), and wSetPixel().
double Y_Now = 0.0 |
Definition at line 12 of file window.c.
Referenced by wDraw(), wDraw_Rel(), wMove(), and wMove_Rel().