GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
Go to the source code of this file.
Macros | |
#define | VXRES(gs) (gs->x_mod * gs->xres) |
#define | VYRES(gs) (gs->y_mod * gs->yres) |
#define | VROWS(gs) (int)((gs->rows -1)/gs->y_mod) |
#define | VCOLS(gs) (int)((gs->cols -1)/gs->x_mod) |
#define | DRC2OFF(gs, drow, dcol) (int)((dcol) + (drow) * gs->cols) |
#define | Y2DROW(gs, py) (int)((gs->yrange - (py))/gs->yres) |
#define | X2DCOL(gs, px) (int)((px)/gs->xres) |
#define | XY2OFF(gs, px, py) (int)DRC2OFF(gs, Y2DROW(gs,py), X2DCOL(gs,px)) |
#define | Y2VROW(gs, py) (int)((gs->yrange - (py))/(gs->yres * gs->y_mod)) |
#define | X2VCOL(gs, px) (int)((px)/(gs->xres * gs->x_mod)) |
#define | VROW2DROW(gs, vrow) (int)(gs->y_mod * (vrow)) |
#define | VCOL2DCOL(gs, vcol) (int)(gs->x_mod * (vcol)) |
#define | DROW2Y(gs, drow) (gs->yrange - ((drow) * gs->yres)) |
#define | DCOL2X(gs, dcol) ((dcol) * gs->xres) |
#define | VROW2Y(gs, vrow) (gs->yrange - ((vrow) * gs->yres * gs->y_mod)) |
#define | VCOL2X(gs, vcol) ((vcol) * gs->xres * gs->x_mod) |
#define DCOL2X | ( | gs, | |
dcol | |||
) | ((dcol) * gs->xres) |
Definition at line 34 of file rowcol.h.
Referenced by get_diag_intersects().
#define DRC2OFF | ( | gs, | |
drow, | |||
dcol | |||
) | (int)((dcol) + (drow) * gs->cols) |
Definition at line 15 of file rowcol.h.
Referenced by calc_norm(), get_diag_intersects(), get_horz_intersects(), get_vert_intersects(), GS_get_cat_at_xy(), GS_get_norm_at_xy(), GS_get_val_at_xy(), and viewcell_tri_interp().
#define DROW2Y | ( | gs, | |
drow | |||
) | (gs->yrange - ((drow) * gs->yres)) |
Definition at line 33 of file rowcol.h.
Referenced by get_diag_intersects().
#define VCOL2DCOL | ( | gs, | |
vcol | |||
) | (int)(gs->x_mod * (vcol)) |
Definition at line 30 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().
#define VCOL2X | ( | gs, | |
vcol | |||
) | ((vcol) * gs->xres * gs->x_mod) |
Definition at line 38 of file rowcol.h.
Referenced by get_diag_intersects(), get_vert_intersects(), gs_clip_segment(), gs_point_in_region(), gs_point_is_masked(), in_vregion(), seg_intersect_vregion(), and viewcell_tri_interp().
#define VCOLS | ( | gs | ) | (int)((gs->cols -1)/gs->x_mod) |
Definition at line 12 of file rowcol.h.
Referenced by get_diag_intersects(), get_horz_intersects(), get_vert_intersects(), gs_calc_normals(), gs_clip_segment(), gs_point_in_region(), gs_point_is_masked(), gsd_coarse_surf_map(), gsd_display_fringe(), gsd_fringe_horiz_line(), gsd_fringe_horiz_line2(), gsd_fringe_horiz_poly(), gsd_norm_arrows(), gsd_surf_const(), gsd_surf_map(), gsd_surf_map_old(), in_vregion(), seg_intersect_vregion(), and viewcell_tri_interp().
#define VROW2DROW | ( | gs, | |
vrow | |||
) | (int)(gs->y_mod * (vrow)) |
Definition at line 29 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().
#define VROW2Y | ( | gs, | |
vrow | |||
) | (gs->yrange - ((vrow) * gs->yres * gs->y_mod)) |
Definition at line 37 of file rowcol.h.
Referenced by get_diag_intersects(), get_horz_intersects(), gs_clip_segment(), gs_point_in_region(), gs_point_is_masked(), gsd_draw_cplane_fence(), in_vregion(), seg_intersect_vregion(), and viewcell_tri_interp().
#define VROWS | ( | gs | ) | (int)((gs->rows -1)/gs->y_mod) |
Definition at line 11 of file rowcol.h.
Referenced by get_diag_intersects(), get_horz_intersects(), get_vert_intersects(), gs_calc_normals(), gs_clip_segment(), gs_point_in_region(), gs_point_is_masked(), gsd_coarse_surf_map(), gsd_display_fringe(), gsd_fringe_vert_line(), gsd_fringe_vert_poly(), gsd_norm_arrows(), gsd_surf_const(), gsd_surf_map(), gsd_surf_map_old(), in_vregion(), seg_intersect_vregion(), and viewcell_tri_interp().
#define VXRES | ( | gs | ) | (gs->x_mod * gs->xres) |
Definition at line 7 of file rowcol.h.
Referenced by get_diag_intersects(), get_horz_intersects(), get_vert_intersects(), GS_draw_flowline_at_xy(), gs_point_is_masked(), and viewcell_tri_interp().
#define VYRES | ( | gs | ) | (gs->y_mod * gs->yres) |
Definition at line 8 of file rowcol.h.
Referenced by get_diag_intersects(), get_horz_intersects(), get_vert_intersects(), GS_draw_flowline_at_xy(), gs_point_is_masked(), and viewcell_tri_interp().
#define X2VCOL | ( | gs, | |
px | |||
) | (int)((px)/(gs->xres * gs->x_mod)) |
Definition at line 26 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().
Definition at line 22 of file rowcol.h.
Referenced by gsd_triangulated_wall().
#define Y2DROW | ( | gs, | |
py | |||
) | (int)((gs->yrange - (py))/gs->yres) |
#define Y2VROW | ( | gs, | |
py | |||
) | (int)((gs->yrange - (py))/(gs->yres * gs->y_mod)) |
Definition at line 25 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().