GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
gsd_fringe.c File Reference
#include <grass/gstypes.h>
#include "gsget.h"
#include "rowcol.h"
Include dependency graph for gsd_fringe.c:

Go to the source code of this file.

Macros

#define FRINGE_FORE   0x000000
 
#define FRINGE_WIDTH   2
 

Functions

void gsd_display_fringe (geosurf *surf, unsigned long clr, float elev, int where[4])
 Display fridge. More...
 
void gsd_fringe_horiz_poly (float bot, geosurf *surf, int row, int side)
 ADD. More...
 
void gsd_fringe_horiz_line (float bot, geosurf *surf, int row, int side)
 ADD. More...
 
void gsd_fringe_vert_poly (float bot, geosurf *surf, int col, int side)
 ADD. More...
 
void gsd_fringe_vert_line (float bot, geosurf *surf, int col, int side)
 ADD. More...
 
void gsd_fringe_horiz_line2 (float bot, geosurf *surf, int row, int side)
 ADD. More...
 

Variables

float Nnorth [] = { 0.0, 0.8, 0.6 }
 Normals. More...
 
float Nsouth [] = { 0.0, -0.8, 0.6 }
 
float Neast [] = { 0.8, 0.0, 0.6 }
 
float Nwest [] = { -0.8, 0.0, 0.6 }
 
float Ntop [] = { 0.0, 0.0, 1.0 }
 
float Nbottom [] = { 0.0, 0.0, -1.0 }
 

Macro Definition Documentation

#define FRINGE_FORE   0x000000

Definition at line 26 of file gsd_fringe.c.

Referenced by gsd_display_fringe().

#define FRINGE_WIDTH   2

Definition at line 27 of file gsd_fringe.c.

Referenced by gsd_display_fringe().

Function Documentation

void gsd_display_fringe ( geosurf *  surf,
unsigned long  clr,
float  elev,
int  where[4] 
)

Display fridge.

Todo:
add elevation for bottom add color option add ruler grid lines
Parameters
surfsurface (geosurf)
clr
elev
where

Definition at line 51 of file gsd_fringe.c.

References FRINGE_FORE, FRINGE_WIDTH, gsd_color_func(), gsd_colormode(), gsd_fringe_horiz_line(), gsd_fringe_horiz_poly(), gsd_fringe_vert_line(), gsd_fringe_vert_poly(), gsd_linewidth(), gsd_zwritemask(), Neast, Nnorth, Nsouth, Nwest, VCOLS, VROWS, xmax, and ymax.

Referenced by GS_draw_fringe().

void gsd_fringe_horiz_line ( float  bot,
geosurf *  surf,
int  row,
int  side 
)

ADD.

Parameters
bot
surfsurface (geosurf)
row
side

Definition at line 213 of file gsd_fringe.c.

References buff, GET_MAPATT, GS_done_draw(), gs_get_att_typbuff(), GS_set_draw(), gsd_bgnline(), gsd_do_scale(), gsd_endline(), gsd_flush(), gsd_popmatrix(), gsd_pushmatrix(), gsd_translate(), gsd_vert_func(), VCOLS, X, and Y.

Referenced by gsd_display_fringe().

void gsd_fringe_horiz_line2 ( float  bot,
geosurf *  surf,
int  row,
int  side 
)
void gsd_fringe_horiz_poly ( float  bot,
geosurf *  surf,
int  row,
int  side 
)
void gsd_fringe_vert_line ( float  bot,
geosurf *  surf,
int  col,
int  side 
)

ADD.

Parameters
bot
surfsurface (geosurf)
col
side[unused]

Definition at line 365 of file gsd_fringe.c.

References buff, GET_MAPATT, GS_done_draw(), gs_get_att_typbuff(), GS_set_draw(), gsd_bgnline(), gsd_do_scale(), gsd_endline(), gsd_flush(), gsd_popmatrix(), gsd_pushmatrix(), gsd_translate(), gsd_vert_func(), VROWS, X, and Y.

Referenced by gsd_display_fringe().

void gsd_fringe_vert_poly ( float  bot,
geosurf *  surf,
int  col,
int  side 
)

ADD.

Parameters
bot
surfsurface (geosurf)
col
side[unused]

Definition at line 294 of file gsd_fringe.c.

References buff, GET_MAPATT, GS_done_draw(), gs_get_att_typbuff(), GS_set_draw(), gsd_bgnpolygon(), gsd_do_scale(), gsd_endpolygon(), gsd_flush(), gsd_popmatrix(), gsd_pushmatrix(), gsd_translate(), gsd_vert_func(), VROWS, X, and Y.

Referenced by gsd_display_fringe().

Variable Documentation

float Nbottom[] = { 0.0, 0.0, -1.0 }

Definition at line 37 of file gsd_fringe.c.

float Neast[] = { 0.8, 0.0, 0.6 }

Definition at line 34 of file gsd_fringe.c.

Referenced by gsd_display_fringe().

float Nnorth[] = { 0.0, 0.8, 0.6 }

Normals.

Definition at line 32 of file gsd_fringe.c.

Referenced by gsd_display_fringe().

float Nsouth[] = { 0.0, -0.8, 0.6 }

Definition at line 33 of file gsd_fringe.c.

Referenced by gsd_display_fringe().

float Ntop[] = { 0.0, 0.0, 1.0 }

Definition at line 36 of file gsd_fringe.c.

Referenced by gsd_north_arrow(), gsd_scalebar(), and gsd_scalebar_v2().

float Nwest[] = { -0.8, 0.0, 0.6 }

Definition at line 35 of file gsd_fringe.c.

Referenced by gsd_display_fringe().