$(QTNATIVELIBS) -lbqplot_native -lbanner -lbrttutil -lbumapdata $(DBLIBS) $(TRLIBS) #include "BQ.h"
This class inherits the BQConfigure class which is itself a subclass of the BUConfigure class with extensions to process Qt colors and fonts. The configure methods are implemented in the BUConfigure parent (see BUConfigure(3)).
BQMapLayer(BQViewport *master, BQMap *map);
Where "master" is the BQViewport master for this object and map is the parent BQMap object.
definition &Arr{ mapdata_source_file coasts.vector.bmd opacity 1.0 antialias 0 type vector_fill bq_layer water outline_linewidth -1 background_color $FILL_WATER fill_color $FILL_LAND transparent_color $FILL_LAND } /B>
- mapdata_source_file
This is a file name that contains the map data. The map file formats currently supported are bmd and rgb. If the file name starts with a / character, then the file name is an absolute file name, otherwise the file is assumed to be in $ANTELOPE/data/maps/bmd. Note that the GSHHS coastline, political and river vector data are normally distributed with the Antelope install image and will be installed in $ANTELOPE/data/maps/bmd. The various grid map files are not contained in the Antelope install image and must be downloaded separately.- opacity
This is a floating point opacity value that is applied to the layer rendering relative to the layers underneath it. A value of 1.0 means complete opaque and a value of 0.0 means completely translucent.- antialias
This is a flag that specifies if the QPainter setRenderHint(QPainter::Antialiasing) method should be called prior to any rendering. Setting this flag will cause lines to be antilaised as they are rendered.- type
This must be one of grid, for latitude-longitude pixel color grid maps or latitude-longitude DEM grid maps, or vector, for vector maps.- bq_layer
This is a BQLayer object name that will be used to contain this map layer. If the BQLayer object has not been previously created, then it will be created and assigned this name automatically. Note that more than one BQMapLayer map layers can be assigned to the same BQLayer object.- outline_width
This is the width in pixels of vector outline plots. If this is set to -1, then the vector outline plot is not made.- background_color
This is the fill color of "background" areas for maps that describe vector polygons, such as coastline maps. For coastline maps this would correspond to the water color. If this is "", then the background is not filled. This can be set to $FILL_WATER, meaning to substitute the BQMap object waterfillColor parameter (see BQ_Map(3)) or $FILL_LAND, meaning to substitute the the BQMap object landfillColor parameter (see BQMap(3)). Can be specified in any of the forms documented in BQ_ParseColor(3).- fill_color
This is the fill color of "foreground" areas for maps that describe vector polygons, such as coastline maps. For coastline maps this would correspond to the land color. If this is "", then the foreground is not filled. This can be set to $FILL_WATER, meaning to substitute the BQMap object waterfillColor parameter (see BQ_Map(3)) or $FILL_LAND, meaning to substitute the the BQMap object landfillColor parameter (see BQMap(3)). Can be specified in any of the forms documented in BQ_ParseColor(3).- transparent_color
This can be specified in the same way as the background_color and fill_color parameters. If this is specified, then the pixel colors specified will be converted to completely translucent colors when the layer is rendered. This provides a means to make color masks, such as water or land masks. If this is not specified, then this rendering transformation is not done.- levels
This is a table that defines display parameters as a function of the various levels in a vector map. Many vector maps assign a level to a set of vector polylines. For instance, the GSHHS political vector map assigns national boundaries to level 1, state/provential boundaries to level 2, etc. Each line in the table corresponds to a level. Each line contains white space separated linewidth, color and optionally resolution fields. The linewidth field is as defined above with the outline_linewidth parameter. The color field is as defined above with the fill_land and fill_water parameters. The resolution field is an optional integer number that specifies the minimum map internal resolution for which the layer should be displayed. Many vector maps have different map resolutions. For instance, the GSHHS vector maps have five resolution levels; crude, low, intermediate, high and full. If this field is specified as 3, for example, then that particular level will only be displayed for map resolutions 3 and higher, corresponding to intermediate, high and full resolutions for GSHHS maps.- Note that levels that are not defined will not be displayed.