The R Project SVN R

Rev

Rev 44347 | Rev 44369 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 44347 Rev 44348
Line 26... Line 26...
26
#include <R_ext/Boolean.h>
26
#include <R_ext/Boolean.h>
27
 
27
 
28
#include <R_ext/GraphicsEngine.h>
28
#include <R_ext/GraphicsEngine.h>
29
/* needed for R_GE_lineend/join, R_GE_gcontext */
29
/* needed for R_GE_lineend/join, R_GE_gcontext */
30
 
30
 
-
 
31
#define R_GRAPHICS 1
31
#include <Rgraphics.h> /* GUnit */
32
#include <Rgraphics.h> /* RUnit */
32
 
33
 
33
typedef unsigned int rcolor;
34
typedef unsigned int rcolor;
34
 
35
 
35
/* colors.c, engine.c, graphics.c, plot3d.c  */
36
/* colors.c, engine.c, graphics.c, plot3d.c  */
36
#define	DEG2RAD 0.01745329251994329576
37
#define	DEG2RAD 0.01745329251994329576
Line 270... Line 271...
270
#define ProcessInlinePars	Rf_ProcessInlinePars
271
#define ProcessInlinePars	Rf_ProcessInlinePars
271
#define recordGraphicOperation	Rf_recordGraphicOperation
272
#define recordGraphicOperation	Rf_recordGraphicOperation
272
 
273
 
273
/* NOTE: during replays, call == R_NilValue;
274
/* NOTE: during replays, call == R_NilValue;
274
   ----  the following adds readability: */
275
   ----  the following adds readability: */
275
Rboolean GRecording(SEXP, pGEDev);
276
Rboolean GRecording(SEXP, pGEDevDesc);
276
 
277
 
277
/* Default the settings for general graphical parameters
278
/* Default the settings for general graphical parameters
278
 * (i.e., defaults that do not depend on the device type: */
279
 * (i.e., defaults that do not depend on the device type: */
279
void GInit(GPar*);
280
void GInit(GPar*);
280
 
281
 
Line 282... Line 283...
282
 
283
 
283
 /* from graphics.c, used in par.c */
284
 /* from graphics.c, used in par.c */
284
double R_Log10(double);
285
double R_Log10(double);
285
 
286
 
286
/* from par.c, called in plot.c, plot3d.c */
287
/* from par.c, called in plot.c, plot3d.c */
287
void ProcessInlinePars(SEXP, pGEDev, SEXP call);
288
void ProcessInlinePars(SEXP, pGEDevDesc, SEXP call);
288
 
289
 
289
/* from device.c */
290
/* from device.c */
290
void recordGraphicOperation(SEXP, SEXP, pGEDev);
291
void recordGraphicOperation(SEXP, SEXP, pGEDevDesc);
291
 
292
 
292
/* some functions that plot.c needs to share with plot3d.c */
293
/* some functions that plot.c needs to share with plot3d.c */
293
SEXP FixupCol(SEXP, unsigned int);
294
SEXP FixupCol(SEXP, unsigned int);
294
SEXP FixupLty(SEXP, int);
295
SEXP FixupLty(SEXP, int);
295
SEXP FixupLwd(SEXP, double);
296
SEXP FixupLwd(SEXP, double);
Line 299... Line 300...
299
/* 
300
/* 
300
 * Function to generate an R_GE_gcontext from Rf_gpptr info
301
 * Function to generate an R_GE_gcontext from Rf_gpptr info
301
 *
302
 *
302
 * from graphics.c, used in plot.c, plotmath.c
303
 * from graphics.c, used in plot.c, plotmath.c
303
 */
304
 */
304
void gcontextFromGP(R_GE_gcontext *gc, DevDesc *dd);
305
void gcontextFromGP(pGEcontext gc, pGEDevDesc dd);
305
 
306
 
306
/* From base.c */
307
/* From base.c */
307
#define gpptr Rf_gpptr
308
#define gpptr Rf_gpptr
308
#define dpptr Rf_dpptr
309
#define dpptr Rf_dpptr
309
GPar* Rf_gpptr(DevDesc *dd);
310
GPar* Rf_gpptr(pGEDevDesc dd);
310
GPar* Rf_dpptr(DevDesc *dd);
311
GPar* Rf_dpptr(pGEDevDesc dd);
311
 
312
 
312
#endif /* GRAPHICS_H_ */
313
#endif /* GRAPHICS_H_ */