3 #ifndef __zq_polygon_hpp
4 #define __zq_polygon_hpp
9 #include "zqb_natgroup.hpp"
10 #include "zq_object.hpp"
14 typedef std::vector<std::pair<double,double> > ZqbNatPoints;
32 const char* szName = NULL);
75 virtual ZqbEventHint
input (QEvent& event);
78 virtual void polygon (
const ZqbNatPoints& vPolygon);
83 virtual void redraw (QPainter& paint);
92 void drawLine (
const QPoint& p1,
const QPoint& p2);
126 static int s_iNameCounter;
131 #include "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 void polygon(const ZqbNatPoints &vPolygon)
virtual ZqbEventHint input(QEvent &event)
virtual int getThickness() const
Definition: zq_polygon_inline.hpp:33
Definition: zqb_natgroup.hpp:35
Definition: zqb_placeholder.hpp:25
int m_iThickness
Definition: zq_polygon.hpp:118
QPointArray m_arPoints
Definition: zq_polygon.hpp:102
virtual void redraw()
Definition: zqb_visible.hpp:82
ZqbNatGrpMember m_NatY
Definition: zq_polygon.hpp:43
void drawLine(const QPoint &p1, const QPoint &p2)
ZqbNatGrpMember m_NatX
Definition: zq_polygon.hpp:40
Definition: zq_object.hpp:36
Definition: zq_polygon.hpp:24
Definition: zqb_natgrpmember.hpp:26
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
ZqPolygon(ZqbNatGroup &rNatX, ZqbNatGroup &rNatY, const char *szName=NULL)