UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
zq_polygon_inline.hpp
1 /* zq_polygon_inline.hpp */
2 /* $Id: zq_polygon_inline.hpp,v 1.3 2006/03/13 08:49:12 rus1 Exp $ */
3 #ifndef __zq_polygon_inline_hpp
4 #define __zq_polygon_inline_hpp
5 
6 #ifdef __zq_polygon_hpp
7 #define INLINE inline
8 #else
9 #define INLINE
10 #endif /* __zq_polygon_hpp */
11 
12 
13 /*
14  * Properties
15  */
16 
21 INLINE void
22 ZqPolygon::setThickness (int iThickness)
23 {
24  m_iThickness = iThickness;
25 }
26 
27 
32 INLINE int
34 {
35  return m_iThickness;
36 }
37 
38 
43 INLINE void
44 ZqPolygon::setLineColor (const QColor& qcLine)
45 {
46  m_qcLine = qcLine;
47 }
48 
49 
54 INLINE const QColor&
56 {
57  return m_qcLine;
58 }
59 
60 
61 
62 /*
63  * Internals
64  */
65 
66 
71 INLINE void
73 {
76  m_bDrawnPolyline = false;
77 }
78 
79 
84 INLINE void
86 {
87  if(m_bDrawnLast && m_arPoints.size() > 0)
89  m_bDrawnLast = false;
90 }
91 
92 
93 #undef INLINE
94 
95 #endif /* zq_polygon_inline.hpp */
bool m_bDrawnLast
Definition: zq_polygon.hpp:115
virtual const QColor & getLineColor() const
Definition: zq_polygon_inline.hpp:55
bool m_bDrawnPolyline
Definition: zq_polygon.hpp:107
QPoint m_qLast
Definition: zq_polygon.hpp:111
virtual void setThickness(int iThickness)
Definition: zq_polygon_inline.hpp:22
virtual void setLineColor(const QColor &qcLine)
Definition: zq_polygon_inline.hpp:44
virtual int getThickness() const
Definition: zq_polygon_inline.hpp:33
int m_iThickness
Definition: zq_polygon.hpp:118
QPointArray m_arPoints
Definition: zq_polygon.hpp:102
void drawLine(const QPoint &p1, const QPoint &p2)
QColor m_qcLine
Definition: zq_polygon.hpp:121
void eraseLastSegment()
Definition: zq_polygon_inline.hpp:85
void drawPolyline(const QPointArray &ar)
void erasePolyline()
Definition: zq_polygon_inline.hpp:72