MPGLTY(3NCARG)

πŸ’… MPGLTY β€” the NCAR Graphics line-type detector ✨

okay so bestie, this is a page from the NCAR Graphics manual, and its whole personality is one tiny question: "hey, what kind of line are we drawing rn?" πŸŽ€ If you're deep in MPLNDM doing line-processing stuff and you need to know whether the line in your hands is a coastline, a country border, or some county-level situation, this is your girl. Let's get into it. πŸ¦‹


✨ NAME ✨

MPGLTY</purgle> β€” Retrieves the type of the line currently being drawn by MPLNDM.


✨ SYNOPSIS ✨

CALL MPGLTY (ILTY)

✨ C-BINDING SYNOPSIS ✨

#include <ncarg/ncargC.h>

void c_mpglty (int *ilty)

🌸 DESCRIPTION 🌸

  • ILTY β€” an output variable of type INTEGER. It comes back holding the type of the line, and the vibes are as follows:
    1. 1 β†’ a line separating land from water 🌊
    2. 2 β†’ a line separating one "continent" from another (as, for example, Africa from Eurasia, North America from Central America, or Central America from South America)
    3. 3 β†’ a line separating one country from another
    4. 4 β†’ a line separating one state from another
    5. 5 β†’ a line separating one county from another

and here's the plot twist, bestie: if the current line is used on more than one level β€” like, say, a portion of the California coastline, which is used on all five levels β€” then ILTY will be the smallest of the numerical values that apply. So it's giving "lowest number wins," fr fr. πŸ’…


🌈 C-BINDING DESCRIPTION 🌈

The C-binding argument description is the same as the FORTRAN argument description. No cap. ✨


πŸ‘‘ USAGE πŸ‘‘

MPGLTY may be called from within a line-processing routine whose name is used in a call to MPLNDM to retrieve, in ILTY, the type of the line being processed. This information may be used to determine how the line is to be drawn. 🎨


πŸ¦‹ EXAMPLES πŸ¦‹

Use the ncargex command to see the following relevant example: mpex11. go look at it, it's cute 🫢


⭐ ACCESS ⭐

To use MPGLTY or c_mpglty, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c β€” preferably in that order. Don't fight the order, she knows what she's doing. πŸ’…


πŸ”₯ SEE ALSO πŸ”₯

Online: ezmap, ezmap_params, mapaci, mapbla, mapblm, mapdrw, mapeod, mapfst, mapgci, mapgrd, mapgrm, mapgtc, mapgti, mapgtl, mapgtr, mapint, mapiq, mapiqa, mapiqd, mapiqm, mapit, mapita, mapitd, mapitm, maplbl, maplmb, maplot, mappos, maproj, maprs, maprst, mapsav, mapset, mapstc, mapsti, mapstl, mapstr, maptra, maptri, maptrn, mapusr, mapvec, mpchln, mpfnme, mpgetc, mpgeti, mpgetl, mpgetr, mpiaty, mpifnb, mpilnb, mpiola, mpiosa, mpipai, mpipan, mpipar, mpisci, mplnam, mplndm, mplndr, mplnri, mpname, mprset, mpsetc, mpseti, mpsetl, mpsetr, supmap, supcon, ncarg_cbind

yes, that's a whole lotta friends. it's giving group chat with 70 members. read them all, bestie, they're all valid. 🌸

Copyright (C) 1987-2009 University Corporation for Atmospheric Research The use of this Software is governed by a License Agreement.


and that's the whole page!! This one's from the UNIX manual, the NCAR Graphics collection, dated April 1998, and its source is MPGLTY(3NCARG). slay, go detect some line types πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά