![]() |
UNIVERS
15.3
UNIVERS base processing software API
|
#include <zq_curve.hpp>
Public Types | |
| enum | Interpolation { BarGraph = -1, StepCurve = 0, LinearCurve = 1, BarGraph = -1, StepCurve = 0, LinearCurve = 1 } |
| enum | Interpolation { BarGraph = -1, StepCurve = 0, LinearCurve = 1, BarGraph = -1, StepCurve = 0, LinearCurve = 1 } |
Public Member Functions | |
| ZqCurve (ZqbNatGroup &rNatArg, ZqbNatGroup &rNatFunc, const char *szName=NULL) | |
| ZqCurve (ZqbNatGroup &rNatArg, ZqbNatGroup &rNatFunc, ZqbPlaceholder *pPh, const char *szName=NULL) | |
| virtual bool | compatibleDoc (const ZdDocument *pDoc) const |
| virtual void | attachData (ZdFunction *pData, ZdFuncArgDir eArgDir) |
| virtual void | detachDoc () |
| virtual ZdFunction * | data () |
| virtual ZdFuncArgDir | argDir () const |
| virtual double | x (int i) |
| virtual double | y (int i) |
| virtual void | xMinMax (double mm[2]) |
| virtual void | yMinMax (double mm[2]) |
| virtual void | setPen (const QPen &pen) |
| virtual const QPen & | getPen () const |
| virtual QPen & | pen () |
| virtual void | setInterpolation (int interp) |
| virtual int | getInterpolation () const |
| virtual void | setAutoSort (bool bSortFlag) |
| virtual bool | getAutoSort () const |
| virtual void | setBaseLevel (double fBase) |
| virtual double | getBaseLevel () const |
| virtual void | setBarSpace (double fArgDelta) |
| virtual double | getBarSpace () const |
| virtual void | redraw (QPainter &paint) |
| ZqCurve (ZqbNatGroup &rNatArg, ZqbNatGroup &rNatFunc, const char *szName=NULL) | |
| ZqCurve (ZqbNatGroup &rNatArg, ZqbNatGroup &rNatFunc, ZqbPlaceholder *pPh, const char *szName=NULL) | |
| virtual bool | compatibleDoc (const ZdDocument *pDoc) const |
| virtual void | attachData (ZdFunction *pData, ZdFuncArgDir eArgDir) |
| virtual void | detachDoc () |
| virtual ZdFunction * | data () |
| virtual ZdFuncArgDir | argDir () const |
| virtual double | x (int i) |
| virtual double | y (int i) |
| virtual void | xMinMax (double mm[2]) |
| virtual void | yMinMax (double mm[2]) |
| virtual void | setPen (const QPen &pen) |
| virtual const QPen & | getPen () const |
| virtual QPen & | pen () |
| virtual void | setInterpolation (int interp) |
| virtual int | getInterpolation () const |
| virtual void | setAutoSort (bool bSortFlag) |
| virtual bool | getAutoSort () const |
| virtual void | setBaseLevel (double fBase) |
| virtual double | getBaseLevel () const |
| virtual void | setBarSpace (double fArgDelta) |
| virtual double | getBarSpace () const |
| virtual void | redraw (QPainter &paint) |
Public Member Functions inherited from ZqView | |
| ZqView (const char *szName=NULL) | |
| ZqView (ZqbPlaceholder *pPh, const char *szName=NULL) | |
| virtual void | updateView () |
| virtual void | attachDoc (ZdDocument *pData) |
| ZqView (const char *szName=NULL) | |
| ZqView (ZqbPlaceholder *pPh, const char *szName=NULL) | |
| virtual void | updateView () |
| virtual void | attachDoc (ZdDocument *pData) |
Public Member Functions inherited from ZqObject | |
| ZqObject (const char *szName=NULL) | |
| ZqObject (ZqbPlaceholder *pPh, const char *szName=NULL) | |
| virtual | ~ZqObject () |
| virtual void | debugState () |
| virtual void | clearPlace () |
| virtual ZqbPlaceholderVector * | placeholders () |
| virtual ZqbEventHint | input (QEvent &event) |
| virtual void | updateLimits (QPainter *paint=NULL) |
| virtual void | updateGeometry () |
| virtual QPainter * | getScreenPainter () const |
| virtual void | setScreenPainter (QPainter *pPainter) |
| virtual QzqArea * | getArea () const |
| virtual QWidget * | getAreaWidget () const |
| virtual void | setAreaWidget (QWidget *pWidget) |
| virtual bool | isHardcopy () const |
| bool | isPlaced () const |
| ZqbPlaceholder * | getPlace () const |
| ZqbPixGrpMember * | px () const |
| ZqbPixGrpMember * | py () const |
| bool | getRect (QRect &rect) const |
| virtual bool | attachToPlace (ZqbPlaceholder *pPh) |
| virtual bool | detachFromPlace () |
| virtual void | setDirty () |
| virtual void | resetDirty () |
| virtual bool | isDirty () const |
| void | setInteractive (bool bInteractive) |
| bool | isInteractive () const |
| virtual void | fullRedraw (bool bForce=false) |
| virtual void | interactiveRedraw () |
| ZqObject (const char *szName=NULL) | |
| ZqObject (ZqbPlaceholder *pPh, const char *szName=NULL) | |
| virtual | ~ZqObject () |
| virtual void | debugState () |
| virtual void | clearPlace () |
| virtual ZqbPlaceholderVector * | placeholders () |
| virtual ZqbEventHint | input (QEvent &event) |
| virtual void | updateLimits (QPainter *paint=NULL) |
| virtual void | updateGeometry () |
| virtual QPainter * | getScreenPainter () const |
| virtual void | setScreenPainter (QPainter *pPainter) |
| virtual QzqArea * | getArea () const |
| virtual QWidget * | getAreaWidget () const |
| virtual void | setAreaWidget (QWidget *pWidget) |
| virtual bool | isHardcopy () const |
| bool | isPlaced () const |
| ZqbPlaceholder * | getPlace () const |
| ZqbPixGrpMember * | px () const |
| ZqbPixGrpMember * | py () const |
| bool | getRect (QRect &rect) const |
| virtual bool | attachToPlace (ZqbPlaceholder *pPh) |
| virtual bool | detachFromPlace () |
| virtual void | setDirty () |
| virtual void | resetDirty () |
| virtual bool | isDirty () const |
| void | setInteractive (bool bInteractive) |
| bool | isInteractive () const |
| virtual void | fullRedraw (bool bForce=false) |
| virtual void | interactiveRedraw () |
Public Member Functions inherited from ZqbAutoName | |
| ZqbAutoName (int *pCounter, const char *szRoot, const char *szCustomName=NULL) | |
| virtual | ~ZqbAutoName () |
| ZqbAutoName (int *pCounter, const char *szRoot, const char *szCustomName=NULL) | |
| virtual | ~ZqbAutoName () |
Public Member Functions inherited from ZqbName | |
| ZqbName (const char *szRoot, const char *szCustomName=NULL) | |
| ZqbName (const ZqbName &name) | |
| virtual | ~ZqbName () |
| ZqbName & | operator= (const ZqbName &name) |
| virtual const char * | getName () const |
| virtual const char * | getType () const |
| bool | hasName (const char *szString) const |
| ZqbName (const char *szRoot, const char *szCustomName=NULL) | |
| ZqbName (const ZqbName &name) | |
| virtual | ~ZqbName () |
| ZqbName & | operator= (const ZqbName &name) |
| virtual const char * | getName () const |
| virtual const char * | getType () const |
| bool | hasName (const char *szString) const |
Public Member Functions inherited from ZqbVisible | |
| ZqbVisible (bool bDrawable=false, bool bInputable=false, bool bTipable=false) | |
| virtual | ~ZqbVisible () |
| virtual bool | isDrawable () const |
| virtual void | setDrawable (bool bFlag) |
| virtual void | redraw () |
| virtual void | setTipable (bool bFlag) |
| virtual bool | isTipable () const |
| virtual bool | tip (const QPoint &p, QString &qsShort, QString &qsLong) |
| virtual bool | isInputable () const |
| virtual void | setInputable (bool bFlag) |
| virtual bool | getRect (QRect &) |
| virtual bool | setRect (const QRect &) |
| ZqbVisible (bool bDrawable=false, bool bInputable=false, bool bTipable=false) | |
| virtual | ~ZqbVisible () |
| virtual bool | isDrawable () const |
| virtual void | setDrawable (bool bFlag) |
| virtual void | redraw () |
| virtual void | setTipable (bool bFlag) |
| virtual bool | isTipable () const |
| virtual bool | tip (const QPoint &p, QString &qsShort, QString &qsLong) |
| virtual bool | isInputable () const |
| virtual void | setInputable (bool bFlag) |
| virtual bool | getRect (QRect &) |
| virtual bool | setRect (const QRect &) |
Public Member Functions inherited from ZqbView | |
| ZqbView (const char *szName=NULL) | |
| virtual | ~ZqbView () |
| virtual ZdDocument * | doc () |
| virtual void | updateDoc () |
| ZqbView (const char *szName=NULL) | |
| virtual | ~ZqbView () |
| virtual ZdDocument * | doc () |
| virtual void | updateDoc () |
Public Attributes | |
| ZqbNatGrpMember | m_Arg |
| ZqbNatGrpMember | m_Func |
Protected Member Functions | |
| void | addSegment (double x[2], double y[2], double rx[2], double ry[2]) |
| void | addPoint (double x, double y, double rx[2], double ry[2]) |
| void | addBar (double x[2], double y[2], double rx[2], double ry[2]) |
| void | addSegment (double x[2], double y[2], double rx[2], double ry[2]) |
| void | addPoint (double x, double y, double rx[2], double ry[2]) |
| void | addBar (double x[2], double y[2], double rx[2], double ry[2]) |
Protected Attributes | |
| QPen | m_qPen |
| int | m_iInterpolation |
| bool | m_bAutoSort |
| ZdFuncArgDir | m_eArgDir |
| QPointArray | m_Nodes |
| std::vector< bool > | m_Linked |
| ZdRealFunc * | m_zdFuncSorted |
| double | m_fBaseFuncLevel |
| double | m_fSpaceBetweenBars |
| QPolygon | m_Nodes |
Protected Attributes inherited from ZqObject | |
| ZqbPlaceholder * | m_pPh |
| ZqbPixGrpMember * | m_pPx |
| ZqbPixGrpMember * | m_pPy |
| bool | m_bInteractive |
Protected Attributes inherited from ZqbName | |
| char * | m_szName |
| char * | m_szRoot |
Additional Inherited Members | |
Static Public Member Functions inherited from ZqbView | |
| static bool | findTypeAmong (const ZdDocument *pDoc, const char *szExpectedType1,...) |
| static bool | findTypeAmong (const ZdDocument *pDoc, const char *szExpectedType1,...) |
Object for linear interpolated or step broken curve or bar graph drawing.
By default curve does not have attached data, so one need to attachData() to see some drawings.
| ZqCurve::ZqCurve | ( | ZqbNatGroup & | rNatArg, |
| ZqbNatGroup & | rNatFunc, | ||
| const char * | szName = NULL |
||
| ) |
Create curve object without placeholder. Natural coordinates for argument and function axis are provided.
| ZqCurve::ZqCurve | ( | ZqbNatGroup & | rNatArg, |
| ZqbNatGroup & | rNatFunc, | ||
| ZqbPlaceholder * | pPh, | ||
| const char * | szName = NULL |
||
| ) |
Create curve object at given place. Natural coordinates for argument and function axis are provided.
| ZqCurve::ZqCurve | ( | ZqbNatGroup & | rNatArg, |
| ZqbNatGroup & | rNatFunc, | ||
| const char * | szName = NULL |
||
| ) |
Create curve object without placeholder. Natural coordinates for argument and function axis are provided.
| ZqCurve::ZqCurve | ( | ZqbNatGroup & | rNatArg, |
| ZqbNatGroup & | rNatFunc, | ||
| ZqbPlaceholder * | pPh, | ||
| const char * | szName = NULL |
||
| ) |
Create curve object at given place. Natural coordinates for argument and function axis are provided.
|
protected |
Add one more bar to the array of node points used to draw histogram. The bar is clipped by given rectangle (rx,ry).
|
protected |
Add one more bar to the array of node points used to draw histogram. The bar is clipped by given rectangle (rx,ry).
|
protected |
Add one more standalone point to the array of node points.
|
protected |
Add one more standalone point to the array of node points.
|
protected |
Add one more segment to the array of node points. The segment is clipped by placeholder rectangle.
|
protected |
Add one more segment to the array of node points. The segment is clipped by placeholder rectangle.
|
virtual |
Return direction of function's argument axis. Value is not defined in case of detached state of object.
|
virtual |
Return direction of function's argument axis. Value is not defined in case of detached state of object.
|
virtual |
Attach given function container. Publishes to group information about ranges for argument and value of function. Attaching NULL means detach operation.
|
virtual |
Attach given function container. Publishes to group information about ranges for argument and value of function. Attaching NULL means detach operation.
|
virtual |
Return true if passed object is in list of compatible documents for this view. ZdFunction and subclasses are welcome.
Implements ZqbView.
|
virtual |
Return true if passed object is in list of compatible documents for this view. ZdFunction and subclasses are welcome.
Implements ZqbView.
|
virtual |
Return pointer to attached data container or NULL if no data were attached.
|
virtual |
Return pointer to attached data container or NULL if no data were attached.
|
virtual |
Detach function. Withdraws information about ranges for argument and value of function.
Reimplemented from ZqView.
|
virtual |
Detach function. Withdraws information about ranges for argument and value of function.
Reimplemented from ZqView.
|
virtual |
Get flag of automatic ordering of data sample before drawing.
|
virtual |
Get flag of automatic ordering of data sample before drawing.
|
virtual |
Get the size of empty space between neighbor bars.
|
virtual |
Get the size of empty space between neighbor bars.
|
virtual |
Get base level of function drawing.
|
virtual |
Get base level of function drawing.
|
virtual |
Get type of interpolation.
|
virtual |
Get type of interpolation.
|
virtual |
Get pen used for curve drawing.
|
virtual |
Get pen used for curve drawing.
|
virtual |
Access pen used for curve drawing.
|
virtual |
Access pen used for curve drawing.
|
virtual |
Draw curve if some data container is attached.
Reimplemented from ZqObject.
|
virtual |
Draw curve if some data container is attached.
Reimplemented from ZqObject.
|
virtual |
Set automatic ordering of data samples before drawing.
|
virtual |
Set automatic ordering of data samples before drawing.
|
virtual |
Set the size of empty space between neighbor bars (applied to BarGraph mode). Default value is 0.
|
virtual |
Set the size of empty space between neighbor bars (applied to BarGraph mode). Default value is 0.
|
virtual |
Set base level of function drawing (applied to BarGraph mode). Default value is 0.
|
virtual |
Set base level of function drawing (applied to BarGraph mode). Default value is 0.
|
virtual |
Set type of interpolation:
|
virtual |
Set type of interpolation:
|
virtual |
Set pen for curve drawing. Default pen color is black.
|
virtual |
Set pen for curve drawing. Default pen color is black.
|
virtual |
Get natural X coordinate value for i-th data item.
|
virtual |
Get natural X coordinate value for i-th data item.
|
virtual |
Get minimum mm[0] and maximum mm[1] for natural X coordinate value.
|
virtual |
Get minimum mm[0] and maximum mm[1] for natural X coordinate value.
|
virtual |
Get natural Y coordinate value for i-th data item.
|
virtual |
Get natural Y coordinate value for i-th data item.
|
virtual |
Get minimum mm[0] and maximum mm[1] for natural Y coordinate value.
|
virtual |
Get minimum mm[0] and maximum mm[1] for natural Y coordinate value.
| ZqbNatGrpMember ZqCurve::m_Arg |
Bounds for argument values and access to natural group.
|
protected |
Flag of automatic sorting of data samples before drawing. The sorting is performed in temporal buffer so data object is not changed. It's turned off by default.
|
protected |
Direction of function argument axis.
|
protected |
Base level of function drawing.
|
protected |
Separation between bars in bar drawing mode. It's measured in natural values of function's argument. If the value is greater than 0 then it will be drawn of one pixel at least if possible.
| ZqbNatGrpMember ZqCurve::m_Func |
Bounds for function values and access to natural group.
|
protected |
Type of interpolation used for drawing.
|
protected |
Array of flags of connectivity between neighbor nodes. Number of flags should be the same as in m_Nodes and the first flag is never interpreted.
|
protected |
Array of node points of actual polyline curve representation. Two neighbor nodes should be connected by line segment if the second one has true m_Linked flag and should not be connected at all otherwise.
|
protected |
Array of node points of actual polyline curve representation. Two neighbor nodes should be connected by line segment if the second one has true m_Linked flag and should not be connected at all otherwise.
|
protected |
Stored pen used for drawing curve.
|
protected |
Special container with data sorted by argument.
1.8.5