GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
g3dwindowio.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
#include <grass/gis.h>
#include "G3d_intern.h"
Include dependency graph for g3dwindowio.c:

Go to the source code of this file.

Functions

int G3d_readWindow (G3D_Region *window, const char *windowName)
 Reads window from the file specified by windowName. The name is converted by the rules defined in window defaults. A NULL pointer indicates the WIND3 file in the current mapset. More...
 
void G3d_useWindowParams (void)
 Writes window to the file specified by windowName. The name is converted by the rules defined in window defaults. A NULL pointer indicates the WIND3 file in the current mapset. More...
 

Function Documentation

int G3d_readWindow ( G3D_Region *  window,
const char *  windowName 
)

Reads window from the file specified by windowName. The name is converted by the rules defined in window defaults. A NULL pointer indicates the WIND3 file in the current mapset.

Parameters
window
windowName
Returns
1 ... if successful 0 ... otherwise.

Definition at line 139 of file g3dwindowio.c.

References G3d_error(), G_free_key_value(), G_get_window(), G_read_key_value_file(), G_warning(), NULL, and R_OK.

Referenced by G3d_initDefaults(), and G3d_readRegionMap().

void G3d_useWindowParams ( void  )

Writes window to the file specified by windowName. The name is converted by the rules defined in window defaults. A NULL pointer indicates the WIND3 file in the current mapset.

Parameters
window
windowName
Returns
1 ... if successful 0 ... otherwise.

Allows the window to be set at run-time via the region3 command line argument. This function has to be called before G_parser (). See also window defaults.

Returns
void

Definition at line 281 of file g3dwindowio.c.

References G3d_setWindowParams().