23 #if defined(GFORTRAN_CALLS) 24 #define OF_FCN(name) name##__ 27 #define OF_FCN(name) name 40 #if defined(GFORTRAN_CALLS) || defined(IFORT_CALLS) 42 #define OF_CHARARG(name) const char *name, unsigned int name##len 43 #define OF_STRING(name) name, name##len 45 #define OF_CHARARG(name) const char *name 46 #define OF_STRING(name) name 51 #define BASIC_CALLBACK_SIG unsigned int *winID, unsigned int *row, unsigned int *col 53 #define KEYPRESS_SIG BASIC_CALLBACK_SIG, int *key 55 #define MOUSEMOTION_SIG BASIC_CALLBACK_SIG, float *x, float *y 57 #define BUTTON_SIG MOUSEMOTION_SIG, unsigned int *button 84 OF_EXPORT
void OF_FCN(of_initialize)();
88 OF_EXPORT
void OF_FCN(of_cleanup)();
99 OF_EXPORT
void OF_FCN(of_getreturnedvalue)(
int *val);
111 OF_EXPORT
void OF_FCN(ofwin_activate)(
unsigned int *id);
118 OF_EXPORT
void OF_FCN(ofwin_getid)(
unsigned int *retid);
134 OF_EXPORT
void OF_FCN(ofwin_createproxy)(
int *x,
int *y,
135 unsigned int *width,
unsigned int *height,
136 unsigned int *nrow,
unsigned int *ncol,
137 bool *embedded,
unsigned int *id);
154 OF_EXPORT
void OF_FCN(ofwin_setgridsize)(
int *nrow,
int *ncol);
183 OF_EXPORT
void OF_FCN(ofwin_setbuttonpresscallback)(void (*fcn)(
BUTTON_SIG));
192 OF_EXPORT
void OF_FCN(ofwin_setbuttonreleasecallback)(void (*fcn)(
BUTTON_SIG));
195 OF_EXPORT
void OF_FCN(ofwin_start)();
196 OF_EXPORT
void OF_FCN(ofwin_stop)();
197 OF_EXPORT
void OF_FCN(ofwin_signalstop)();
198 OF_EXPORT
void OF_FCN(ofwin_waitforstop)();
207 OF_EXPORT
void OF_FCN(ofwin_pauseanimation)(
bool *pause);
216 OF_EXPORT
void OF_FCN(ofwin_isrunning)(
unsigned int *state);
227 OF_EXPORT
void OF_FCN(ofwin_settime)(
double *time);
236 OF_EXPORT
void OF_FCN(ofwin_gettime)(
double *time);
245 OF_EXPORT
void OF_FCN(ofwin_pausetime)(
bool *pause);
254 OF_EXPORT
void OF_FCN(ofwin_istimepaused)(
bool *isPaused);
263 OF_EXPORT
void OF_FCN(ofwin_settimescale)(
double *tscale);
272 OF_EXPORT
void OF_FCN(ofwin_gettimescale)(
double *tscale);
288 OF_EXPORT
void OF_FCN(ofwin_setlightambient)(
unsigned int *row,
unsigned int *col,
289 float *r,
float *g,
float *b);
290 OF_EXPORT
void OF_FCN(ofwin_setlightdiffuse)(
unsigned int *row,
unsigned int *col,
291 float *r,
float *g,
float *b);
292 OF_EXPORT
void OF_FCN(ofwin_setlightspecular)(
unsigned int *row,
unsigned int *col,
293 float *r,
float *g,
float *b);
309 OF_EXPORT
void OF_FCN(ofwin_setlightposition)(
unsigned int *row,
unsigned int *col,
310 float *x,
float *y,
float *z,
float *w);
321 OF_EXPORT
void OF_FCN(ofwin_setscene)(
unsigned int *row,
unsigned int *col);
336 OF_EXPORT
void OF_FCN(ofwin_setstereo)(
unsigned int *row,
unsigned int *col,
bool *enable,
float *eyeseparation,
float *width,
float *height,
float *distance);
349 OF_EXPORT
void OF_FCN(ofwin_setbackgroundcolor)(
unsigned int *row,
unsigned int *col,
350 float *r,
float *g,
float *b);
361 OF_EXPORT
void OF_FCN(ofwin_setbackgroundtexture)(
unsigned int *row,
unsigned int *col,
OF_CHARARG(fname));
374 OF_EXPORT
void OF_FCN(ofwin_setbackgroundstardata)(
unsigned int *row,
unsigned int *col,
float *minMag,
float *maxMag,
OF_CHARARG(fname));
386 OF_EXPORT
void OF_FCN(ofwin_enablehudtext)(
unsigned int *row,
unsigned int *col,
bool *enable);
397 OF_EXPORT
void OF_FCN(ofwin_sethudtextfont)(
unsigned int *row,
unsigned int *col,
OF_CHARARG(fname));
411 OF_EXPORT
void OF_FCN(ofwin_sethudtextparameters)(
unsigned int *row,
unsigned int *col,
float *r,
float *g,
float *b,
float *charSize);
424 OF_EXPORT
void OF_FCN(ofwin_sethudtextposition)(
unsigned int *row,
unsigned int *col,
float *x,
float *y,
unsigned int *alignment);
435 OF_EXPORT
void OF_FCN(ofwin_sethudtext)(
unsigned int *row,
unsigned int *col,
OF_CHARARG(text));
444 OF_EXPORT
void OF_FCN(ofwin_setswapbuffersfunction)(void (*fcn)(
unsigned int *winID));
453 OF_EXPORT
void OF_FCN(ofwin_setmakecurrentfunction)(void (*fcn)(
unsigned int *winID,
bool *success));
464 OF_EXPORT
void OF_FCN(ofwin_setupdatecontextfunction)(void (*fcn)(
unsigned int *winID,
bool *success));
478 OF_EXPORT
void OF_FCN(ofwin_resizewindow)(
int *x,
int *y,
unsigned int *width,
unsigned int *height);
487 OF_EXPORT
void OF_FCN(ofwin_keypress)(
unsigned int *key);
496 OF_EXPORT
void OF_FCN(ofwin_keyrelease)(
unsigned int *key);
507 OF_EXPORT
void OF_FCN(ofwin_buttonpress)(
float *x,
float *y,
unsigned int *button);
518 OF_EXPORT
void OF_FCN(ofwin_buttonrelease)(
float *x,
float *y,
unsigned int *button);
528 OF_EXPORT
void OF_FCN(ofwin_mousemotion)(
float *x,
float *y);
537 OF_EXPORT
void OF_FCN(ofwin_setdesiredframerate)(
double *fps);
550 OF_EXPORT
void OF_FCN(ofwin_addview)(
unsigned int *row,
unsigned int *col);
561 OF_EXPORT
void OF_FCN(ofwin_removeview)(
unsigned int *row,
unsigned int *col);
571 OF_EXPORT
void OF_FCN(ofwin_removeallviews)(
unsigned int *row,
unsigned int *col);
582 OF_EXPORT
void OF_FCN(ofwin_selectview)(
unsigned int *row,
unsigned int *col);
601 OF_EXPORT
void OF_FCN(ofwin_capturewindow)();
602 #if defined(IFORT_CALLS) 603 OF_EXPORT
void OF_FCN(ofwin_setwindowcapturefile)(
const char *fname,
605 unsigned int fnamelen,
606 unsigned int fextlen);
623 OF_EXPORT
void OF_FCN(ofwin_setwindowcapturekey)(
int *key);
634 OF_EXPORT
void OF_FCN(offm_activate)(
int *id);
643 OF_EXPORT
void OF_FCN(offm_create)(
int *id);
651 OF_EXPORT
void OF_FCN(offm_setframe)();
659 OF_EXPORT
void OF_FCN(offm_lock)();
667 OF_EXPORT
void OF_FCN(offm_unlock)();
699 OF_EXPORT
void OF_FCN(offrame_setcolor)(
float *r,
float *g,
float *b,
float *a);
727 OF_EXPORT
void OF_FCN(offrame_removeallchildren)();
736 OF_EXPORT
void OF_FCN(offrame_getnumchildren)(
int *numchildren);
747 OF_EXPORT
void OF_FCN(offrame_setposition)(
double *x,
double *y,
double *z);
758 OF_EXPORT
void OF_FCN(offrame_getposition)(
double *x,
double *y,
double *z);
770 OF_EXPORT
void OF_FCN(offrame_setattitude)(
double *rx,
double *ry,
double *rz,
double *angle);
782 OF_EXPORT
void OF_FCN(offrame_getattitude)(
double *rx,
double *ry,
double *rz,
double *angle);
795 OF_EXPORT
void OF_FCN(offrame_showaxes)(
unsigned int *axes);
804 OF_EXPORT
void OF_FCN(offrame_shownamelabel)(
bool *namelabel);
817 OF_EXPORT
void OF_FCN(offrame_showaxeslabels)(
unsigned int *labels);
840 #if defined(IFORT_CALLS) 841 OF_EXPORT
void OF_FCN(offrame_setaxeslabels)(
const char *xlabel,
844 unsigned int xlabellen,
845 unsigned int ylabellen,
846 unsigned int zlabellen);
872 OF_EXPORT
void OF_FCN(offrame_movexaxis)(
double pos[],
double *length,
double *headRatio,
double *bodyRadius,
double *headRadius);
887 OF_EXPORT
void OF_FCN(offrame_moveyaxis)(
double pos[],
double *length,
double *headRatio,
double *bodyRadius,
double *headRadius);
902 OF_EXPORT
void OF_FCN(offrame_movezaxis)(
double pos[],
double *length,
double *headRatio,
double *bodyRadius,
double *headRadius);
916 OF_EXPORT
void OF_FCN(offrame_setlightsourceenabled)(
bool *enabled);
918 OF_EXPORT
void OF_FCN(offrame_getlightsourceenabled)(
bool *enabled);
919 OF_EXPORT
void OF_FCN(offrame_setlightambient)(
float *r,
float *g,
float *b);
920 OF_EXPORT
void OF_FCN(offrame_setlightdiffuse)(
float *r,
float *g,
float *b);
921 OF_EXPORT
void OF_FCN(offrame_setlightspecular)(
float *r,
float *g,
float *b);
944 OF_EXPORT
void OF_FCN(offrame_followtype)(
int *data,
int *mode);
960 OF_EXPORT
void OF_FCN(offrame_followposition)(
int src[],
unsigned int element[],
961 unsigned int opt[],
double scale[]);
977 OF_EXPORT
void OF_FCN(offrame_managetime)(
bool *affectChildren,
bool *reset,
978 bool *changePauseState,
bool *pauseState,
979 bool *changeOffsetTime,
double *offsetTime,
980 bool *changeTimeScale,
double *timeScale);
987 OF_EXPORT
void OF_FCN(offrame_printframestring)();
1013 OF_EXPORT
void OF_FCN(ofsphere_setradius)(
double *radius);
1044 OF_EXPORT
void OF_FCN(ofsphere_setautolod)(
bool *lod);
1055 OF_EXPORT
void OF_FCN(ofsphere_setsphereposition)(
double *x,
double *y,
double *z);
1067 OF_EXPORT
void OF_FCN(ofsphere_setsphereattitude)(
double *rx,
double *ry,
double *rz,
double *angle);
1077 OF_EXPORT
void OF_FCN(ofsphere_setspherescale)(
double *sx,
double *sy,
double *sz);
1089 OF_EXPORT
void OF_FCN(ofsphere_setmaterialambient)(
float *r,
float *g,
float *b);
1090 OF_EXPORT
void OF_FCN(ofsphere_setmaterialdiffuse)(
float *r,
float *g,
float *b);
1091 OF_EXPORT
void OF_FCN(ofsphere_setmaterialspecular)(
float *r,
float *g,
float *b);
1092 OF_EXPORT
void OF_FCN(ofsphere_setmaterialemission)(
float *r,
float *g,
float *b);
1093 OF_EXPORT
void OF_FCN(ofsphere_setmaterialshininess)(
float *shininess);
1134 OF_EXPORT
void OF_FCN(ofmodel_setmodelposition)(
double *x,
double *y,
double *z);
1145 OF_EXPORT
void OF_FCN(ofmodel_getmodelposition)(
double *x,
double *y,
double *z);
1156 OF_EXPORT
void OF_FCN(ofmodel_setmodelscale)(
double *sx,
double *sy,
double *sz);
1167 OF_EXPORT
void OF_FCN(ofmodel_getmodelscale)(
double *sx,
double *sy,
double *sz);
1180 OF_EXPORT
void OF_FCN(ofmodel_setmodelpivot)(
double *px,
double *py,
double *pz);
1193 OF_EXPORT
void OF_FCN(ofmodel_getmodelpivot)(
double *px,
double *py,
double *pz);
1204 OF_EXPORT
void OF_FCN(ofmodel_getmodelsize)(
double *size);
1251 OF_EXPORT
void OF_FCN(ofdrawtraj_removeallartists)();
1276 OF_EXPORT
void OF_FCN(ofcoordaxes_setaxislength)(
double *len);
1287 OF_EXPORT
void OF_FCN(ofcoordaxes_setdrawaxes)(
unsigned int *axes);
1297 OF_EXPORT
void OF_FCN(ofcoordaxes_settickspacing)(
double *major,
double *minor);
1307 OF_EXPORT
void OF_FCN(ofcoordaxes_setticksize)(
unsigned int *major,
unsigned int *minor);
1355 OF_EXPORT
void OF_FCN(oflatlongrid_setparameters)(
double *radius,
1383 OF_EXPORT
void OF_FCN(ofradialplane_setparameters)(
double *radius,
1397 OF_EXPORT
void OF_FCN(ofradialplane_setplanecolor)(
float *r,
float *g,
1398 float *b,
float *a);
1410 OF_EXPORT
void OF_FCN(ofradialplane_setlinecolor)(
float *r,
float *g,
1411 float *b,
float *a);
1435 #if defined(IFORT_CALLS) 1436 OF_EXPORT
void OF_FCN(oftraj_create)(
const char *name,
unsigned int *dof,
1437 unsigned int *numopt,
1438 unsigned int namelen);
1441 unsigned int *numopt);
1453 OF_EXPORT
void OF_FCN(oftraj_setnumoptionals)(
unsigned int *nopt);
1462 OF_EXPORT
void OF_FCN(oftraj_setdof)(
unsigned int *dof);
1473 OF_EXPORT
void OF_FCN(oftraj_addtime)(
const double *t);
1490 OF_EXPORT
void OF_FCN(oftraj_addposition)(
const double *x,
const double *y,
1502 OF_EXPORT
void OF_FCN(oftraj_addpositionvec)(
const double pos[]);
1516 OF_EXPORT
void OF_FCN(oftraj_addattitude)(
const double *x,
const double *y,
1517 const double *z,
const double *w);
1526 OF_EXPORT
void OF_FCN(oftraj_addattitudevec)(
const double att[]);
1541 OF_EXPORT
void OF_FCN(oftraj_setoptional)(
unsigned int *index,
const double *x,
1542 const double *y,
const double *z);
1555 OF_EXPORT
void OF_FCN(oftraj_setoptionalvec)(
unsigned int *index,
const double opt[]);
1562 OF_EXPORT
void OF_FCN(oftraj_clear)();
1571 OF_EXPORT
void OF_FCN(oftraj_informartists)();
1585 OF_EXPORT
void OF_FCN(oftraj_autoinformartists)(
bool *autoinform);
1608 OF_EXPORT
void OF_FCN(oftrajartist_settrajectory)();
1638 OF_EXPORT
void OF_FCN(ofcurveartist_setxdata)(
int *src,
unsigned int *element,
1639 unsigned int *opt,
double *scale);
1652 OF_EXPORT
void OF_FCN(ofcurveartist_setydata)(
int *src,
unsigned int *element,
1653 unsigned int *opt,
double *scale);
1666 OF_EXPORT
void OF_FCN(ofcurveartist_setzdata)(
int *src,
unsigned int *element,
1667 unsigned int *opt,
double *scale);
1678 OF_EXPORT
void OF_FCN(ofcurveartist_setcolor)(
float *r,
float *g,
float *b);
1687 OF_EXPORT
void OF_FCN(ofcurveartist_setwidth)(
float *width);
1699 OF_EXPORT
void OF_FCN(ofcurveartist_setpattern)(
int *factor,
unsigned short *pattern);
1729 OF_EXPORT
void OF_FCN(ofsegmentartist_setstartxdata)(
int *src,
unsigned int *element,
1730 unsigned int *opt,
double *scale);
1743 OF_EXPORT
void OF_FCN(ofsegmentartist_setstartydata)(
int *src,
unsigned int *element,
1744 unsigned int *opt,
double *scale);
1757 OF_EXPORT
void OF_FCN(ofsegmentartist_setstartzdata)(
int *src,
unsigned int *element,
1758 unsigned int *opt,
double *scale);
1771 OF_EXPORT
void OF_FCN(ofsegmentartist_setendxdata)(
int *src,
unsigned int *element,
1772 unsigned int *opt,
double *scale);
1785 OF_EXPORT
void OF_FCN(ofsegmentartist_setendydata)(
int *src,
unsigned int *element,
1786 unsigned int *opt,
double *scale);
1799 OF_EXPORT
void OF_FCN(ofsegmentartist_setendzdata)(
int *src,
unsigned int *element,
1800 unsigned int *opt,
double *scale);
1809 OF_EXPORT
void OF_FCN(ofsegmentartist_setstride)(
unsigned int *stride);
1822 OF_EXPORT
void OF_FCN(ofsegmentartist_setcolor)(
float *r,
float *g,
float *b);
1831 OF_EXPORT
void OF_FCN(ofsegmentartist_setwidth)(
float *width);
1843 OF_EXPORT
void OF_FCN(ofsegmentartist_setpattern)(
int *factor,
unsigned short *pattern);
1871 OF_EXPORT
void OF_FCN(ofmarkerartist_setxdata)(
int *src,
unsigned int *element,
1872 unsigned int *opt,
double *scale);
1885 OF_EXPORT
void OF_FCN(ofmarkerartist_setydata)(
int *src,
unsigned int *element,
1886 unsigned int *opt,
double *scale);
1899 OF_EXPORT
void OF_FCN(ofmarkerartist_setzdata)(
int *src,
unsigned int *element,
1900 unsigned int *opt,
double *scale);
1909 OF_EXPORT
void OF_FCN(ofmarkerartist_setmarkers)(
unsigned int *markers );
1921 OF_EXPORT
void OF_FCN(ofmarkerartist_setmarkercolor)(
unsigned int *markers,
float *r,
float *g,
float *b );
1952 OF_EXPORT
void OF_FCN(ofmarkerartist_setintermediatetype)(
unsigned int *type );
1961 OF_EXPORT
void OF_FCN(ofmarkerartist_setintermediatespacing)(
double *spacing );
1970 OF_EXPORT
void OF_FCN(ofmarkerartist_setintermediatedirection)(
unsigned int *direction );
1979 OF_EXPORT
void OF_FCN(ofmarkerartist_setmarkersize)(
unsigned int *size );
1988 OF_EXPORT
void OF_FCN(ofmarkerartist_setautoattenuate)(
bool *autoattenuate );
2024 OF_EXPORT
void OF_FCN(ofview_setorthographic)(
double *left,
double *right,
2025 double *bottom,
double *top);
2035 OF_EXPORT
void OF_FCN(ofview_setperspective)(
double *fov,
double *ratio);
2049 #if defined(IFORT_CALLS) 2050 OF_EXPORT
void OF_FCN(ofview_setviewframe)(
const char *root,
const char *frame,
unsigned int rootlen,
unsigned int framelen);
2073 #if defined(IFORT_CALLS) 2074 OF_EXPORT
void OF_FCN(ofview_setviewbetweenframes)(
const char *root,
const char *srcframe,
const char *dstframe,
unsigned int *frameType,
unsigned int *rotationType,
unsigned int rootlen,
unsigned int srcframelen,
unsigned int dstframelen);
2087 OF_EXPORT
void OF_FCN(ofview_setdefaultviewdistance)(
double *distance);
2098 OF_EXPORT
void OF_FCN(ofview_gettrackball)(
double eye[],
double center[],
double up[]);
2109 OF_EXPORT
void OF_FCN(ofview_settrackball)(
double eye[],
double center[],
double up[]);
2120 OF_EXPORT
void OF_FCN(ofview_isvalid)(
bool *valid);
2127 OF_EXPORT
void OF_FCN(ofview_reset)();
OF_EXPORT void OF_FCN() offrame_addchild(OF_CHARARG(name))
Add a child frame to the current frame.
#define KEYPRESS_SIG
Definition: OF_Interface.h:53
#define OF_CHARARG(name)
Definition: OF_Interface.h:45
#define OF_FCN(name)
Definition: OF_Interface.h:29
#define BUTTON_SIG
Definition: OF_Interface.h:57
#define MOUSEMOTION_SIG
Definition: OF_Interface.h:55