GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-b4187339ee
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 (void)
 
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

◆ Rast3d_get_window()

void Rast3d_get_window ( RASTER3D_Region window)

Stores the current default window in window.

Parameters
window
Returns
void

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

Referenced by GVL_libinit().

◆ Rast3d_isValidLocationWindow()

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 85 of file raster3d/window.c.

References RASTER3D_Region::south, and RASTER3D_Map::window.

◆ Rast3d_set_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 41 of file raster3d/window.c.

◆ Rast3d_set_window_map()

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 23 of file raster3d/window.c.

◆ Rast3d_window_ptr()

RASTER3D_Region* Rast3d_window_ptr ( void  )

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

References g3d_window.

Variable Documentation

◆ g3d_window

RASTER3D_Region g3d_window

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

Referenced by Rast3d_window_ptr().