UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
zqb_natgrpmember.hpp
1 /* zqb_natgrpmember.hpp */
2 /* $Id: zqb_natgrpmember.hpp 20080 2009-12-15 15:57:52Z vlad $ */
3 #ifndef __zqb_natgrpmember_hpp
4 #define __zqb_natgrpmember_hpp
5 
6 #include <cstddef>
7 #include <vector>
8 
9 
10 class ZqbNatGroup;
11 
12 
26 class ZqbNatGrpMember
27 {
28 public:
29 
32  ZqbNatGrpMember (ZqbNatGroup* pNatGroup);
33 
38  ZqbNatGrpMember (ZqbNatGroup* pNatGroup,
39  void (*CustomOnSetCoord)(void*),
40  void* pUserData = NULL);
41 
43  virtual ~ZqbNatGrpMember ();
44 
45 
47  virtual ZqbNatGroup& group () const;
48 
49  /*
50  * Own bounds presentation
51  */
52 
54  virtual void unsetBounds ();
55 
58  virtual void setBounds (double b[2]);
59 
62  void setBounds (double b1, double b2) {
63  double b[2];
64  b[0] = b1;
65  b[1] = b2;
66  setBounds(b);
67  }
68 
71  virtual bool getBounds (double b[2] = NULL) const;
72 
73  /*
74  * Coordinates change processing
75  */
76 
80  virtual void onSetCoords ();
81 
82 protected:
83 
86 
89  bool m_bKnownBounds;
90 
92  double m_fBounds[2];
93 
95  void (*m_pCustomOnSetCoord)(void *pUserData);
96 
98  void *m_pUserData;
99 
100 };
101 
102 
107 typedef std::vector<ZqbNatGrpMember*> ZqbNatGrpMembers;
108 
109 
110 #endif /* zqb_natgrpmember.hpp */
double m_fBounds[2]
Definition: zqb_natgrpmember.hpp:95
ZqbNatGrpMember(ZqbNatGroup *pNatGroup)
virtual void setBounds(double b[2])
virtual ~ZqbNatGrpMember()
void * m_pUserData
Definition: zqb_natgrpmember.hpp:101
Definition: zqb_natgroup.hpp:35
virtual void onSetCoords()
virtual void unsetBounds()
ZqbNatGroup * m_pNatGroup
Definition: zqb_natgrpmember.hpp:88
bool m_bKnownBounds
Definition: zqb_natgrpmember.hpp:92
void(* m_pCustomOnSetCoord)(void *pUserData)
Definition: zqb_natgrpmember.hpp:98
virtual ZqbNatGroup & group() const
virtual bool getBounds(double b[2]=NULL) const
Definition: zqb_natgrpmember.hpp:26
void setBounds(double b1, double b2)
Definition: zqb_natgrpmember.hpp:62