UNIVERS
15.3
UNIVERS base processing software API
|
#include <zqb_natgrpmember.hpp>
Public Member Functions | |
ZqbNatGrpMember (ZqbNatGroup *pNatGroup) | |
ZqbNatGrpMember (ZqbNatGroup *pNatGroup, void(*CustomOnSetCoord)(void *), void *pUserData=NULL) | |
virtual | ~ZqbNatGrpMember () |
virtual ZqbNatGroup & | group () const |
virtual void | unsetBounds () |
virtual void | setBounds (double b[2]) |
void | setBounds (double b1, double b2) |
virtual bool | getBounds (double b[2]=NULL) const |
virtual void | onSetCoords () |
virtual void | onTickChange () |
ZqbNatGrpMember (ZqbNatGroup *pNatGroup) | |
ZqbNatGrpMember (ZqbNatGroup *pNatGroup, void(*CustomOnSetCoord)(void *), void *pUserData=NULL) | |
virtual | ~ZqbNatGrpMember () |
virtual ZqbNatGroup & | group () const |
virtual void | unsetBounds () |
virtual void | setBounds (double b[2]) |
void | setBounds (double b1, double b2) |
virtual bool | getBounds (double b[2]=NULL) const |
virtual void | onSetCoords () |
Protected Attributes | |
ZqbNatGroup * | m_pNatGroup |
bool | m_bKnownBounds |
double | m_fBounds [2] |
void(* | m_pCustomOnSetCoord )(void *pUserData) |
void * | m_pUserData |
Natural group member represents connection to natural group and own bounds presentation.
Connection to natural group provides service for obtaining common group attribues and services (like coordinates conversion).
Own bounds presentation allows to correct common group bounds union. Own bounds concept is an analog of values range on application specific object.
ZqbNatGrpMember::ZqbNatGrpMember | ( | ZqbNatGroup * | pNatGroup | ) |
Create member of given natural group. It supposed that natural group itself is a persistent object (preferred global).
ZqbNatGrpMember::ZqbNatGrpMember | ( | ZqbNatGroup * | pNatGroup, |
void(*)(void *) | CustomOnSetCoord, | ||
void * | pUserData = NULL |
||
) |
Create member of given natural group with capability of custom onSetCoord() event redirection to given function called with user pointer. It supposed that natural group itself is a persistent object (preferred global).
|
virtual |
Stop membership and destroy the object.
ZqbNatGrpMember::ZqbNatGrpMember | ( | ZqbNatGroup * | pNatGroup | ) |
Create member of given natural group. It supposed that natural group itself is a persistent object (preferred global).
ZqbNatGrpMember::ZqbNatGrpMember | ( | ZqbNatGroup * | pNatGroup, |
void(*)(void *) | CustomOnSetCoord, | ||
void * | pUserData = NULL |
||
) |
Create member of given natural group with capability of custom onSetCoord() event redirection to given function called with user pointer. It supposed that natural group itself is a persistent object (preferred global).
|
virtual |
Stop membership and destroy the object.
|
virtual |
Get flag of knowning own bounds and optionally return own bound range.
|
virtual |
Get flag of knowning own bounds and optionally return own bound range.
|
virtual |
Return reference to the group object.
|
virtual |
Return reference to the group object.
|
virtual |
Call this method when ZqbNatGroup::setCoords() is called. Empty implementation by default. Custom event handler is called if set in constructor.
Reimplemented in ZqDlgSGOptions::CoordWatcher, ZqDlgSGOptions::TimeWatcher, ZqScale, ZqScale, ZqScrollBar, ZqScrollBar, ZqbNatGrpObserver, and ZqbNatGrpObserver.
|
virtual |
Call this method when ZqbNatGroup::setCoords() is called. Empty implementation by default. Custom event handler is called if set in constructor.
Reimplemented in ZqDlgSGOptions::CoordWatcher, ZqDlgSGOptions::TimeWatcher, ZqScale, ZqScale, ZqScrollBar, ZqScrollBar, ZqbNatGrpObserver, and ZqbNatGrpObserver.
|
virtual |
To be called when grid paramters are changed.
|
virtual |
Set flag of knowning own bounds and store bounds range. Order of items in b[] does not matter.
|
virtual |
Set flag of knowning own bounds and store bounds range. Order of items in b[] does not matter.
|
inline |
Set flag of knowning own bounds and store bounds range. Calls setBounds(double[2]) method.
|
inline |
Set flag of knowning own bounds and store bounds range. Calls setBounds(double[2]) method.
|
virtual |
Unset flag of knowning own bounds.
|
virtual |
Unset flag of knowning own bounds.
|
protected |
Flag of knowing own bounds. In case of true m_fBounds field has meaningful values otherwise it is undefined.
|
protected |
Own bounds of this natural group memeber.
|
protected |
Function to be called on onSetCoord() event.
|
protected |
Pointer to natural group.
|
protected |
User pointer to be passed to (*pCustomOnSetCoord)().