UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
zq_lith_column.hpp
1 /* zq_lith_column.hpp */
2 /* $Id: zq_lith_column.hpp 20080 2009-12-15 15:57:52Z vlad $ */
3 
4 /*
5  * $Log: zq_lith_column.hpp,v $
6  * Revision 1.3 2007/03/30 20:51:47 vlad
7  * + Different methods to draw patterns.
8  *
9  * Revision 1.2 2007/03/08 08:14:43 rus1
10  * Powerful patch by Mr.HaoYG
11  *
12  * Revision 1.1 2006/06/23 07:06:22 guser4
13  * + lithology support classes
14  *
15  */
16 
17 #ifndef __zq_lith_column_hpp
18 #define __zq_lith_column_hpp
19 
20 #include "zd_lith_data.hpp"
21 #include "zqb_natgrpmember.hpp"
22 #include "zq_view.hpp"
23 
24 
25 typedef enum {
26 
27  Z_LCDM_BLACK_ON_COLOR,
31  Z_LCDM_COLOR_ON_BACKGR
35 } ZqLithColumnDrawMethod;
36 
37 
44 class ZqLithColumn : public ZqView, public ZqbNatGrpMember
45 {
46 public:
47 
50  ZqLithColumn (ZqbNatGroup& rDepthGrp, const char* szName = NULL);
51 
54  ZqLithColumn (ZqbNatGroup& rDepthGrp,
55  ZqbPlaceholder* pPh, const char* szName = NULL);
56 
57 
62  virtual bool attachToPlace (ZqbPlaceholder* pPh);
63 
64 
65  /*
66  * Properties
67  */
68 
73  virtual void setWidthHint (ZqbSizeHint eWidthHint,
74  int iWidth = 0);
75 
79  virtual ZqbSizeHint getWidthHint (int* pWidth = NULL) const;
80 
84  virtual void setOrientation (Qt::Orientation eOrient);
85 
87  virtual Qt::Orientation getOrientation () const;
88 
90  virtual void setDrawMethod (ZqLithColumnDrawMethod eMethod);
91 
93  virtual ZqLithColumnDrawMethod getDrawMethod () const;
94 
95 
96  /*
97  * Run-time type identification facility
98  */
99 
103  virtual bool compatibleDoc (const ZdDocument* pDoc) const;
104 
105 
106  /*
107  * Data access
108  */
109 
113  virtual void attachData (ZdLithData* pData);
114 
116  virtual void detachDoc ();
117 
120  virtual ZdLithData* data ();
121 
122  /*
123  * Polymorphic methods
124  */
125 
127  virtual void redraw (QPainter& paint);
128 
129 //modify by haoyg,begin
130 #ifdef HAOYG
131  virtual void updateLimits (QPainter* paint = NULL);
132 #endif
133 //modify by haoyg,end
134 
135 protected:
136 
138  ZqbSizeHint m_eWidthHint;
139 
142  int m_iWidth;
143 
146  Qt::Orientation m_eOrient;
147 
149  ZqLithColumnDrawMethod m_eDrawMethod;
150 
151 private:
152 
154  static int s_iNameCounter;
155 
156 };
157 
158 
159 #endif /* zq_lith_column.hpp */
virtual ZqLithColumnDrawMethod getDrawMethod() const
virtual void setOrientation(Qt::Orientation eOrient)
virtual void detachDoc()
int m_iWidth
Definition: zq_lith_column.hpp:142
virtual void attachData(ZdLithData *pData)
Definition: zqb_natgroup.hpp:35
virtual ZqbSizeHint getWidthHint(int *pWidth=NULL) const
Definition: zqb_placeholder.hpp:25
virtual void setWidthHint(ZqbSizeHint eWidthHint, int iWidth=0)
Definition: zq_lith_column.hpp:44
Definition: zq_view.hpp:18
virtual void setDrawMethod(ZqLithColumnDrawMethod eMethod)
ZqLithColumnDrawMethod m_eDrawMethod
Definition: zq_lith_column.hpp:149
virtual bool compatibleDoc(const ZdDocument *pDoc) const
Definition: zd_document.hpp:16
virtual void redraw()
Definition: zqb_visible.hpp:82
virtual void updateLimits(QPainter *paint=NULL)
Qt::Orientation m_eOrient
Definition: zq_lith_column.hpp:146
ZqbSizeHint m_eWidthHint
Definition: zq_lith_column.hpp:138
virtual bool attachToPlace(ZqbPlaceholder *pPh)
virtual ZdLithData * data()
Definition: zd_lith_data.hpp:67
Definition: zqb_natgrpmember.hpp:26
virtual Qt::Orientation getOrientation() const
ZqLithColumn(ZqbNatGroup &rDepthGrp, const char *szName=NULL)