toolinterface1.cpp 563 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #include "toolinterface.h"
  2. #include "ui_toolinterface.h"
  3. ToolInterface::ToolInterface(QWidget *parent)
  4. : QDialog(parent)
  5. {
  6. ui.setupUi(this);
  7. }
  8. ToolInterface::~ToolInterface()
  9. {
  10. }
  11. bool ToolInterface::Serialized(QDataStream& ar, bool bIsOut)
  12. {
  13. return true;
  14. }
  15. bool ToolInterface::setValue(HObject In)
  16. {
  17. m_InImage = In;
  18. return true;
  19. }
  20. HObject ToolInterface::GetResult()
  21. {
  22. return m_OutImage;
  23. }
  24. QString ToolInterface::ShowParameter()
  25. {
  26. return "50,200,1";
  27. }
  28. int ToolInterface::Execute()
  29. {
  30. int result = 1;
  31. return result;
  32. }