UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Attributes | List of all members
ZqbNatGrpMember Class Reference

#include <zqb_natgrpmember.hpp>

Inheritance diagram for ZqbNatGrpMember:
ZqbNatGrpObserver ZqbNatGrpObserver ZqCoordMarker ZqCoordMarker ZqDlgSGOptions::CoordWatcher ZqDlgSGOptions::TimeWatcher ZqGrid ZqGrid ZqLithColumn ZqLithColumn ZqScale ZqScale ZqScaledPalette ZqScaledPalette ZqScrollBar ZqScrollBar

Public Member Functions

 ZqbNatGrpMember (ZqbNatGroup *pNatGroup)
 
 ZqbNatGrpMember (ZqbNatGroup *pNatGroup, void(*CustomOnSetCoord)(void *), void *pUserData=NULL)
 
virtual ~ZqbNatGrpMember ()
 
virtual ZqbNatGroupgroup () 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 ZqbNatGroupgroup () 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

ZqbNatGroupm_pNatGroup
 
bool m_bKnownBounds
 
double m_fBounds [2]
 
void(* m_pCustomOnSetCoord )(void *pUserData)
 
void * m_pUserData
 

Detailed Description

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.

Constructor & Destructor Documentation

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 ZqbNatGrpMember::~ZqbNatGrpMember ( )
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 ZqbNatGrpMember::~ZqbNatGrpMember ( )
virtual

Stop membership and destroy the object.

Member Function Documentation

virtual bool ZqbNatGrpMember::getBounds ( double  b[2] = NULL) const
virtual

Get flag of knowning own bounds and optionally return own bound range.

virtual bool ZqbNatGrpMember::getBounds ( double  b[2] = NULL) const
virtual

Get flag of knowning own bounds and optionally return own bound range.

virtual ZqbNatGroup& ZqbNatGrpMember::group ( ) const
virtual

Return reference to the group object.

virtual ZqbNatGroup& ZqbNatGrpMember::group ( ) const
virtual

Return reference to the group object.

virtual void ZqbNatGrpMember::onSetCoords ( )
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 void ZqbNatGrpMember::onSetCoords ( )
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 void ZqbNatGrpMember::onTickChange ( )
virtual

To be called when grid paramters are changed.

virtual void ZqbNatGrpMember::setBounds ( double  b[2])
virtual

Set flag of knowning own bounds and store bounds range. Order of items in b[] does not matter.

virtual void ZqbNatGrpMember::setBounds ( double  b[2])
virtual

Set flag of knowning own bounds and store bounds range. Order of items in b[] does not matter.

void ZqbNatGrpMember::setBounds ( double  b1,
double  b2 
)
inline

Set flag of knowning own bounds and store bounds range. Calls setBounds(double[2]) method.

void ZqbNatGrpMember::setBounds ( double  b1,
double  b2 
)
inline

Set flag of knowning own bounds and store bounds range. Calls setBounds(double[2]) method.

virtual void ZqbNatGrpMember::unsetBounds ( )
virtual

Unset flag of knowning own bounds.

virtual void ZqbNatGrpMember::unsetBounds ( )
virtual

Unset flag of knowning own bounds.

Member Data Documentation

bool ZqbNatGrpMember::m_bKnownBounds
protected

Flag of knowing own bounds. In case of true m_fBounds field has meaningful values otherwise it is undefined.

double ZqbNatGrpMember::m_fBounds
protected

Own bounds of this natural group memeber.

void(* ZqbNatGrpMember::m_pCustomOnSetCoord)(void *pUserData)
protected

Function to be called on onSetCoord() event.

ZqbNatGroup * ZqbNatGrpMember::m_pNatGroup
protected

Pointer to natural group.

void * ZqbNatGrpMember::m_pUserData
protected

User pointer to be passed to (*pCustomOnSetCoord)().


The documentation for this class was generated from the following files: