• Antelope Release 5.9 Mac OS X 10.13.2 2019-05-01

 

NAME

BQText - BRTT Qt graphics extension for drawing text strings

SYNOPSIS


-lbqplot_native -lbanner -lbrttutil -lbumapdata $(QTNATIVELIBS) $(DBLIBS)

#include "BQ.h"

DESCRIPTION

BQText objects are used to display general text string annotations using world coordinate positioning. It also allows text to be rotated.

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)).

INHERITS FROM

BQViewportItem, BQConfigure

CONSTRUCTOR

BQText(BQViewport *master, QString textstring, QString x, QString y);

Where "master" is the BQViewport master for this object, "textstring" is the text string to be displayed and "x y" are the location of the text string relative to the viewport. If specified as a numerical string, then x, y are used as device coordinates (i.e. pixels) relative to the lower left hand corner of the viewport window. In addition, there are a number of other tokens that can be used in defining x and y. If either ends in d, then the coordinate is in data world coordinates. If either ends in v, then the coordinate is in units of viewport window width or height, so that x corresponding to the middle of the viewport window would be "0.5v". A viewport window or viewport frame qualifier, one of bottom, for Y-axis viewport window bottom, fbottom, for Y-axis viewport frame bottom, top, for Y-axis viewport window top, ftop, for Y-axis viewport frame top, left, for X-axis viewport window left edge, fleft, for X-axis viewport frame left edge, right, for X-axis viewport window right edge, fright, for X-axis viewport frame right edge, can also be put at the beginning of the strings to represent anchoring the coordinate to a particular edge of the frame or window. An example of this would be "top+10" for y which would position the text 10 pixels above the top of the viewport window. If either ends in r, then the coordinate is relative to another BQText object expressed as a fraction of the other object's width. In this case the relative configuration parameter must be called to specify the reference object.

METHODS INHERITED FROM BQConfigure

METHODS INHERITED FROM BQViewportItem

BQText METHODS

OBJECT CONFIGURATION PARAMETERS

SEE ALSO

bqplot(3), BQViewport(3), BQLayer(3), BQConfigure(3)

AUTHOR

Danny Harvey, BRTT