1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #include "toolinterface.h"
- #include "ui_toolinterface.h"
- ToolInterface::ToolInterface(QWidget *parent, ToolDialogImpl* p)
- : QDialog(parent)
- {
- ui.setupUi(this);
- m_pToolDialogImpl = p;
- }
- ToolInterface::~ToolInterface()
- {
- }
- bool ToolInterface::Serialized(QDataStream& ar, bool bIsOut)
- {
- return true;
- }
- bool ToolInterface::setValue(HObject In)
- {
- m_InImage = In;
- return true;
- }
- HObject ToolInterface::GetResult()
- {
- return m_OutImage;
- }
- QString ToolInterface::ShowParameter()
- {
- return "50,200,1";
- }
- int ToolInterface::Execute()
- {
- int result = 1;
- return result;
- }
|