Rev Author Line No. Line
178 kaklik 1 #ifndef __CROSSWIDGET_HH
2 #define __CROSSWIDGET_HH
3  
4 #include <boost/numeric/ublas/vector.hpp>
5 #include "videoWidget.hh"
6  
7 /// Class for crossing an image overlayed with a cross.
8 class CrossWidget: public VideoWidget
9 {
10 Q_OBJECT
11 public:
12 ///
13 typedef boost::numeric::ublas::vector< double > Vector;
14 ///
15 CrossWidget( QWidget *parent = 0, Qt::WFlags f = 0 );
16 /** Set position of cross.
17 @param _v New position of cross. */
18 void setCross( const Vector &_v );
19 ///
20 void clearCross(void);
21 protected:
22 ///
23 void paintGL(void);
24 ///
25 bool hasPoint;
26 ///
27 int pointX;
28 ///
29 int pointY;
30 };
31  
32 #endif
33