GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-3d2c704037
gis/set_window.c File Reference

GIS Library - Set window (map region) More...

#include <grass/gis.h>
#include <grass/glocale.h>
#include "G.h"
#include "gis_local_proto.h"
Include dependency graph for gis/set_window.c:

Go to the source code of this file.

Functions

void G_get_set_window (struct Cell_head *window)
 Get the current working window (region) More...
 
void G_set_window (struct Cell_head *window)
 Establishes window as the current working window (region). More...
 

Detailed Description

GIS Library - Set window (map region)

(C) 2001-2009, 2011 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.

Author
Original author CERL

Definition in file gis/set_window.c.

Function Documentation

◆ G_get_set_window()

void G_get_set_window ( struct Cell_head window)

Get the current working window (region)

The current working window values are returned in the structure window.

Previous calls to G_set_window() affects values returned by this function. Previous calls to G_put_window() affects values returned by this function only if the current working window is not initialized.

Parameters
[out]windowpointer to window structure to be set
See also
G_set_window(), G_get_window()

Definition at line 35 of file gis/set_window.c.

Referenced by D_setup(), G_projection(), G_setup_plot(), G_zone(), GS_get_to_real(), GS_set_focus_real(), I_iclass_analysis(), and N_init_geom_data_3d().

◆ G_set_window()

void G_set_window ( struct Cell_head window)

Establishes window as the current working window (region).

This function adjusts the window before setting the region so you don't have to call G_adjust_Cell_head().

Note
Only the current process is affected.
Parameters
windowwindow to become operative window
See also
G_get_set_window(), G_put_window()

Definition at line 53 of file gis/set_window.c.