30 if (hd->
buf!=NULL) free(hd->
buf);
71 memset(&vp, 0,
sizeof(
BSGraph));
85 memset(&vp, 0,
sizeof(
BSGraph));
89 for (i=0; i<vp.
xs*vp.
ys*vp.
zs; i++) vp.
gp[i] = 0;
113 memset(&vp, 0,
sizeof(
WSGraph));
114 if (xs==0 || ys==0) {
121 if (zs>0) vp.
zs = zs;
127 memset(&vp, 0,
sizeof(
WSGraph));
131 for (i=0; i<vp.
xs*vp.
ys*vp.
zs; i++) vp.
gp[i] = 0;
155 memset(&vp, 0,
sizeof(
FSGraph));
156 if (xs==0 || ys==0) {
163 if (zs>0) vp.
zs = zs;
167 vp.
gp = (
double*)malloc(vp.
xs*vp.
ys*vp.
zs*
sizeof(
double));
169 memset(&vp, 0,
sizeof(
FSGraph));
173 for (i=0; i<vp.
xs*vp.
ys*vp.
zs; i++) vp.
gp[i] = 0.0;
197 memset(&vp, 0,
sizeof(
ISGraph));
198 if (xs==0 || ys==0) {
205 if (zs>0) vp.
zs = zs;
209 vp.
gp = (
int*)malloc(vp.
xs*vp.
ys*vp.
zs*
sizeof(
int));
211 memset(&vp, 0,
sizeof(
ISGraph));
215 for (i=0; i<vp.
xs*vp.
ys*vp.
zs; i++) vp.
gp[i] = 0;
239 memset(&vp, 0,
sizeof(
VSGraph));
240 if (xs==0 || ys==0) {
247 if (zs>0) vp.
zs = zs;
253 memset(&vp, 0,
sizeof(
VSGraph));
257 for (i=0; i<xs*ys*zs; i++) vp.
gp[i] =
set_vector(0.0, 0.0, 0.0);
281 memset(&vp, 0,
sizeof(
MSGraph));
282 if (xs==0 || ys==0) {
289 if (zs>0) vp.
zs = zs;
291 if (depth>0) vp.
depth = depth;
295 vp.
gp = (
unsigned char*)malloc(xs*ys*zs*((depth+7)/8));
297 memset(&vp, 0,
sizeof(
MSGraph));
301 memset(vp.
gp, 0, xs*ys*zs*((depth+7)/8));
325 if (vp==NULL)
return NULL;
326 memset(vp, 0,
sizeof(
BSGraph));
328 if (xs==0 || ys==0) {
335 if (zs>0) vp->
zs = zs;
341 memset(vp, 0,
sizeof(
BSGraph));
345 for (i=0; i<vp->
xs*vp->
ys*vp->
zs; i++) vp->
gp[i] = 0;
370 if (vp==NULL)
return NULL;
371 memset(vp, 0,
sizeof(
WSGraph));
373 if (xs==0 || ys==0) {
380 if (zs>0) vp->
zs = zs;
386 memset(vp, 0,
sizeof(
WSGraph));
390 for (i=0; i<vp->
xs*vp->
ys*vp->
zs; i++) vp->
gp[i] = 0;
415 if (vp==NULL)
return NULL;
416 memset(vp, 0,
sizeof(
FSGraph));
418 if (xs==0 || ys==0) {
425 if (zs>0) vp->
zs = zs;
429 vp->
gp = (
double*)malloc(vp->
xs*vp->
ys*vp->
zs*
sizeof(
double));
431 memset(vp, 0,
sizeof(
FSGraph));
435 for (i=0; i<vp->
xs*vp->
ys*vp->
zs; i++) vp->
gp[i] = 0.0;
460 if (vp==NULL)
return NULL;
461 memset(vp, 0,
sizeof(
ISGraph));
463 if (xs==0 || ys==0) {
470 if (zs>0) vp->
zs = zs;
474 vp->
gp = (
int*)malloc(vp->
xs*vp->
ys*vp->
zs*
sizeof(
int));
476 memset(vp, 0,
sizeof(
ISGraph));
480 for (i=0; i<vp->
xs*vp->
ys*vp->
zs; i++) vp->
gp[i] = 0;
505 if (vp==NULL)
return NULL;
506 memset(vp, 0,
sizeof(
VSGraph));
508 if (xs==0 || ys==0) {
515 if (zs>0) vp->
zs = zs;
521 memset(vp, 0,
sizeof(
VSGraph));
550 if (vp==NULL)
return NULL;
551 memset(vp, 0,
sizeof(
MSGraph));
553 if (xs==0 || ys==0) {
560 if (zs>0) vp->
zs = zs;
562 if (depth>0) vp->
depth = depth;
566 vp->
gp = (
unsigned char*)malloc(vp->
xs*vp->
ys*vp->
zs*((depth+7)/8));
568 memset(vp, 0,
sizeof(
MSGraph));
572 memset(vp->
gp, 0, vp->
xs*vp->
ys*vp->
zs*((depth+7)/8));
597 ix.
gp = (
int*)malloc(ix.
xs*ix.
ys*ix.
zs*
sizeof(
int));
599 memset(&ix, 0,
sizeof(
ISGraph));
603 for (i=0; i<ix.
xs*ix.
ys*ix.
zs; i++) ix.
gp[i] = (
int)vp.
gp[i];
628 ix.
gp = (
double*)malloc(ix.
xs*ix.
ys*ix.
zs*
sizeof(
double));
630 memset(&ix, 0,
sizeof(
FSGraph));
634 for (i=0; i<ix.
xs*ix.
ys*ix.
zs; i++) ix.
gp[i]=(
double)vp.
gp[i];
661 memset(&ix, 0,
sizeof(
WSGraph));
692 memset(&ix, 0,
sizeof(
WSGraph));
723 memset(&ix, 0,
sizeof(
WSGraph));
748 if (ix.
gp==NULL)
return ix;
750 for (i=0; i<ix.
xs*ix.
ys*ix.
zs; i++) ix.
gp[i] = vp.
gp[i].
n;
771 if (ix.
gp==NULL)
return ix;
FSGraph V2FSGraph(VSGraph vp)
BSGraph make_BSGraph(int xs, int ys, int zs)
FSGraph * new_FSGraph(int xs, int ys, int zs)
WSGraph I2WSGraph(ISGraph vp)
MSGraph make_MSGraph(int xs, int ys, int zs, int depth)
WSGraph make_WSGraph(int xs, int ys, int zs)
FSGraph W2FSGraph(WSGraph vp)
WSGraph * new_WSGraph(int xs, int ys, int zs)
VSGraph * new_VSGraph(int xs, int ys, int zs)
void set_RZxy(double rzm)
BSGraph * new_BSGraph(int xs, int ys, int zs)
void init_CmnHead(CmnHead *hd)
void free_CmnHead(CmnHead *hd)
VSGraph make_VSGraph(int xs, int ys, int zs)
FSGraph make_FSGraph(int xs, int ys, int zs)
ISGraph make_ISGraph(int xs, int ys, int zs)
void init_DRBound(DRBound *rb)
WSGraph F2WSGraph(FSGraph vp)
WSGraph V2WSGraph(VSGraph vp)
MSGraph * new_MSGraph(int xs, int ys, int zs, int depth)
ISGraph W2ISGraph(WSGraph vp)
WSGraph B2WSGraph(BSGraph vp)
void init_IRBound(IRBound *rb)
ISGraph * new_ISGraph(int xs, int ys, int zs)
#define JBXL_GRAPH_IVDARG_ERROR
無効な引数
#define JBXL_GRAPH_MEMORY_ERROR
メモリエラー
vector set_vector(double x, double y, double z)
int zs
zサイズ. 4Byte. 2Dの場合は 1.
uByte * gp
グラフィックデータへのポインタ. xs*ys*zs*1Byte.
uByte * buf
Ture Header buffer
int kind
Kind of Graphics Format.
uByte * grptr
Pointer to Data.
int zs
zサイズ. 4Byte. 2Dの場合は 1.
double * gp
グラフィックデータへのポインタ. xs*ys*zs*sizeof(double)
int zs
zサイズ. 4Byte. 2Dの場合は 1.
int * gp
グラフィックデータへのポインタ. xs*ys*zs*4Byte
int zs
zサイズ. 4Byte. 2Dの場合は 1.
unsigned char * gp
グラフィックデータへのポインタ. xs*ys*zs*depth.
int zs
zサイズ. 4Byte. 2Dの場合は 1.
vector * gp
グラフィックデータへのポインタ. xs*ys*zs*sizeof(vector).
int zs
zサイズ. 4Byte. 2Dの場合は 1.
sWord * gp
グラフィックデータへのポインタ. xs*ys*zs*2Byte.