123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- #include "Tool.h"
- #include "../../Common/DllToolCommon.h"
- DLL_TOOL_DESC m_Description;
- ///////////////////////////////////////////////////////////////////
- // 获取工具描述
- const DLL_TOOL_DESC& ToolImpl::Description()
- {
- // 生成dll描述
- m_Description.Type = TOOL_TYPE::TOOL_TYPE_STANDARD;
- m_Description.strCategory = "预先处理";
- m_Description.strName = ("Pretreatment");
- m_Description.strAliasName = "预处理";
- m_Description.strVersion = ("1.0");
- m_Description.strInfo = ("图像预处理");
- return m_Description;
- }
- /////////////////////////////////////////////////
- // 生成默认的接口描述
- void ToolImpl::InitDefaultInterfaces(bool withValue)
- {
- // 接口
- DLL_INF inf;
- inf.strName = ("Image");
- inf.Direction = INF_DIRECTION::INF_DIR_IN;
- inf.Type = INF_TYPE::INF_TYPE_STANDARD;
- inf.value.passMode = VALUE_PASS_MODE::PASS_BY_VALUE;
- inf.value.type = VALUE_TYPE::Type_HImage;
- if (withValue)
- {
- inf.value.Ptr = (void**)&((ToolDialogImpl*)m_pDlgTool)->m_Image;
- }
- m_Interfaces.push_back(inf);
- inf.reset();//////////////////////////////////////////////////////////////////////////
-
- inf.strName = ("Image");
- inf.Direction = INF_DIRECTION::INF_DIR_OUT;
- inf.Type = INF_TYPE::INF_TYPE_STANDARD;
- inf.value.passMode = VALUE_PASS_MODE::PASS_BY_VALUE;
- inf.value.type = VALUE_TYPE::Type_HImage;
- if (withValue)
- {
- inf.value.Ptr = (void**)&((ToolDialogImpl*)m_pDlgTool)->m_ImageOut;
- }
- m_Interfaces.push_back(inf);
- inf.reset();//////////////////////////////////////////////////////////////////////////
-
- }
|