GRASS GIS 8 Programmer's Manual 8.3.2(2024)-exported
Loading...
Searching...
No Matches
rowcol.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define VXRES(gs)
 
#define VYRES(gs)
 
#define VROWS(gs)
 
#define VCOLS(gs)
 
#define DRC2OFF(gs, drow, dcol)
 
#define Y2DROW(gs, py)
 
#define X2DCOL(gs, px)
 
#define XY2OFF(gs, px, py)
 
#define Y2VROW(gs, py)
 
#define X2VCOL(gs, px)
 
#define VROW2DROW(gs, vrow)
 
#define VCOL2DCOL(gs, vcol)
 
#define DROW2Y(gs, drow)
 
#define DCOL2X(gs, dcol)
 
#define VROW2Y(gs, vrow)
 
#define VCOL2X(gs, vcol)
 

Macro Definition Documentation

◆ DCOL2X

#define DCOL2X ( gs,
dcol )
Value:
((dcol)*gs->xres)

Definition at line 36 of file rowcol.h.

Referenced by get_diag_intersects().

◆ DRC2OFF

#define DRC2OFF ( gs,
drow,
dcol )

◆ DROW2Y

#define DROW2Y ( gs,
drow )
Value:
(gs->yrange - ((drow)*gs->yres))

Definition at line 35 of file rowcol.h.

Referenced by get_diag_intersects().

◆ VCOL2DCOL

#define VCOL2DCOL ( gs,
vcol )
Value:
(int)(gs->x_mod * (vcol))

Definition at line 32 of file rowcol.h.

Referenced by GS_get_cat_at_xy(), GS_get_norm_at_xy(), GS_get_val_at_xy(), gs_point_is_masked(), and viewcell_tri_interp().

◆ VCOL2X

#define VCOL2X ( gs,
vcol )

◆ VCOLS

◆ VROW2DROW

#define VROW2DROW ( gs,
vrow )
Value:
(int)(gs->y_mod * (vrow))

Definition at line 31 of file rowcol.h.

Referenced by GS_get_cat_at_xy(), GS_get_norm_at_xy(), GS_get_val_at_xy(), gs_point_is_masked(), and viewcell_tri_interp().

◆ VROW2Y

#define VROW2Y ( gs,
vrow )

◆ VROWS

◆ VXRES

#define VXRES ( gs)
Value:
(gs->x_mod * gs->xres)

Definition at line 9 of file rowcol.h.

Referenced by get_diag_intersects(), get_horz_intersects(), GS_draw_flowline_at_xy(), gs_point_is_masked(), and viewcell_tri_interp().

◆ VYRES

#define VYRES ( gs)
Value:
(gs->y_mod * gs->yres)

Definition at line 10 of file rowcol.h.

Referenced by get_diag_intersects(), get_vert_intersects(), GS_draw_flowline_at_xy(), gs_point_is_masked(), and viewcell_tri_interp().

◆ X2DCOL

#define X2DCOL ( gs,
px )
Value:
(int)((px) / gs->xres)

Definition at line 21 of file rowcol.h.

◆ X2VCOL

#define X2VCOL ( gs,
px )

◆ XY2OFF

#define XY2OFF ( gs,
px,
py )
Value:
(int)DRC2OFF(gs, Y2DROW(gs, py), X2DCOL(gs, px))
#define X2DCOL(gs, px)
Definition rowcol.h:21
#define DRC2OFF(gs, drow, dcol)
Definition rowcol.h:17
#define Y2DROW(gs, py)
Definition rowcol.h:20

Definition at line 24 of file rowcol.h.

Referenced by gsd_triangulated_wall().

◆ Y2DROW

#define Y2DROW ( gs,
py )
Value:
(int)((gs->yrange - (py)) / gs->yres)

Definition at line 20 of file rowcol.h.

◆ Y2VROW

#define Y2VROW ( gs,
py )
Value:
(int)((gs->yrange - (py)) / (gs->yres * gs->y_mod))

Definition at line 27 of file rowcol.h.

Referenced by get_diag_intersects(), get_horz_intersects(), get_vert_intersects(), GS_get_cat_at_xy(), GS_get_norm_at_xy(), GS_get_val_at_xy(), gs_point_is_masked(), and viewcell_tri_interp().