3 #ifndef __zq_coord_marker_hpp
4 #define __zq_coord_marker_hpp
9 #include "zqb_natgroup.hpp"
10 #include "zqb_natgrpmember.hpp"
11 #include "zd_coord_obj_stream.hpp"
29 Mark () : m_fCoord(0.0), m_iMark(0) {}
30 bool operator< (
const Mark& m)
const {
31 return m_fCoord < m.m_fCoord;
33 bool operator== (
const Mark& m)
const {
34 return m_fCoord == m.m_fCoord;
39 typedef std::vector<Mark>
Marks;
51 const char* szName = NULL);
66 virtual const QPen&
getPen ()
const;
111 virtual void redraw (QPainter& paint);
114 virtual ZqbEventHint
input (QEvent& event);
122 virtual bool markEvent (
const QEvent& event, QPoint& pos);
133 double coord,
int mark);
140 virtual int changeMark (
double coord,
int mark);
144 virtual void setMark (
double coord,
int mark,
145 double* pMatched = NULL);
149 virtual int getMark (
double coord,
150 double* pMatched = NULL)
const;
172 static int s_iNameCounter;
177 #include "zq_coord_marker_inline.hpp"
virtual void drawMarkAt(QPainter &paint, double coord, int mark)
virtual void getMarks(Marks &vMarks) const
ZqCoordMarker(ZqbNatGroup &rGroup, const char *szName=NULL)
Definition: zqb_natgroup.hpp:35
Definition: zqb_placeholder.hpp:25
virtual void setPen(const QPen &pen)
Definition: zq_coord_marker_inline.hpp:23
virtual void setOrientation(Qt::Orientation eOrient)
Definition: zq_coord_marker_inline.hpp:56
Definition: zd_coord_obj_stream.hpp:15
Definition: zq_view.hpp:18
virtual void setMark(double coord, int mark, double *pMatched=NULL)
virtual int changeMark(double coord, int mark)
virtual bool compatibleDoc(const ZdDocument *pDoc) const
Definition: zd_document.hpp:16
virtual void redraw()
Definition: zqb_visible.hpp:82
std::vector< Mark > Marks
Definition: zq_coord_marker.hpp:39
QPen m_qPen
Definition: zq_coord_marker.hpp:159
virtual bool markEvent(const QEvent &event, QPoint &pos)
Marks m_vMarks
Definition: zq_coord_marker.hpp:167
virtual ZdCoordObjStream * coStream()
virtual const QPen & getPen() const
Definition: zq_coord_marker_inline.hpp:34
Definition: zq_coord_marker.hpp:20
Qt::Orientation m_eOrient
Definition: zq_coord_marker.hpp:163
virtual ZqbEventHint input(QEvent &event)
virtual Qt::Orientation getOrientation() const
Definition: zq_coord_marker_inline.hpp:67
Definition: zqb_natgrpmember.hpp:26
virtual int getMark(double coord, double *pMatched=NULL) const
virtual QPen & pen()
Definition: zq_coord_marker_inline.hpp:45
virtual void attachCOStream(ZdCoordObjStream *pCOStream)