2016-09-27 04:59:06 -05:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "cvfBase.h"
|
|
|
|
#include "cvfObject.h"
|
|
|
|
#include "cvfMatrix4.h"
|
|
|
|
#include "cvfVector3.h"
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include <QPointer>
|
|
|
|
|
|
|
|
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();
|
|
|
|
|
2016-09-29 04:43:47 -05:00
|
|
|
void setOrigin(const cvf::Vec3d& origin);
|
2016-09-27 04:59:06 -05:00
|
|
|
void setSize(const cvf::Vec3d& size);
|
|
|
|
|
2016-10-03 07:26:46 -05:00
|
|
|
void appendPartsToModel(cvf::ModelBasicList* model);
|
2016-09-27 04:59:06 -05:00
|
|
|
|
|
|
|
signals:
|
2016-09-29 04:43:47 -05:00
|
|
|
void notifyRedraw();
|
|
|
|
void notifyUpdate(const cvf::Vec3d& origin, const cvf::Vec3d& size);
|
2016-09-27 04:59:06 -05:00
|
|
|
|
|
|
|
protected:
|
2016-09-29 04:43:47 -05:00
|
|
|
bool eventFilter(QObject *obj, QEvent *event);
|
2016-09-27 04:59:06 -05:00
|
|
|
|
|
|
|
private:
|
2016-09-29 04:43:47 -05:00
|
|
|
QPointer<caf::Viewer> m_viewer;
|
2016-09-27 04:59:06 -05:00
|
|
|
|
2016-09-29 04:43:47 -05:00
|
|
|
cvf::ref<caf::BoxManipulatorPartManager> m_partManager;
|
2016-09-27 04:59:06 -05:00
|
|
|
};
|
|
|
|
|