NAME
BQPolyline - BRTT Qt graphics extension for drawing polylines
SYNOPSIS
$(QTNATIVELIBS) -lbqplot_native -lbanner -lbrttutil -lbumapdata $(DBLIBS) $(TRLIBS)
#include "BQ.h"
DESCRIPTION
BQPolyline objects are used to display general polygonal figures with
lines and also optionally filled figures.
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
BQPolyline(BQViewport *master);
Where "master" is the BQViewport master for this object.
METHODS INHERITED FROM BQConfigure
-
void configure (Pf *params);
An Antelope parameter file object pointer that contains the BQPolyline object
parameters. The parameters are described below.
-
void configure (...);
A variable argument list composed entirely of character string key-value pairs with
a single NULL terminating argument. This is an alternate method for specifying
the BQPolyline object parameters. The parameters are described below.
METHODS INHERITED FROM BQViewportItem
-
void setLayer (QString name);
This will cause the BQPolyline object to be put into the BQLayer object buffer with name name (see BQLayer(3)).
The BQLayer object will automatically be created if an object with name name does not exist.
-
void showItem();
-
void hideItem();
These will cause the polyline object to be shown (displayed) or hidden (not displayed).
BQPolyline METHODS
-
void setGc (BqGraphicsContext gc);
This causes the polyline to be rendered using the graphics context in gc
and supercedes any graphics context values specified in the OBJECT CONFIGURATION PARAMETERS.
OBJECT CONFIGURATION PARAMETERS
-
vector vectorHandle[:index]
This specifies the source of the X-Y coordinate data for making the
polyline plot as coming from a buvector(3)
object. Note that an optional
index value can be specified after the vector handle to specify
the index of the dependent variable in vector objects that have more
than one dependent variable (the index starts at 0).
Note that all data must be in world coordinates.
-
vector2 vector2Handle[:index]
Same as for vector option except data is input from a buvector2(3) object.
-
thistory historyHandle
This specifies the source of the X-Y coordinate data for making the
polyline plot as coming from a buhistory(3)
object.
Note that all data must be in world coordinates.
-
qlist qlist
This specifies the source of the X-Y coordinate data for making the
polyline plot as coming from a QList<BQ_XY> qlist pointer. Note that
for this option the value pointer is not a string pointer but a pointer to
a QList<BQ_XY> object.
Note that all data must be in world coordinates.
The BQ_XY structure is defnied as
typedef struct BQ_XY {
double x, y;
} BQ_XY;
-
test {on|off}
If this is set to "om", then an internally generated test function is used for the X-Y coordinate data.
-
color_fill fillColor
Specifies a color to use for filling the closed polygons.
Can be specified in any of the forms documented in BQ_ParseColor(3).
If this is specified as a NULL string (""), then there will be no polygon
filling.
This defaults to "".
-
color_outline lineColor
Specifies a color to use for drawing lines.
Can be specified in any of the forms documented in BQ_ParseColor(3).
If this is specified as a NULL string (""), then there will be no line
plots.
This defaults to "black".
-
linewidth lineWidth
Specifies the line width for the lineplots in pixels.
This defaults to "1".
SEE ALSO
bqplot(3),
BQViewport(3),
BQLayer(3),
BQConfigure(3)
AUTHOR
Danny Harvey, BRTT