keypointsettings.hpp 1.03 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
#ifndef CVVISUAL_KEYPOINT_SETTINGS
#define CVVISUAL_KEYPOINT_SETTINGS

#include <QFrame>
#include <QPen>

#include "cvvkeypoint.hpp"

namespace cvv
{
namespace qtutil
{

class CVVKeyPoint;

/**
 * @brief this abstract class returns an individual Setting for a CVVKeyPoint.
 */
class KeyPointSettings : public QFrame
{
	Q_OBJECT

      public:
	/**
	 * @brief KeyPointPen
	 * @param parent the parent Widget
	 */
	KeyPointSettings(QWidget *parent) : QFrame(parent){}

	/**
	 * @brief set individual settings for a selected cvvkeypoint
	 */
	virtual void setSettings(CVVKeyPoint &key) = 0;

	/**
	 * @brief set individual settings for a non-selected cvvkeypoint
	 */
	/*virtual void setUnSelectedSettings(CVVKeyPoint &)
		{}*/

public slots:
	/**
	 * @brief this method emits the signal settingsChanged();
	 */
	void updateAll()
		{ emit settingsChanged(*this); }

signals:
	/**
	 * @brief this signal will be emitted if the settings changed
	 * and the CVVKeyPoint must update their Settings
	 */
	void settingsChanged(KeyPointSettings &);
};
}
}
#endif