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

Go to the source code of this file.

Functions

int D_set_cell_name (const char *name)
 add raster map name to display list More...
 
int D_get_cell_name (char *name)
 retrieve raster map name More...
 
int D_set_dig_name (const char *name)
 add vector map name to display list More...
 
int D_get_dig_name (char *name)
 retrieve vector map name More...
 
int D_add_to_cell_list (const char *name)
 
int D_get_cell_list (char ***list, int *count)
 
int D_add_to_dig_list (const char *name)
 
int D_get_dig_list (char ***list, int *count)
 
int D_add_to_list (const char *string)
 add command to frame display list More...
 
int D_get_list (char ***list, int *count)
 
int D_clear_window (void)
 clears information about current frame More...
 
int D_set_erase_color (const char *colorname)
 
int D_get_erase_color (char *colorname)
 

Function Documentation

int D_add_to_cell_list ( const char *  name)

Definition at line 152 of file display/list.c.

References R_pad_append_item().

int D_add_to_dig_list ( const char *  name)

Definition at line 167 of file display/list.c.

References R_pad_append_item().

int D_add_to_list ( const char *  string)

add command to frame display list

Adds string to list of screen contents. By convention, string is a command string which could be used to recreate a part of the graphics contents. This should be done for all screen graphics except for the display of raster maps. The D_set_cell_name routine,the D_set_dig_name routine and the D_set_site_name routine are used for this special case.

Parameters
string
Returns
int

Definition at line 197 of file display/list.c.

References R_pad_append_item().

int D_clear_window ( void  )

clears information about current frame

Removes all information about the current frame. This includes the map region and the frame content lists.

Parameters
~
Returns
int

clear frame display lists

Removes all display information lists associated with the current frame.

Parameters
~
Returns
int

Definition at line 233 of file display/list.c.

References R_pad_delete_item().

Referenced by D_erase(), and D_setup().

int D_get_cell_list ( char ***  list,
int count 
)

Definition at line 157 of file display/list.c.

References R_pad_get_item(), and stat.

int D_get_cell_name ( char *  name)

retrieve raster map name

Returns the name of the raster map associated with the current frame.

Parameters
name
Returns
int

Definition at line 93 of file display/list.c.

References count, R_pad_freelist(), R_pad_get_item(), and stat.

int D_get_dig_list ( char ***  list,
int count 
)

Definition at line 172 of file display/list.c.

References R_pad_get_item(), and stat.

int D_get_dig_name ( char *  name)

retrieve vector map name

Returns the name of the vector map associated with the current frame.

Parameters
name
Returns
int

Definition at line 136 of file display/list.c.

References count, R_pad_freelist(), R_pad_get_item(), and stat.

int D_get_erase_color ( char *  colorname)

Definition at line 255 of file display/list.c.

References count, R_pad_freelist(), R_pad_get_item(), and stat.

int D_get_list ( char ***  list,
int count 
)

Definition at line 202 of file display/list.c.

References R_pad_get_item(), and stat.

int D_set_cell_name ( const char *  name)

add raster map name to display list

Stores the raster

Remarks
{As with the change from window to frame, GRASS 4.0 changed word usage from cell to raster. For compatibility with existing code, the routines have not changed their names.} map name in the information associated with the current frame.
Parameters
name
Returns
int

Definition at line 76 of file display/list.c.

References R_pad_delete_item(), and R_pad_set_item().

int D_set_dig_name ( const char *  name)

add vector map name to display list

Stores the vector map name in the information associated with the current frame.

Parameters
name
Returns
int

Definition at line 119 of file display/list.c.

References R_pad_delete_item(), and R_pad_set_item().

int D_set_erase_color ( const char *  colorname)

Definition at line 247 of file display/list.c.

References R_pad_delete_item(), and R_pad_set_item().

Referenced by D_erase().