GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
OGSF library - legend creation. More...
#include <stdlib.h>
#include <grass/config.h>
#include <grass/gis.h>
#include <grass/glocale.h>
#include <grass/gstypes.h>
#include "rgbpack.h"
Go to the source code of this file.
Macros | |
#define | MAX_LEGEND 256 |
Functions | |
void | gsd_bgn_legend_viewport (GLint wl, GLint wb, GLint wr, GLint wt) |
ADD. More... | |
void | gsd_end_legend_viewport (void) |
ADD. More... | |
int | gsd_get_nice_range (float lownum, float highnum, int numvals, float *vals) |
ADD. More... | |
int | gsd_make_nice_number (float *num) |
ADD. More... | |
GLuint | gsd_put_legend (const char *name, GLuint fontbase, int size, int *flags, float *rangef, int *pt) |
Put legend. More... | |
OGSF library - legend creation.
GRASS OpenGL gsurf OGSF Library
Converted code from legend.c in SG3d routines to set viewport, close viewport, and make legend
(C) 1999-2008 by the GRASS Development Team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file gsd_legend.c.
#define MAX_LEGEND 256 |
Definition at line 50 of file gsd_legend.c.
Referenced by gsd_put_legend().
void gsd_bgn_legend_viewport | ( | GLint | wl, |
GLint | wb, | ||
GLint | wr, | ||
GLint | wt | ||
) |
ADD.
wl | |
wb | |
wr | |
wt |
Definition at line 60 of file gsd_legend.c.
References GS_ready_draw(), GS_set_draw(), gsd_colormode(), gsd_linewidth(), gsd_popmatrix(), and gsd_pushmatrix().
Referenced by gs_put_label(), and gsd_put_legend().
void gsd_end_legend_viewport | ( | void | ) |
ADD.
Definition at line 90 of file gsd_legend.c.
References GS_done_draw(), GS_set_draw(), and gsd_popmatrix().
Referenced by gs_put_label(), and gsd_put_legend().
ADD.
lownum | |
highnum | |
numvals | |
vals |
Definition at line 119 of file gsd_legend.c.
References gsd_make_nice_number(), int, and num.
Referenced by gsd_put_legend().
int gsd_make_nice_number | ( | float * | num | ) |
ADD.
num |
Definition at line 153 of file gsd_legend.c.
Referenced by gsd_get_nice_range().
GLuint gsd_put_legend | ( | const char * | name, |
GLuint | fontbase, | ||
int | size, | ||
int * | flags, | ||
float * | rangef, | ||
int * | pt | ||
) |
Put legend.
name | |
fontbase | font-base |
size | |
flags | |
rangef | |
pt |
???
Definition at line 201 of file gsd_legend.c.
References buff, do_label_display(), G_find_cell2(), G_free(), G_free_cats(), G_free_colors(), G_get_cat(), G_get_color(), G_get_d_raster_cat(), G_get_d_raster_color(), G_get_fp_range_min_max(), G_get_range_min_max(), G_raster_map_is_fp(), G_read_cats(), G_read_colors(), G_read_fp_range(), G_read_range(), G_warning(), get_txtxoffset(), gsd_bgn_legend_viewport(), gsd_bgnline(), gsd_bgnlist(), gsd_color_func(), gsd_end_legend_viewport(), gsd_endline(), gsd_endlist(), gsd_get_nice_range(), gsd_get_txtheight(), gsd_get_txtwidth(), gsd_makelist(), int, max, MAX_LEGEND, min, NULL, RGB_TO_INT, sprintf(), X, and Y.
Referenced by GS_draw_legend().