#pragma once #include "cvfBase.h" #include "cvfObject.h" #include "cvfMatrix4.h" #include "cvfVector3.h" #include #include namespace cvf { class Model; class ModelBasicList; }; namespace caf { class BoxManipulatorPartManager; class Viewer; }; class QMouseEvent; //================================================================================================== // // //================================================================================================== class RicBoxManipulatorEventHandler : public QObject { Q_OBJECT public: RicBoxManipulatorEventHandler(caf::Viewer* viewer); ~RicBoxManipulatorEventHandler(); void setOrigin(const cvf::Vec3d& origin); void setSize(const cvf::Vec3d& size); cvf::Model* model(); signals: void notifyRedraw(); void notifyUpdate(const cvf::Vec3d& origin, const cvf::Vec3d& size); protected: bool eventFilter(QObject *obj, QEvent *event); private: void updateParts(); private: cvf::ref m_model; QPointer m_viewer; size_t m_currentPartIndex; cvf::ref m_partManager; };