The R Project SVN R

Rev

Rev 11368 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11368 Rev 11625
Line 21... Line 21...
21
#ifndef GRAPHICS_H_
21
#ifndef GRAPHICS_H_
22
#define GRAPHICS_H_
22
#define GRAPHICS_H_
23
 
23
 
24
#define R_GRAPHICS_INTERNAL 1
24
#define R_GRAPHICS_INTERNAL 1
25
 
25
 
26
#include "R_ext/Boolean.h"
26
#include <R_ext/Boolean.h>
27
 
27
 
28
#define R_MaxDevices 64
28
#define R_MaxDevices 64
29
 
29
 
30
#define	DEG2RAD 0.01745329251994329576
30
#define	DEG2RAD 0.01745329251994329576
31
 
31
 
Line 57... Line 57...
57
 OMA2	= 3,	/* outer margin 2 (left) */
57
 OMA2	= 3,	/* outer margin 2 (left) */
58
 OMA3	= 4,	/* outer margin 3 (top) */
58
 OMA3	= 4,	/* outer margin 3 (top) */
59
 OMA4	= 5,	/* outer margin 4 (right) */
59
 OMA4	= 5,	/* outer margin 4 (right) */
60
 NFC	= 7,	/* normalised figure region coordinates (0,1) */
60
 NFC	= 7,	/* normalised figure region coordinates (0,1) */
61
 NPC	= 16,	/* normalised plot region coordinates (0,1) */
61
 NPC	= 16,	/* normalised plot region coordinates (0,1) */
62
 USER	= 12,	/* user/data/world corrdinates;
62
 USER	= 12,	/* user/data/world coordinates;
63
		 * x,=(xmin,xmax), y=(ymin,ymax) */
63
		 * x,=(xmin,xmax), y=(ymin,ymax) */
64
 MAR1	= 8,	/* figure margin 1 (bottom) x=USER(x), y=LINES */
64
 MAR1	= 8,	/* figure margin 1 (bottom) x=USER(x), y=LINES */
65
 MAR2	= 9,	/* figure margin 2 (left)   x=USER(y), y=LINES */
65
 MAR2	= 9,	/* figure margin 2 (left)   x=USER(y), y=LINES */
66
 MAR3	= 10,	/* figure margin 3 (top)    x=USER(x), y=LINES */
66
 MAR3	= 10,	/* figure margin 3 (top)    x=USER(x), y=LINES */
67
 MAR4	= 11,	/* figure margin 4 (right)  x=USER(y), y=LINES */
67
 MAR4	= 11,	/* figure margin 4 (right)  x=USER(y), y=LINES */
Line 337... Line 337...
337
 * ../gnuwin32/devga.c		GA
337
 * ../gnuwin32/devga.c		GA
338
 * ../unix/gnome/devGTK.c	GTK
338
 * ../unix/gnome/devGTK.c	GTK
339
 * ../unix/gnome/devGNOME.c	Gnome
339
 * ../unix/gnome/devGNOME.c	Gnome
340
 */
340
 */
341
 
341
 
-
 
342
/* always remap private functions */
342
#include "R_ext/Graphics.h"
343
#include <Rgraphics.h>
-
 
344
#define char2col		Rf_char2col
-
 
345
#define col2name		Rf_col2name
-
 
346
#define copyGPar		Rf_copyGPar
-
 
347
#define GInit			Rf_GInit
-
 
348
#define name2col		Rf_name2col
-
 
349
#define number2col		Rf_number2col
-
 
350
#define rgb2col			Rf_rgb2col
-
 
351
#define RGB2rgb			Rf_RGB2rgb
-
 
352
#define ScaleColor		Rf_ScaleColor
-
 
353
#define str2col			Rf_str2col
-
 
354
#define StrMatch		Rf_StrMatch
-
 
355
 
343
 
356
 
344
/* Default the settings for general graphical parameters
357
/* Default the settings for general graphical parameters
345
 * (i.e., defaults that do not depend on the device type: */
358
 * (i.e., defaults that do not depend on the device type: */
346
#define GInit			Rf_GInit
-
 
347
void GInit(GPar*);
359
void GInit(GPar*);
348
 
360
 
-
 
361
void copyGPar(GPar *, GPar *);
-
 
362
 
-
 
363
 
-
 
364
 
-
 
365
		/* Miscellaneous (from graphics.c & colors.c) */
-
 
366
 
-
 
367
unsigned int rgb2col(char *);
-
 
368
unsigned int name2col(char *);
-
 
369
unsigned int number2col(char *);
-
 
370
unsigned int char2col(char *);/* rgb2col() or name2col() */
-
 
371
unsigned int str2col(char *);
-
 
372
 
-
 
373
char* col2name(unsigned int);
-
 
374
 
-
 
375
unsigned int ScaleColor(double x);
-
 
376
 
-
 
377
char* RGB2rgb(unsigned int, unsigned int, unsigned int);
-
 
378
 
-
 
379
int StrMatch(char *s, char *t);
-
 
380
 
-
 
381
double R_Log10(double);
-
 
382
 
349
#endif /* GRAPHICS_H_ */
383
#endif /* GRAPHICS_H_ */