GRASS GIS 7 Programmer's Manual  7.5.svn(2018)-r73122
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
raster3d/window.c File Reference
#include <stdio.h>
#include <grass/gis.h>
#include <grass/raster3d.h>
#include "raster3d_intern.h"
Include dependency graph for raster3d/window.c:

Go to the source code of this file.

Functions

void Rast3d_set_window_map (RASTER3D_Map *map, RASTER3D_Region *window)
 Sets the window for map to window. Can be used multiple times for the same map. More...
 
void Rast3d_set_window (RASTER3D_Region *window)
 Sets the default window used for every map opened later in the program. Can be used multiple times in the same program. More...
 
void Rast3d_get_window (RASTER3D_Region *window)
 Stores the current default window in window. More...
 
RASTER3D_RegionRast3d_window_ptr ()
 
int Rast3d_isValidLocationWindow (RASTER3D_Map *map, double north, double east, double top)
 Returns 1 if window-coordinates (north, east and top) are inside the window of map. Returns 0 otherwise. More...
 

Variables

RASTER3D_Region g3d_window
 

Function Documentation

void Rast3d_get_window ( RASTER3D_Region window)

Stores the current default window in window.

Parameters
window
Returns
void

Definition at line 61 of file raster3d/window.c.

References Rast3d_region_copy().

Referenced by GVL_libinit(), N_read_rast3d_to_array_3d(), and N_write_array_3d_to_rast3d().

int Rast3d_isValidLocationWindow ( RASTER3D_Map map,
double  north,
double  east,
double  top 
)

Returns 1 if window-coordinates (north, east and top) are inside the window of map. Returns 0 otherwise.

Parameters
map
north
east
top
Returns
int

Definition at line 90 of file raster3d/window.c.

References RASTER3D_Region::bottom, RASTER3D_Region::south, RASTER3D_Region::top, RASTER3D_Region::west, and RASTER3D_Map::window.

void Rast3d_set_window ( RASTER3D_Region window)

Sets the default window used for every map opened later in the program. Can be used multiple times in the same program.

Parameters
window
Returns
void

Definition at line 43 of file raster3d/window.c.

References Rast3d_adjust_region(), and Rast3d_region_copy().

Referenced by Rast3d_init_defaults().

void Rast3d_set_window_map ( RASTER3D_Map map,
RASTER3D_Region window 
)

Sets the window for map to window. Can be used multiple times for the same map.

Parameters
map
window
Returns
void

Definition at line 24 of file raster3d/window.c.

References Rast3d_adjust_region(), Rast3d_region_copy(), and RASTER3D_Map::window.

Referenced by Rast3d_mask_open_old().

RASTER3D_Region* Rast3d_window_ptr ( )

Definition at line 68 of file raster3d/window.c.

References g3d_window.

Referenced by Rast3d_open_cell_old().

Variable Documentation

RASTER3D_Region g3d_window

Definition at line 8 of file raster3d/window.c.

Referenced by Rast3d_window_ptr().