GRASS GIS 7 Programmer's Manual  7.5.svn(2017)-r71924
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
raster/set_window.c File Reference

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

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

Go to the source code of this file.

Functions

void Rast__init_window (void)
 
void Rast_set_window (struct Cell_head *window)
 Establishes 'window' as the current working window. More...
 
void Rast_unset_window (void)
 Unset current window. More...
 
void Rast_set_output_window (struct Cell_head *window)
 Establishes 'window' as the current working window for output. More...
 
void Rast_set_input_window (struct Cell_head *window)
 Establishes 'window' as the current working window for input. More...
 

Detailed Description

Raster Library - Set window (map region)

(C) 2001-2009 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 raster/set_window.c.

Function Documentation

void Rast_set_input_window ( struct Cell_head window)

Establishes 'window' as the current working window for input.

Any opened cell files has its file-to-window mapping reworked.

Parameters
windowwindow to become operative window

Definition at line 96 of file raster/set_window.c.

References G_adjust_Cell_head(), Rast__init(), R__::rd_window, and R__::split_window.

void Rast_set_output_window ( struct Cell_head window)

Establishes 'window' as the current working window for output.

Parameters
windowwindow to become operative window

Definition at line 74 of file raster/set_window.c.

References G_adjust_Cell_head(), G_set_window(), Rast__init(), R__::split_window, and R__::wr_window.

Referenced by IL_resample_output_2d().

void Rast_set_window ( struct Cell_head window)

Establishes 'window' as the current working window.

Parameters
windowwindow to become operative window

Definition at line 43 of file raster/set_window.c.

References _, G_adjust_Cell_head(), G_warning(), Rast__init(), R__::rd_window, R__::split_window, and R__::wr_window.

Referenced by D_setup(), I_compute_scatts(), I_insert_patch_to_cat_rast(), IL_output_2d(), and N_init_geom_data_2d().

void Rast_unset_window ( void  )

Unset current window.

Definition at line 63 of file raster/set_window.c.

References G_debug(), and R__::window_set.