JunkBox_Lib 1.10.1
|
グラフィックデータ定義用ヘッダ More...
Go to the source code of this file.
Data Structures | |
struct | BSGraph |
struct | WSGraph |
struct | ISGraph |
struct | FSGraph |
struct | VSGraph |
struct | MSGraph |
struct | IRBound |
struct | DRBound |
Macros | |
#define | unset_RZxy() {ChkRZxy=OFF;} |
#define | free_Graph(v) {if((v)!=NULL){if((v)->gp)free((v)->gp); (v)->gp=NULL; (v)->xs=(v)->ys=(v)->zs=0; (v)->state=JBXL_NORMAL;}} |
vのバッファ部を解放する. | |
#define | free_WSGraph(v) {if((v)!=NULL){if((v)->gp)free((v)->gp); (v)->gp=NULL; (v)->xs=(v)->ys=(v)->zs=0; (v)->state=JBXL_NORMAL;}} |
#define | free_BSGraph(v) {if((v)!=NULL){if((v)->gp)free((v)->gp); (v)->gp=NULL; (v)->xs=(v)->ys=(v)->zs=0; (v)->state=JBXL_NORMAL;}} |
#define | free_FSGraph(v) {if((v)!=NULL){if((v)->gp)free((v)->gp); (v)->gp=NULL; (v)->xs=(v)->ys=(v)->zs=0; (v)->state=JBXL_NORMAL;}} |
#define | free_ISGraph(v) {if((v)!=NULL){if((v)->gp)free((v)->gp); (v)->gp=NULL; (v)->xs=(v)->ys=(v)->zs=0; (v)->state=JBXL_NORMAL;}} |
#define | free_VSGraph(v) {if((v)!=NULL){if((v)->gp)free((v)->gp); (v)->gp=NULL; (v)->xs=(v)->ys=(v)->zs=0; (v)->state=JBXL_NORMAL;}} |
#define | free_MSGraph(v) {if((v)!=NULL){if((v)->gp)free((v)->gp); (v)->gp=NULL; (v)->xs=(v)->ys=(v)->zs=(v)->depth=0; (v)->state=JBXL_NORMAL;}} |
#define | del_Graph(v) {if((v)!=NULL && *(v)!=NULL) {if((*(v))->gp)free((*(v))->gp); free((*(v)); *(v)=NULL}} |
#define | del_WSGraph(v) {if((v)!=NULL && *(v)!=NULL) {if((*(v))->gp)free((*(v))->gp); free((*(v)); *(v)=NULL}} |
#define | del_BSGraph(v) {if((v)!=NULL && *(v)!=NULL) {if((*(v))->gp)free((*(v))->gp); free((*(v)); *(v)=NULL}} |
#define | del_FSGraph(v) {if((v)!=NULL && *(v)!=NULL) {if((*(v))->gp)free((*(v))->gp); free((*(v)); *(v)=NULL}} |
#define | del_ISGraph(v) {if((v)!=NULL && *(v)!=NULL) {if((*(v))->gp)free((*(v))->gp); free((*(v)); *(v)=NULL}} |
#define | del_VSGraph(v) {if((v)!=NULL && *(v)!=NULL) {if((*(v))->gp)free((*(v))->gp); free((*(v)); *(v)=NULL}} |
#define | del_MSGraph(v) {if((v)!=NULL && *(v)!=NULL) {if((*(v))->gp)free((*(v))->gp); free((*(v)); *(v)=NULL}} |
#define | Lx(v, i) ((v).gp[(i)]) |
1次元画像データ vの (i) のデータを参照する. | |
#define | Px(v, i, j) ((v).gp[(i)+(v).xs*(j)]) |
2次元画像データ vの (i, j) のデータを参照する. | |
#define | Vx(v, i, j, k) ((v).gp[(i)+(v).xs*(j)+(v).xs*(v).ys*(k)]) |
3次元画像データ vの (i, j, k) のデータを参照する. | |
#define | pLx(v, i) ((v)->gp[(i)]) |
1次元画像データ vの (i) のデータを参照する. | |
#define | pPx(v, i, j) ((v)->gp[(i)+(v)->xs*(j)]) |
2次元画像データ vの (i, j) のデータを参照する. | |
#define | pVx(v, i, j, k) ((v)->gp[(i)+(v)->xs*(j)+(v)->xs*(v)->ys*(k)]) |
3次元画像データ vの (i, j, k) のデータを参照する. | |
#define | Lxt(v, i) ((v).gp[((i)-1)]) |
座標を 1 から数える. | |
#define | Pxt(v, i, j) ((v).gp[((i)-1)+(v).xs*((j)-1)]) |
#define | Vxt(v, i, j, k) ((v).gp[((i)-1)+(v).xs*((j)-1)+(v).xs*(v).ys*((k)-1)]) |
#define | pLxt(v, i) ((v)->gp[((i)-1)]) |
座標を 1 から数える. | |
#define | pPxt(v, i, j) ((v)->gp[((i)-1)+(v)->xs*((j)-1)]) |
#define | pVxt(v, i, j, k) ((v)->gp[((i)-1)+(v)->xs*((j)-1)+(v)->xs*(v).ys->((k)-1)]) |
Functions | |
WSGraph | B2WSGraph (BSGraph vp) |
WSGraph | I2WSGraph (ISGraph vp) |
WSGraph | F2WSGraph (FSGraph vp) |
ISGraph | W2ISGraph (WSGraph vp) |
FSGraph | W2FSGraph (WSGraph vp) |
WSGraph | V2WSGraph (VSGraph vp) |
FSGraph | V2FSGraph (VSGraph vp) |
BSGraph | make_BSGraph (int xs, int ys, int zs) |
WSGraph | make_WSGraph (int xs, int ys, int zs) |
FSGraph | make_FSGraph (int xs, int ys, int zs) |
ISGraph | make_ISGraph (int xs, int ys, int zs) |
VSGraph | make_VSGraph (int xs, int ys, int zs) |
MSGraph | make_MSGraph (int xs, int ys, int zs, int depth) |
BSGraph * | new_BSGraph (int xs, int ys, int zs) |
WSGraph * | new_WSGraph (int xs, int ys, int zs) |
FSGraph * | new_FSGraph (int xs, int ys, int zs) |
ISGraph * | new_ISGraph (int xs, int ys, int zs) |
VSGraph * | new_VSGraph (int xs, int ys, int zs) |
MSGraph * | new_MSGraph (int xs, int ys, int zs, int depth) |
WSGraph | zoom_WSGraph (WSGraph vp, int zm, int mode) |
WSGraph | grab_WSGraph (WSGraph vp, int x1, int y1, int x2, int y2) |
void | copy_WSGraph (WSGraph src, WSGraph dst) |
int | chk_RZxy (void) |
void | set_RZxy (double rzm) |
void | init_IRBound (IRBound *rb) |
void | init_DRBound (DRBound *rb) |
void | free_CmnHead (CmnHead *hd) |
void | init_CmnHead (CmnHead *hd) |
Variables | |
int | ZeroBase |
double | RZxy |
int | ChkRZxy |
#define del_BSGraph | ( | v | ) | {if((v)!=NULL && *(v)!=NULL) {if((*(v))->gp)free((*(v))->gp); free((*(v)); *(v)=NULL}} |
#define del_FSGraph | ( | v | ) | {if((v)!=NULL && *(v)!=NULL) {if((*(v))->gp)free((*(v))->gp); free((*(v)); *(v)=NULL}} |
#define del_Graph | ( | v | ) | {if((v)!=NULL && *(v)!=NULL) {if((*(v))->gp)free((*(v))->gp); free((*(v)); *(v)=NULL}} |
#define del_ISGraph | ( | v | ) | {if((v)!=NULL && *(v)!=NULL) {if((*(v))->gp)free((*(v))->gp); free((*(v)); *(v)=NULL}} |
#define del_MSGraph | ( | v | ) | {if((v)!=NULL && *(v)!=NULL) {if((*(v))->gp)free((*(v))->gp); free((*(v)); *(v)=NULL}} |
#define del_VSGraph | ( | v | ) | {if((v)!=NULL && *(v)!=NULL) {if((*(v))->gp)free((*(v))->gp); free((*(v)); *(v)=NULL}} |
#define del_WSGraph | ( | v | ) | {if((v)!=NULL && *(v)!=NULL) {if((*(v))->gp)free((*(v))->gp); free((*(v)); *(v)=NULL}} |
#define free_BSGraph | ( | v | ) | {if((v)!=NULL){if((v)->gp)free((v)->gp); (v)->gp=NULL; (v)->xs=(v)->ys=(v)->zs=0; (v)->state=JBXL_NORMAL;}} |
#define free_FSGraph | ( | v | ) | {if((v)!=NULL){if((v)->gp)free((v)->gp); (v)->gp=NULL; (v)->xs=(v)->ys=(v)->zs=0; (v)->state=JBXL_NORMAL;}} |
#define free_Graph | ( | v | ) | {if((v)!=NULL){if((v)->gp)free((v)->gp); (v)->gp=NULL; (v)->xs=(v)->ys=(v)->zs=0; (v)->state=JBXL_NORMAL;}} |
#define free_ISGraph | ( | v | ) | {if((v)!=NULL){if((v)->gp)free((v)->gp); (v)->gp=NULL; (v)->xs=(v)->ys=(v)->zs=0; (v)->state=JBXL_NORMAL;}} |
#define free_MSGraph | ( | v | ) | {if((v)!=NULL){if((v)->gp)free((v)->gp); (v)->gp=NULL; (v)->xs=(v)->ys=(v)->zs=(v)->depth=0; (v)->state=JBXL_NORMAL;}} |
Definition at line 181 of file gdata.h.
Referenced by free_TIFF_ifd_dem(), and proc_tiff_ifd().
#define free_VSGraph | ( | v | ) | {if((v)!=NULL){if((v)->gp)free((v)->gp); (v)->gp=NULL; (v)->xs=(v)->ys=(v)->zs=0; (v)->state=JBXL_NORMAL;}} |
Definition at line 180 of file gdata.h.
Referenced by curvature(), curvature3D(), vfNabra(), and vNabra().
#define free_WSGraph | ( | v | ) | {if((v)!=NULL){if((v)->gp)free((v)->gp); (v)->gp=NULL; (v)->xs=(v)->ys=(v)->zs=0; (v)->state=JBXL_NORMAL;}} |
Definition at line 176 of file gdata.h.
Referenced by euclid_distance(), and Nabra().
#define Lxt | ( | v, | |
i ) ((v).gp[((i)-1)]) |
Definition at line 199 of file gdata.h.
Referenced by euclid_distance().
#define pVx | ( | v, | |
i, | |||
j, | |||
k ) ((v)->gp[(i)+(v)->xs*(j)+(v)->xs*(v)->ys*(k)]) |
#define pVxt | ( | v, | |
i, | |||
j, | |||
k ) ((v)->gp[((i)-1)+(v)->xs*((j)-1)+(v)->xs*(v).ys->((k)-1)]) |
#define Px | ( | v, | |
i, | |||
j ) ((v).gp[(i)+(v).xs*(j)]) |
Definition at line 192 of file gdata.h.
Referenced by grab_WSGraph(), Laplacian(), and triangle().
Definition at line 170 of file gdata.h.
Referenced by read_dicom_file().
#define Vx | ( | v, | |
i, | |||
j, | |||
k ) ((v).gp[(i)+(v).xs*(j)+(v).xs*(v).ys*(k)]) |
#define Vxt | ( | v, | |
i, | |||
j, | |||
k ) ((v).gp[((i)-1)+(v).xs*((j)-1)+(v).xs*(v).ys*((k)-1)]) |
Definition at line 201 of file gdata.h.
Referenced by euclid_distance().
uByte型単純グラフィックデータ(ISGraph)を sWord型単純グラフィック データ(WSGraph)に変換する.
vp | 変換する int型単純グラフィックデータ |
Definition at line 649 of file gdata.c.
References BSGraph::gp, WSGraph::gp, JBXL_GRAPH_MEMORY_ERROR, BSGraph::state, WSGraph::state, BSGraph::xs, WSGraph::xs, BSGraph::ys, WSGraph::ys, BSGraph::zs, and WSGraph::zs.
int chk_RZxy | ( | void | ) |
int chk_RZxy(void)
z軸のひずみを設定が設定されているかどうかをチェックする.
Definition at line 832 of file gdata.c.
References ChkRZxy, DEBUG_MODE, FALSE, OFF, PRINT_MESG, and TRUE.
Referenced by get_wdat(), set_wdat(), write_ct_file(), and write_file_rb().
void copy_WSGraph(WSGraph src, WSGraph dst)
WSGraph型データのバッファ部をコピーする.とにかくコピーする.できるだけコピーする.
コピー元とコピー先のバッファ部のサイズが合わない場合,コピー結果は保証されない.
src | コピー元グラフィックデータ |
dst | コピー先グラフィックデータ |
Definition at line 1352 of file graph.c.
References WSGraph::gp, Min, WSGraph::xs, WSGraph::ys, and WSGraph::zs.
double型単純グラフィックデータ(FSGraph)を sWord型単純グラフィック データ(WSGraph)に変換する.
vp | 変換する double型単純グラフィックデータ |
Definition at line 711 of file gdata.c.
References WSGraph::gp, FSGraph::gp, JBXL_GRAPH_MEMORY_ERROR, WSGraph::state, FSGraph::state, WSGraph::xs, FSGraph::xs, WSGraph::ys, FSGraph::ys, WSGraph::zs, and FSGraph::zs.
void free_CmnHead | ( | CmnHead * | hd | ) |
void free_CmnHead(CmnHead* hd)
共通ヘッダのメモリ領域を開放する.CmnHead.kind は HEADER_NONE になる. init_CmnHead()を内包している.
hd | 開放する共通ヘッダ |
Definition at line 27 of file gdata.c.
References CmnHead::buf, CmnHead::grptr, and init_CmnHead().
Referenced by read_cmn_file(), read_ct_data(), read_ras_data(), read_ras_file(), read_user_data(), and read_wsg_file().
WSGraph grab_WSGraph(WSGraph vp, int x1, int y1, int x2, int y2)
WSGraph型データの (x1,y1)-(x2,y2)の矩形部分だけを取り出す.
(x1,y1)-(x2,y2)が元のデータのサイズを越える場合は,元のデータに合わせられる.
vp | 操作対象グラフィックデータ |
(x1,y1),(x2,y2) | 矩形の対角の座標. |
Definition at line 1311 of file graph.c.
References WSGraph::gp, JBXL_GRAPH_MEMORY_ERROR, make_WSGraph(), Max, Min, Px, WSGraph::state, WSGraph::xs, and WSGraph::ys.
int型単純グラフィックデータ(ISGraph)を sWord型単純グラフィック データ(WSGraph)に変換する.
vp | 変換する int型単純グラフィックデータ |
Definition at line 680 of file gdata.c.
References WSGraph::gp, ISGraph::gp, JBXL_GRAPH_MEMORY_ERROR, WSGraph::state, ISGraph::state, WSGraph::xs, ISGraph::xs, WSGraph::ys, ISGraph::ys, WSGraph::zs, and ISGraph::zs.
void init_CmnHead | ( | CmnHead * | hd | ) |
void init_CmnHead(CmnHead* hd)
共通ヘッダのメモリ領域を初期化する.CmnHead.kind は HEADER_NONE になる.
hd | 初期化する共通ヘッダ |
Definition at line 44 of file gdata.c.
References HEADER_NONE, and CmnHead::kind.
Referenced by free_CmnHead(), read_cmn_file(), read_cmn_header(), read_ct_data(), read_ras_data(), read_user_data(), read_xxx_file(), write_file_rb(), and write_ras_file().
void init_DRBound | ( | DRBound * | rb | ) |
void init_DRBound(DRBound* rb)
2D境界データ構造体を初期化する.
[out] | rb | 初期化する境界データ. |
Definition at line 802 of file gdata.c.
References DRBound::misc, OFF, DRBound::xmax, DRBound::xmin, DRBound::ymax, DRBound::ymin, DRBound::zmax, and DRBound::zmin.
void init_IRBound | ( | IRBound * | rb | ) |
void init_IRBound(IRBound* rb)
境界データ構造体を初期化する.
[out] | rb | 初期化する境界データ. |
Definition at line 787 of file gdata.c.
References IRBound::misc, OFF, SINTMAX, IRBound::xmax, IRBound::xmin, IRBound::ymax, IRBound::ymin, IRBound::zmax, and IRBound::zmin.
Referenced by cut_object().
BSGraph make_BSGraph | ( | int | xs, |
int | ys, | ||
int | zs ) |
BSGraph make_BSGraph(int xs, int ys, int zs)
Byte型単純グラフィックデータ(BSGraph)のメモリ領域を確保する. グラフィックデータ部分は 0クリアされる.
xs | 確保するグラフィックデータの x方向のサイズ. |
ys | 確保するグラフィックデータの y方向のサイズ. |
zs | 確保するグラフィックデータの z方向のサイズ. |
Definition at line 66 of file gdata.c.
References BSGraph::gp, JBXL_GRAPH_IVDARG_ERROR, JBXL_GRAPH_MEMORY_ERROR, JBXL_NORMAL, BSGraph::state, BSGraph::xs, BSGraph::ys, and BSGraph::zs.
Referenced by jp2k_toBSGraph(), JPEGImage2BSGraph(), PNGImage2BSGraph(), and read_shape_main_file().
FSGraph make_FSGraph | ( | int | xs, |
int | ys, | ||
int | zs ) |
FSGraph make_FSGraph(int xs, int ys, int zs)
double 型単純グラフィックデータ(FSGraph)のメモリ領域を確保する. グラフィックデータ部分は 0クリアされる.
xs | 確保するグラフィックデータの x方向のサイズ. |
ys | 確保するグラフィックデータの y方向のサイズ. |
zs | 確保するグラフィックデータの z方向のサイズ. |
Definition at line 150 of file gdata.c.
References FSGraph::gp, JBXL_GRAPH_IVDARG_ERROR, JBXL_GRAPH_MEMORY_ERROR, JBXL_NORMAL, FSGraph::state, FSGraph::xs, FSGraph::ys, and FSGraph::zs.
Referenced by fNabra(), fxSobel(), fxxSobel(), fySobel(), fyySobel(), fzSobel(), fzzSobel(), and V2FSGraph().
ISGraph make_ISGraph | ( | int | xs, |
int | ys, | ||
int | zs ) |
ISGraph make_ISGraph(int xs, int ys, int zs)
int型単純グラフィックデータ(ISGraph)のメモリ領域を確保する. グラフィックデータ部分は 0クリアされる.
xs | 確保するグラフィックデータの x方向のサイズ. |
ys | 確保するグラフィックデータの y方向のサイズ. |
zs | 確保するグラフィックデータの z方向のサイズ. |
Definition at line 192 of file gdata.c.
References ISGraph::gp, JBXL_GRAPH_IVDARG_ERROR, JBXL_GRAPH_MEMORY_ERROR, JBXL_NORMAL, ISGraph::state, ISGraph::xs, ISGraph::ys, and ISGraph::zs.
Referenced by euclid_distance().
MSGraph make_MSGraph | ( | int | xs, |
int | ys, | ||
int | zs, | ||
int | depth ) |
MSGraph make_MSGraph(int xs, int ys, int zs, int depth)
単純グラフィックデータ(MSGraph)のメモリ領域を確保する. グラフィックデータ部分は 0クリアされる.
xs | 確保するグラフィックデータの x方向のサイズ. |
ys | 確保するグラフィックデータの y方向のサイズ. |
zs | 確保するグラフィックデータの z方向のサイズ. |
depth | カラーデプス(bit) |
Definition at line 277 of file gdata.c.
References MSGraph::depth, MSGraph::gp, JBXL_GRAPH_IVDARG_ERROR, JBXL_GRAPH_MEMORY_ERROR, JBXL_NORMAL, MSGraph::state, MSGraph::xs, MSGraph::ys, and MSGraph::zs.
Referenced by proc_tiff_ifd().
VSGraph make_VSGraph | ( | int | xs, |
int | ys, | ||
int | zs ) |
VSGraph make_VSGraph(int xs, int ys, int zs)
vector型単純グラフィックデータ(VSGraph)のメモリ領域を確保する. グラフィックデータ部分は 0クリアされる.
xs | 確保するグラフィックデータの x方向のサイズ. |
ys | 確保するグラフィックデータの y方向のサイズ. |
zs | 確保するグラフィックデータの z方向のサイズ. |
Definition at line 234 of file gdata.c.
References VSGraph::gp, JBXL_GRAPH_IVDARG_ERROR, JBXL_GRAPH_MEMORY_ERROR, JBXL_NORMAL, set_vector(), VSGraph::state, VSGraph::xs, VSGraph::ys, and VSGraph::zs.
Referenced by curvature(), curvature3D(), vfNabra(), and vNabra().
WSGraph make_WSGraph | ( | int | xs, |
int | ys, | ||
int | zs ) |
WSGraph make_WSGraph(int xs, int ys, int zs)
sWord型単純グラフィックデータ(WSGraph)のメモリ領域を確保する. グラフィックデータ部分は 0クリアされる.
xs | 確保するグラフィックデータの x方向のサイズ. |
ys | 確保するグラフィックデータの y方向のサイズ. |
zs | 確保するグラフィックデータの z方向のサイズ. |
Definition at line 108 of file gdata.c.
References WSGraph::gp, JBXL_GRAPH_IVDARG_ERROR, JBXL_GRAPH_MEMORY_ERROR, JBXL_NORMAL, WSGraph::state, WSGraph::xs, WSGraph::ys, and WSGraph::zs.
Referenced by circle3d(), curv2WSGraph(), cut_object(), edge_enhance(), euclid_distance(), grab_WSGraph(), imask(), JPEGImage2WSGraph(), Laplacian(), median(), Nabra(), PNGImage2WSGraph(), pool(), read_dicom_file(), to2d(), torus(), V2WSGraph(), x_reverse_wsg(), xSobel(), xxSobel(), ySobel(), yySobel(), zoom_WSGraph(), zSobel(), and zzSobel().
BSGraph * new_BSGraph | ( | int | xs, |
int | ys, | ||
int | zs ) |
BSGraph* new_BSGraph(int xs, int ys, int zs)
Byte型単純グラフィックデータ(BSGraph)のメモリ領域を確保する. グラフィックデータ部分は 0クリアされる.
xs | 確保するグラフィックデータの x方向のサイズ. |
ys | 確保するグラフィックデータの y方向のサイズ. |
zs | 確保するグラフィックデータの z方向のサイズ. |
Definition at line 319 of file gdata.c.
References BSGraph::gp, JBXL_GRAPH_IVDARG_ERROR, JBXL_GRAPH_MEMORY_ERROR, JBXL_NORMAL, BSGraph::state, BSGraph::xs, BSGraph::ys, and BSGraph::zs.
FSGraph * new_FSGraph | ( | int | xs, |
int | ys, | ||
int | zs ) |
FSGraph* new_FSGraph(int xs, int ys, int zs)
double 型単純グラフィックデータ(FSGraph)のメモリ領域を確保する. グラフィックデータ部分は 0クリアされる.
xs | 確保するグラフィックデータの x方向のサイズ. |
ys | 確保するグラフィックデータの y方向のサイズ. |
zs | 確保するグラフィックデータの z方向のサイズ. |
Definition at line 409 of file gdata.c.
References FSGraph::gp, JBXL_GRAPH_IVDARG_ERROR, JBXL_GRAPH_MEMORY_ERROR, JBXL_NORMAL, FSGraph::state, FSGraph::xs, FSGraph::ys, and FSGraph::zs.
ISGraph * new_ISGraph | ( | int | xs, |
int | ys, | ||
int | zs ) |
ISGraph* new_ISGraph(int xs, int ys, int zs)
int型単純グラフィックデータ(ISGraph)のメモリ領域を確保する. グラフィックデータ部分は 0クリアされる.
xs | 確保するグラフィックデータの x方向のサイズ. |
ys | 確保するグラフィックデータの y方向のサイズ. |
zs | 確保するグラフィックデータの z方向のサイズ. |
Definition at line 454 of file gdata.c.
References ISGraph::gp, JBXL_GRAPH_IVDARG_ERROR, JBXL_GRAPH_MEMORY_ERROR, JBXL_NORMAL, ISGraph::state, ISGraph::xs, ISGraph::ys, and ISGraph::zs.
MSGraph * new_MSGraph | ( | int | xs, |
int | ys, | ||
int | zs, | ||
int | depth ) |
MSGraph* new_MSGraph(int xs, int ys, int zs, int depth)
単純グラフィックデータ(MSGraph)のメモリ領域を確保する. グラフィックデータ部分は 0クリアされる.
xs | 確保するグラフィックデータの x方向のサイズ. |
ys | 確保するグラフィックデータの y方向のサイズ. |
zs | 確保するグラフィックデータの z方向のサイズ. |
depth | カラーデプス(bit) |
Definition at line 545 of file gdata.c.
References MSGraph::depth, MSGraph::gp, JBXL_GRAPH_IVDARG_ERROR, JBXL_GRAPH_MEMORY_ERROR, JBXL_NORMAL, MSGraph::state, MSGraph::xs, MSGraph::ys, and MSGraph::zs.
VSGraph * new_VSGraph | ( | int | xs, |
int | ys, | ||
int | zs ) |
VSGraph* new_VSGraph(int xs, int ys, int zs)
vector型単純グラフィックデータ(VSGraph)のメモリ領域を確保する. グラフィックデータ部分は 0クリアされる.
xs | 確保するグラフィックデータの x方向のサイズ. |
ys | 確保するグラフィックデータの y方向のサイズ. |
zs | 確保するグラフィックデータの z方向のサイズ. |
Definition at line 499 of file gdata.c.
References VSGraph::gp, JBXL_GRAPH_IVDARG_ERROR, JBXL_GRAPH_MEMORY_ERROR, JBXL_NORMAL, set_vector(), VSGraph::state, VSGraph::xs, VSGraph::ys, and VSGraph::zs.
WSGraph * new_WSGraph | ( | int | xs, |
int | ys, | ||
int | zs ) |
WSGraph* new_WSGraph(int xs, int ys, int zs)
sWord型単純グラフィックデータ(WSGraph)のメモリ領域を確保する. グラフィックデータ部分は 0クリアされる.
xs | 確保するグラフィックデータの x方向のサイズ. |
ys | 確保するグラフィックデータの y方向のサイズ. |
zs | 確保するグラフィックデータの z方向のサイズ. |
Definition at line 364 of file gdata.c.
References WSGraph::gp, JBXL_GRAPH_IVDARG_ERROR, JBXL_GRAPH_MEMORY_ERROR, JBXL_NORMAL, WSGraph::state, WSGraph::xs, WSGraph::ys, and WSGraph::zs.
void set_RZxy | ( | double | rzm | ) |
void set_RZxy(double rzm)
z軸のひずみを設定する.デフォルトでは 1.0に設定されている. 設定を無効にするには void unset_RZxy(void) を使用する.
rzm | ひずみの値. |
Definition at line 818 of file gdata.c.
References ChkRZxy, ON, and RZxy.
Referenced by read_dicom_file(), read_wsg_file(), and read_wsg_file_rb().
vector型単純グラフィックデータ(VSGraph)を double型単純グラフィック データ(FSGraph)に変換する.
vp | 変換する vector型単純グラフィックデータ |
Definition at line 742 of file gdata.c.
References FSGraph::gp, VSGraph::gp, make_FSGraph(), vector::n, FSGraph::state, VSGraph::state, FSGraph::xs, VSGraph::xs, FSGraph::ys, VSGraph::ys, FSGraph::zs, and VSGraph::zs.
vector型単純グラフィックデータ(VSGraph)を sWord型単純グラフィックデータ(WSGraph)に変換する.
vp | 変換する vector型単純グラフィックデータ |
Definition at line 765 of file gdata.c.
References WSGraph::gp, VSGraph::gp, make_WSGraph(), vector::n, WSGraph::state, VSGraph::state, WSGraph::xs, VSGraph::xs, WSGraph::ys, VSGraph::ys, WSGraph::zs, and VSGraph::zs.
sWord型単純グラフィックデータ(WSGraph)を double型単純グラフィック データ(FSGraph)に変換する.
vp | 変換する sWord型単純グラフィックデータ |
Definition at line 618 of file gdata.c.
References WSGraph::gp, FSGraph::gp, JBXL_GRAPH_MEMORY_ERROR, WSGraph::state, FSGraph::state, WSGraph::xs, FSGraph::xs, WSGraph::ys, FSGraph::ys, WSGraph::zs, and FSGraph::zs.
Referenced by WSCurve().
sWord型単純グラフィックデータ(WSGraph)を int型単純グラフィック データ(ISGraph)に変換する.
vp | 変換する sWord型単純グラフィックデータ |
Definition at line 587 of file gdata.c.
References WSGraph::gp, ISGraph::gp, JBXL_GRAPH_MEMORY_ERROR, WSGraph::state, ISGraph::state, WSGraph::xs, ISGraph::xs, WSGraph::ys, ISGraph::ys, WSGraph::zs, and ISGraph::zs.
WSGraph zoom_WSGraph(WSGraph vp, int zm, int mode)
グラフィックデータ拡大する.
vp | 変換する Word型単純グラフィックデータ. |
zm | 倍率. |
mode | モード.1: 線形補間拡大,その他: 単純拡大 |
Definition at line 1245 of file graph.c.
References WSGraph::gp, JBXL_GRAPH_IVDARG_ERROR, JBXL_GRAPH_MEMORY_ERROR, make_WSGraph(), WSGraph::state, WSGraph::xs, and WSGraph::ys.
|
extern |
Definition at line 16 of file gdata.c.
Referenced by chk_RZxy(), and set_RZxy().
|
extern |
Definition at line 15 of file gdata.c.
Referenced by get_wdat(), set_RZxy(), set_wdat(), sphere(), write_ct_file(), and write_file_rb().
|
extern |
Definition at line 14 of file gdata.c.
Referenced by read_wsg_file(), read_wsg_file_rb(), write_ct_file(), and write_file_rb().