添加功能
This commit is contained in:
parent
2853ad0eec
commit
3c98b83bb5
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,3 +1,5 @@
|
||||
.vs
|
||||
|
||||
/PrintC/x64/
|
||||
/PrintC/.vs/
|
||||
/PrintC/*.sln
|
||||
@ -5,6 +7,8 @@
|
||||
/PrintC/output/Release/*.log
|
||||
/PrintC/output/Release/*.pdb
|
||||
/PrintC/output/Release/*.exe
|
||||
/PrintS/output/Release/*.exp
|
||||
/PrintS/output/Release/*.lib
|
||||
|
||||
|
||||
|
||||
@ -15,6 +19,8 @@
|
||||
/PrintS/output/Release/*.log
|
||||
/PrintS/output/Release/*.pdb
|
||||
/PrintS/output/Release/*.exe
|
||||
/PrintS/output/Release/*.exp
|
||||
/PrintS/output/Release/*.lib
|
||||
/PrintS/ProtoCompile/x64/
|
||||
/PrintS/Protobuf/ProtoCompile.*
|
||||
|
||||
|
@ -114,16 +114,14 @@ void ConfigManager::PreInit()
|
||||
|
||||
void ConfigManager::Init()
|
||||
{
|
||||
m_Machine = Machine::CreateInstance((int)MachineTypeCfg::HBD_1000);
|
||||
m_Machine = Machine::CreateInstance(m_MachineCfg.m_MachineType);
|
||||
|
||||
return;
|
||||
|
||||
//m_LoadCfg = m_Machine->CreateLoadAxisCfg();
|
||||
//m_MoldCfg=m_Machine->CreateMoldAxisCfg();
|
||||
////m_PowderCfg= m_Machine->CreatePowderAxisCfg();
|
||||
//m_ArmCfg= m_Machine->CreateArmAxisCfg();
|
||||
//m_SupplyCfg = m_Machine->CreateSupplyAxisCfg();
|
||||
//m_CleanCfg = m_Machine->CreateCleanAxisCfg();
|
||||
m_LoadCfg = m_Machine->CreateLoadAxisCfg();
|
||||
m_MoldCfg = m_Machine->CreateMoldAxisCfg();
|
||||
//m_PowderCfg= m_Machine->CreatePowderAxisCfg();
|
||||
m_ArmCfg = m_Machine->CreateArmAxisCfg();
|
||||
m_SupplyCfg = m_Machine->CreateSupplyAxisCfg();
|
||||
m_CleanCfg = m_Machine->CreateCleanAxisCfg();
|
||||
m_EleCfg = m_Machine->CreateEleAxisCfg();
|
||||
m_AxisCfgs[GTS_AXIS_ID_MOLD] = m_MoldCfg;
|
||||
m_AxisCfgs[GTS_AXIS_ID_LOAD] = m_LoadCfg;
|
||||
@ -138,10 +136,10 @@ void ConfigManager::Init()
|
||||
|
||||
m_IOCfgWrapper = new IOCfgWrapper();
|
||||
m_AlarmCfgWrapper = new AlarmCfgWrapper();
|
||||
|
||||
|
||||
m_pSystemBaseDao = new SystemBaseDao(m_pDB);
|
||||
m_pHbdLanguageDao = new HbdLanguageDao(m_pDB);
|
||||
|
||||
|
||||
m_pBaseConfigDao = new BaseConfigDao(m_pDB);
|
||||
m_pAxisConfigDao = new AxisCfgDao(m_pDB);
|
||||
m_pIOCfgDao = new IOCfgDao(m_pDB);
|
||||
@ -150,12 +148,12 @@ void ConfigManager::Init()
|
||||
m_pInfoTextDao = new InfoTextDao(m_pDB);
|
||||
m_pAlarmCfgDao = new AlarmCfgDao(m_pDB);
|
||||
m_pParamSetCfgDao = new ParamSetCfgDao(m_pDB);
|
||||
// m_pLaserCfgDao = new LaserCfgDao(m_pDB);
|
||||
// m_pLaserCfgDao = new LaserCfgDao(m_pDB);
|
||||
m_ScannerControlCfgDao = new ScannerControlCfgDao(m_pDB);
|
||||
m_PrepareJobCfgDao = new PrepareJobCfgDao(m_pDB);
|
||||
m_IOVersionDao = new IOVersionDao(m_pDB);
|
||||
//GenerateTable();
|
||||
//ReadConfig();
|
||||
GenerateTable();
|
||||
ReadConfig();
|
||||
}
|
||||
|
||||
bool ConfigManager::InitFromSetup(void)
|
||||
|
@ -13,10 +13,28 @@ Controler::Controler()
|
||||
}
|
||||
|
||||
|
||||
Controler::~Controler() {
|
||||
DELP(m_CoreCommunication);
|
||||
DELP(m_Axis);
|
||||
DELP(m_StateCtrlWrapper);
|
||||
DELP(m_SysParamWrapper);
|
||||
DELP(m_AxisRecordWrapper);
|
||||
DELP(m_SignalStateWrapper);
|
||||
DELP(m_ComServer);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
void Controler::Init(){
|
||||
m_CoreCommunication = new CoreCommunication();
|
||||
m_CoreCommunication->SetIOCfgWrapper(ConfigManager::GetInstance()->GetIoCfgWrapper());
|
||||
m_CoreCommunication->SetSysParamWrapper(m_SysParamWrapper);
|
||||
m_CoreCommunication->SetPLCAxis(m_Axis);
|
||||
m_CoreCommunication->SetAlarmStateWrapper(m_SignalStateWrapper);
|
||||
m_CoreCommunication->SetAxisRecordWrapper(m_AxisRecordWrapper);
|
||||
m_CoreCommunication->Init();
|
||||
m_CoreCommunication->Startup();
|
||||
|
||||
m_SysParamWrapper = new SysParamWrapper;
|
||||
m_StateCtrlWrapper = new StateCtrlWrapper;
|
||||
@ -25,9 +43,28 @@ void Controler::Init(){
|
||||
m_AxisRecordWrapper->Init(m_CoreCommunication);
|
||||
|
||||
m_SignalStateWrapper = new SignalStateWrapper();
|
||||
m_Machine = ConfigManager::GetInstance()->GetMachine();
|
||||
m_Machine->InitSignal(m_SignalStateWrapper, m_CoreCommunication);
|
||||
m_Machine->InitSysParam(m_SysParamWrapper, m_CoreCommunication);
|
||||
m_Axis = new PLCAxis(m_SysParamWrapper, m_StateCtrlWrapper);
|
||||
m_Machine->SetAxisAndSignal(m_SysParamWrapper, m_AxisRecordWrapper, m_Axis);
|
||||
|
||||
m_MachineCtrl = new MachineCtrl();
|
||||
m_MachineCtrl->Init(m_CoreCommunication, m_SysParamWrapper, m_SignalStateWrapper, m_Axis);
|
||||
|
||||
m_Machine->SetMachineCtrl(m_MachineCtrl);
|
||||
m_MachineCtrl->MachineStartup();
|
||||
|
||||
m_ComServer = new ComServer(); //辅机服务
|
||||
m_ComServer->Init();
|
||||
|
||||
m_RemoteClient = new RemoteClient(nullptr, nullptr/*m_ScannerCtrl*/);
|
||||
m_RemoteClient->Init();
|
||||
//m_RemoteClient->SetCamera( nullptr /*m_Camera*/);
|
||||
if (m_RemoteClient->GetConfig()->m_Enable) {
|
||||
m_RemoteClient->StartRemote();
|
||||
}
|
||||
//m_ScannerCtrl->SetRemoteClient(m_RemoteClient);
|
||||
|
||||
//m_ScannerCtrl->SetMachineCtrl(m_MachineCtrl);
|
||||
}
|
@ -4,12 +4,13 @@
|
||||
#include "../PLC/MachineCtrl.h"
|
||||
#include "../PLC/CoreCommunication.h"
|
||||
#include "../Config/ConfigManager.h"
|
||||
|
||||
#include "../Communication/ComServer.h"
|
||||
#include "../remote/RemoteClient.h"
|
||||
|
||||
class Controler {
|
||||
public:
|
||||
Controler();
|
||||
~Controler() {}
|
||||
~Controler();
|
||||
|
||||
void Init();
|
||||
|
||||
@ -23,6 +24,8 @@ private:
|
||||
AxisRecordWrapper* m_AxisRecordWrapper;
|
||||
SignalStateWrapper* m_SignalStateWrapper;
|
||||
|
||||
|
||||
MachineCtrl* m_MachineCtrl;
|
||||
RemoteClient* m_RemoteClient;
|
||||
ComServer* m_ComServer;
|
||||
|
||||
};
|
@ -2,6 +2,8 @@
|
||||
#include <iostream>
|
||||
#include <typeinfo>
|
||||
|
||||
|
||||
|
||||
DataHandle::DataHandle()
|
||||
: m_dataCallBack(nullptr)
|
||||
, m_streamServer(nullptr){
|
||||
@ -10,16 +12,20 @@ DataHandle::DataHandle()
|
||||
|
||||
DataHandle::~DataHandle() {
|
||||
m_streamServer->Stop();
|
||||
if (m_streamServer){
|
||||
delete m_streamServer;
|
||||
m_streamServer = nullptr;
|
||||
}
|
||||
|
||||
DELP(m_streamServer);
|
||||
DELP(m_controler);
|
||||
|
||||
}
|
||||
|
||||
void DataHandle::Init() {
|
||||
m_config = ConfigManager::GetInstance();
|
||||
m_config->PreInit();
|
||||
|
||||
g_LngManager = new LanguageManager();
|
||||
g_LngManager->Init();
|
||||
g_Lang = &m_config->GetMachineCfg()->m_I18NLang[0];
|
||||
|
||||
m_config->Init();
|
||||
|
||||
m_streamServer = new StreamServer(m_config->GetMachine());
|
||||
@ -44,6 +50,9 @@ void DataHandle::Init() {
|
||||
m_streamServer->SetCallBackFunc(this, &DataHandle::DataCallBackProc);
|
||||
m_streamServer->Init();
|
||||
|
||||
m_controler = new Controler();
|
||||
m_controler->Init();
|
||||
|
||||
}
|
||||
|
||||
void DataHandle::Run() {
|
||||
|
@ -2,6 +2,7 @@
|
||||
#include <string>
|
||||
#include "StreamServer.h"
|
||||
#include "../Config/ConfigManager.h"
|
||||
#include "../Controler/Controler.h"
|
||||
|
||||
class DataHandle{
|
||||
typedef void (*DataCallBack)(void* pthis, const ReadData& msg);
|
||||
@ -20,7 +21,11 @@ private:
|
||||
std::thread m_testTd;
|
||||
|
||||
ConfigManager* m_config;
|
||||
Controler* m_controler;
|
||||
|
||||
public:
|
||||
StreamServer* m_streamServer;
|
||||
|
||||
|
||||
|
||||
};
|
@ -39,11 +39,11 @@ public:
|
||||
//virtual void CheckIO_NEW(vector<string>&ins, IOCfgWrapper* iocfgWrapper) = 0;
|
||||
//virtual void DrawIO(bool* isShow);
|
||||
|
||||
//virtual AxisCfg* CreateMoldAxisCfg() = 0;
|
||||
//virtual AxisCfg* CreateLoadAxisCfg() = 0;
|
||||
//virtual AxisCfg* CreateArmAxisCfg() = 0;
|
||||
//virtual AxisCfg* CreateSupplyAxisCfg() = 0;
|
||||
//virtual AxisCfg* CreateCleanAxisCfg() = 0;
|
||||
virtual AxisCfg* CreateMoldAxisCfg() = 0;
|
||||
virtual AxisCfg* CreateLoadAxisCfg() = 0;
|
||||
virtual AxisCfg* CreateArmAxisCfg() = 0;
|
||||
virtual AxisCfg* CreateSupplyAxisCfg() = 0;
|
||||
virtual AxisCfg* CreateCleanAxisCfg() = 0;
|
||||
virtual AxisCfg* CreateEleAxisCfg();
|
||||
|
||||
static void InitMachineCfg(MachineCfg* cfg);
|
||||
|
@ -7,8 +7,8 @@
|
||||
#include <map>
|
||||
|
||||
CoreCommunication::CoreCommunication()
|
||||
:/*m_Config(NULL)
|
||||
,*/ m_ReadThread(INVALID_HANDLE_VALUE)
|
||||
:m_Config(NULL)
|
||||
, m_ReadThread(INVALID_HANDLE_VALUE)
|
||||
,m_WriteThread(INVALID_HANDLE_VALUE)
|
||||
{
|
||||
m_IsSmart = true;
|
||||
|
@ -37,7 +37,7 @@ public:
|
||||
|
||||
void SetIOCfgWrapper(IOCfgWrapper* io) { m_IOCfgWrapper = io; }
|
||||
void SetSysParamWrapper(SysParamWrapper* param) { m_SysParamWrapper = param; }
|
||||
//void SetPLCAxis(PLCAxis* axis) { m_Axis = axis; }
|
||||
void SetPLCAxis(PLCAxis* axis) { m_Axis = axis; }
|
||||
void SetAlarmStateWrapper(SignalStateWrapper* param) { m_AlarmStateWrapper = param; };
|
||||
//void GetAlarmState(SignalState& alarmState);
|
||||
//void GetEnvState(EnvState& envState);
|
||||
|
@ -73,6 +73,8 @@
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<OutDir>$(SolutionDir)output\$(Configuration)\</OutDir>
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
<IncludePath>$(ProjectDir)external\expat\include;$(ProjectDir)external\openssl\include;$(ProjectDir)external\clipper;$(ProjectDir)external\Galaxy\include;$(ProjectDir)external\OPT\include;$(ProjectDir)external\libjpeg-turbo\include;$(ProjectDir)external\opencv;$(ProjectDir)external\opencv\include\opencv2;$(IncludePath)</IncludePath>
|
||||
<LibraryPath>$(ProjectDir)external\expat\x64;$(ProjectDir)external\openssl\x64;$(ProjectDir)external\OPT\x64;$(ProjectDir)external\Galaxy\x64;$(ProjectDir)external\libjpeg-turbo\x64;$(ProjectDir)\ScannerCtrl;$(ProjectDir)external\opencv\x64;$(LibraryPath)</LibraryPath>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
@ -129,6 +131,7 @@
|
||||
<Optimization>Disabled</Optimization>
|
||||
<DisableSpecificWarnings>4996</DisableSpecificWarnings>
|
||||
<DebugInformationFormat>OldStyle</DebugInformationFormat>
|
||||
<AdditionalOptions>/D "_CRT_SECURE_NO_WARNINGS" /D "_WINSOCK_DEPRECATED_NO_WARNINGS" %(AdditionalOptions)</AdditionalOptions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
@ -136,11 +139,15 @@
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<GenerateDebugInformation>DebugFastLink</GenerateDebugInformation>
|
||||
<AdditionalLibraryDirectories>./lib;./lib/absl</AdditionalLibraryDirectories>
|
||||
<AdditionalDependencies>libprotobuf.lib;libprotobuf-lite.lib;libprotoc.lib;address_sorting.lib;cares.lib;crypto.lib;gpr.lib;grpc++.lib;grpc++_alts.lib;grpc++_error_details.lib;grpc++_reflection.lib;grpc++_unsecure.lib;grpc.lib;grpcpp_channelz.lib;grpc_authorization_provider.lib;grpc_plugin_support.lib;grpc_unsecure.lib;upb.lib;upb_collections_lib.lib;upb_json_lib.lib;upb_textformat_lib.lib;utf8_range_lib.lib;re2.lib;ssl.lib;testing.lib;zlib.lib;zlibstatic.lib;absl_bad_any_cast_impl.lib;absl_bad_optional_access.lib;absl_bad_variant_access.lib;absl_base.lib;absl_city.lib;absl_civil_time.lib;absl_cord.lib;absl_cordz_functions.lib;absl_cordz_handle.lib;absl_cordz_info.lib;absl_cordz_sample_token.lib;absl_cord_internal.lib;absl_crc32c.lib;absl_crc_cord_state.lib;absl_crc_cpu_detect.lib;absl_crc_internal.lib;absl_debugging_internal.lib;absl_demangle_internal.lib;absl_die_if_null.lib;absl_examine_stack.lib;absl_exponential_biased.lib;absl_failure_signal_handler.lib;absl_flags.lib;absl_flags_commandlineflag.lib;absl_flags_commandlineflag_internal.lib;absl_flags_config.lib;absl_flags_internal.lib;absl_flags_marshalling.lib;absl_flags_parse.lib;absl_flags_private_handle_accessor.lib;absl_flags_program_name.lib;absl_flags_reflection.lib;absl_flags_usage.lib;absl_flags_usage_internal.lib;absl_graphcycles_internal.lib;absl_hash.lib;absl_hashtablez_sampler.lib;absl_int128.lib;absl_kernel_timeout_internal.lib;absl_leak_check.lib;absl_log_entry.lib;absl_log_flags.lib;absl_log_globals.lib;absl_log_initialize.lib;absl_log_internal_check_op.lib;absl_log_internal_conditions.lib;absl_log_internal_format.lib;absl_log_internal_globals.lib;absl_log_internal_log_sink_set.lib;absl_log_internal_message.lib;absl_log_internal_nullguard.lib;absl_log_internal_proto.lib;absl_log_severity.lib;absl_log_sink.lib;absl_low_level_hash.lib;absl_malloc_internal.lib;absl_periodic_sampler.lib;absl_random_distributions.lib;absl_random_internal_distribution_test_util.lib;absl_random_internal_platform.lib;absl_random_internal_pool_urbg.lib;absl_random_internal_randen.lib;absl_random_internal_randen_hwaes.lib;absl_random_internal_randen_hwaes_impl.lib;absl_random_internal_randen_slow.lib;absl_random_internal_seed_material.lib;absl_random_seed_gen_exception.lib;absl_random_seed_sequences.lib;absl_raw_hash_set.lib;absl_raw_logging_internal.lib;absl_scoped_set_env.lib;absl_spinlock_wait.lib;absl_stacktrace.lib;absl_status.lib;absl_statusor.lib;absl_strerror.lib;absl_strings.lib;absl_strings_internal.lib;absl_string_view.lib;absl_str_format_internal.lib;absl_symbolize.lib;absl_synchronization.lib;absl_throw_delegate.lib;absl_time.lib;absl_time_zone.lib;Ws2_32.lib;utf8_range.lib;utf8_validity.lib;opengl32.lib;sqlite3.lib;Rpcrt4.lib;ws2_32.lib;winmm.lib;dbghelp.lib;version.lib;gdiplus.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalDependencies>libprotobuf.lib;libprotobuf-lite.lib;libprotoc.lib;address_sorting.lib;cares.lib;gpr.lib;crypto.lib;grpc++.lib;grpc++_alts.lib;grpc++_error_details.lib;grpc++_reflection.lib;grpc++_unsecure.lib;grpc.lib;grpcpp_channelz.lib;grpc_authorization_provider.lib;grpc_plugin_support.lib;grpc_unsecure.lib;upb.lib;upb_collections_lib.lib;upb_json_lib.lib;upb_textformat_lib.lib;utf8_range_lib.lib;re2.lib;ssl.lib;testing.lib;zlib.lib;zlibstatic.lib;absl_bad_any_cast_impl.lib;absl_bad_optional_access.lib;absl_bad_variant_access.lib;absl_base.lib;absl_city.lib;absl_civil_time.lib;absl_cord.lib;absl_cordz_functions.lib;absl_cordz_handle.lib;absl_cordz_info.lib;absl_cordz_sample_token.lib;absl_cord_internal.lib;absl_crc32c.lib;absl_crc_cord_state.lib;absl_crc_cpu_detect.lib;absl_crc_internal.lib;absl_debugging_internal.lib;absl_demangle_internal.lib;absl_die_if_null.lib;absl_examine_stack.lib;absl_exponential_biased.lib;absl_failure_signal_handler.lib;absl_flags.lib;absl_flags_commandlineflag.lib;absl_flags_commandlineflag_internal.lib;absl_flags_config.lib;absl_flags_internal.lib;absl_flags_marshalling.lib;absl_flags_parse.lib;absl_flags_private_handle_accessor.lib;absl_flags_program_name.lib;absl_flags_reflection.lib;absl_flags_usage.lib;absl_flags_usage_internal.lib;absl_graphcycles_internal.lib;absl_hash.lib;absl_hashtablez_sampler.lib;absl_int128.lib;absl_kernel_timeout_internal.lib;absl_leak_check.lib;absl_log_entry.lib;absl_log_flags.lib;absl_log_globals.lib;absl_log_initialize.lib;absl_log_internal_check_op.lib;absl_log_internal_conditions.lib;absl_log_internal_format.lib;absl_log_internal_globals.lib;absl_log_internal_log_sink_set.lib;absl_log_internal_message.lib;absl_log_internal_nullguard.lib;absl_log_internal_proto.lib;absl_log_severity.lib;absl_log_sink.lib;absl_low_level_hash.lib;absl_malloc_internal.lib;absl_periodic_sampler.lib;absl_random_distributions.lib;absl_random_internal_distribution_test_util.lib;absl_random_internal_platform.lib;absl_random_internal_pool_urbg.lib;absl_random_internal_randen.lib;absl_random_internal_randen_hwaes.lib;absl_random_internal_randen_hwaes_impl.lib;absl_random_internal_randen_slow.lib;absl_random_internal_seed_material.lib;absl_random_seed_gen_exception.lib;absl_random_seed_sequences.lib;absl_raw_hash_set.lib;absl_raw_logging_internal.lib;absl_scoped_set_env.lib;absl_spinlock_wait.lib;absl_stacktrace.lib;absl_status.lib;absl_statusor.lib;absl_strerror.lib;absl_strings.lib;absl_strings_internal.lib;absl_string_view.lib;absl_str_format_internal.lib;absl_symbolize.lib;absl_synchronization.lib;absl_throw_delegate.lib;absl_time.lib;absl_time_zone.lib;Ws2_32.lib;utf8_range.lib;utf8_validity.lib;opengl32.lib;sqlite3.lib;Rpcrt4.lib;ws2_32.lib;winmm.lib;dbghelp.lib;version.lib;gdiplus.lib;GxIAPICPPEx.lib;MVSDKmd.lib;jpeg-static.lib;turbojpeg-static.lib;RTC5DLLx64.lib;opencv_world455.lib;expat.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<IgnoreSpecificDefaultLibraries>crypto.lib</IgnoreSpecificDefaultLibraries>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Buzzer.cpp" />
|
||||
<ClCompile Include="camera\GalaxyCamera.cpp" />
|
||||
<ClCompile Include="camera\HBDCamera.cpp" />
|
||||
<ClCompile Include="camera\OPTCamera.cpp" />
|
||||
<ClCompile Include="ChartletManager.cpp" />
|
||||
<ClCompile Include="Communication\Aibus.cpp" />
|
||||
<ClCompile Include="Communication\BaseClient.cpp" />
|
||||
@ -224,9 +231,30 @@
|
||||
<ClCompile Include="DataManage\ClientInfo.h" />
|
||||
<ClCompile Include="DataManage\DataHandle.cpp" />
|
||||
<ClCompile Include="DataManage\StreamServer.cpp" />
|
||||
<ClCompile Include="external\clipper\clipper.cpp" />
|
||||
<ClCompile Include="external\i18n\Entry.cpp" />
|
||||
<ClCompile Include="external\i18n\I18nUtils.cpp" />
|
||||
<ClCompile Include="external\i18n\MO.cpp" />
|
||||
<ClCompile Include="external\minizip\adler32.c" />
|
||||
<ClCompile Include="external\minizip\compress.c" />
|
||||
<ClCompile Include="external\minizip\crc32.c" />
|
||||
<ClCompile Include="external\minizip\deflate.c" />
|
||||
<ClCompile Include="external\minizip\gzclose.c" />
|
||||
<ClCompile Include="external\minizip\gzlib.c" />
|
||||
<ClCompile Include="external\minizip\gzread.c" />
|
||||
<ClCompile Include="external\minizip\gzwrite.c" />
|
||||
<ClCompile Include="external\minizip\infback.c" />
|
||||
<ClCompile Include="external\minizip\inffast.c" />
|
||||
<ClCompile Include="external\minizip\inflate.c" />
|
||||
<ClCompile Include="external\minizip\inftrees.c" />
|
||||
<ClCompile Include="external\minizip\ioapi.c" />
|
||||
<ClCompile Include="external\minizip\iowin32.c" />
|
||||
<ClCompile Include="external\minizip\mztools.c" />
|
||||
<ClCompile Include="external\minizip\trees.c" />
|
||||
<ClCompile Include="external\minizip\uncompr.c" />
|
||||
<ClCompile Include="external\minizip\unzip.c" />
|
||||
<ClCompile Include="external\minizip\zip.c" />
|
||||
<ClCompile Include="external\minizip\zutil.c" />
|
||||
<ClCompile Include="external\openssl\include\openssl\applink.c" />
|
||||
<ClCompile Include="external\QRCode\BitBuffer.cpp" />
|
||||
<ClCompile Include="external\QRCode\QrCode.cpp" />
|
||||
@ -238,6 +266,16 @@
|
||||
<ClCompile Include="external\SQLiteCpp\Exception.cpp" />
|
||||
<ClCompile Include="external\SQLiteCpp\Statement.cpp" />
|
||||
<ClCompile Include="external\SQLiteCpp\Transaction.cpp" />
|
||||
<ClCompile Include="job\BPBinary.cpp" />
|
||||
<ClCompile Include="job\FileProcessor.cpp" />
|
||||
<ClCompile Include="job\H3DFileProcessor.cpp" />
|
||||
<ClCompile Include="job\H3DMetaData.cpp" />
|
||||
<ClCompile Include="job\JobContent.cpp" />
|
||||
<ClCompile Include="job\JobController.cpp" />
|
||||
<ClCompile Include="job\JobFileProcessor.cpp" />
|
||||
<ClCompile Include="job\JobMetaData.cpp" />
|
||||
<ClCompile Include="job\MetaData.cpp" />
|
||||
<ClCompile Include="job\VolumeCalc.cpp" />
|
||||
<ClCompile Include="LanguageManager.cpp" />
|
||||
<ClCompile Include="Logger.cpp" />
|
||||
<ClCompile Include="log\AxisLog.cpp" />
|
||||
@ -269,14 +307,24 @@
|
||||
<ClCompile Include="PLC\SysParam.cpp" />
|
||||
<ClCompile Include="protobuf\stream.grpc.pb.cc" />
|
||||
<ClCompile Include="protobuf\stream.pb.cc" />
|
||||
<ClCompile Include="Purifier\BasePurifier.cpp" />
|
||||
<ClCompile Include="Registration\aes.c" />
|
||||
<ClCompile Include="Registration\GetHDDSerial2.cpp" />
|
||||
<ClCompile Include="Registration\key.cpp" />
|
||||
<ClCompile Include="Registration\md5.cpp" />
|
||||
<ClCompile Include="Registration\Registration.cpp" />
|
||||
<ClCompile Include="Remote\common.pb.cc" />
|
||||
<ClCompile Include="Remote\printers.pb.cc" />
|
||||
<ClCompile Include="Remote\proto_msg.cc" />
|
||||
<ClCompile Include="Remote\RemoteClient.cpp" />
|
||||
<ClCompile Include="ScannerCtrl\BaseCtrl.cpp" />
|
||||
<ClCompile Include="ScannerCtrl\RTC5Scanner.cpp" />
|
||||
<ClCompile Include="ScannerCtrl\Scanner.cpp" />
|
||||
<ClCompile Include="ScannerCtrl\ScannerCtrl.cpp" />
|
||||
<ClCompile Include="ScannerCtrl\ScannerPair.cpp" />
|
||||
<ClCompile Include="SystemInfo.cpp" />
|
||||
<ClCompile Include="Toast.cpp" />
|
||||
<ClCompile Include="utils\CryptHelper.cpp" />
|
||||
<ClCompile Include="utils\DataByte.cpp" />
|
||||
<ClCompile Include="utils\ImageHelper.cpp" />
|
||||
<ClCompile Include="utils\LineFit.cpp" />
|
||||
@ -287,9 +335,14 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="protobuf\stream.proto" />
|
||||
<None Include="Remote\common.proto" />
|
||||
<None Include="Remote\printers.proto" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="Buzzer.h" />
|
||||
<ClInclude Include="camera\GalaxyCamera.h" />
|
||||
<ClInclude Include="camera\HBDCamera.h" />
|
||||
<ClInclude Include="camera\OPTCamera.h" />
|
||||
<ClInclude Include="ChartletManager.h" />
|
||||
<ClInclude Include="Communication\Aibus.h" />
|
||||
<ClInclude Include="Communication\BaseClient.h" />
|
||||
@ -385,10 +438,85 @@
|
||||
<ClInclude Include="Controler\Controler.h" />
|
||||
<ClInclude Include="DataManage\DataHandle.h" />
|
||||
<ClInclude Include="DataManage\StreamServer.h" />
|
||||
<ClInclude Include="external\clipper\clipper.hpp" />
|
||||
<ClInclude Include="external\expat\include\ascii.h" />
|
||||
<ClInclude Include="external\expat\include\asciitab.h" />
|
||||
<ClInclude Include="external\expat\include\expat.h" />
|
||||
<ClInclude Include="external\expat\include\expat_external.h" />
|
||||
<ClInclude Include="external\expat\include\iasciitab.h" />
|
||||
<ClInclude Include="external\expat\include\internal.h" />
|
||||
<ClInclude Include="external\expat\include\latin1tab.h" />
|
||||
<ClInclude Include="external\expat\include\nametab.h" />
|
||||
<ClInclude Include="external\expat\include\siphash.h" />
|
||||
<ClInclude Include="external\expat\include\utf8tab.h" />
|
||||
<ClInclude Include="external\expat\include\winconfig.h" />
|
||||
<ClInclude Include="external\expat\include\xmlrole.h" />
|
||||
<ClInclude Include="external\expat\include\xmltok.h" />
|
||||
<ClInclude Include="external\expat\include\xmltok_impl.h" />
|
||||
<ClInclude Include="external\Galaxy\include\GalaxyException.h" />
|
||||
<ClInclude Include="external\Galaxy\include\GalaxyIncludes.h" />
|
||||
<ClInclude Include="external\Galaxy\include\GXDeviceInfo.h" />
|
||||
<ClInclude Include="external\Galaxy\include\GXDeviceInfoVector.h" />
|
||||
<ClInclude Include="external\Galaxy\include\GXIAPIBase.h" />
|
||||
<ClInclude Include="external\Galaxy\include\GXSmartPtr.h" />
|
||||
<ClInclude Include="external\Galaxy\include\GXStringCPP.h" />
|
||||
<ClInclude Include="external\Galaxy\include\GXStringVector.h" />
|
||||
<ClInclude Include="external\Galaxy\include\IBoolFeature.h" />
|
||||
<ClInclude Include="external\Galaxy\include\ICaptureEventHandler.h" />
|
||||
<ClInclude Include="external\Galaxy\include\ICommandFeature.h" />
|
||||
<ClInclude Include="external\Galaxy\include\IDeviceOfflineEventHandler.h" />
|
||||
<ClInclude Include="external\Galaxy\include\IEnumFeature.h" />
|
||||
<ClInclude Include="external\Galaxy\include\IFeatureEventHandler.h" />
|
||||
<ClInclude Include="external\Galaxy\include\IFloatFeature.h" />
|
||||
<ClInclude Include="external\Galaxy\include\IGXDevice.h" />
|
||||
<ClInclude Include="external\Galaxy\include\IGXDeviceInfo.h" />
|
||||
<ClInclude Include="external\Galaxy\include\IGXFactory.h" />
|
||||
<ClInclude Include="external\Galaxy\include\IGXFeatureControl.h" />
|
||||
<ClInclude Include="external\Galaxy\include\IGXStream.h" />
|
||||
<ClInclude Include="external\Galaxy\include\IImageData.h" />
|
||||
<ClInclude Include="external\Galaxy\include\IImageProcessConfig.h" />
|
||||
<ClInclude Include="external\Galaxy\include\IIntFeature.h" />
|
||||
<ClInclude Include="external\Galaxy\include\IRegisterFeature.h" />
|
||||
<ClInclude Include="external\Galaxy\include\IStringFeature.h" />
|
||||
<ClInclude Include="external\i18n\Entry.h" />
|
||||
<ClInclude Include="external\i18n\I18nDefine.h" />
|
||||
<ClInclude Include="external\i18n\I18nUtils.h" />
|
||||
<ClInclude Include="external\i18n\MO.h" />
|
||||
<ClInclude Include="external\libjpeg-turbo\include\cderror.h" />
|
||||
<ClInclude Include="external\libjpeg-turbo\include\cdjpeg.h" />
|
||||
<ClInclude Include="external\libjpeg-turbo\include\cmyk.h" />
|
||||
<ClInclude Include="external\libjpeg-turbo\include\jchuff.h" />
|
||||
<ClInclude Include="external\libjpeg-turbo\include\jconfig.h" />
|
||||
<ClInclude Include="external\libjpeg-turbo\include\jdcoefct.h" />
|
||||
<ClInclude Include="external\libjpeg-turbo\include\jdct.h" />
|
||||
<ClInclude Include="external\libjpeg-turbo\include\jdhuff.h" />
|
||||
<ClInclude Include="external\libjpeg-turbo\include\jdmainct.h" />
|
||||
<ClInclude Include="external\libjpeg-turbo\include\jdmaster.h" />
|
||||
<ClInclude Include="external\libjpeg-turbo\include\jdsample.h" />
|
||||
<ClInclude Include="external\libjpeg-turbo\include\jerror.h" />
|
||||
<ClInclude Include="external\libjpeg-turbo\include\jmorecfg.h" />
|
||||
<ClInclude Include="external\libjpeg-turbo\include\jpeglib.h" />
|
||||
<ClInclude Include="external\libjpeg-turbo\include\jversion.h" />
|
||||
<ClInclude Include="external\libjpeg-turbo\include\tjutil.h" />
|
||||
<ClInclude Include="external\libjpeg-turbo\include\transupp.h" />
|
||||
<ClInclude Include="external\libjpeg-turbo\include\turbojpeg.h" />
|
||||
<ClInclude Include="external\minizip\crc32.h" />
|
||||
<ClInclude Include="external\minizip\crypt.h" />
|
||||
<ClInclude Include="external\minizip\deflate.h" />
|
||||
<ClInclude Include="external\minizip\gzguts.h" />
|
||||
<ClInclude Include="external\minizip\inffast.h" />
|
||||
<ClInclude Include="external\minizip\inffixed.h" />
|
||||
<ClInclude Include="external\minizip\inflate.h" />
|
||||
<ClInclude Include="external\minizip\inftrees.h" />
|
||||
<ClInclude Include="external\minizip\ioapi.h" />
|
||||
<ClInclude Include="external\minizip\iowin32.h" />
|
||||
<ClInclude Include="external\minizip\mztools.h" />
|
||||
<ClInclude Include="external\minizip\trees.h" />
|
||||
<ClInclude Include="external\minizip\unzip.h" />
|
||||
<ClInclude Include="external\minizip\zconf.h" />
|
||||
<ClInclude Include="external\minizip\zip.h" />
|
||||
<ClInclude Include="external\minizip\zlib.h" />
|
||||
<ClInclude Include="external\minizip\zutil.h" />
|
||||
<ClInclude Include="external\openssl\include\openssl\aes.h" />
|
||||
<ClInclude Include="external\openssl\include\openssl\asn1.h" />
|
||||
<ClInclude Include="external\openssl\include\openssl\asn1t.h" />
|
||||
@ -464,6 +592,8 @@
|
||||
<ClInclude Include="external\openssl\include\openssl\x509.h" />
|
||||
<ClInclude Include="external\openssl\include\openssl\x509v3.h" />
|
||||
<ClInclude Include="external\openssl\include\openssl\x509_vfy.h" />
|
||||
<ClInclude Include="external\OPT\include\IntTypes.h" />
|
||||
<ClInclude Include="external\OPT\include\SDK.h" />
|
||||
<ClInclude Include="external\QRCode\BitBuffer.hpp" />
|
||||
<ClInclude Include="external\QRCode\QrCode.hpp" />
|
||||
<ClInclude Include="external\QRCode\QrSegment.hpp" />
|
||||
@ -484,6 +614,16 @@
|
||||
<ClInclude Include="external\vl\include\GL\khronos_wglext.h" />
|
||||
<ClInclude Include="external\vl\include\GL\mesa_gl.h" />
|
||||
<ClInclude Include="global.h" />
|
||||
<ClInclude Include="job\BPBinary.h" />
|
||||
<ClInclude Include="job\FileProcessor.h" />
|
||||
<ClInclude Include="job\H3DFileProcessor.h" />
|
||||
<ClInclude Include="job\H3DMetaData.h" />
|
||||
<ClInclude Include="job\JobContent.h" />
|
||||
<ClInclude Include="job\JobController.h" />
|
||||
<ClInclude Include="job\JobFileProcessor.h" />
|
||||
<ClInclude Include="job\JobMetaData.h" />
|
||||
<ClInclude Include="job\MetaData.h" />
|
||||
<ClInclude Include="job\VolumeCalc.h" />
|
||||
<ClInclude Include="LanguageManager.h" />
|
||||
<ClInclude Include="Logger.h" />
|
||||
<ClInclude Include="log\AxisLog.h" />
|
||||
@ -522,18 +662,29 @@
|
||||
<ClInclude Include="PLC\SysParam.h" />
|
||||
<ClInclude Include="protobuf\stream.grpc.pb.h" />
|
||||
<ClInclude Include="protobuf\stream.pb.h" />
|
||||
<ClInclude Include="Purifier\BasePurifier.h" />
|
||||
<ClInclude Include="Registration\aes.h" />
|
||||
<ClInclude Include="Registration\aes.hpp" />
|
||||
<ClInclude Include="Registration\HardDriveSerialNumber.h" />
|
||||
<ClInclude Include="Registration\key.h" />
|
||||
<ClInclude Include="Registration\md5.h" />
|
||||
<ClInclude Include="Registration\Registration.h" />
|
||||
<ClInclude Include="Remote\common.pb.h" />
|
||||
<ClInclude Include="Remote\printers.pb.h" />
|
||||
<ClInclude Include="Remote\proto_msg.h" />
|
||||
<ClInclude Include="Remote\RemoteClient.h" />
|
||||
<ClInclude Include="resource.h" />
|
||||
<ClInclude Include="ScannerCtrl\BaseCtrl.h" />
|
||||
<ClInclude Include="ScannerCtrl\IntelliScanState.h" />
|
||||
<ClInclude Include="ScannerCtrl\RTC5Scanner.h" />
|
||||
<ClInclude Include="ScannerCtrl\Scanner.h" />
|
||||
<ClInclude Include="ScannerCtrl\ScannerCtrl.h" />
|
||||
<ClInclude Include="ScannerCtrl\ScannerPair.h" />
|
||||
<ClInclude Include="stdafx.h" />
|
||||
<ClInclude Include="SystemInfo.h" />
|
||||
<ClInclude Include="Toast.h" />
|
||||
<ClInclude Include="utils\Average.h" />
|
||||
<ClInclude Include="utils\CryptHelper.h" />
|
||||
<ClInclude Include="utils\DataByte.h" />
|
||||
<ClInclude Include="utils\dirent.h" />
|
||||
<ClInclude Include="utils\ImageHelper.h" />
|
||||
|
@ -83,6 +83,51 @@
|
||||
<Filter Include="ScannerCtrl">
|
||||
<UniqueIdentifier>{5b502dd4-fc0d-4177-89fa-babb40b7ab3c}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="Remote">
|
||||
<UniqueIdentifier>{763f95cb-5491-412d-a378-17b2bd22e6f5}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="external\expat">
|
||||
<UniqueIdentifier>{5a707383-25d1-4afe-b73d-4ac460209491}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="external\expat\include">
|
||||
<UniqueIdentifier>{b915866f-756f-4eb8-92e9-1cd51a6f043e}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="Purifier">
|
||||
<UniqueIdentifier>{26216dd7-88fe-48a6-9b10-d971d30f587d}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="job">
|
||||
<UniqueIdentifier>{6cd20316-c1cd-40f5-a6c7-687e574286ff}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="external\clipper">
|
||||
<UniqueIdentifier>{9aa5b8cd-b131-4cf0-a226-c6fac2eedeb7}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="camera">
|
||||
<UniqueIdentifier>{0d5f99eb-9d96-41bd-b5bf-916ff3f00366}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="external\Galaxy">
|
||||
<UniqueIdentifier>{b96a3fdb-daff-4253-9164-0699dc467c3f}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="external\Galaxy\include">
|
||||
<UniqueIdentifier>{7ce4a3b1-ded4-4bd8-a34b-d3d82d75d2c0}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="external\OPT">
|
||||
<UniqueIdentifier>{d81b895d-2126-4619-bd4a-c4a57edc8b6d}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="external\OPT\include">
|
||||
<UniqueIdentifier>{cfa92ab0-1138-4eff-9f4f-962191cf7bbc}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="external\libjpeg-turbo">
|
||||
<UniqueIdentifier>{7923068c-4409-4955-9a91-dd85ebb1f168}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="external\libjpeg-turbo\include">
|
||||
<UniqueIdentifier>{a57638c8-9047-46aa-b370-3044f68972bd}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="external\minizip">
|
||||
<UniqueIdentifier>{a3088ef4-42da-4448-88b5-d86ab32e47f2}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="external\NewFilter1">
|
||||
<UniqueIdentifier>{b3261719-dd99-4a4b-8621-cb665ae76036}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="main.cpp" />
|
||||
@ -503,11 +548,149 @@
|
||||
<ClCompile Include="ScannerCtrl\BaseCtrl.cpp">
|
||||
<Filter>ScannerCtrl</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Remote\RemoteClient.cpp">
|
||||
<Filter>Remote</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Remote\common.pb.cc">
|
||||
<Filter>Remote</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Remote\printers.pb.cc">
|
||||
<Filter>Remote</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Remote\proto_msg.cc">
|
||||
<Filter>Remote</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="ScannerCtrl\RTC5Scanner.cpp">
|
||||
<Filter>ScannerCtrl</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="ScannerCtrl\Scanner.cpp">
|
||||
<Filter>ScannerCtrl</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="ScannerCtrl\ScannerCtrl.cpp">
|
||||
<Filter>ScannerCtrl</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="ScannerCtrl\ScannerPair.cpp">
|
||||
<Filter>ScannerCtrl</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="Purifier\BasePurifier.cpp">
|
||||
<Filter>Purifier</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="job\BPBinary.cpp">
|
||||
<Filter>job</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="job\FileProcessor.cpp">
|
||||
<Filter>job</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="job\H3DFileProcessor.cpp">
|
||||
<Filter>job</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="job\H3DMetaData.cpp">
|
||||
<Filter>job</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="job\JobContent.cpp">
|
||||
<Filter>job</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="job\JobController.cpp">
|
||||
<Filter>job</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="job\JobFileProcessor.cpp">
|
||||
<Filter>job</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="job\JobMetaData.cpp">
|
||||
<Filter>job</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="job\MetaData.cpp">
|
||||
<Filter>job</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="job\VolumeCalc.cpp">
|
||||
<Filter>job</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="external\clipper\clipper.cpp">
|
||||
<Filter>external\clipper</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="camera\GalaxyCamera.cpp">
|
||||
<Filter>camera</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="camera\HBDCamera.cpp">
|
||||
<Filter>camera</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="camera\OPTCamera.cpp">
|
||||
<Filter>camera</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="utils\CryptHelper.cpp">
|
||||
<Filter>utils</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="external\minizip\adler32.c">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="external\minizip\compress.c">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="external\minizip\crc32.c">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="external\minizip\deflate.c">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="external\minizip\gzclose.c">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="external\minizip\gzlib.c">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="external\minizip\gzread.c">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="external\minizip\gzwrite.c">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="external\minizip\infback.c">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="external\minizip\inffast.c">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="external\minizip\inflate.c">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="external\minizip\inftrees.c">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="external\minizip\ioapi.c">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="external\minizip\iowin32.c">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="external\minizip\mztools.c">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="external\minizip\trees.c">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="external\minizip\uncompr.c">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="external\minizip\unzip.c">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="external\minizip\zip.c">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="external\minizip\zutil.c">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="protobuf\stream.proto">
|
||||
<Filter>protobuf</Filter>
|
||||
</None>
|
||||
<None Include="Remote\common.proto">
|
||||
<Filter>Remote</Filter>
|
||||
</None>
|
||||
<None Include="Remote\printers.proto">
|
||||
<Filter>Remote</Filter>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="DataManage\StreamServer.h">
|
||||
@ -1249,6 +1432,309 @@
|
||||
<ClInclude Include="ScannerCtrl\BaseCtrl.h">
|
||||
<Filter>ScannerCtrl</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="Remote\RemoteClient.h">
|
||||
<Filter>Remote</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="Remote\common.pb.h">
|
||||
<Filter>Remote</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="Remote\printers.pb.h">
|
||||
<Filter>Remote</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="Remote\proto_msg.h">
|
||||
<Filter>Remote</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="ScannerCtrl\IntelliScanState.h">
|
||||
<Filter>ScannerCtrl</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="ScannerCtrl\RTC5Scanner.h">
|
||||
<Filter>ScannerCtrl</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="ScannerCtrl\Scanner.h">
|
||||
<Filter>ScannerCtrl</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="ScannerCtrl\ScannerCtrl.h">
|
||||
<Filter>ScannerCtrl</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="ScannerCtrl\ScannerPair.h">
|
||||
<Filter>ScannerCtrl</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\expat\include\ascii.h">
|
||||
<Filter>external\expat\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\expat\include\asciitab.h">
|
||||
<Filter>external\expat\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\expat\include\expat.h">
|
||||
<Filter>external\expat\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\expat\include\expat_external.h">
|
||||
<Filter>external\expat\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\expat\include\iasciitab.h">
|
||||
<Filter>external\expat\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\expat\include\internal.h">
|
||||
<Filter>external\expat\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\expat\include\latin1tab.h">
|
||||
<Filter>external\expat\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\expat\include\nametab.h">
|
||||
<Filter>external\expat\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\expat\include\siphash.h">
|
||||
<Filter>external\expat\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\expat\include\utf8tab.h">
|
||||
<Filter>external\expat\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\expat\include\winconfig.h">
|
||||
<Filter>external\expat\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\expat\include\xmlrole.h">
|
||||
<Filter>external\expat\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\expat\include\xmltok.h">
|
||||
<Filter>external\expat\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\expat\include\xmltok_impl.h">
|
||||
<Filter>external\expat\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="Purifier\BasePurifier.h">
|
||||
<Filter>Purifier</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="job\BPBinary.h">
|
||||
<Filter>job</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="job\FileProcessor.h">
|
||||
<Filter>job</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="job\H3DFileProcessor.h">
|
||||
<Filter>job</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="job\H3DMetaData.h">
|
||||
<Filter>job</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="job\JobContent.h">
|
||||
<Filter>job</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="job\JobController.h">
|
||||
<Filter>job</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="job\JobFileProcessor.h">
|
||||
<Filter>job</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="job\JobMetaData.h">
|
||||
<Filter>job</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="job\MetaData.h">
|
||||
<Filter>job</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="job\VolumeCalc.h">
|
||||
<Filter>job</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\clipper\clipper.hpp">
|
||||
<Filter>external\clipper</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="camera\GalaxyCamera.h">
|
||||
<Filter>camera</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="camera\HBDCamera.h">
|
||||
<Filter>camera</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="camera\OPTCamera.h">
|
||||
<Filter>camera</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\Galaxy\include\GalaxyException.h">
|
||||
<Filter>external\Galaxy\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\Galaxy\include\GalaxyIncludes.h">
|
||||
<Filter>external\Galaxy\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\Galaxy\include\GXDeviceInfo.h">
|
||||
<Filter>external\Galaxy\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\Galaxy\include\GXDeviceInfoVector.h">
|
||||
<Filter>external\Galaxy\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\Galaxy\include\GXIAPIBase.h">
|
||||
<Filter>external\Galaxy\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\Galaxy\include\GXSmartPtr.h">
|
||||
<Filter>external\Galaxy\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\Galaxy\include\GXStringCPP.h">
|
||||
<Filter>external\Galaxy\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\Galaxy\include\GXStringVector.h">
|
||||
<Filter>external\Galaxy\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\Galaxy\include\IBoolFeature.h">
|
||||
<Filter>external\Galaxy\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\Galaxy\include\ICaptureEventHandler.h">
|
||||
<Filter>external\Galaxy\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\Galaxy\include\ICommandFeature.h">
|
||||
<Filter>external\Galaxy\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\Galaxy\include\IDeviceOfflineEventHandler.h">
|
||||
<Filter>external\Galaxy\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\Galaxy\include\IEnumFeature.h">
|
||||
<Filter>external\Galaxy\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\Galaxy\include\IFeatureEventHandler.h">
|
||||
<Filter>external\Galaxy\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\Galaxy\include\IFloatFeature.h">
|
||||
<Filter>external\Galaxy\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\Galaxy\include\IGXDevice.h">
|
||||
<Filter>external\Galaxy\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\Galaxy\include\IGXDeviceInfo.h">
|
||||
<Filter>external\Galaxy\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\Galaxy\include\IGXFactory.h">
|
||||
<Filter>external\Galaxy\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\Galaxy\include\IGXFeatureControl.h">
|
||||
<Filter>external\Galaxy\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\Galaxy\include\IGXStream.h">
|
||||
<Filter>external\Galaxy\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\Galaxy\include\IImageData.h">
|
||||
<Filter>external\Galaxy\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\Galaxy\include\IImageProcessConfig.h">
|
||||
<Filter>external\Galaxy\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\Galaxy\include\IIntFeature.h">
|
||||
<Filter>external\Galaxy\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\Galaxy\include\IRegisterFeature.h">
|
||||
<Filter>external\Galaxy\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\Galaxy\include\IStringFeature.h">
|
||||
<Filter>external\Galaxy\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\OPT\include\IntTypes.h">
|
||||
<Filter>external\OPT\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\OPT\include\SDK.h">
|
||||
<Filter>external\OPT\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\libjpeg-turbo\include\cderror.h">
|
||||
<Filter>external\libjpeg-turbo\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\libjpeg-turbo\include\cdjpeg.h">
|
||||
<Filter>external\libjpeg-turbo\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\libjpeg-turbo\include\cmyk.h">
|
||||
<Filter>external\libjpeg-turbo\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\libjpeg-turbo\include\jchuff.h">
|
||||
<Filter>external\libjpeg-turbo\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\libjpeg-turbo\include\jconfig.h">
|
||||
<Filter>external\libjpeg-turbo\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\libjpeg-turbo\include\jdcoefct.h">
|
||||
<Filter>external\libjpeg-turbo\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\libjpeg-turbo\include\jdct.h">
|
||||
<Filter>external\libjpeg-turbo\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\libjpeg-turbo\include\jdhuff.h">
|
||||
<Filter>external\libjpeg-turbo\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\libjpeg-turbo\include\jdmainct.h">
|
||||
<Filter>external\libjpeg-turbo\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\libjpeg-turbo\include\jdmaster.h">
|
||||
<Filter>external\libjpeg-turbo\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\libjpeg-turbo\include\jdsample.h">
|
||||
<Filter>external\libjpeg-turbo\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\libjpeg-turbo\include\jerror.h">
|
||||
<Filter>external\libjpeg-turbo\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\libjpeg-turbo\include\jmorecfg.h">
|
||||
<Filter>external\libjpeg-turbo\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\libjpeg-turbo\include\jpeglib.h">
|
||||
<Filter>external\libjpeg-turbo\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\libjpeg-turbo\include\jversion.h">
|
||||
<Filter>external\libjpeg-turbo\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\libjpeg-turbo\include\tjutil.h">
|
||||
<Filter>external\libjpeg-turbo\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\libjpeg-turbo\include\transupp.h">
|
||||
<Filter>external\libjpeg-turbo\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\libjpeg-turbo\include\turbojpeg.h">
|
||||
<Filter>external\libjpeg-turbo\include</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="utils\CryptHelper.h">
|
||||
<Filter>utils</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\minizip\crc32.h">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\minizip\crypt.h">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\minizip\deflate.h">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\minizip\gzguts.h">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\minizip\inffast.h">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\minizip\inffixed.h">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\minizip\inflate.h">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\minizip\inftrees.h">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\minizip\ioapi.h">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\minizip\iowin32.h">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\minizip\mztools.h">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\minizip\trees.h">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\minizip\unzip.h">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\minizip\zconf.h">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\minizip\zip.h">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\minizip\zlib.h">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="external\minizip\zutil.h">
|
||||
<Filter>external\minizip</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Text Include="说明.txt" />
|
||||
|
@ -1,4 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup />
|
||||
<PropertyGroup>
|
||||
<ShowAllFiles>true</ShowAllFiles>
|
||||
</PropertyGroup>
|
||||
</Project>
|
69
PrintS/Purifier/BasePurifier.cpp
Normal file
69
PrintS/Purifier/BasePurifier.cpp
Normal file
@ -0,0 +1,69 @@
|
||||
#include "BasePurifier.h"
|
||||
#include "../config/ConfigManager.h"
|
||||
#include "../SystemInfo.h"
|
||||
#include <atlbase.h>
|
||||
#include "../ScannerCtrl/BaseCtrl.h"
|
||||
|
||||
|
||||
BasePurifier::BasePurifier()
|
||||
:m_Thread(INVALID_HANDLE_VALUE)
|
||||
, m_RunFlag(false)
|
||||
, m_PurifierWinShow(false)
|
||||
{
|
||||
m_ExtCfg = ConfigManager::GetInstance()->GetExtCfg();
|
||||
m_IOCfgWrapper = ConfigManager::GetInstance()->GetIoCfgWrapper();
|
||||
m_AlarmCfgWrapper = ConfigManager::GetInstance()->GetAlarmCfg();
|
||||
m_CycleTick = 80;
|
||||
}
|
||||
|
||||
|
||||
BasePurifier::~BasePurifier()
|
||||
{
|
||||
m_RunFlag = false;
|
||||
if (m_Thread != INVALID_HANDLE_VALUE)
|
||||
{
|
||||
if (WaitForSingleObject(m_Thread, 500) == WAIT_TIMEOUT)
|
||||
{
|
||||
TerminateThread(m_Thread, 1);
|
||||
}
|
||||
CloseHandle(m_Thread);
|
||||
m_Thread = INVALID_HANDLE_VALUE;
|
||||
}
|
||||
}
|
||||
|
||||
void BasePurifier::Startup()
|
||||
{
|
||||
m_RunFlag = true;
|
||||
m_Thread = AtlCreateThread(WorkProc, this);
|
||||
}
|
||||
|
||||
DWORD WINAPI BasePurifier::WorkProc(BasePurifier* _this)
|
||||
{
|
||||
if (_this)
|
||||
{
|
||||
_this->WorkRun();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void BasePurifier::WorkRun()
|
||||
{
|
||||
while (m_RunFlag) {
|
||||
UpdateShowStat();
|
||||
if (BaseCtrl::IsStart() || BaseCtrl::IsPause()) {
|
||||
AutoCtrlWhenPrint();
|
||||
}
|
||||
else if (BaseCtrl::IsStandBy())
|
||||
{
|
||||
AutoCtrlWhenStanby();
|
||||
}
|
||||
UpdateShowStat();
|
||||
AutoCtrl();
|
||||
|
||||
if (!m_IOCfgWrapper->m_PrintDoorLock->IsActive() && m_AlarmCfgWrapper->m_PrintCabinDoorOpenAlarm->m_IsEnable) {
|
||||
AutoCtrlWhenDoorOpen();
|
||||
}
|
||||
|
||||
Sleep(m_CycleTick);
|
||||
}
|
||||
}
|
69
PrintS/Purifier/BasePurifier.h
Normal file
69
PrintS/Purifier/BasePurifier.h
Normal file
@ -0,0 +1,69 @@
|
||||
#pragma once
|
||||
#include "../config/bean/ExtCfg.h"
|
||||
#include "../LanguageManager.h"
|
||||
#include <windows.h>
|
||||
#include "../config/bean/IOCfg.h"
|
||||
#include "../config/bean/AlarmCfg.h"
|
||||
|
||||
class BasePurifier
|
||||
{
|
||||
public:
|
||||
BasePurifier();
|
||||
virtual ~BasePurifier();
|
||||
|
||||
virtual void Init() = 0;
|
||||
virtual void UpdateShowStat() = 0;
|
||||
|
||||
virtual void StartAutoDeoxygen() = 0;
|
||||
virtual void StopAutoDeoxygen() = 0;
|
||||
virtual bool IsAutoDeoxygen() = 0;
|
||||
virtual void AutoCtrl() = 0;
|
||||
virtual void AutoCtrlWhenPrint() = 0;
|
||||
virtual void AutoCtrlWhenDoorOpen() = 0;
|
||||
virtual void AutoCtrlWhenStanby() = 0;
|
||||
virtual void HandlePrintFinish() = 0;
|
||||
virtual bool HandleReadyPrint(bool startAfterPause, unsigned int& deoxytime) = 0;
|
||||
virtual void HandlePrintStop() = 0;
|
||||
|
||||
virtual double GetWindValue(double dvalue) { return dvalue; }
|
||||
virtual void DrawUI() = 0;
|
||||
virtual void DrawConfig() {};
|
||||
virtual string GetWindText() { return _(u8"循环风速:%.2f m/s"); }
|
||||
virtual void BlowBackNotiry(){}
|
||||
virtual bool IsConnectAlarm() { return false; }
|
||||
//MachineCfg::PulifierType GetType() {
|
||||
// return m_Type;
|
||||
//}
|
||||
|
||||
virtual bool IsWindActive() { return false; }
|
||||
virtual bool IsCoverWindSet() { return false; }
|
||||
virtual void SetCoverWind(bool bvalue) {}
|
||||
virtual bool IsCoverWindRecover() { return true; }
|
||||
virtual bool IsCoverWindSlow() { return true; }
|
||||
virtual void ResetSlowWind() {}
|
||||
virtual void ResetSlwoWindSignal(bool precover){}
|
||||
|
||||
void Startup();
|
||||
|
||||
virtual float GetFanFreq() { return 0.0f; }
|
||||
virtual void CheckInternalAlarm() {}
|
||||
|
||||
virtual void DrawFinishReportRel() {}
|
||||
virtual int GetFilterUseTime() { return 0; }
|
||||
private:
|
||||
static DWORD WINAPI WorkProc(BasePurifier* _this);
|
||||
void WorkRun();
|
||||
|
||||
public:
|
||||
bool m_PurifierWinShow;
|
||||
|
||||
protected:
|
||||
ExtCfg* m_ExtCfg;
|
||||
HANDLE m_Thread;
|
||||
bool m_RunFlag;
|
||||
IOCfgWrapper* m_IOCfgWrapper;
|
||||
AlarmCfgWrapper* m_AlarmCfgWrapper;
|
||||
int m_CycleTick;
|
||||
//MachineCfg::PulifierType m_Type;
|
||||
};
|
||||
|
1197
PrintS/Purifier/G4Purifier.cpp
Normal file
1197
PrintS/Purifier/G4Purifier.cpp
Normal file
File diff suppressed because it is too large
Load Diff
16
PrintS/Purifier/G4Purifier.h
Normal file
16
PrintS/Purifier/G4Purifier.h
Normal file
@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
#include "XTPurifier.h"
|
||||
class G4Purifier :public XTPurifier
|
||||
{
|
||||
public:
|
||||
G4Purifier(ScannerCtrl* scannerCtrl);
|
||||
~G4Purifier();
|
||||
void Init();
|
||||
|
||||
void DrawUI();
|
||||
void CheckInternalAlarm();
|
||||
bool IsLockPurifier();
|
||||
private:
|
||||
void DrawUserUI();
|
||||
void DrawAdminUI();
|
||||
};
|
1187
PrintS/Purifier/HBD3Purifier.cpp
Normal file
1187
PrintS/Purifier/HBD3Purifier.cpp
Normal file
File diff suppressed because it is too large
Load Diff
18
PrintS/Purifier/HBD3Purifier.h
Normal file
18
PrintS/Purifier/HBD3Purifier.h
Normal file
@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
#include "XTPurifier.h"
|
||||
|
||||
class HBD3Purifier:public XTPurifier
|
||||
{
|
||||
public:
|
||||
HBD3Purifier(ScannerCtrl* scannerCtrl);
|
||||
~HBD3Purifier();
|
||||
void Init();
|
||||
|
||||
void DrawUI();
|
||||
void CheckInternalAlarm();
|
||||
bool IsLockPurifier();
|
||||
private:
|
||||
void DrawUserUI();
|
||||
void DrawAdminUI();
|
||||
};
|
||||
|
1745
PrintS/Purifier/XTPurifier.cpp
Normal file
1745
PrintS/Purifier/XTPurifier.cpp
Normal file
File diff suppressed because it is too large
Load Diff
70
PrintS/Purifier/XTPurifier.h
Normal file
70
PrintS/Purifier/XTPurifier.h
Normal file
@ -0,0 +1,70 @@
|
||||
#pragma once
|
||||
#include "../Communication/PurifierClient.h"
|
||||
#include "../ScannerCtrl/ScannerCtrl.h"
|
||||
#include "../ui/UIBean.h"
|
||||
class XTPurifier:public BasePurifier
|
||||
{
|
||||
public:
|
||||
XTPurifier(ScannerCtrl* scannerCtrl);
|
||||
~XTPurifier();
|
||||
void Init();
|
||||
void UpdateShowStat();
|
||||
|
||||
void StartAutoDeoxygen();
|
||||
void StopAutoDeoxygen();
|
||||
bool IsAutoDeoxygen();
|
||||
void AutoCtrl();
|
||||
void AutoCtrlWhenPrint();
|
||||
void AutoCtrlWhenDoorOpen();
|
||||
void AutoCtrlWhenStanby();
|
||||
void HandlePrintFinish();
|
||||
void HandlePrintStop();
|
||||
bool HandleReadyPrint(bool startAfterPause, unsigned int& deoxytime);
|
||||
|
||||
PurifierClient* GetClient() { return m_Client; }
|
||||
double GetWindValue(double dvalue);
|
||||
void DrawUI();
|
||||
string GetWindText() { return _(u8"循环风量:%.2f M3/H"); }
|
||||
void DrawConfig();
|
||||
bool IsConnectAlarm();
|
||||
|
||||
virtual bool IsWindActive();
|
||||
bool IsCoverWindSet();
|
||||
virtual void SetCoverWind(bool bvalue);
|
||||
virtual bool IsCoverWindRecover();
|
||||
virtual bool IsCoverWindSlow();
|
||||
virtual void ResetSlowWind();
|
||||
virtual void ResetSlwoWindSignal(bool precover);
|
||||
|
||||
float GetFanFreq() { return m_State.fanFreq; }
|
||||
void CheckInternalAlarm();
|
||||
//void DrawFinishReportRel();
|
||||
int GetFilterUseTime();
|
||||
private:
|
||||
void DrawUserUI();
|
||||
void DrawAdminUI();
|
||||
public:
|
||||
float m_LastDeoxygenTime;
|
||||
protected:
|
||||
PurifierClient* m_Client;
|
||||
Purifierstat_XT m_State;
|
||||
ScannerCtrl* m_ScannerCtrl;
|
||||
RunCfg* m_RunCfg;
|
||||
|
||||
IOCfgWrapper* m_IOCfgWrapper;
|
||||
MachineCfg* m_MachineCfg;
|
||||
AlarmCfgWrapper* m_AlarmCfgWrapper;
|
||||
|
||||
bool m_IsDeoxygenStarted;
|
||||
uint64_t m_LastStartDeoxygenTime;
|
||||
bool m_HadCalcDeoxygenTime;
|
||||
PurifierShowBean m_PurifierShowBean;
|
||||
bool m_PreConnectState;
|
||||
uint64_t m_ConnectAlarmTick;
|
||||
int m_ConnectAlarmCountTick;
|
||||
uint64_t m_DudestingAlarmTick;
|
||||
|
||||
bool m_ManualCheckAirTightness;
|
||||
short m_LastKeepAlive;
|
||||
};
|
||||
|
1010
PrintS/Remote/RemoteClient.cpp
Normal file
1010
PrintS/Remote/RemoteClient.cpp
Normal file
File diff suppressed because it is too large
Load Diff
113
PrintS/Remote/RemoteClient.h
Normal file
113
PrintS/Remote/RemoteClient.h
Normal file
@ -0,0 +1,113 @@
|
||||
#pragma once
|
||||
#include "printers.pb.h"
|
||||
#include "../external/SocketHandle/SocketHandle.h"
|
||||
#include "../config/ConfigManager.h"
|
||||
#include "../job/JobController.h"
|
||||
#include "../ScannerCtrl/ScannerCtrl.h"
|
||||
#include <string>
|
||||
#include <queue>
|
||||
#include <map>
|
||||
#include "../Communication/BaseClient.h"
|
||||
#include "../config/bean/AlarmCfg.h"
|
||||
#include "../camera/HBDCamera.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
class RemoteClient :public IConnect
|
||||
{
|
||||
public:
|
||||
RemoteClient(JobController* jobController, ScannerCtrl* sc);
|
||||
~RemoteClient();
|
||||
void Init();
|
||||
void StartRemote();
|
||||
void StopRemote();
|
||||
bool AddSendMessage(PrinterMsg::HMessage* msg);
|
||||
|
||||
void SendStateChangeMsg();
|
||||
void SendAlarmMsg(AlarmShowInfo* info);
|
||||
//oid SendJobStateMsg(void);
|
||||
//void AddBinDataBlock(size_t layer_cnt, size_t layer, BPBinary::BinDataBlock* bdb);
|
||||
//void SendDataBlock(size_t layer_cnt, size_t layer);
|
||||
//void SendJobParamMsg(void);
|
||||
|
||||
void CtrlStart() { StartRemote(); };
|
||||
void CtrlStop() { StopRemote(); };
|
||||
CommunicationCfg* GetConfig() {
|
||||
return m_Config;
|
||||
}
|
||||
void SetCamera(HBDCamera* camera) { m_Camera = camera; }
|
||||
|
||||
bool IsLogined() { return m_IsLogin; }
|
||||
|
||||
bool IsNeedSendAlarm() { return m_NeedSendAlarm; }
|
||||
void SetNeedSendAlarm(bool bv) { m_NeedSendAlarm = bv; }
|
||||
bool IsNeedSendFinish() { return m_NeedSendFinish; }
|
||||
void SetNeedSendFinish(bool bv) { m_NeedSendFinish = bv; }
|
||||
private:
|
||||
static DWORD WINAPI RemoteProc(RemoteClient* _this);
|
||||
void RemoteRun();
|
||||
static DWORD WINAPI ReadProc(RemoteClient* _this);
|
||||
void ReadRun();
|
||||
static DWORD WINAPI WriteProc(RemoteClient* _this);
|
||||
void WriteRun();
|
||||
|
||||
void StartWrite();
|
||||
void StopWrite();
|
||||
void StartRead();
|
||||
void StopRead();
|
||||
bool CheckLogin();
|
||||
|
||||
void PushError(PrinterMsg::MSG msg,string id);
|
||||
|
||||
static void HandleStateRequest(RemoteClient* client, PrinterMsg::HMessage* msg);
|
||||
static void HandleJobInfoRequest(RemoteClient* client, PrinterMsg::HMessage* msg);
|
||||
//static void HandleJobStateRequest(RemoteClient* client, PrinterMsg::HMessage* msg);
|
||||
static void HandleLayerDataRequest(RemoteClient* client, PrinterMsg::HMessage* msg);
|
||||
|
||||
static void HandleCtrlSystemPause(RemoteClient* client, PrinterMsg::HMessage* msg);
|
||||
static void HandleCtrlSystemStop(RemoteClient* client, PrinterMsg::HMessage* msg);
|
||||
|
||||
static void HandleCameraDataRequest(RemoteClient* client, PrinterMsg::HMessage* msg);
|
||||
static void HandleCameraStopRequest(RemoteClient* client, PrinterMsg::HMessage* msg);
|
||||
|
||||
static void HandleAlarmNotifyResponse(RemoteClient* client, PrinterMsg::HMessage* msg);
|
||||
|
||||
static void HandleStateChangeResponse(RemoteClient* client, PrinterMsg::HMessage* msg);
|
||||
|
||||
static void HandleRecordTasksMsg(RemoteClient* client, PrinterMsg::HMessage* msg);
|
||||
static void HandleRecordTasksListMsg(RemoteClient* client, PrinterMsg::HMessage* msg);
|
||||
|
||||
//static void HandleRemoteJobResMsg(RemoteClient* client, PrinterMsg::HMessage* msg);
|
||||
|
||||
static void HandleVersionResMsg(RemoteClient* client, PrinterMsg::HMessage* msg);
|
||||
private:
|
||||
CSocketHandle m_Client;
|
||||
HANDLE m_RemoteThread;
|
||||
HANDLE m_WriteThread;
|
||||
HANDLE m_ReadThread;
|
||||
bool m_RunFlag;
|
||||
bool m_WriteFlag;
|
||||
bool m_ReadFlag;
|
||||
bool m_IsLogin;
|
||||
|
||||
CommunicationCfg* m_Config;
|
||||
MachineCfg* m_MachineCfg;
|
||||
RunCfg* m_RunCfg;
|
||||
ExtCfg* m_ExtCfg;
|
||||
queue<PrinterMsg::HMessage *> m_MessageQueue;
|
||||
|
||||
map<PrinterMsg::MSG, std::function<void(RemoteClient*,PrinterMsg::HMessage*)>> m_HandleMap;
|
||||
CRITICAL_SECTION m_MessageCS;
|
||||
|
||||
// GTSController* m_GTSController;
|
||||
JobController* m_JobController;
|
||||
ScannerCtrl* m_ScannerCtrl;
|
||||
HBDCamera* m_Camera;
|
||||
vector<BPBinary::BinDataBlock*> m_BinDataBlocks;
|
||||
|
||||
bool m_NeedSendAlarm;
|
||||
bool m_NeedSendFinish;
|
||||
|
||||
AlarmShowInfo m_AlarmInfo;
|
||||
};
|
||||
|
15417
PrintS/Remote/bak/common.pb.cc
Normal file
15417
PrintS/Remote/bak/common.pb.cc
Normal file
File diff suppressed because it is too large
Load Diff
10160
PrintS/Remote/bak/common.pb.h
Normal file
10160
PrintS/Remote/bak/common.pb.h
Normal file
File diff suppressed because it is too large
Load Diff
341
PrintS/Remote/bak/common.proto
Normal file
341
PrintS/Remote/bak/common.proto
Normal file
@ -0,0 +1,341 @@
|
||||
syntax = "proto3";
|
||||
|
||||
message StateMsg
|
||||
{
|
||||
enum PrintState
|
||||
{
|
||||
STANDBY = 0;
|
||||
STANDBY_PAUSE = 1;
|
||||
STANDBY_STOP = 2;
|
||||
PREPRINT = 3;
|
||||
PRINTING = 4;
|
||||
FINISH = 5;
|
||||
PAUSE = 6;
|
||||
STOP = 7;
|
||||
};
|
||||
float oxygenValue=1;
|
||||
float ambientTemp=2;
|
||||
float innerTemp=3;
|
||||
float windValue=4;
|
||||
float platformTempValue=5;
|
||||
float platformTempSettingValue=6;
|
||||
float moldPos=7;
|
||||
float powderPos=8;
|
||||
float armPos=9;
|
||||
PrintState printState=10;
|
||||
int32 layerIndex=11;
|
||||
int32 limitFlag=12;
|
||||
string machineId=13;
|
||||
bool isDoorClose=14;
|
||||
uint32 accTime=15;
|
||||
uint32 remainTime=16;
|
||||
uint32 totalTime=17;
|
||||
int32 layerCount=18;
|
||||
int64 printTime=19;
|
||||
string material=20;
|
||||
}
|
||||
|
||||
message JobInfoMsg
|
||||
{
|
||||
string name=1;
|
||||
float xSize=2;
|
||||
float ySize=3;
|
||||
float zSize=4;
|
||||
string material=5;
|
||||
float layerThickness=6;
|
||||
uint32 layerCount=7;
|
||||
uint32 componentCount=8;
|
||||
float volume=9;
|
||||
float supportVolume=10;
|
||||
string jid=11;
|
||||
}
|
||||
|
||||
message JobStateMsg
|
||||
{
|
||||
uint64 jobId=1;
|
||||
string uId=2;
|
||||
string name=3;
|
||||
int64 startTime=4;
|
||||
int64 stopTime=5;
|
||||
uint32 deoxygenSecond=6;
|
||||
uint32 spendSecond=7;
|
||||
float moldPos=8;
|
||||
uint32 printLayerIndex=9;
|
||||
bool isFinish=10;
|
||||
bool isContinue=11;
|
||||
bool isInvalid=12;
|
||||
|
||||
enum JobState
|
||||
{
|
||||
START = 0;
|
||||
STOP = 1;
|
||||
}
|
||||
JobState jobState=13;
|
||||
string machineId=14;
|
||||
JobInfoMsg jobInfo=15;
|
||||
}
|
||||
|
||||
message MachineMsg
|
||||
{
|
||||
string machineId=1;
|
||||
|
||||
enum MachineType
|
||||
{
|
||||
HBD_100 = 0;
|
||||
HBD_280 = 1;
|
||||
HBD_80 = 2;
|
||||
HBD_150 = 3;
|
||||
HBD_280T = 4;
|
||||
HBD_200D = 5;
|
||||
HBD_350 = 6;
|
||||
HBD_150T = 7;
|
||||
}
|
||||
MachineType machineType=2;
|
||||
|
||||
enum PurifierType
|
||||
{
|
||||
HBD_PURIFIER_1 = 0;
|
||||
XT = 1;
|
||||
HBD_PURIFIER_2 = 2;
|
||||
}
|
||||
PurifierType purifierType=3;
|
||||
|
||||
int64 lastStartTime=4;
|
||||
int64 lastShutdownTime=5;
|
||||
int32 language=6;
|
||||
bool isOnline=7;
|
||||
string password=8;
|
||||
string name=9;
|
||||
string location=10;
|
||||
}
|
||||
|
||||
message ErrorMsg
|
||||
{
|
||||
enum ErrorType
|
||||
{
|
||||
STOP = 0;
|
||||
PAUSE = 1;
|
||||
}
|
||||
ErrorType errorType=1;
|
||||
string errorMsg=2;
|
||||
int64 occurTime=3;
|
||||
string machineId=4;
|
||||
}
|
||||
|
||||
message ParameterMsg
|
||||
{
|
||||
string type=1;
|
||||
float laserSpeed=2;
|
||||
float laserPower=3;
|
||||
float laserDiameter=4;
|
||||
}
|
||||
|
||||
message PartMsg
|
||||
{
|
||||
string name=1;
|
||||
repeated ParameterMsg param=2;
|
||||
}
|
||||
|
||||
message JobMsg
|
||||
{
|
||||
JobInfoMsg jobInfoMsg=1;
|
||||
repeated PartMsg partMsg=2;
|
||||
string machineId=3;
|
||||
}
|
||||
|
||||
message LayerDataRespMsg
|
||||
{
|
||||
string machineId=1;
|
||||
int32 type=2;
|
||||
int32 partId=3;
|
||||
uint32 total=4;
|
||||
uint32 index=5;
|
||||
repeated float data=6;
|
||||
bytes datas=7;
|
||||
string paramType=8;
|
||||
}
|
||||
|
||||
message DataBlockMsg
|
||||
{
|
||||
int32 type=1;
|
||||
repeated float data=2;
|
||||
}
|
||||
|
||||
message LayerDataBlockMsg
|
||||
{
|
||||
string machineId=1;
|
||||
string jobName=2;
|
||||
string jobUid=3;
|
||||
uint32 layerCount=4;
|
||||
float thickness=5;
|
||||
uint32 layerIndex=6;
|
||||
repeated DataBlockMsg dataBlocks=7;
|
||||
}
|
||||
|
||||
message JobParamMsg
|
||||
{
|
||||
string machineId=1;
|
||||
string jobName=2;
|
||||
string jobUid=3;
|
||||
uint32 layerCount=4;
|
||||
float thickness=5;
|
||||
repeated PartMsg parts=6;
|
||||
}
|
||||
|
||||
message LayerDataReqMsg
|
||||
{
|
||||
string machineId=1;
|
||||
uint32 layerIndex=2;
|
||||
}
|
||||
|
||||
message ResponseState
|
||||
{
|
||||
repeated StateMsg stateMsg=1;
|
||||
}
|
||||
|
||||
message CameraDataMsg
|
||||
{
|
||||
string machineId=1;
|
||||
uint32 width=2;
|
||||
uint32 height=3;
|
||||
bytes datas=4;
|
||||
}
|
||||
|
||||
message AlarmMsg
|
||||
{
|
||||
string time=1;
|
||||
string task=2;
|
||||
string type=3;
|
||||
string detail=4;
|
||||
}
|
||||
|
||||
message AlarmsMsg
|
||||
{
|
||||
repeated AlarmMsg alarms=1;
|
||||
}
|
||||
|
||||
message TaskMsg
|
||||
{
|
||||
int64 id=1;
|
||||
string name=2;
|
||||
string beginTime=3;
|
||||
string endTime=4;
|
||||
int64 deoxygenMinute=5;
|
||||
int64 totalUseTime=6;
|
||||
float logMoldPosition=7;
|
||||
uint32 finishLayer=8;
|
||||
bool isFinish=9;
|
||||
bool isContinuePrint=10;
|
||||
}
|
||||
|
||||
message TasksMsg
|
||||
{
|
||||
repeated TaskMsg tasks=1;
|
||||
}
|
||||
|
||||
message LayerStateMsg
|
||||
{
|
||||
string layerDateTime=1;
|
||||
uint32 layerIndex=2;
|
||||
float logMoldPosition=3;
|
||||
float logOxygen=4;
|
||||
float logInnerTemp=5;
|
||||
float logPlateTemp=6;
|
||||
float windSpeed=7;
|
||||
float innerPressure=8;
|
||||
float fanFreq=9;
|
||||
float humidity=10;
|
||||
float waterTemp=11;
|
||||
}
|
||||
|
||||
message LayerStatesMsg
|
||||
{
|
||||
repeated LayerStateMsg layerStates=1;
|
||||
}
|
||||
|
||||
message LayerImageMsg
|
||||
{
|
||||
int64 id=1;
|
||||
uint32 layer=2;
|
||||
string type=3;
|
||||
}
|
||||
|
||||
message LayerImagesMsg
|
||||
{
|
||||
repeated LayerImageMsg images=1;
|
||||
}
|
||||
|
||||
message LayerImageDataMsg
|
||||
{
|
||||
uint64 imageSize=1;
|
||||
bytes imageData=2;
|
||||
}
|
||||
|
||||
message LayerLoadCurveMsg
|
||||
{
|
||||
int64 id=1;
|
||||
uint32 layer=2;
|
||||
string coverType=3;
|
||||
}
|
||||
|
||||
message LayerLoadCurvesMsg
|
||||
{
|
||||
repeated LayerLoadCurveMsg loadCurves=1;
|
||||
}
|
||||
|
||||
message LayerLoadCurveDataMsg
|
||||
{
|
||||
repeated float mold=1;
|
||||
repeated float powder=2;
|
||||
repeated float arm=3;
|
||||
}
|
||||
|
||||
message LogReqMsg
|
||||
{
|
||||
enum LogType
|
||||
{
|
||||
ALARM = 0;
|
||||
TASK = 1;
|
||||
LAYERSTATE = 2;
|
||||
LAYERIMAGE = 3;
|
||||
IMAGE = 4;
|
||||
LAYERLOADCURVE = 5;
|
||||
LOADCURVE = 6;
|
||||
};
|
||||
LogType type=1;
|
||||
uint32 index=2;
|
||||
uint32 pageSize=3;
|
||||
}
|
||||
|
||||
message LogRespMsg
|
||||
{
|
||||
uint32 index=1;
|
||||
uint32 pageSize=2;
|
||||
uint32 total=3;
|
||||
|
||||
oneof logresp
|
||||
{
|
||||
AlarmsMsg alarms=4;
|
||||
TasksMsg tasks=5;
|
||||
LayerStatesMsg states=6;
|
||||
LayerImagesMsg images=7;
|
||||
LayerImageDataMsg imageData=8;
|
||||
LayerLoadCurvesMsg loadCurves=9;
|
||||
LayerLoadCurveDataMsg loadCurveData=10;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
message LogFetchReqMsg
|
||||
{
|
||||
enum LogType
|
||||
{
|
||||
ALARM = 0;
|
||||
TASKLIST = 1;
|
||||
TASK = 2;
|
||||
};
|
||||
LogType type=1;
|
||||
int64 begin=2;
|
||||
int64 end=3;
|
||||
}
|
||||
|
88
PrintS/Remote/bak/printers.proto
Normal file
88
PrintS/Remote/bak/printers.proto
Normal file
@ -0,0 +1,88 @@
|
||||
syntax = "proto3";
|
||||
package PrinterMsg;
|
||||
|
||||
import "common.proto";
|
||||
|
||||
enum MSG
|
||||
{
|
||||
UNDEFINE=0;
|
||||
LOGIN_REQUEST=1001;
|
||||
LOGIN_RESPONSE=1002;
|
||||
|
||||
STATE_REQUEST=2001;
|
||||
STATE_RESPONSE=2002;
|
||||
|
||||
CAMERA_DATA_REQUEST=2003;
|
||||
CAMERA_DATA_RESPONSE=2004;
|
||||
CAMERA_STOP_REQUEST=2007;
|
||||
|
||||
LAYER_DATA_REQUEST=2005;
|
||||
LAYER_DATA_RESPONSE=2006;
|
||||
LAYER_DB_REQUEST=2008;
|
||||
|
||||
CTRL_SYSTEM_PAUSE=3001;
|
||||
CRTL_SYSTEM_STOP=3002;
|
||||
|
||||
JOB_STATE_REQUEST=4001;
|
||||
JOB_STATE_RESPONSE=4002;
|
||||
JOB_PARAM_REQUEST=4003;
|
||||
|
||||
ERROR_REQUEST=5001;
|
||||
ERROR_RESPONSE=5002;
|
||||
|
||||
JOB_INFO_REQUEST=6001;
|
||||
JOB_INFO_RESPONSE=6002;
|
||||
|
||||
PRINTER_LIST_RESPONSE=7001; // 用于响应客户端服务器的在线打印机列表请求,仅服务器内部使用
|
||||
|
||||
LOG_REQUEST=8001;
|
||||
LOG_RESPONSE=8002;
|
||||
LOG_FETCH_REQUEST=8003;
|
||||
}
|
||||
|
||||
// 用于响应客户端服务器的在线打印机列表请求,仅服务器内部使用
|
||||
message PrinterListMsg
|
||||
{
|
||||
repeated MachineMsg printers=1;
|
||||
}
|
||||
|
||||
message Response
|
||||
{
|
||||
bool result=1;
|
||||
|
||||
oneof resps
|
||||
{
|
||||
ErrorMsg errorMsg=2;
|
||||
StateMsg stateMsg=3;
|
||||
JobMsg jobMsg=4;
|
||||
PrinterListMsg printerList=5;// 用于响应客户端服务器的在线打印机列表请求,仅服务器内部使用
|
||||
LayerDataRespMsg layerDataMsg=6;
|
||||
ResponseState stateMsgs=7;// 用于相应客户端多打印机状态请求,仅服务器内部使用
|
||||
CameraDataMsg cameraData=8;
|
||||
LogRespMsg log=9;
|
||||
}
|
||||
}
|
||||
|
||||
message Request
|
||||
{
|
||||
oneof oneof_req
|
||||
{
|
||||
MachineMsg machineMsg=1;
|
||||
JobStateMsg jobStateMsg=2;
|
||||
ErrorMsg errorMsg=3;
|
||||
LayerDataReqMsg layerDataMsg=4;
|
||||
LogReqMsg log=5;
|
||||
LogFetchReqMsg logFetch=6;
|
||||
LayerDataBlockMsg layerDataBlockMsg=7;
|
||||
JobParamMsg jobParamMsg=8;
|
||||
}
|
||||
}
|
||||
|
||||
message HMessage{
|
||||
MSG type=1;
|
||||
string id=2;
|
||||
Request request=3;
|
||||
Response response=4;
|
||||
int64 sendTime=4;
|
||||
}
|
||||
|
60
PrintS/Remote/bak/proto_msg.cc
Normal file
60
PrintS/Remote/bak/proto_msg.cc
Normal file
@ -0,0 +1,60 @@
|
||||
#include "proto_msg.h"
|
||||
#include <google/protobuf/descriptor.h>
|
||||
#include <string>
|
||||
|
||||
using namespace std;
|
||||
using namespace google::protobuf;
|
||||
|
||||
// 4 byte total msg len, including this 4 bytes
|
||||
// 4 byte name len
|
||||
// name string not null ended
|
||||
// protobuf data
|
||||
ProtoMessage *ProtoMsgCodec::decode(unsigned char* buf, size_t size)
|
||||
{
|
||||
if (size < 8) {
|
||||
return nullptr;
|
||||
}
|
||||
char *p = (char *)buf;
|
||||
uint32_t msglen = *(uint32_t *)buf;
|
||||
uint32_t namelen = *(uint32_t *)(buf + 4);
|
||||
if (size < msglen || size < 4 + namelen) {
|
||||
return nullptr;
|
||||
}
|
||||
string typeName(p + 8, namelen);
|
||||
ProtoMessage *msg = NULL;
|
||||
const ProtoDescriptor *des = DescriptorPool::generated_pool()->FindMessageTypeByName(typeName);
|
||||
if (des) {
|
||||
const ProtoMessage *proto = MessageFactory::generated_factory()->GetPrototype(des);
|
||||
if (proto) {
|
||||
msg = proto->New();
|
||||
}
|
||||
}
|
||||
if (msg == NULL) {
|
||||
return nullptr;
|
||||
}
|
||||
int r = msg->ParseFromArray(p + 8 + namelen, msglen - 8 - namelen);
|
||||
if (!r) {
|
||||
delete msg;
|
||||
return nullptr;
|
||||
}
|
||||
return msg;
|
||||
}
|
||||
|
||||
unsigned char* ProtoMsgCodec::encode(ProtoMessage *msg, size_t& msgSize) {
|
||||
if (!msg)
|
||||
return nullptr;
|
||||
const string &typeName = msg->GetDescriptor()->full_name();
|
||||
uint32_t buf_size = 4 + 4 + typeName.size() + msg->ByteSize();
|
||||
unsigned char* buf = new unsigned char[buf_size];
|
||||
if (!buf)
|
||||
return nullptr;
|
||||
*(uint32_t*)buf = buf_size;
|
||||
size_t offset = 4;
|
||||
*(uint32_t*)(buf + offset) = typeName.size();
|
||||
offset += 4;
|
||||
memcpy_s(buf + offset, buf_size, typeName.data(), typeName.size());
|
||||
offset += typeName.size();
|
||||
msg->SerializeToArray(buf + offset, msg->ByteSize());
|
||||
msgSize = buf_size;
|
||||
return buf;
|
||||
}
|
16
PrintS/Remote/bak/proto_msg.h
Normal file
16
PrintS/Remote/bak/proto_msg.h
Normal file
@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
#include <google/protobuf/message.h>
|
||||
#include <map>
|
||||
|
||||
typedef ::google::protobuf::Message ProtoMessage;
|
||||
typedef ::google::protobuf::Descriptor ProtoDescriptor;
|
||||
|
||||
struct ProtoMsgCodec {
|
||||
static unsigned char* encode(ProtoMessage* msg, size_t& msgSize);
|
||||
static ProtoMessage* decode(unsigned char* buf, size_t size);
|
||||
static bool msgComplete(unsigned char* buf, size_t size);
|
||||
};
|
||||
|
||||
inline bool ProtoMsgCodec::msgComplete(unsigned char* buf, size_t size) {
|
||||
return size >= 4 && size >= *(uint32_t *)buf;
|
||||
}
|
12548
PrintS/Remote/common.pb.cc
Normal file
12548
PrintS/Remote/common.pb.cc
Normal file
File diff suppressed because it is too large
Load Diff
13800
PrintS/Remote/common.pb.h
Normal file
13800
PrintS/Remote/common.pb.h
Normal file
File diff suppressed because it is too large
Load Diff
372
PrintS/Remote/common.proto
Normal file
372
PrintS/Remote/common.proto
Normal file
@ -0,0 +1,372 @@
|
||||
syntax = "proto3";
|
||||
|
||||
//系统状态信息
|
||||
message StateMsg
|
||||
{
|
||||
enum PrintState
|
||||
{
|
||||
STANDBY = 0;
|
||||
STANDBY_PAUSE = 1;
|
||||
STANDBY_STOP = 2;
|
||||
PREPRINT = 3;
|
||||
PRINTING = 4;
|
||||
FINISH = 5;
|
||||
PAUSE = 6;
|
||||
STOP = 7;
|
||||
};
|
||||
float oxygenValue=1; //氧含量
|
||||
float ambientTemp=2; //环境温度
|
||||
float innerTemp=3; //舱内温度
|
||||
float windValue=4; //风速
|
||||
float platformTempValue=5; //基板温度
|
||||
float platformTempSettingValue=6; //基板温度目标
|
||||
float moldPos=7; //成型缸位置
|
||||
float powderPos=8; //粉料缸位置
|
||||
float armPos=9; //铺粉臂位置
|
||||
PrintState printState=10; //设备打印状态
|
||||
int32 layerIndex=11; //当前层
|
||||
int32 limitFlag=12; //限位掩码
|
||||
string machineId=13; //设备ID
|
||||
bool isDoorClose=14; //舱门已关
|
||||
uint64 accTime=15; //累计时间
|
||||
uint64 remainTime=16; //剩余时间
|
||||
uint64 totalTime=17; //总估时间
|
||||
int32 layerCount=18; //总层数
|
||||
int64 printTime=19; //打印时间
|
||||
string material=20; //材质
|
||||
string jobName=21; //任务名称
|
||||
string jobId=22; //任务ID
|
||||
string taskId=23;
|
||||
float remainPowder=24; //剩余粉量
|
||||
}
|
||||
|
||||
//加载的任务信息
|
||||
message JobInfoMsg
|
||||
{
|
||||
string name=1; //任务名称
|
||||
float xSize=2; //x 尺寸
|
||||
float ySize=3; //y
|
||||
float zSize=4; //z
|
||||
string material=5; //材质
|
||||
float layerThickness=6; //层厚
|
||||
uint32 layerCount=7; //总层数
|
||||
uint32 componentCount=8; //部件数
|
||||
float volume=9;
|
||||
float supportVolume=10;
|
||||
string jobId=11; //任务ID
|
||||
string taskId=12;
|
||||
}
|
||||
|
||||
//状态变换消息
|
||||
message StateChangeMsg
|
||||
{
|
||||
enum PrintState
|
||||
{
|
||||
STANDBY = 0;
|
||||
STANDBY_PAUSE = 1;
|
||||
STANDBY_STOP = 2;
|
||||
PREPRINT = 3;
|
||||
PRINTING = 4;
|
||||
FINISH = 5;
|
||||
PAUSE = 6;
|
||||
STOP = 7;
|
||||
};
|
||||
float oxygenValue=1; //氧含量
|
||||
float ambientTemp=2; //环境温度
|
||||
float innerTemp=3; //仓内温度
|
||||
float windValue=4; //风速
|
||||
float platformTempValue=5; //基板温度
|
||||
float platformTempSettingValue=6; //基板温度目标
|
||||
float moldPos=7; //成型缸位置
|
||||
float powderPos=8; //粉料缸位置
|
||||
float armPos=9; //铺粉臂位置
|
||||
PrintState printState=10; //设备打印状态
|
||||
int32 layerIndex=11; //当前层
|
||||
int32 limitFlag=12; //限位掩码
|
||||
string machineId=13; //设备ID
|
||||
bool isDoorClose=14; //舱门已关
|
||||
uint64 accTime=15; //累计时间
|
||||
uint64 remainTime=16; //剩余时间
|
||||
uint64 totalTime=17; //总估时间
|
||||
int32 layerCount=18; //总层数
|
||||
int64 printTime=19; //打印时间
|
||||
string material=20; //材质
|
||||
string jobName=21; //任务名称
|
||||
string jobId=22; //任务ID
|
||||
string taskId=23;
|
||||
float remainPowder=24; //剩余粉量
|
||||
}
|
||||
|
||||
//机器信息
|
||||
message MachineMsg
|
||||
{
|
||||
string machineId=1;
|
||||
|
||||
enum MachineType
|
||||
{
|
||||
HBD_100 = 0;
|
||||
HBD_280 = 1;
|
||||
HBD_80 = 2;
|
||||
HBD_150 = 3;
|
||||
HBD_280T = 4;
|
||||
HBD_200D = 5;
|
||||
HBD_350 = 6;
|
||||
HBD_150T = 7;
|
||||
HBD_E500=8;
|
||||
HBD_V350=9;
|
||||
|
||||
HBD_1000=1000;
|
||||
HBD_1500=1001;
|
||||
HBD_1200V0=1002;
|
||||
HBD_1200=1003;
|
||||
HBD_E1000=1004;
|
||||
}
|
||||
MachineType machineType=2;
|
||||
|
||||
enum PurifierType
|
||||
{
|
||||
HBD_PURIFIER_1 = 0;
|
||||
XT = 1;
|
||||
HBD_PURIFIER_2 = 2;
|
||||
}
|
||||
PurifierType purifierType=3;
|
||||
|
||||
int64 lastStartTime=4;
|
||||
int64 lastShutdownTime=5;
|
||||
int32 language=6;
|
||||
bool isOnline=7;
|
||||
string password=8;
|
||||
string name=9;
|
||||
string location=10;
|
||||
}
|
||||
|
||||
//
|
||||
message ErrorMsg
|
||||
{
|
||||
enum ErrorType
|
||||
{
|
||||
STOP = 0;
|
||||
PAUSE = 1;
|
||||
}
|
||||
ErrorType errorType=1;
|
||||
string errorMsg=2;
|
||||
int64 occurTime=3;
|
||||
string machineId=4;
|
||||
}
|
||||
|
||||
//打印参数信息
|
||||
message ParameterMsg
|
||||
{
|
||||
string type=1;
|
||||
float laserSpeed=2;
|
||||
float laserPower=3;
|
||||
float laserDiameter=4;
|
||||
}
|
||||
|
||||
//部件信息
|
||||
message PartMsg
|
||||
{
|
||||
string name=1;
|
||||
repeated ParameterMsg param=2;
|
||||
}
|
||||
|
||||
//任务信息
|
||||
message JobMsg
|
||||
{
|
||||
JobInfoMsg jobInfoMsg=1;
|
||||
repeated PartMsg partMsg=2;
|
||||
string machineId=3;
|
||||
}
|
||||
|
||||
//层向量数据
|
||||
message LayerDataRespMsg
|
||||
{
|
||||
string machineId=1;
|
||||
int32 type=2;
|
||||
int32 partId=3;
|
||||
uint32 total=4;
|
||||
uint32 index=5;
|
||||
repeated float data=6;
|
||||
bytes datas=7;
|
||||
string paramType=8;
|
||||
}
|
||||
|
||||
//任务参数
|
||||
message JobParamMsg
|
||||
{
|
||||
string machineId=1;
|
||||
string jobName=2;
|
||||
string jobUid=3;
|
||||
uint32 layerCount=4;
|
||||
float thickness=5;
|
||||
repeated PartMsg parts=6;
|
||||
}
|
||||
|
||||
message LayerDataReqMsg
|
||||
{
|
||||
string machineId=1;
|
||||
uint32 layerIndex=2;
|
||||
}
|
||||
|
||||
message ResponseState
|
||||
{
|
||||
repeated StateMsg stateMsg=1;
|
||||
}
|
||||
|
||||
//图像数据
|
||||
message CameraDataMsg
|
||||
{
|
||||
string machineId=1;
|
||||
string imageFormat=2;
|
||||
uint32 imageWidth=3;
|
||||
uint32 imageHeight=4;
|
||||
uint32 imageDataSize=5;
|
||||
bytes imageDatas=6;
|
||||
}
|
||||
|
||||
message AlarmMsg
|
||||
{
|
||||
string time=1;
|
||||
string task=2;
|
||||
string type=3;
|
||||
string detail=4;
|
||||
}
|
||||
|
||||
message AlarmsMsg
|
||||
{
|
||||
repeated AlarmMsg alarms=1;
|
||||
}
|
||||
|
||||
//任务记录
|
||||
message TaskMsg
|
||||
{
|
||||
int64 id=1;
|
||||
string name=2;
|
||||
string beginTime=3;
|
||||
string endTime=4;
|
||||
int64 deoxygenMinute=5;
|
||||
int64 totalUseTime=6;
|
||||
float logMoldPosition=7;
|
||||
uint32 finishLayer=8;
|
||||
bool isFinish=9;
|
||||
bool isContinuePrint=10;
|
||||
}
|
||||
|
||||
message TasksMsg
|
||||
{
|
||||
repeated TaskMsg tasks=1;
|
||||
}
|
||||
|
||||
message RecordTaskMsg{
|
||||
int64 id=1;
|
||||
string taskID=2;
|
||||
string name=3;
|
||||
string beginTime=4;
|
||||
string endTime=5;
|
||||
int64 deoxygenSecond=6;
|
||||
int64 totalUseSecond=7;
|
||||
float logMoldPosition=8;
|
||||
uint32 finishLayer=9;
|
||||
bool isFinish=10;
|
||||
bool isContinuePrint=11;
|
||||
}
|
||||
|
||||
message RecordTasksMsg
|
||||
{
|
||||
repeated RecordTaskMsg recordTasks=1;
|
||||
}
|
||||
|
||||
message RecordTasksListMsg
|
||||
{
|
||||
repeated RecordTaskMsg recordTasksList=1;
|
||||
}
|
||||
|
||||
|
||||
message LayerStateMsg
|
||||
{
|
||||
string layerDateTime=1;
|
||||
uint32 layerIndex=2;
|
||||
float logMoldPosition=3;
|
||||
float logOxygen=4;
|
||||
float logInnerTemp=5;
|
||||
float logPlateTemp=6;
|
||||
float windSpeed=7;
|
||||
float innerPressure=8;
|
||||
float fanFreq=9;
|
||||
float humidity=10;
|
||||
float waterTemp=11;
|
||||
}
|
||||
|
||||
message LayerStatesMsg
|
||||
{
|
||||
repeated LayerStateMsg layerStates=1;
|
||||
}
|
||||
|
||||
message LayerImageMsg
|
||||
{
|
||||
int64 id=1;
|
||||
uint32 layer=2;
|
||||
string type=3;
|
||||
}
|
||||
|
||||
message LayerImagesMsg
|
||||
{
|
||||
repeated LayerImageMsg images=1;
|
||||
}
|
||||
|
||||
message LayerImageDataMsg
|
||||
{
|
||||
uint64 imageSize=1;
|
||||
bytes imageData=2;
|
||||
}
|
||||
|
||||
message LayerLoadCurveMsg
|
||||
{
|
||||
int64 id=1;
|
||||
uint32 layer=2;
|
||||
string coverType=3;
|
||||
}
|
||||
|
||||
message LayerLoadCurvesMsg
|
||||
{
|
||||
repeated LayerLoadCurveMsg loadCurves=1;
|
||||
}
|
||||
|
||||
message LayerLoadCurveDataMsg
|
||||
{
|
||||
repeated float mold=1;
|
||||
repeated float powder=2;
|
||||
repeated float arm=3;
|
||||
}
|
||||
|
||||
message ReqRecordTaskMsg
|
||||
{
|
||||
string taskID=1;
|
||||
}
|
||||
|
||||
message ReqRecordTaskListMsg
|
||||
{
|
||||
int64 beginSecond=1;
|
||||
int64 endSecond=2;
|
||||
}
|
||||
|
||||
message AlarmNotifyMsg
|
||||
{
|
||||
string jobName=1; //任务名称
|
||||
string jobId=2; //任务ID
|
||||
uint64 happenTime=3; //报警触发时间
|
||||
int32 layerIndex=4; //当前层
|
||||
string alarmCode=5; //报警编码
|
||||
int32 alarmType=6; //报警类型,0停止,1暂停
|
||||
string alarmContent=7; //报警信息内容
|
||||
}
|
||||
|
||||
message RemoteJobResMsg
|
||||
{
|
||||
string jsonData=1;
|
||||
}
|
||||
|
||||
message VersionInfoResMsg
|
||||
{
|
||||
string version=1;
|
||||
}
|
12548
PrintS/Remote/compile/common.pb.cc
Normal file
12548
PrintS/Remote/compile/common.pb.cc
Normal file
File diff suppressed because it is too large
Load Diff
13800
PrintS/Remote/compile/common.pb.h
Normal file
13800
PrintS/Remote/compile/common.pb.h
Normal file
File diff suppressed because it is too large
Load Diff
372
PrintS/Remote/compile/common.proto
Normal file
372
PrintS/Remote/compile/common.proto
Normal file
@ -0,0 +1,372 @@
|
||||
syntax = "proto3";
|
||||
|
||||
//系统状态信息
|
||||
message StateMsg
|
||||
{
|
||||
enum PrintState
|
||||
{
|
||||
STANDBY = 0;
|
||||
STANDBY_PAUSE = 1;
|
||||
STANDBY_STOP = 2;
|
||||
PREPRINT = 3;
|
||||
PRINTING = 4;
|
||||
FINISH = 5;
|
||||
PAUSE = 6;
|
||||
STOP = 7;
|
||||
};
|
||||
float oxygenValue=1; //氧含量
|
||||
float ambientTemp=2; //环境温度
|
||||
float innerTemp=3; //舱内温度
|
||||
float windValue=4; //风速
|
||||
float platformTempValue=5; //基板温度
|
||||
float platformTempSettingValue=6; //基板温度目标
|
||||
float moldPos=7; //成型缸位置
|
||||
float powderPos=8; //粉料缸位置
|
||||
float armPos=9; //铺粉臂位置
|
||||
PrintState printState=10; //设备打印状态
|
||||
int32 layerIndex=11; //当前层
|
||||
int32 limitFlag=12; //限位掩码
|
||||
string machineId=13; //设备ID
|
||||
bool isDoorClose=14; //舱门已关
|
||||
uint64 accTime=15; //累计时间
|
||||
uint64 remainTime=16; //剩余时间
|
||||
uint64 totalTime=17; //总估时间
|
||||
int32 layerCount=18; //总层数
|
||||
int64 printTime=19; //打印时间
|
||||
string material=20; //材质
|
||||
string jobName=21; //任务名称
|
||||
string jobId=22; //任务ID
|
||||
string taskId=23;
|
||||
float remainPowder=24; //剩余粉量
|
||||
}
|
||||
|
||||
//加载的任务信息
|
||||
message JobInfoMsg
|
||||
{
|
||||
string name=1; //任务名称
|
||||
float xSize=2; //x 尺寸
|
||||
float ySize=3; //y
|
||||
float zSize=4; //z
|
||||
string material=5; //材质
|
||||
float layerThickness=6; //层厚
|
||||
uint32 layerCount=7; //总层数
|
||||
uint32 componentCount=8; //部件数
|
||||
float volume=9;
|
||||
float supportVolume=10;
|
||||
string jobId=11; //任务ID
|
||||
string taskId=12;
|
||||
}
|
||||
|
||||
//状态变换消息
|
||||
message StateChangeMsg
|
||||
{
|
||||
enum PrintState
|
||||
{
|
||||
STANDBY = 0;
|
||||
STANDBY_PAUSE = 1;
|
||||
STANDBY_STOP = 2;
|
||||
PREPRINT = 3;
|
||||
PRINTING = 4;
|
||||
FINISH = 5;
|
||||
PAUSE = 6;
|
||||
STOP = 7;
|
||||
};
|
||||
float oxygenValue=1; //氧含量
|
||||
float ambientTemp=2; //环境温度
|
||||
float innerTemp=3; //仓内温度
|
||||
float windValue=4; //风速
|
||||
float platformTempValue=5; //基板温度
|
||||
float platformTempSettingValue=6; //基板温度目标
|
||||
float moldPos=7; //成型缸位置
|
||||
float powderPos=8; //粉料缸位置
|
||||
float armPos=9; //铺粉臂位置
|
||||
PrintState printState=10; //设备打印状态
|
||||
int32 layerIndex=11; //当前层
|
||||
int32 limitFlag=12; //限位掩码
|
||||
string machineId=13; //设备ID
|
||||
bool isDoorClose=14; //舱门已关
|
||||
uint64 accTime=15; //累计时间
|
||||
uint64 remainTime=16; //剩余时间
|
||||
uint64 totalTime=17; //总估时间
|
||||
int32 layerCount=18; //总层数
|
||||
int64 printTime=19; //打印时间
|
||||
string material=20; //材质
|
||||
string jobName=21; //任务名称
|
||||
string jobId=22; //任务ID
|
||||
string taskId=23;
|
||||
float remainPowder=24; //剩余粉量
|
||||
}
|
||||
|
||||
//机器信息
|
||||
message MachineMsg
|
||||
{
|
||||
string machineId=1;
|
||||
|
||||
enum MachineType
|
||||
{
|
||||
HBD_100 = 0;
|
||||
HBD_280 = 1;
|
||||
HBD_80 = 2;
|
||||
HBD_150 = 3;
|
||||
HBD_280T = 4;
|
||||
HBD_200D = 5;
|
||||
HBD_350 = 6;
|
||||
HBD_150T = 7;
|
||||
HBD_E500=8;
|
||||
HBD_V350=9;
|
||||
|
||||
HBD_1000=1000;
|
||||
HBD_1500=1001;
|
||||
HBD_1200V0=1002;
|
||||
HBD_1200=1003;
|
||||
HBD_E1000=1004;
|
||||
}
|
||||
MachineType machineType=2;
|
||||
|
||||
enum PurifierType
|
||||
{
|
||||
HBD_PURIFIER_1 = 0;
|
||||
XT = 1;
|
||||
HBD_PURIFIER_2 = 2;
|
||||
}
|
||||
PurifierType purifierType=3;
|
||||
|
||||
int64 lastStartTime=4;
|
||||
int64 lastShutdownTime=5;
|
||||
int32 language=6;
|
||||
bool isOnline=7;
|
||||
string password=8;
|
||||
string name=9;
|
||||
string location=10;
|
||||
}
|
||||
|
||||
//
|
||||
message ErrorMsg
|
||||
{
|
||||
enum ErrorType
|
||||
{
|
||||
STOP = 0;
|
||||
PAUSE = 1;
|
||||
}
|
||||
ErrorType errorType=1;
|
||||
string errorMsg=2;
|
||||
int64 occurTime=3;
|
||||
string machineId=4;
|
||||
}
|
||||
|
||||
//打印参数信息
|
||||
message ParameterMsg
|
||||
{
|
||||
string type=1;
|
||||
float laserSpeed=2;
|
||||
float laserPower=3;
|
||||
float laserDiameter=4;
|
||||
}
|
||||
|
||||
//部件信息
|
||||
message PartMsg
|
||||
{
|
||||
string name=1;
|
||||
repeated ParameterMsg param=2;
|
||||
}
|
||||
|
||||
//任务信息
|
||||
message JobMsg
|
||||
{
|
||||
JobInfoMsg jobInfoMsg=1;
|
||||
repeated PartMsg partMsg=2;
|
||||
string machineId=3;
|
||||
}
|
||||
|
||||
//层向量数据
|
||||
message LayerDataRespMsg
|
||||
{
|
||||
string machineId=1;
|
||||
int32 type=2;
|
||||
int32 partId=3;
|
||||
uint32 total=4;
|
||||
uint32 index=5;
|
||||
repeated float data=6;
|
||||
bytes datas=7;
|
||||
string paramType=8;
|
||||
}
|
||||
|
||||
//任务参数
|
||||
message JobParamMsg
|
||||
{
|
||||
string machineId=1;
|
||||
string jobName=2;
|
||||
string jobUid=3;
|
||||
uint32 layerCount=4;
|
||||
float thickness=5;
|
||||
repeated PartMsg parts=6;
|
||||
}
|
||||
|
||||
message LayerDataReqMsg
|
||||
{
|
||||
string machineId=1;
|
||||
uint32 layerIndex=2;
|
||||
}
|
||||
|
||||
message ResponseState
|
||||
{
|
||||
repeated StateMsg stateMsg=1;
|
||||
}
|
||||
|
||||
//图像数据
|
||||
message CameraDataMsg
|
||||
{
|
||||
string machineId=1;
|
||||
string imageFormat=2;
|
||||
uint32 imageWidth=3;
|
||||
uint32 imageHeight=4;
|
||||
uint32 imageDataSize=5;
|
||||
bytes imageDatas=6;
|
||||
}
|
||||
|
||||
message AlarmMsg
|
||||
{
|
||||
string time=1;
|
||||
string task=2;
|
||||
string type=3;
|
||||
string detail=4;
|
||||
}
|
||||
|
||||
message AlarmsMsg
|
||||
{
|
||||
repeated AlarmMsg alarms=1;
|
||||
}
|
||||
|
||||
//任务记录
|
||||
message TaskMsg
|
||||
{
|
||||
int64 id=1;
|
||||
string name=2;
|
||||
string beginTime=3;
|
||||
string endTime=4;
|
||||
int64 deoxygenMinute=5;
|
||||
int64 totalUseTime=6;
|
||||
float logMoldPosition=7;
|
||||
uint32 finishLayer=8;
|
||||
bool isFinish=9;
|
||||
bool isContinuePrint=10;
|
||||
}
|
||||
|
||||
message TasksMsg
|
||||
{
|
||||
repeated TaskMsg tasks=1;
|
||||
}
|
||||
|
||||
message RecordTaskMsg{
|
||||
int64 id=1;
|
||||
string taskID=2;
|
||||
string name=3;
|
||||
string beginTime=4;
|
||||
string endTime=5;
|
||||
int64 deoxygenSecond=6;
|
||||
int64 totalUseSecond=7;
|
||||
float logMoldPosition=8;
|
||||
uint32 finishLayer=9;
|
||||
bool isFinish=10;
|
||||
bool isContinuePrint=11;
|
||||
}
|
||||
|
||||
message RecordTasksMsg
|
||||
{
|
||||
repeated RecordTaskMsg recordTasks=1;
|
||||
}
|
||||
|
||||
message RecordTasksListMsg
|
||||
{
|
||||
repeated RecordTaskMsg recordTasksList=1;
|
||||
}
|
||||
|
||||
|
||||
message LayerStateMsg
|
||||
{
|
||||
string layerDateTime=1;
|
||||
uint32 layerIndex=2;
|
||||
float logMoldPosition=3;
|
||||
float logOxygen=4;
|
||||
float logInnerTemp=5;
|
||||
float logPlateTemp=6;
|
||||
float windSpeed=7;
|
||||
float innerPressure=8;
|
||||
float fanFreq=9;
|
||||
float humidity=10;
|
||||
float waterTemp=11;
|
||||
}
|
||||
|
||||
message LayerStatesMsg
|
||||
{
|
||||
repeated LayerStateMsg layerStates=1;
|
||||
}
|
||||
|
||||
message LayerImageMsg
|
||||
{
|
||||
int64 id=1;
|
||||
uint32 layer=2;
|
||||
string type=3;
|
||||
}
|
||||
|
||||
message LayerImagesMsg
|
||||
{
|
||||
repeated LayerImageMsg images=1;
|
||||
}
|
||||
|
||||
message LayerImageDataMsg
|
||||
{
|
||||
uint64 imageSize=1;
|
||||
bytes imageData=2;
|
||||
}
|
||||
|
||||
message LayerLoadCurveMsg
|
||||
{
|
||||
int64 id=1;
|
||||
uint32 layer=2;
|
||||
string coverType=3;
|
||||
}
|
||||
|
||||
message LayerLoadCurvesMsg
|
||||
{
|
||||
repeated LayerLoadCurveMsg loadCurves=1;
|
||||
}
|
||||
|
||||
message LayerLoadCurveDataMsg
|
||||
{
|
||||
repeated float mold=1;
|
||||
repeated float powder=2;
|
||||
repeated float arm=3;
|
||||
}
|
||||
|
||||
message ReqRecordTaskMsg
|
||||
{
|
||||
string taskID=1;
|
||||
}
|
||||
|
||||
message ReqRecordTaskListMsg
|
||||
{
|
||||
int64 beginSecond=1;
|
||||
int64 endSecond=2;
|
||||
}
|
||||
|
||||
message AlarmNotifyMsg
|
||||
{
|
||||
string jobName=1; //任务名称
|
||||
string jobId=2; //任务ID
|
||||
uint64 happenTime=3; //报警触发时间
|
||||
int32 layerIndex=4; //当前层
|
||||
string alarmCode=5; //报警编码
|
||||
int32 alarmType=6; //报警类型,0停止,1暂停
|
||||
string alarmContent=7; //报警信息内容
|
||||
}
|
||||
|
||||
message RemoteJobResMsg
|
||||
{
|
||||
string jsonData=1;
|
||||
}
|
||||
|
||||
message VersionInfoResMsg
|
||||
{
|
||||
string version=1;
|
||||
}
|
2323
PrintS/Remote/compile/printers.pb.cc
Normal file
2323
PrintS/Remote/compile/printers.pb.cc
Normal file
File diff suppressed because it is too large
Load Diff
2870
PrintS/Remote/compile/printers.pb.h
Normal file
2870
PrintS/Remote/compile/printers.pb.h
Normal file
File diff suppressed because it is too large
Load Diff
92
PrintS/Remote/compile/printers.proto
Normal file
92
PrintS/Remote/compile/printers.proto
Normal file
@ -0,0 +1,92 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package PrinterMsg;
|
||||
|
||||
import "common.proto";
|
||||
|
||||
enum MSG
|
||||
{
|
||||
UNDEFINE=0;
|
||||
LOGIN_REQUEST=1001; //请求登录,客户端发出
|
||||
LOGIN_RESPONSE=1002; //回复登录结果,服务端发出
|
||||
|
||||
STATE_REQUEST=2001; //请求系统状态,服务端发出
|
||||
STATE_RESPONSE=2002; //回复系统状态,客户端发出
|
||||
CAMERA_DATA_REQUEST=2003; //请求摄像头图像,服务端发出
|
||||
CAMERA_DATA_RESPONSE=2004; //回复摄像头图像,客户端发出
|
||||
LAYER_DATA_REQUEST=2005; //请求层向量数据,服务端发出
|
||||
LAYER_DATA_RESPONSE=2006; //回复层向量数据,客户端发出
|
||||
VERSION_REQUEST=2007; //请求设备系统版本,服务端发出
|
||||
VERSION_RESPONSE=2008; //回复设备系统版本,客户端发出
|
||||
REMOTE_JOB_LIST_REQUEST=2009; //请求打印任务列表,客户端发出
|
||||
REMOTE_JOB_LIST_RESPONSE=2010; //回复打印任务列表,服务端发出
|
||||
|
||||
CTRL_SYSTEM_PAUSE=3001; //控制系统暂停,服务端发出
|
||||
CRTL_SYSTEM_STOP=3002; //控制系统停止,服务端发出
|
||||
|
||||
STATE_CHANGE=4001; //状态变换消息,客户端发出
|
||||
STATE_CHANGE_RESPONSE=4004; //回复状态变换消息,服务端发出
|
||||
ALARM_NOTIFY_REQUEST=4002; //报警通知消息,客户端发出
|
||||
ALARM_NOTIFY_RESPONSE=4003; //回复报警通知消息,服务端发出
|
||||
|
||||
JOB_INFO_REQUEST=6001; //请求加载的任务信息,服务端发出
|
||||
JOB_INFO_RESPONSE=6002; //回复加载的任务信息,客户端发出
|
||||
|
||||
PRINTER_LIST_RESPONSE=7001; // 用于响应客户端服务器的在线打印机列表请求,仅服务器内部使用
|
||||
|
||||
LOG_REQUEST_RECORD_TASK=8004; //请求打印任务日志,客户端发出
|
||||
LOG_RESPONSE_RECORD_TASK=8005; //回复打印任务日志,服务端发出
|
||||
|
||||
LOG_REQUEST_RECORD_TASK_LIST=8006; //请求打印任务列表日志,客户端发出
|
||||
LOG_RESPONSE_RECORD_TASK_LIST=8007; //回复打印任务列表日志,服务端发出
|
||||
}
|
||||
// 用于响应客户端服务器的在线打印机列表请求,仅服务器内部使用
|
||||
message PrinterListMsg
|
||||
{
|
||||
repeated MachineMsg printers=1;
|
||||
}
|
||||
|
||||
message Response
|
||||
{
|
||||
bool result=1; //true 成功 其他为失败
|
||||
oneof resps
|
||||
{
|
||||
ErrorMsg errorMsg=2; //请求的消息处理不了时会返回这个错误消息
|
||||
StateMsg stateMsg=3; //回复系统状态
|
||||
JobMsg jobMsg=4; //回复加载的任务信息
|
||||
PrinterListMsg printerList=5; // 用于响应客户端服务器的在线打印机列表请求,仅服务器内部使用
|
||||
LayerDataRespMsg layerDataMsg=6; //回复层向量数据
|
||||
ResponseState stateMsgs=7; // 用于相应客户端多打印机状态请求,仅服务器内部使用
|
||||
CameraDataMsg cameraData=8; //回复摄像头图像
|
||||
StateChangeMsg stateChangeMsg=9; //状态变换消息
|
||||
RecordTasksMsg recordTasksMsg=10; //返回任务打印记录
|
||||
RecordTasksListMsg recordTaskListMsg=11; //返回任务打印列表记录
|
||||
RemoteJobResMsg remoteJobResMsg=12; //返回远程任务列表,服务端发出
|
||||
VersionInfoResMsg versionInfoResMsg=13; //返回版本信息
|
||||
}
|
||||
}
|
||||
|
||||
message Request
|
||||
{
|
||||
//一般都是带请求参数
|
||||
oneof oneof_req
|
||||
{
|
||||
MachineMsg machineMsg=1; //设备登录时附带发送的设备信息
|
||||
LayerDataReqMsg layerDataMsg=2; //请求某层向量数据
|
||||
AlarmNotifyMsg alarmNotifyMsg=3; //报警消息主动发送
|
||||
ReqRecordTaskMsg reqRecordTaskMsg=4; //请求任务打印记录
|
||||
ReqRecordTaskListMsg reqRecordTaskListMsg=5; //请求任务打印列表记录
|
||||
}
|
||||
}
|
||||
|
||||
message HMessage{
|
||||
MSG type=1; //包的唯一码, 随机字串 动作随机流水码
|
||||
string id=2;
|
||||
string mcode=3; //设备编码
|
||||
Request request=4;
|
||||
Response response=5;
|
||||
uint64 sendTime=6;
|
||||
}
|
||||
|
||||
|
||||
|
BIN
PrintS/Remote/compile/protoc.exe
Normal file
BIN
PrintS/Remote/compile/protoc.exe
Normal file
Binary file not shown.
6
PrintS/Remote/compile/run.bat
Normal file
6
PrintS/Remote/compile/run.bat
Normal file
@ -0,0 +1,6 @@
|
||||
cd /d "%~dp0"
|
||||
|
||||
protoc.exe -I=. --cpp_out=../ printers.proto
|
||||
protoc.exe -I=. --cpp_out=../ common.proto
|
||||
|
||||
pause
|
2323
PrintS/Remote/printers.pb.cc
Normal file
2323
PrintS/Remote/printers.pb.cc
Normal file
File diff suppressed because it is too large
Load Diff
2870
PrintS/Remote/printers.pb.h
Normal file
2870
PrintS/Remote/printers.pb.h
Normal file
File diff suppressed because it is too large
Load Diff
92
PrintS/Remote/printers.proto
Normal file
92
PrintS/Remote/printers.proto
Normal file
@ -0,0 +1,92 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package PrinterMsg;
|
||||
|
||||
import "common.proto";
|
||||
|
||||
enum MSG
|
||||
{
|
||||
UNDEFINE=0;
|
||||
LOGIN_REQUEST=1001; //请求登录,客户端发出
|
||||
LOGIN_RESPONSE=1002; //回复登录结果,服务端发出
|
||||
|
||||
STATE_REQUEST=2001; //请求系统状态,服务端发出
|
||||
STATE_RESPONSE=2002; //回复系统状态,客户端发出
|
||||
CAMERA_DATA_REQUEST=2003; //请求摄像头图像,服务端发出
|
||||
CAMERA_DATA_RESPONSE=2004; //回复摄像头图像,客户端发出
|
||||
LAYER_DATA_REQUEST=2005; //请求层向量数据,服务端发出
|
||||
LAYER_DATA_RESPONSE=2006; //回复层向量数据,客户端发出
|
||||
VERSION_REQUEST=2007; //请求设备系统版本,服务端发出
|
||||
VERSION_RESPONSE=2008; //回复设备系统版本,客户端发出
|
||||
REMOTE_JOB_LIST_REQUEST=2009; //请求打印任务列表,客户端发出
|
||||
REMOTE_JOB_LIST_RESPONSE=2010; //回复打印任务列表,服务端发出
|
||||
|
||||
CTRL_SYSTEM_PAUSE=3001; //控制系统暂停,服务端发出
|
||||
CRTL_SYSTEM_STOP=3002; //控制系统停止,服务端发出
|
||||
|
||||
STATE_CHANGE=4001; //状态变换消息,客户端发出
|
||||
STATE_CHANGE_RESPONSE=4004; //回复状态变换消息,服务端发出
|
||||
ALARM_NOTIFY_REQUEST=4002; //报警通知消息,客户端发出
|
||||
ALARM_NOTIFY_RESPONSE=4003; //回复报警通知消息,服务端发出
|
||||
|
||||
JOB_INFO_REQUEST=6001; //请求加载的任务信息,服务端发出
|
||||
JOB_INFO_RESPONSE=6002; //回复加载的任务信息,客户端发出
|
||||
|
||||
PRINTER_LIST_RESPONSE=7001; // 用于响应客户端服务器的在线打印机列表请求,仅服务器内部使用
|
||||
|
||||
LOG_REQUEST_RECORD_TASK=8004; //请求打印任务日志,客户端发出
|
||||
LOG_RESPONSE_RECORD_TASK=8005; //回复打印任务日志,服务端发出
|
||||
|
||||
LOG_REQUEST_RECORD_TASK_LIST=8006; //请求打印任务列表日志,客户端发出
|
||||
LOG_RESPONSE_RECORD_TASK_LIST=8007; //回复打印任务列表日志,服务端发出
|
||||
}
|
||||
// 用于响应客户端服务器的在线打印机列表请求,仅服务器内部使用
|
||||
message PrinterListMsg
|
||||
{
|
||||
repeated MachineMsg printers=1;
|
||||
}
|
||||
|
||||
message Response
|
||||
{
|
||||
bool result=1; //true 成功 其他为失败
|
||||
oneof resps
|
||||
{
|
||||
ErrorMsg errorMsg=2; //请求的消息处理不了时会返回这个错误消息
|
||||
StateMsg stateMsg=3; //回复系统状态
|
||||
JobMsg jobMsg=4; //回复加载的任务信息
|
||||
PrinterListMsg printerList=5; // 用于响应客户端服务器的在线打印机列表请求,仅服务器内部使用
|
||||
LayerDataRespMsg layerDataMsg=6; //回复层向量数据
|
||||
ResponseState stateMsgs=7; // 用于相应客户端多打印机状态请求,仅服务器内部使用
|
||||
CameraDataMsg cameraData=8; //回复摄像头图像
|
||||
StateChangeMsg stateChangeMsg=9; //状态变换消息
|
||||
RecordTasksMsg recordTasksMsg=10; //返回任务打印记录
|
||||
RecordTasksListMsg recordTaskListMsg=11; //返回任务打印列表记录
|
||||
RemoteJobResMsg remoteJobResMsg=12; //返回远程任务列表,服务端发出
|
||||
VersionInfoResMsg versionInfoResMsg=13; //返回版本信息
|
||||
}
|
||||
}
|
||||
|
||||
message Request
|
||||
{
|
||||
//一般都是带请求参数
|
||||
oneof oneof_req
|
||||
{
|
||||
MachineMsg machineMsg=1; //设备登录时附带发送的设备信息
|
||||
LayerDataReqMsg layerDataMsg=2; //请求某层向量数据
|
||||
AlarmNotifyMsg alarmNotifyMsg=3; //报警消息主动发送
|
||||
ReqRecordTaskMsg reqRecordTaskMsg=4; //请求任务打印记录
|
||||
ReqRecordTaskListMsg reqRecordTaskListMsg=5; //请求任务打印列表记录
|
||||
}
|
||||
}
|
||||
|
||||
message HMessage{
|
||||
MSG type=1; //包的唯一码, 随机字串 动作随机流水码
|
||||
string id=2;
|
||||
string mcode=3; //设备编码
|
||||
Request request=4;
|
||||
Response response=5;
|
||||
uint64 sendTime=6;
|
||||
}
|
||||
|
||||
|
||||
|
60
PrintS/Remote/proto_msg.cc
Normal file
60
PrintS/Remote/proto_msg.cc
Normal file
@ -0,0 +1,60 @@
|
||||
#include "proto_msg.h"
|
||||
#include <google/protobuf/descriptor.h>
|
||||
#include <string>
|
||||
|
||||
using namespace std;
|
||||
using namespace google::protobuf;
|
||||
|
||||
// 4 byte total msg len, including this 4 bytes
|
||||
// 4 byte name len
|
||||
// name string not null ended
|
||||
// protobuf data
|
||||
ProtoMessage *ProtoMsgCodec::decode(unsigned char* buf, size_t size)
|
||||
{
|
||||
if (size < 8) {
|
||||
return nullptr;
|
||||
}
|
||||
char *p = (char *)buf;
|
||||
uint32_t msglen = *(uint32_t *)buf;
|
||||
uint32_t namelen = *(uint32_t *)(buf + 4);
|
||||
if (size < msglen || size < 4 + namelen) {
|
||||
return nullptr;
|
||||
}
|
||||
string typeName(p + 8, namelen);
|
||||
ProtoMessage *msg = NULL;
|
||||
const ProtoDescriptor *des = DescriptorPool::generated_pool()->FindMessageTypeByName(typeName);
|
||||
if (des) {
|
||||
const ProtoMessage *proto = MessageFactory::generated_factory()->GetPrototype(des);
|
||||
if (proto) {
|
||||
msg = proto->New();
|
||||
}
|
||||
}
|
||||
if (msg == NULL) {
|
||||
return nullptr;
|
||||
}
|
||||
int r = msg->ParseFromArray(p + 8 + namelen, msglen - 8 - namelen);
|
||||
if (!r) {
|
||||
delete msg;
|
||||
return nullptr;
|
||||
}
|
||||
return msg;
|
||||
}
|
||||
|
||||
unsigned char* ProtoMsgCodec::encode(ProtoMessage *msg, size_t& msgSize) {
|
||||
if (!msg)
|
||||
return nullptr;
|
||||
const string &typeName = msg->GetDescriptor()->full_name();
|
||||
uint32_t buf_size = 4 + 4 + typeName.size() + msg->ByteSize();
|
||||
unsigned char* buf = new unsigned char[buf_size];
|
||||
if (!buf)
|
||||
return nullptr;
|
||||
*(uint32_t*)buf = buf_size;
|
||||
size_t offset = 4;
|
||||
*(uint32_t*)(buf + offset) = typeName.size();
|
||||
offset += 4;
|
||||
memcpy_s(buf + offset, buf_size, typeName.data(), typeName.size());
|
||||
offset += typeName.size();
|
||||
msg->SerializeToArray(buf + offset, msg->ByteSize());
|
||||
msgSize = buf_size;
|
||||
return buf;
|
||||
}
|
16
PrintS/Remote/proto_msg.h
Normal file
16
PrintS/Remote/proto_msg.h
Normal file
@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
#include <google/protobuf/message.h>
|
||||
#include <map>
|
||||
|
||||
typedef ::google::protobuf::Message ProtoMessage;
|
||||
typedef ::google::protobuf::Descriptor ProtoDescriptor;
|
||||
|
||||
struct ProtoMsgCodec {
|
||||
static unsigned char* encode(ProtoMessage* msg, size_t& msgSize);
|
||||
static ProtoMessage* decode(unsigned char* buf, size_t size);
|
||||
static bool msgComplete(unsigned char* buf, size_t size);
|
||||
};
|
||||
|
||||
inline bool ProtoMsgCodec::msgComplete(unsigned char* buf, size_t size) {
|
||||
return size >= 4 && size >= *(uint32_t *)buf;
|
||||
}
|
BIN
PrintS/Remote/protoc.exe
Normal file
BIN
PrintS/Remote/protoc.exe
Normal file
Binary file not shown.
@ -1,4 +1,5 @@
|
||||
#include "BaseCtrl.h"
|
||||
#include <vector>
|
||||
|
||||
BaseCtrl::BaseCtrl()
|
||||
{
|
||||
@ -18,10 +19,10 @@ void BaseCtrl::SUninit()
|
||||
DeleteCriticalSection(&m_CS);
|
||||
}
|
||||
|
||||
//void BaseCtrl::SetJobController(JobController* job_controller)
|
||||
//{
|
||||
// this->m_job_controller = job_controller;
|
||||
//}
|
||||
void BaseCtrl::SetJobController(JobController* job_controller)
|
||||
{
|
||||
this->m_job_controller = job_controller;
|
||||
}
|
||||
|
||||
bool BaseCtrl::IsStart()
|
||||
{
|
||||
@ -174,6 +175,6 @@ bool BaseCtrl::IsHeatingScanner()
|
||||
|
||||
BaseCtrl::PrintState BaseCtrl::m_print_state = STANDBY;
|
||||
BaseCtrl::PreRunState BaseCtrl::m_PreRunState = NonePre;
|
||||
//vector<string> BaseCtrl::m_InitErrorInfos;
|
||||
vector<string> BaseCtrl::m_InitErrorInfos;
|
||||
BaseCtrl::PauseState BaseCtrl::m_PauseState = ManualPause;
|
||||
CRITICAL_SECTION BaseCtrl::m_CS;
|
@ -1,8 +1,8 @@
|
||||
#pragma once
|
||||
#include "../stdafx.h"
|
||||
#include <string>
|
||||
//#include "../Job/JobController.h"
|
||||
#include <vector>
|
||||
#include "../Job/JobController.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
@ -74,12 +74,12 @@ public:
|
||||
static bool IsPauseStanBy();
|
||||
static bool IsHeatingScanner();
|
||||
|
||||
//void SetJobController(JobController* job_controller);
|
||||
void SetJobController(JobController* job_controller);
|
||||
|
||||
|
||||
protected:
|
||||
//JobController* m_job_controller;
|
||||
//static vector<string> m_InitErrorInfos;
|
||||
JobController* m_job_controller;
|
||||
static vector<string> m_InitErrorInfos;
|
||||
|
||||
|
||||
private:
|
||||
|
104
PrintS/ScannerCtrl/IntelliScanState.h
Normal file
104
PrintS/ScannerCtrl/IntelliScanState.h
Normal file
@ -0,0 +1,104 @@
|
||||
#pragma once
|
||||
#include "../LanguageManager.h"
|
||||
|
||||
class IntelliScanState {
|
||||
|
||||
public:
|
||||
IntelliScanState() {
|
||||
m_GalvanometerScannerTemp = 0.0f;
|
||||
m_ServoBoardTemp = 0.0f;
|
||||
m_PDSupplyVoltage = 0.0f;
|
||||
m_DSPCoreSupplyVoltage = 0.0f;
|
||||
m_DSPIOVoltage = 0.0f;
|
||||
m_AnalogSectionVoltage = 0.0f;
|
||||
m_ADConverterSupplyVoltage = 0.0f;
|
||||
m_PDSupplyCurrent = 0.0f;
|
||||
}
|
||||
~IntelliScanState() {}
|
||||
static string GetStopEventInfo(int ivalue, bool& bvalue)
|
||||
{
|
||||
string info = _(u8"没有").c_str();
|
||||
bvalue = false;
|
||||
switch (ivalue) {
|
||||
case 0x10: {
|
||||
info = _(u8"摆镜到达危险边缘位置").c_str();
|
||||
bvalue = true;
|
||||
}break;
|
||||
case 0x20: {
|
||||
info = _(u8"AD转换错误").c_str();
|
||||
bvalue = true;
|
||||
}break;
|
||||
case 0x30: {
|
||||
info = _(u8"扫描系统温度越限").c_str();
|
||||
bvalue = true;
|
||||
}break;
|
||||
case 0x40: {
|
||||
info = _(u8"外部电压过低").c_str();
|
||||
bvalue = true;
|
||||
}break;
|
||||
case 0x50: {
|
||||
info = _(u8"标志不合法").c_str();
|
||||
bvalue = true;
|
||||
}break;
|
||||
case 0xD0: {
|
||||
info = _(u8"看门狗超时").c_str();
|
||||
bvalue = true;
|
||||
}break;
|
||||
case 0xE0: {
|
||||
info = _(u8"振镜位置到达超时").c_str();
|
||||
bvalue = true;
|
||||
}break;
|
||||
}
|
||||
return info;
|
||||
}
|
||||
public:
|
||||
//bool m_IsInternalVoltagesNormal; //内部电压正常
|
||||
bool m_GalvanometerScannerTempOK; //振镜预热完成
|
||||
float m_ActualPosition; //真实位置
|
||||
float m_SetPosition; //设值位置
|
||||
float m_PositionError; //位置误差
|
||||
//float m_ActualCurrent; //真实电流
|
||||
//float m_ActualVelocity; //真实速度
|
||||
float m_GalvanometerScannerTemp; //振镜温度
|
||||
float m_ServoBoardTemp; //伺服板卡温度
|
||||
float m_PDSupplyVoltage; //PD供电电压
|
||||
float m_DSPCoreSupplyVoltage; //DSP核心供电电压
|
||||
float m_DSPIOVoltage; //DSP输入输出电压
|
||||
float m_AnalogSectionVoltage; //模拟区电压
|
||||
float m_ADConverterSupplyVoltage; //AD转换供电电压
|
||||
float m_PDSupplyCurrent; //PD供电电流
|
||||
bool m_IsGalvanometerScannerOutputStageOn; //振镜输出级生效
|
||||
bool m_IsGalvanometerScannerHeaterOutputStageOn; //振镜加热器输出级生效
|
||||
bool m_IsInternalVoltagesNormal; //内部电压正常
|
||||
bool m_IsPositionErrorNormalRange; //位置误差正常
|
||||
bool m_IsScannerAndServoBoradTempNormal; //振镜和伺服温度正常
|
||||
bool m_IsBootingProcessCompleted; //启动处理完成
|
||||
bool m_IsCriticalError; //发生严重错误
|
||||
bool m_IsExternalPowderLow; //外部电压欠压
|
||||
bool m_IsScanSystemTempOverLimit; //扫描系统超温
|
||||
bool m_IsADConverterSuccessfullyInit; //AD转换初始化成功
|
||||
bool m_IsScannerReachedCriticalEdgePos; //振镜到达临界边缘位置
|
||||
bool m_IsAllControlParametersValid; //允许控制参数
|
||||
bool m_IsADConverterVoltageOK; //AD转换供电正常
|
||||
bool m_IsAnalogSetionVoltageOK; //模拟区电压正常
|
||||
bool m_IsDSPIOVoltageOK; //DSP 输入输出电压正常
|
||||
bool m_IsDSPCoreVoltageOK; //DSP核心供电正常
|
||||
bool m_IsAGCVoltageOK; //AGC电压正常
|
||||
bool m_IsServoBoradOperationTempNormal; //伺服板卡操作温度正常
|
||||
bool m_IsGalvanometerScannerOperationTempNormal; //振镜操作温度正常
|
||||
int m_LowState;
|
||||
int m_HighState;
|
||||
int m_StopEven;
|
||||
};
|
||||
|
||||
class ScanStateXY {
|
||||
public:
|
||||
ScanStateXY() {}
|
||||
~ScanStateXY() {}
|
||||
public:
|
||||
bool m_IsConnected;
|
||||
UINT m_LastError;
|
||||
IntelliScanState m_X;
|
||||
IntelliScanState m_Y;
|
||||
IntelliScanState m_Focus;
|
||||
};
|
506
PrintS/ScannerCtrl/RTC4D2.hex
Normal file
506
PrintS/ScannerCtrl/RTC4D2.hex
Normal file
@ -0,0 +1,506 @@
|
||||
:20008000771820FFEBFA771D202C77284000772B00007729000077072800760900017648E8
|
||||
:2000900080007548000775480008754800097548000B7548000C7548000D764C03F9754CA7
|
||||
:2000A000000A7548000775480008754800097548000B7548000C7548000D7758000048581D
|
||||
:2000B000F0300001F84400AF77580000F495775837FFE90177128000F0707CFF8192F020D6
|
||||
:2000C000238080758812F00004008076E800E920771A03FFF07200CD8092F600F010000148
|
||||
:2000D000808277197D00764C018DE801F00020407F4C7649FFFF764A0001764700007658A4
|
||||
:2000E000000076590000766500007565001076200000754C001276220000754C00137669B8
|
||||
:2000F000000076720000761C0100761D0000761E0100761F0000765F0003765E0006765D33
|
||||
:200100000009767A00097660000A766100147664002075640015F4957664000075640015D9
|
||||
:20011000764B000A754B001B7712FDE47082FD4B764B0005754B001C754B001D765033818C
|
||||
:200120007712FDCCE800EC0380927712FD9C769201008092809280928092809276920100F6
|
||||
:2001300080927712FDF1808280628063765A000C765BA000805C4E0C4E0E4E104E244E263C
|
||||
:200140004E284E2A4E2E803B803C803D80788079807B807C807E807F7712FDB4EC078092DD
|
||||
:2001500076390000763E0000763F0000760B0001760A000077118000766D80007666FFFA35
|
||||
:20016000E8017712FD84829282928292809280927710108177172080766E00007677000015
|
||||
:20017000F6B8E80077122B80F07003EA80927712FDE5EC0A8092766F0004756F001FF07483
|
||||
:200180001BE9F0741C56760900007701FFFF77000001F6BBF4E1F073018A744B0000615A2A
|
||||
:200190000002E801FA2001BE50284E28617C0080104B807CF0F8F80C01BE107FFD30107EF4
|
||||
:2001A0006F490D206F4A0C1FFD4C084A807FF84401BE771200557713FDBCE598E590E59059
|
||||
:2001B000E510615A800077132B807212FDBEFF307583001CFD20E510775480017712FD86DE
|
||||
:2001C0007713FD8996806F830C597093FD4B184A80937493000274930007749300087493B5
|
||||
:2001D0000003749300097493000AFA4401DE7713FD9A1048F27301E2809380937714FD8BD4
|
||||
:2001E000E5A9E5A9F82001FD1082084A8092F84401FD108A808A10826F4A0D00818A6F48DF
|
||||
:2001F0000C02F120FD8A018A89137F836F480C01F120FD8A018289137F83F7B8603F000055
|
||||
:20020000F83002066B3FFFFFF07303DD7712FDF0E80011920082F8450226004A8092F84542
|
||||
:20021000021F6F4A0C21F845022261828000FA3003DD74820004618A8000F82003DDF7E2C3
|
||||
:20022000E8008082F27303DD74820004615C0100F820036DE9005314FA4C024D7713FDAE35
|
||||
:200230007713FDB05616615B0008F830028E615B0010F820028E61648000F82002477712EC
|
||||
:20024000FDF076920247F27303DD7682000175600016F273028E695B000827933993F84DAB
|
||||
:200250000349F6B8F58EF7B68C4BF78F834C624C360DF061855B314CF2608F7B6F4A0C0E6A
|
||||
:200260006F4D0C61304D244C824E254EF062C000F63F824E244E6F4A0C0F824D304D244C0C
|
||||
:200270006F4A0C0F824FF7B8F495114BF590770EB505FD08244FF784890EF45EF48F4E3490
|
||||
:20028000114BF590770E5A82124DF448F448FD08244DF3100010890EF6B6F48FF6B87712BF
|
||||
:20029000FDB3880E824C25826F4A0F08304C2482F447F61750144583F520F84E02A2448367
|
||||
:2002A000695C04004E14F459F550F33001FF1849F44F814CF3002100014A8912114C6F4ADD
|
||||
:2002B0000F07F33001FFF3002100014AF7B88913118A0982814C314CF7413F82615C020023
|
||||
:2002C0007712FDB2FD30F7846F4A0F0F838A118B0983814C314CF7413F836F4A0F0F838212
|
||||
:2002D0007713FDA8A489B005F4416F4A0C0FF483A549F784B309F7416F4A0F0FF5838293BC
|
||||
:2002E000838B7712FDA37714FDAFE800F540A6416F4A0C0FF450B049F484A7416F4A0F0F44
|
||||
:2002F000F610B0456F4A0C07FD30F484F448F483828C6F450C7FF4858242E800F540A64141
|
||||
:200300006F4A0C0FF450B049F484A7416F4A0F0FF610B0056F4A0C07FD30F484F448F483B6
|
||||
:2003100082846F440C7FF48582417714FDA6A09AF483A19AF583829383837712FDA37714EC
|
||||
:20032000FDAFE800F540A6416F4A0C0FF450B045A7416F4A0F0FF610B0496F4A0C07F4483A
|
||||
:200330003C63F4834E0EE800F540A6416F4A0C0FF450B045A7416F4A0F0FF610B0016F4AFB
|
||||
:200340000C07F4483C62F4834E0C615C0400F82003DDE8007712FDAC8039803E7192FDA4F1
|
||||
:200350007182FDA57712FD445634F443F48E9680F48F3C4A6F340C7F4541FD30F784F78FEA
|
||||
:20036000968083304542FD30F784F78F8331685CFAFFF27303DD695B0004103E1A39F845A3
|
||||
:2003700003DD603E00006B3EFFFFF82003DD7140FD3E60390001F830039110330839F8454D
|
||||
:2003800003BB560C570E50145316F483F5834E0C4F0E6B39FFFF615B0200F930059FF073D5
|
||||
:2003900003DD443B453C4E0C4F0E695B00047639000060330001F82003DD615B0208F830C5
|
||||
:2003A00003DD615B0010F82003DD61648000F82003B3763900017712FDF0769203B3F2733D
|
||||
:2003B00003DD768200017560001676390000F27303DD695B000C615B0208F83003D3615B25
|
||||
:2003C0000010F82003D361648000F82003CF7712FDF0769203CFF27303DD7682000175608D
|
||||
:2003D0000016695B0008560C570E50145316F483F5834E0C4F0E6B39FFFFF6B8710CFD52D5
|
||||
:2003E000E812F540185BF620FA440404710EFD5356126F470C054E12F450F03001FFF0004D
|
||||
:2003F00021008812F00000808813F7B87714FDD0570CA4A1B0A0F501F5838352570EA4A13B
|
||||
:20040000B0A0F501F5838353615C0010F82004A3F6B87712FD217713FDC110217421000554
|
||||
:2004100096000821F485F470F808041CFF206B200001FF306B20FFFFF7B83082248BF45059
|
||||
:20042000A649A6506F4A0C03F45CA501F60CF4BCF6B8FD43F5BCF485F558F03000FFF448A7
|
||||
:20043000F448F33001FF814CF3002100014A8912114C6F4A0F07F33001FFF3002100014AD8
|
||||
:20044000F7B88913118A0982814C314C91087712FDC2FD30F7846F4A0F076F920D98118B47
|
||||
:200450000983814C314C91186F4A0F076F820D987713FDC87714FDC46F530C4840940A9485
|
||||
:20046000829380936F520C4840940A8482938083E800F540A6506F4A0C0FF450B054A7509F
|
||||
:200470006F4A0F0FF610B010F441028C3C8CF448F540F483F5208252F495FF4B695C1000CB
|
||||
:20048000FF4E695C20007713FDCBE800F540A6506F4A0C0FF450B058F484A7506F4A0F0F5F
|
||||
:20049000F610B010F441028C3C84F448F540F483F5208253F495FF4B695C4000FF4E695C47
|
||||
:2004A0008000F0730508615A0020F82004D5F6B87712FD217713FDCD102174210005960076
|
||||
:2004B0000821F485F470F80804BBFF206B200001FF306B20FFFFF7B83082248BF450A649C1
|
||||
:2004C000A6506F4A0C03F45CA501F60C6F520C01F44FF540F483F5208252F84D04D5FF4B58
|
||||
:2004D000695C1000FF4E695C2000615A0040F8200508F6B87712FD237713FDCF102374236E
|
||||
:2004E00000069600F4950823F485F470F80804EEFF206B220001FF306B22FFFFF7B8308215
|
||||
:2004F000248BF450A649A6506F4A0C03F45CA501F60C6F530C01F44FF540F483F5208253AC
|
||||
:20050000F84D0508FF4B695C4000FF4E695C8000F07405E4FA02054E48018801615B01007D
|
||||
:20051000E901F495F830054E615A00048339833E833F810B686FFFFEFF30686FFFDE756FB8
|
||||
:20052000001F68650FF775650010680A7FFF77172080766E00007712FDF1768200001064FA
|
||||
:20053000F2A5804B754B0015685BF7A175640015615A0080685AFF9F685CFA0F7152FD0CF7
|
||||
:200540007153FD0EFA200599695A2000561C4E1A7712FD67F0741859F0730599F130000271
|
||||
:20055000F84D0573610B0001F830055AF2730573696F0100E80150244E245426E900810B66
|
||||
:20056000696F00018139813E813F8140686FDFFFFF45686FFFDF756F001F7211FD6DF273A5
|
||||
:200570000599695A0800100B1A391A3E1A3FF84405997311FD0AF02006B26FD10C01F4E392
|
||||
:20058000615B0004F8200599615B0008F8200599615C0008685BFFF3FA200599756100174C
|
||||
:20059000E9201B64814B754B0015F495F49575640015F02010636F090C01F4E3F4EB6B7089
|
||||
:2005A000FFFF60700000FC207639FFFD10816F4A0C1FF84405DB6DD17171FD7010D16F4AEE
|
||||
:2005B0000C1FF84505B9756000160060804B754B001710D1F0741C38615B1000F82005D2C4
|
||||
:2005C0006F810D53F3300007F84D05D2F3100001F747F3400070773400014835F47EF80805
|
||||
:2005D00005CD89334831F03003FF1181F330E000F2A080D1FC00685BFDFF710CFD3B710E7B
|
||||
:2005E000FD3CFE0076390001F7B87712FD917092FD527092FD537092FD547712FD4D6F52C4
|
||||
:2005F0000C466F530D46F6B87713FD4B6F480C068082F45030926F480F068182F750F70620
|
||||
:20060000F600804C24926F4A0C0F828A615A0008F820065C1050004CF1000040881489152E
|
||||
:200610006D8A458C4484F5208383A681A3328383A681A3AB3F8D43B48383A6416F4A0C0F24
|
||||
:2006200082556D8A6DB5458C4484F5208383A681A3328383A681A3AB3F8D43848383A6411F
|
||||
:200630006F4A0C0F8256615A0100F82006507714FDB49620305524944048FD203C559620B9
|
||||
:20064000305625944348FD203F56F7B8F4953C943F94F6B8F483F5833C483F4882558356EB
|
||||
:20065000755500077714FD9410550848809410560848809475560008615A0010FC201051EF
|
||||
:20066000004CF1000040881489156D8A458C4484F5208383A681A3328383A681A3AB3F8DD5
|
||||
:2006700043B48383A6416F4A0C0F82556D8A6DB5458C4484F5208383A681A3328383A681E5
|
||||
:20068000A3AB3F8D43848383A6416F4A0C0F8256615A0200F82006A57714FDB896203055E5
|
||||
:2006900024944048FD203C559620305625944348FD203F56F7B8F4953C943F94F6B8F4832A
|
||||
:2006A000F5833C483F48825583567555000B7714FD97105508488094105608488094FE0082
|
||||
:2006B0007556000CF073075FF0730762F07307AEF07307ECF07307CCF0730838F07308828A
|
||||
:2006C000F0730889F0730891F0730899F07308A1F07308A8F07308D0F07308D8F07308E13D
|
||||
:2006D000F07308F9F0730916F073091DF0730928F073092DF073093EF0730955F073099304
|
||||
:2006E000F0730973F07309C1F07309EFF0730A07F0730A37F0730A6FF0730AB0F0730DFF13
|
||||
:2006F000F0730E30F0730E3DF0730E5BF0730E72F0730E7BF0730E83F0730E97F0730EA7EC
|
||||
:20070000F0730EBBF0730ED1F0730EE8F0730EFDF0730F14F0730F23F0730F2CF0730F3841
|
||||
:20071000F0730F9BF0730FA2F0730A58F0730D7CF0730A1FF0730E1CF0730AF1F0730D56BA
|
||||
:20072000F073075FF073075FF073075FF073075FF073075FF0730B1BF0730C26F0730C72CD
|
||||
:20073000F0730CBEF0730D0AF0730FB8F0730FE8F0731035F07306B2615C0002F495FF3044
|
||||
:20074000685BFFFB615B0040685BFFBEF820075C615B0010717AFD3FFF30715EFD3F603F19
|
||||
:200750000000F830075C6DC1EE0176390000763E0000FE0076400000FE00685BFFEF6DF1BD
|
||||
:200760000003FC00615C00E0F830079477172080680A7FFF686FFFFE756F001F615A0080EA
|
||||
:20077000FE20760B0001615B0040F830077BF2730785763F0000615B0010F8200783F273AA
|
||||
:200780000785715EFD3F717AFD3F685BFFEE695B00C4713BFD6A713CFD6B561C4E1A7712D8
|
||||
:20079000FD67F0741859FC00615C0080FA3007A9685CFF5F100A1A48F010BE80EE01F843F7
|
||||
:2007A00007A5F273057977118000F27305797711BE80EE01F27305797211FDD4615B0040D7
|
||||
:2007B000F83007B6F27307C0763F0000615B0010F82007BEF27307C0715EFD3F717AFD3F5C
|
||||
:2007C000685BFFEE695B0044561C4E1AE712F0741859FE006DF10003615B0040F83007D45B
|
||||
:2007D000F27307DE763F0000615B0010F82007DCF27307DE715EFD3F717AFD3F685BFFEE17
|
||||
:2007E000695B0064561C4E1AE712F0741859685BFFDFFE006DF10003615B0040F83007F40A
|
||||
:2007F000F2730806763F0000615B0010F8200802715FFD3F615A0001F8200806F273080672
|
||||
:20080000695B0001695B4000717AFD3F615B2008F8300822685BFFBB695B0008770E199A31
|
||||
:20081000764000006DC124743C4A3C3F823F770E000A243F0874F000000A6F4B0C83FE00DB
|
||||
:20082000754B0016685BFFFB695B0050561E4E1AE712F07418596DF10003615B0001685B86
|
||||
:20083000BFFEFC201066083FFC46FE00695B0004615B0040F8300840F2730850763F00002C
|
||||
:20084000615B0010F820084E715FFD3F615A0001F8200850F2730850695B0001717AFD3F7D
|
||||
:20085000615B2008F830086C685BFFBB695B0008770E199A764000006DC124743C4A3C3F0A
|
||||
:20086000823F770E000A243F0874F000000A6F4B0C83FE00754B0016685BFFFB695B007041
|
||||
:20087000561E4E1AE712F07418596DF10003615B0001685BFFDEFC201066083FFC46FE00E7
|
||||
:20088000695B0004F074073C7581000F6DF10003FC00F074073C1081F0741C2C6DF1000342
|
||||
:20089000FC00F074073C1081F0741C386DF10003FC00F074073C71D1FD6271D1FD636DD1D7
|
||||
:2008A000FC00F074073C7181FD3F6DF10003FC00615B0040F83008B0F27308BA763F000052
|
||||
:2008B000615B0010F82008B8F27308BA715EFD3F717AFD3F695B0014685BFFBFE800118158
|
||||
:2008C000803E8040813981334E144E164E18710CFD3B710EFD3C7110FD3D6DF10003FC007B
|
||||
:2008D000F074073C71D1FD1C71D1FD1D6DD1FC00F074073C71D1FD1E71D1FD1F71D1FDB31C
|
||||
:2008E000FC00F074073C10D111D180746F600C836F610D8361810001695B2000FF30685B27
|
||||
:2008F000DFFF61D10002685CFFF7FF30695C0008FC00F074073C71D1FD5D71D1FD5E71D102
|
||||
:20090000FD5FE8000079715DFD7AFC45115D097BF685EC0F1E79802C1C2CEC0F1E79802D62
|
||||
:2009100018493C2CFD4BF4844E2CFC00F074073C6F810C4200488811FC006F810C42004880
|
||||
:200920006DF100034911819FF27305798811EE01108FF27305798811EE01F074073C7581CA
|
||||
:200930000009108108487581000D6DF100037714FD9680847714FD998084FC00F074073C6F
|
||||
:2009400010D16F4A0C1FF845094E75D1001875D100196964001175640015FC006864FFEFFF
|
||||
:20095000756400156DF10002FC00615B0040F830095DF2730967763F0000615B0010F82045
|
||||
:200960000965F2730967715EFD3F717AFD3F685BFFEE695B0444561C4E1AE712F07418599E
|
||||
:20097000FE006DF10003615B0040F830097BF2730985763F0000615B0010F8200983F273E3
|
||||
:200980000985715EFD3F717AFD3F685BFFEE695B0464561C4E1AE712F0741859685BFFDF72
|
||||
:20099000FE006DF10003615B0040F830099BF27309AB763F0000615B0010F82009A9715FEC
|
||||
:2009A000FD3F615A0001F82009ABF27309AB695B0001717AFD3F685BFFFB695B0450561E25
|
||||
:2009B0004E1AE712F07418596DF10003615B0001685BFFFEFC201066083FFC46FE00695B36
|
||||
:2009C0000004615B0040F83009C9F27309D9763F0000615B0010F82009D7715FFD3F615A96
|
||||
:2009D0000001F82009D9F27309D9695B0001717AFD3F685BFFFB695B0470561E4E1AE7120F
|
||||
:2009E000F07418596DF10003615B0001685BFFDEFC201066083FFC46FE00695B0004F0741F
|
||||
:2009F000073C615A8000696400016864FDFD756400157712FDE41081808275D1001BFF206A
|
||||
:200A000075D1001CFD306DD175D1001DFC00F074073C615A8000696400036864FDFF756457
|
||||
:200A100000157712FDE41081808275D1001BFF2075D1001CFD306DD175D1001DFC00F074A4
|
||||
:200A2000073C615A8000696402016864FFFD756400157712FDE41081808275D1001BFF2035
|
||||
:200A300075D1001CFD306DD175D1001DFC00F074073C11D18158815971D1FD477713FDD061
|
||||
:200A40006DD1E8006F930D9F809380936F830D9F4E121158F500695B0002FF4D685BFFFD6F
|
||||
:200A50001147F500685BF7FFFF4D685BFFFDFC00F074073C71D1FD5871D1FD4771D1FD591D
|
||||
:200A6000E9004F121047F600695B0802FF45685BF7FD10581A59FC44FE00685BF7FDF074E2
|
||||
:200A7000073C7712FDCC10D1809210D1808210D16F4A0C1FF8450AAA61650020695A00207C
|
||||
:200A8000F8200A877620000076210000FC00616500807712FDCD7713FD21F8200A9D7421EF
|
||||
:200A90000005F7B8E800A6416F4A0C0FF450B0016F4A0C046F620C9BF6B8754B00127620A3
|
||||
:200AA0000000742100056021000076210000F8200A9DFC00685AFFDFF4BCF0741A65FC009A
|
||||
:200AB000F074073C7712FDCE10D1809210D1808210D16F4A0C1FF8450AEB61650020695AB5
|
||||
:200AC0000040F8200AC87622000076230000FC00616500807712FDCF7713FD23F8200ADE7A
|
||||
:200AD00074230006F7B8E800A6416F4A0C0FF450B0016F4A0C046F630C9BF6B8754B00135F
|
||||
:200AE00076220000742300066023000076230000F8200ADEFC00685AFFBFF5BCF0741A6595
|
||||
:200AF000FC00F074073C7712FDC010D1809210D1808210D16F4A0C1FF8450B16616500201E
|
||||
:200B0000695C0010F8200B097622000076230000FC00754B00127620000074210005602124
|
||||
:200B1000000076210000F8200B09FC00685CFFEFF0741AC5FC00F074073C7712FD8410D183
|
||||
:200B2000809210D18092769280007692000110D18082FC00F7B8615B0020E800E9014E1481
|
||||
:200B30008139FA300B407713FDA4A298A394E589E5898293838BF485F2730B4DF785F586AE
|
||||
:200B4000A098A19482938393F485F785F5861092F48480931092F484808B7714FDB0E50618
|
||||
:200B5000F750F7516F4A0F1FF84C0C1E615C02007712FDA3E800F540A6416F4A0C0FF4509D
|
||||
:200B6000B049F484A7416F4A0F0FF610B0456F4A0C07FD30F484F448F483828C6F450C7FD9
|
||||
:200B7000F4858242E800F540A6416F4A0C0FF450B049F484A7416F4A0F0FF610B0056F4A68
|
||||
:200B80000C07FD30F484F448F48382846F440C7FF485824127943984F84D0C1EF6B8F58E52
|
||||
:200B9000F7B68C4BF78F834C624C360DF061855B314CF2608F7B6F4A0C0E6F4D0C61304DF8
|
||||
:200BA000244C824E254EF062C000F63F824E244E6F4A0C0F824D304D244C6F4A0C0F824FC4
|
||||
:200BB000F7B8F495114BF590770EB505FD08244FF784890EF45EF48F4E34114BF590770E86
|
||||
:200BC0005A82124DF448F448FD08244DF3100010890EF6B6F48F4E16763200007712FD443D
|
||||
:200BD0005634F443F48E9680F48F3C4A6F340C7F4541FD30F784F78F968083304542FD3044
|
||||
:200BE000F784F78F8331F7B87712FD317713FD37A445B001615B0001F8200C176F4B0C7F45
|
||||
:200BF000F4853034F6B8253AF84D0C15834CF063FFFFEC0F1E4C6F4B0D516F4A0F1F1849B0
|
||||
:200C0000FD4DF4843C4AF485F45900751176F4878814E589E589E5893084253F6F4A0F0D7C
|
||||
:200C10006F3F0D92FE00E589E501763F0000F6B8E589E589E589FE00E589E501F6B8763FC3
|
||||
:200C20000000685BFFBFFE00685CFEFF615B0040F8300C2EF2730C3E763F0000615B0010E6
|
||||
:200C3000F8200C3C715FFD3F615A0001F8200C3EF2730C3E695B0001717AFD3F615B20089B
|
||||
:200C4000F8300C5A685BFFBB695B0008770E199A764000006DC124743C4A3C3F823F770EC2
|
||||
:200C5000000A243F0874F000000A6F4B0C83FE00754B0016685BFFFB695B0070695C0100CD
|
||||
:200C6000685CF9FFE712F0740B2A6DF10003615B0001685BFFDEFC201066083FFC46FE004F
|
||||
:200C7000695B0004615B0040F8300C7AF2730C8A763F0000615B0010F8200C88715FFD3FBE
|
||||
:200C8000615A0001F8200C8AF2730C8A695B0001717AFD3F615B2008F8300CA6685BFFBBC8
|
||||
:200C9000695B0008770E199A764000006DC124743C4A3C3F823F770E000A243F0874F000A4
|
||||
:200CA000000A6F4B0C83FE00754B0016685BFFFB695B0070695C0300685CFBFFE712F07439
|
||||
:200CB0000B2A6DF10003615B0001685BFFDEFC201066083FFC46FE00695B0004615B004054
|
||||
:200CC000F8300CC6F2730CD6763F0000615B0010F8200CD4715FFD3F615A0001F8200CD698
|
||||
:200CD000F2730CD6695B0001717AFD3F615B2008F8300CF2685BFFBB695B0008770E199A46
|
||||
:200CE000764000006DC124743C4A3C3F823F770E000A243F0874F000000A6F4B0C83FE0007
|
||||
:200CF000754B0016685BFFDB695B0050695C0100685CF9FFE712F0740B2A6DF10003615B2C
|
||||
:200D00000001685BFFDEFC201066083FFC46FE00695B0004615B0040F8300D12F2730D227A
|
||||
:200D1000763F0000615B0010F8200D20715FFD3F615A0001F8200D22F2730D22695B000195
|
||||
:200D2000717AFD3F615B2008F8300D3E685BFFBB695B0008770E199A764000006DC1247438
|
||||
:200D30003C4A3C3F823F770E000A243F0874F000000A6F4B0C83FE00754B0016685BFFDBBF
|
||||
:200D4000695B0050695C0300685CFBFFE712F0740B2A6DF10003615B0001685BFFDEFC208D
|
||||
:200D50001066083FFC46FE00695B0004615B0040F8300D5EF2730D68763F0000615B0010D4
|
||||
:200D6000F8200D66F2730D68715EFD3F717AFD3F685BFFEE695B0004685AFF9F685CFFEF52
|
||||
:200D7000561C4E1A44524E0C44534E0EE712F0741859FE006DF10003F074073C56286F499C
|
||||
:200D80000D44F520685AFF9FF84B0DFA61D100011165F8300DA9695A0020F34000016165DF
|
||||
:200D900000207712FDCCF8200D9B76200000F2730DC576210000754B0012762000007421B0
|
||||
:200DA00000056021000076210000F8200D9BF0730DC5695A0040F34000026165002077127A
|
||||
:200DB000FDCEF8200DB976220000F2730DC576230000754B00137622000074230005602388
|
||||
:200DC000000076230000F8200DB9816575650010F448F448F7B8F48EF4958C4B114B6F4AAE
|
||||
:200DD0000F1F61818000FD4EE900890E45D11BD1F785F6B8F495F78FF48F6F4B0C90814CC7
|
||||
:200DE000F750EC0F1F4B814D1D4D1B4CEC0F1F4B814E1D4EEC0F1F4B19493F4E444DF448E8
|
||||
:200DF000F618FD30F484F4836F920C90808AFE00E9004F286DF10003E8004E28FC00F07495
|
||||
:200E0000073C615C00041081F0300FFF1177F330F000F2A08077FF207181FD77615C0001A8
|
||||
:200E10007577000E6DF10003FC30696F0008756F001F695C0001FC00F074073C10D111D12C
|
||||
:200E20006DD1805081516F4A0C1F6F4A0F1F695A0018FF45685AFFF7FF4D685AFFEFFC0038
|
||||
:200E3000F074073C7181FD6E6DF10003686FFFFE756F001FFE00760B00017581001410D1FB
|
||||
:200E40006F4A0C1F61D1000111D168650003FF3069650004F8450E58106FF493F2806F4AF4
|
||||
:200E50000C1FFC44696500187565001068650FEFFE0075650010F074073C695B0200F02017
|
||||
:200E6000FFFE8039803310D18040803E10D180717670000144D16DD100D14E1444D100D185
|
||||
:200E70004E16FC00F074073C10486F810C02806D6DF10003FC00F074073C10D111D16DD113
|
||||
:200E8000F0741C46FC00F074073CE8201A64804B754B0015764B000275640015695B000846
|
||||
:200E9000685BFFFB6DF10003FE00754B0016F074073CE8201A64804B754B0015764B0002C0
|
||||
:200EA00075640015685BFFF36DF10003FC00F074073C6181FFFFF8300EB66864FFFB756420
|
||||
:200EB00000157581001A6DF10003FC007581001A6DF10003FC00F074073C744B0004108138
|
||||
:200EC000184B08D1114BF7931949198109D171D1FD4CFC44FC4C104C1A7780777577000E29
|
||||
:200ED000FC00F074073C744B00041081184B08D1114BF7931949198109D171D1FD4CFC4448
|
||||
:200EE000FC4C104CF493187780777577000EFC00F074073C744B00041081184B08D1114BB8
|
||||
:200EF000F7931949198109D171D1FD4CFC44FC4C6F4C0C4200488811FC00F074073C744B23
|
||||
:200F000000041081184B08D1114BF7931949198109D171D1FD4CFC44FC4C6F4C0C420048E0
|
||||
:200F10004911819F8811FC00F074073C7181FD6E6DF10003686FFFFE756F001F772C000AC9
|
||||
:200F2000FE00760B0001F074073C56284E2AE8004E286DF10003FC00F074073CF020FD9C89
|
||||
:200F30006FD10C01881210D111D180928192FC00F074073C5624618100015426686FFFDFA3
|
||||
:200F4000FF30696F0020FF45686FFFDF61810004756F001FFF3068650FF761810008695AD9
|
||||
:200F50000004FF30685AFFFB61810010685CFFFDFF30695C0002618100206864FEFFFF30F0
|
||||
:200F600069640100756400156181008068647FFFFF306964800061810100685CFFFBFF30BD
|
||||
:200F7000695C0004618102006865FFDFFF3069650020618104006865FF7FFF30696500803E
|
||||
:200F800075650010618108006864FFBFFF3069640040756400156F810C54F0100006685BB0
|
||||
:200F9000FEFFFF45695B01006DF10003EC04F49548018801FC00F074073C7181FD786DF127
|
||||
:200FA0000003FC00F074073C10D111D16DD1804C6F4A0C1FF3FF754C001468650003FF0C38
|
||||
:200FB00069650004FF446965000875650010FC00616F200071D1FD4B71D1FD4C6DD14911B3
|
||||
:200FC000F3100004F8300FDA696F20008911764D0002754D0016104B004D804D754D00177C
|
||||
:200FD000754B0012744D0005104D6F4A0C1FF8440FD0FC00F7B8744D0005104DF485084C72
|
||||
:200FE000F6B8F8420FE58911FC00686FDFFFFC00F7B86D89744B0005114BF785F6B8754C1E
|
||||
:200FF0000012744C0005104C6F4A0C1FF8440FEF763F06ABF640F0100007F8431030F6403C
|
||||
:20100000F01027D8F495F495FF46F12027D8F646804CF450F0000001F000FDE58812F49538
|
||||
:20101000F495108A0882804D44827712FD4C7713FD4DF495F495A6017712FDE4824C308237
|
||||
:20102000F495F495244CF451804BF0100004F8431030754B001C764D0005754D0016FC0027
|
||||
:20103000764D0005754D0017FC00616F200071D1FD4B6DD16DD14911F3100004F830105123
|
||||
:20104000696F2000764D0002754D00168911754B0012744D0005104D6F4A0C1FF8441047F5
|
||||
:20105000FC00F7B8744D0005104DF485084BF6B8F842105C8911FC00686FDFFF764D000282
|
||||
:20106000754D0017FC00FC00F495F07310FBF073111FF0731144F0731149F0731159F07370
|
||||
:2010700011A0F07311A5F07311AAF07311E2F07311E7F07311EDF07311F3F07311FCF0732C
|
||||
:201080001205F073120EF0731215F0731226F073122BF0731232F0731239F0731246F0737E
|
||||
:201090001253F073125AF0731263F073126AF0731279F073128BF07312A1F07312ADF073CC
|
||||
:2010A00012BCF07312EAF07312EFF07312F6F0731309F073132DF0731334F0731341F0734E
|
||||
:2010B0001369F073165AF0731667F073166CF07316C7F0731705F0731719F0731726F073B7
|
||||
:2010C000172FF073174CF0731752F0731761F0731766F0731774F0731779F0731782F0733D
|
||||
:2010D0001BC4F0731787F07317E1F07317FDF0731829F073117AF0731195F0731564F07374
|
||||
:2010E00015ADF07315FBF0731063F0731063F0731063F0731063F0731063F0731063F07354
|
||||
:2010F0001834F073183FF0731847F0731850F0731063F0731063610B000176090000FC2099
|
||||
:20110000766E000010488811800A696F0001686FDFFF756F001F760B0000615B0080FE2004
|
||||
:20111000695A0400763F0000685BFF6E695B0044561C4E1A7712FD6AF0741859FC00610B04
|
||||
:20112000000176090000FC20766E0000F020BE808811800A696F0001686FDFFF756F001F2D
|
||||
:20113000760B0000615B0080FE20695A0400763F0000685BFF6E695B0044561C4E1A7712AD
|
||||
:20114000FD6AF0741859FC007508000FFE0076090000615C00017108FD777577000E76092A
|
||||
:201150000000FC30696F0008756F001FFE00695C0001760900006F0B0C4F1C481A6E685CA8
|
||||
:20116000FF7FF8451166FE00695C0020685CFF5F760B0000696F0001756F001F100A1A485F
|
||||
:20117000F010BE80F8431177FE0077118000FE007711BE806F080D427609000001486F0B8C
|
||||
:201180000C4F1C481A6EF845118B7712FDD48182FE00695C0080685CFF5F8911696F0001FA
|
||||
:20119000756F001FFE00760B0000715CFD08685C0FFF716FFD07686FFEFFFE0076090000E4
|
||||
:2011A000695C0040FE0076090000685CFFBFFE0076090000E9018339833E833F810B686F22
|
||||
:2011B000FFDE756F001F68650FF775650010680A7FFF77172080695A1000715DFD7A1064D8
|
||||
:2011C000F2A5804B754B0015685BF5A175640015685AFF9F685CFA0F7152FD0C7153FD0EC9
|
||||
:2011D0007712FDF176820000615A008076090000FC20685BFF7F561C4E1A7712FD67F0744E
|
||||
:2011E0001859FC0074080004FE00760900001008F0741C2CFE00760900001008F0741C3874
|
||||
:2011F000FE00760900007712FD267713FD08E558E510FE00760900007712FD247713FD083F
|
||||
:20120000E585E501FE00760900007712FD087713FD9CEC07E549FE00760900007108FD62DA
|
||||
:201210007107FD63FE0076090000610B0001F8201223685BFFEE763F0000561C4E1A7712E7
|
||||
:20122000FD06F0741859FE00760900007608098AFE00760900006964000175640015FE0011
|
||||
:20123000760900006864FFFE75640015FE00760900006864FFFE75640015764B0599E801EC
|
||||
:20124000F00020407F4BFE00760900006964000175640015764B018DE801F00020407F4BE9
|
||||
:20125000FE007609000074080001680800FFFE0076090000710CFD08710EFD077110FD060F
|
||||
:20126000FE007609000010486F080C02806DFE0076090000750800097714FD96100808489E
|
||||
:201270007508000D80847714FD998084FE00760900006108FFFFF83012866864FFFB756468
|
||||
:2012800000157508001AFE00760900007508001AFE007609000061080001F820129A750767
|
||||
:201290000018750600196964001175640015FE00760900006864FFEF75640015FE00760924
|
||||
:2012A0000000610B000176090000FC20764B000A695B0008FE00754B0016610B00017609CF
|
||||
:2012B0000000FC20E8201A64804B754B0015685BFFF7FE007564001561080001685AFFFE0E
|
||||
:2012C000FF30695A000161080002695B8000FF30685B7FFF610800087107FD66F82012E6A0
|
||||
:2012D0007106FD7B7105FD79115D097BF685EC0F1E79802C1C2CEC0F1E79802D18493C2C28
|
||||
:2012E000FD4BF4844E2CFE0076090000E800FE00807980097508000AFE007609000074084F
|
||||
:2012F000000574070006FE007609000010081107805081516F4A0C1F6F4A0F1F695A001863
|
||||
:20130000FF45685AFFF7FF4D685AFFEFFE0076090000610B00016F080C420048760900005F
|
||||
:20131000FC20766E00008811800A696F0001756F001F760B0000615B0080FE20695A04001C
|
||||
:20132000763F0000685BFF6E695B0044561C4E1A7712FD6AF0741859FC007408000274072C
|
||||
:201330000003FE007609000010651108F030FFFCF3300003F2A0806575650010FE00760970
|
||||
:2013400000006108000110071A061A051A047712FD07F8201357685AFEFF7713FDB4EC03B7
|
||||
:20135000E549FF44695A0100FE0076090000685AFDFF7713FDB5EC03E549FF44695A0200AC
|
||||
:20136000FE0076090000EC5CF495084AF8441363FC0061080001F495FF3075070007FF304B
|
||||
:2013700075060008FF207507000BFF207506000C1005F074136330036108000111070102E7
|
||||
:201380008107F363FFFFF3000000F84C13D9110601018106F363FFFFF3000000F84C13D937
|
||||
:20139000FF3075070007FF3075060008FF207507000BFF207506000C1004F0741363FF3070
|
||||
:2013A000744B0002FF20744B0003344BF495F830137C61080001110701028107F363FFFF6B
|
||||
:2013B000F3000000F84C13D9110601018106F363FFFFF3000000F84C13D9FF307507000731
|
||||
:2013C000FF3075060008FF207507000BFF207506000C1004F0741363FF30744B0002FF2012
|
||||
:2013D000744B0003344BF495F82013A976090000FC00760700007606000076090000FC0070
|
||||
:2013E0004901F3300001EC09F495F84D13E08901084AF84413E0EC63F495FC00FF30744BFC
|
||||
:2013F0000002FF20744B0003104BF558F03000FFF520F540F3300003F3100001F84D141551
|
||||
:20140000E802F07413E0FF30744B0002FF20744B0003104BF558F03000FFF520F540F33086
|
||||
:201410000003F3100001F84C141DF03000046F4A0C1FE9006F4A0F1FFC00E9076F4A0F1F95
|
||||
:20142000FC007713FDDA104D114CF3100001F84D1437F3100001F84D143DF3100001F84D1E
|
||||
:2014300014437712FDD5E589E501F07314457712FDE38093E501F07314457712FDE2E50966
|
||||
:201440008083F0731445809380834901F3300001EC09F495F84D14218901EC63F495764B2E
|
||||
:2014500000007712FDDA7713FDD7108208837712FDD9F5850982F84E14647712FDDAE50139
|
||||
:201460006B4B0001F073146C11837712FDD9FD430982FD46018281837712FDDB7713FDD88A
|
||||
:20147000108208837712FDD9F5850982F84E147F7712FDDBE5016B4B0001F0731487118372
|
||||
:201480007712FDD9FD430982FD4601828183FF30758B0008FF20758B000CFF3075830007C8
|
||||
:20149000FF207583000B104BF0100002F8441421FC00F1203A98F520F84A14A7F120C35037
|
||||
:2014A000F520F84F14A7E9016F4A0F1FFC007712FDDC1148F520F84B14B77692000F76825B
|
||||
:2014B0003A98F01001F4E90FF486F07314C07692C3507682FFF4F01001F4F120C350F48613
|
||||
:2014C000804DF0741421F02009C4F07413E0F07413EEFC4CF84514EA7712FDDC114D108238
|
||||
:2014D000F520F84E14C0104DF000000A804D7712FDDD1182F620E9016F4A0F1FFC42F0742A
|
||||
:2014E0001421F020012CF07413E0F07413EEFC4CF84414D3104DF000000A804D7712FDDDCC
|
||||
:2014F0001182F620E9016F4A0F1FFC42F0741421F020012CF07413E0F07413EEFC4CF8450D
|
||||
:2015000014EA7712FDDEE900F020FFFF819280928192818A764E0004104DF0100001804D3C
|
||||
:201510007712FDDC1182F620E9016F4A0F1FFC47F0741421F020012CF07413E0F07413EE0A
|
||||
:20152000FC4CF844150C104DF0000001804D7712FDDD1182F620E9016F4A0F1FFC42F0746C
|
||||
:201530001421F020012CF07413E0F07413EEFC4CF84515237712FDDE104D1182F5868192CE
|
||||
:201540001182F587819200923C82828A8082104EF0100001804EF844150C7712FDE0119278
|
||||
:201550003F8AF75E81827712FDDE1092088AF0100006E9026F4A0F1FFC467712FDE0E90059
|
||||
:201560006F4A0F1F1082FC00610800017712FDD5FF307713FD94FF207713FD9710930048BF
|
||||
:20157000809211930148819280928182E80A7712FDD980927712FDE2100380921002809220
|
||||
:20158000764C00011007F074149981088007F84C15A21006F074149981088006F84C15A224
|
||||
:20159000764C00021005F074149981088005F84C15A21004F074149981088004F84C15A21B
|
||||
:2015A00076080000764C0000F0741421F02009C4F07413E076090000FC00610800017712B0
|
||||
:2015B000FDD5FF307713FD94FF207713FD9710930048809211930148819280928182E80ABE
|
||||
:2015C0007712FDD98092764D87D0764E0000104DF01003E8804DF0103A9876080005F84317
|
||||
:2015D00015F0764C0003F0741421F02009C4F07413E0F07413EE8108F84C15F0F84515E4F7
|
||||
:2015E000764E0000F07315C7104E004A804EF0100003F84415C78008104DF00003E8800710
|
||||
:2015F000764C0000F0741421F02009C4F07413E076090000FC00610800017712FDD5FF30DD
|
||||
:201600007713FD94FF207713FD9710930048809211930148819280928182E80A7712FDD90F
|
||||
:20161000809210067712FDE2809280821007804C764D0000F0741421F02009C4F07413E0A3
|
||||
:20162000F07413EEF84C164D804E760800007714FD07104D004AF5400949F84A1653804D1D
|
||||
:20163000F0741421E805F07413E0F07413EEF84C164D114E6F4A0F1F804EF8451629F84CDD
|
||||
:2016400016291008004AF540F3100007F84E16518008104D808CF07316297608000AF0737F
|
||||
:20165000165376080008764C0000F074142176090000FC00E900106EF60076090000FC4598
|
||||
:20166000816E810B696F0001FE00756F001F716EFD08FE007609000061080001686FFFDF95
|
||||
:20167000FF30696F002061080004756F001FFF3068650FF761080008695A0004FF30685A98
|
||||
:20168000FFFB61080010685CFFFDFF30695C0002610800206864FEFFFF30696401007564F9
|
||||
:2016900000156108008068647FFFFF306964800061080100685CFFFBFF30695C00046108ED
|
||||
:2016A00002006865FFDFFF3069650020610804006865FF7FFF3069650080756500106108D8
|
||||
:2016B00008006864FFBFFF3069640040756400156F080C54F0100006685BFEFFFF45695BB9
|
||||
:2016C0000100E8004E248009FE004801880110086F4A0C1FF84516E1084AF84516D8084A57
|
||||
:2016D000F84516EA084AF84516F3084AF84516FC6864FF736964000175640015FE0076090D
|
||||
:2016E00000006864FF736964000975640015FE00760900006864FF7369640005756400156D
|
||||
:2016F000FE00760900006864FF736964008175640015FE00760900006864FF7369640085D6
|
||||
:2017000075640015FE00760900001008610700016F4A0C1F7508001468650003FF3069659B
|
||||
:201710000004FF446965000875650010FE00760900001008806711078168F2A0685AFF7F63
|
||||
:20172000FF44695A0080FE007609000010081107610B0001F9301C46FE00760900001108E8
|
||||
:20173000610B0001F8201749615B1000F8201749F3300007F747F34000707734000148353C
|
||||
:20174000F47EF808173F89334835F47EF80817448933FE0076090000483148318008FE000A
|
||||
:2017500076090000610B0001F820175E763F0000E8004E1A7712FD06F0741859FE0076091D
|
||||
:2017600000007172FD08FE0076090000715AFD08715BFD0774060000FF0269084000685A76
|
||||
:20177000C3FFFE00760900007177FD08FE00760900007712FD2A7713FD08E585E501FE0023
|
||||
:20178000760900007108FD78FE007609000010081107094A6F4A0C1F685A7FFD77540000EF
|
||||
:20179000610600017712FDBC7692000076922B81686FFF7FFF30696F0080756F001F71057E
|
||||
:2017A000FD7E767F0001767C0000F84517B0084AF84517B3084AF84517C1084AF84517D389
|
||||
:2017B000FE0076090000769200238182775500037756E00077560141695A0002FE007609A1
|
||||
:2017C0000000769200438182775500037756E00077560141695A0002696400407564001570
|
||||
:2017D000FE00760900007692001C8182775500037756E00077560162695A8002FE007609E7
|
||||
:2017E0000000610B000110081107F0002B80881210086F4A0C1F760900008182FC20615AC2
|
||||
:2017F0000002FC44FC20615A80007213FDBEFF307582001CFD20E501FC001008F00018019E
|
||||
:20180000F4E275070027FE0076090000F495F49575070028FE0076090000F495F495750711
|
||||
:201810000029FE0076090000F495F4957507002BFE0076090000F495F4957507002CFE0024
|
||||
:2018200076090000F495F4957507002DFE00760900007712FDC47713FD08E558E558E55861
|
||||
:20183000E558FE0076090000F020FD8A00088812F495F49511828108FE00760900001008E2
|
||||
:201840001A7780777577000EFE00760900001008F493187780777577000EFE0076090000ED
|
||||
:2018500010081107F000FDE58812760900008182FC00F7B8615B002044924582FA201864A0
|
||||
:201860007713FDA43C933F8BF483F5838293838B7713FDA3E800F540A6506F4A0C0FF4503D
|
||||
:20187000B054A7506F4A0F0FF610B058FF206F630C08FF306F0E0C086F4A0C07F448F48334
|
||||
:20188000823CE800F540A6506F4A0C0FF450B054A7506F4A0F0FF610B018FF206F620C08BB
|
||||
:20189000FF306F0C0C086F4A0C07F448F483823B7714FD3B7713FD0CE2A96D9382306F44F8
|
||||
:2018A0000C7FF485E9008241E2A96D9382316F450C7FF4858242E221615B0400F82018E4E7
|
||||
:2018B000F6B8685BFBFF6D927182FD397182FD33E800803680378038803A8040803E71109C
|
||||
:2018C000FD3D1049EC0F1E33804B1A49EC0F1E33804C3041254C244BF6106F440D516F4AC2
|
||||
:2018D0000F1FFD4CF4844E143042254C244BF6106F450D516F4A0F1FFD4CF4844E16E80049
|
||||
:2018E0004E18FE00715DFD7AE800880EF84D1919F6B8F58EF7B68C4BF78F834C624C360D4F
|
||||
:2018F000F061855B314CF2608F7B6F4A0C0E6F4D0C61304D244C824E254EF062C000F63F5B
|
||||
:20190000824E244E6F4A0C0F824D304D244C6F4A0C0F824FF7B8F495114BF590770EB505F8
|
||||
:20191000FD08244FF784890EF6B6F48FF550890EF45E4E346F790C2E115DF8421923252DF6
|
||||
:20192000F750292C017B817AF6B87712FD357714FD1AE800A64AA660F450B0206F4A0C05CD
|
||||
:20193000F45A6F4A0C1FFD45104AF48E76400000490EF310000F890EF84A1947F48F490E15
|
||||
:20194000F784890EE901F78FF310000181406F4A0D208033F84C195956346F4A0C1FF84447
|
||||
:201950001977615B40007133FD39FC30763F0000FC001049EC0F1E33804B1A49EC0F1E3315
|
||||
:20196000804C3041254C244BF6106F440D516F4A0F1FFD4CF4844E143042254C244BF610D1
|
||||
:201970006F450D516F4A0F1FFD4CF4844E167712FD445634F443F48E9680F48F3C4A6F346A
|
||||
:201980000C7F4541FD30F784F78F968083304542FD30F784F78F8331615B0800F82019AF32
|
||||
:201990007713FD4B7712FD306F490C4D1A49EC0F1E34804BE800A6187716FDD031586F86A5
|
||||
:2019A0000D627716FDD331596F8E0D62E800A61431586F8E0D623159F7846F860D62F7B8B6
|
||||
:2019B0007712FD317713FD37A445B001615B0001F82019E36F4B0C7FF4853034F6B8253A08
|
||||
:2019C000F84D19E1834CF063FFFFEC0F1E4C6F4B0D516F4A0F1F1849FD4DF4843C4AF48522
|
||||
:2019D000F45900751176F4878814E589E589E5893084253F6F4A0F0D6F3F0D92FE00E589A7
|
||||
:2019E000E501763F0000F6B8E589E589E589FE00E589E501F7B87713FDA37192FDA4718292
|
||||
:2019F000FDA5615B0020E800F540A6506F4A0C0FF450B054A7506F4A0F0FF610B058FF202F
|
||||
:201A00006F630C08FF306F0E0C086F4A0C07F448F483823CE800F540A6506F4A0C0FF450B8
|
||||
:201A1000B054A7506F4A0F0FF610B018FF206F620C08FF306F0C0C086F4A0C07F448F483D5
|
||||
:201A2000823B7714FD3B7713FD0CE2A96D9382306F440C7FF4858241E2A96D9382316F45EA
|
||||
:201A30000C7FF4858242F6B86D927182FD397182FD33E800803680378038803A8040803E90
|
||||
:201A40007110FD3D1049EC0F1E33804B1A49EC0F1E33804C3041254C244BF6106F440D5178
|
||||
:201A50006F4A0F1FFD4CF4844E143042254C244BF6106F450D516F4A0F1FFD4CF4844E16F6
|
||||
:201A6000E8004E18FE00715DFD7AF7B8685BFFAE695B0004F8301A72100C1152F2731A76C6
|
||||
:201A7000803B810C100E1153803C810EF6206F440C9FF4858041F44E4E34F6B87712FD3566
|
||||
:201A80007714FD1CE800A64AA660F450B0206F4A0C05F45AFD45104AF48E76400000490E6D
|
||||
:201A9000F310000F890EF84A1A9EF48F490EF784890EE901F78FF310000181408033084A6D
|
||||
:201AA000E9018139833683378338833AFC451049EC0F1E33804B1A49EC0F1E33804C3041FA
|
||||
:201AB000254C244BF6106F440D516F4A0F1FFD4CF484E900FF30F540E8004E144F16F6B8CD
|
||||
:201AC000763F0000FE007133FD39F7B8685BFFAE695B0004100C1152803B810CF6206F4402
|
||||
:201AD0000C9FF4858041100E1153803C810EF6206F450C9FF485F6B880421141F486F60024
|
||||
:201AE0000042F44D4E34F6B87712FD357714FD1CE800A64AA660F450B0206F4A0C05F45ACA
|
||||
:201AF000FD45104AF48E76400000490EF310000F890EF84A1B04F48F490EF784890EE901CB
|
||||
:201B0000F78FF310000181408033084AE9018139833683378338833AFC451049EC0F1E3300
|
||||
:201B1000804B1A49EC0F1E33804C3041254C244BF6106F440D516F4A0F1FFD4CF4844E14FD
|
||||
:201B20003042254C244BF6106F450D516F4A0F1FFD4CF4844E16F6B8763F0000FE0071332A
|
||||
:201B3000FD39F7B87157FD7D303D771275C520926F4D0C91264D3D4DF788824D394DF6402C
|
||||
:201B4000313B3F3BF583834B303D20926F4D0C91264D3D4DF788824D394DF640313C3F3CF2
|
||||
:201B5000F583834C6F4B0C466F4C0D46F6B87712FD4D7713FD4B6F480C068082F4503092F0
|
||||
:201B60006F480F068182F750F706F600804C24926F4A0C0F828AF0205483004CF100004096
|
||||
:201B7000881489156D8A458C4484F5208383A681A3328383A681A3AB3F8D43B48383A64149
|
||||
:201B80006F4A0C0F82726D8A6DB5458C4484F5208383A681A3328383A681A3AB3F8D43B476
|
||||
:201B90008383A6416F4A0C0F82734472F7B83073403D2C3D3C78F48382722672771275CC10
|
||||
:201BA000829380833083248A6F4A0C0FF450A658A641F453A541F603308A2172F61890029C
|
||||
:201BB000F44EF6B8F4833C48F550097DF685EC0F1E33802E1C2EEC0F1E3318493C2EFD4B41
|
||||
:201BC000F484FE00F6B84E2E615B1000FC30771200497713FD087748000176820000774895
|
||||
:201BD0000000E5507748000EE55077480004E55077480005E55077480006E550774800070D
|
||||
:201BE000E55077480001E55010018843FE00760900007738000177390000773800007739A3
|
||||
:201BF00000007738000E77390A0077380004773900407738000577390001773800067739F1
|
||||
:201C00000006773800077739201077380001773902C177239001E800F0741C2CE800F074FA
|
||||
:201C10001C38FC00773800016F960C42F0300FFCF04010004939F77EF8081C1A88236F9619
|
||||
:201C20000C42F0300FFCF04080004939F77EF8081C25FE008823F49577380001F442F0300B
|
||||
:201C30000FFC4939F77EF8081C31FE008823F49577380001F442F0300FFCF04080004939D0
|
||||
:201C4000F77EF8081C3FFE008823F495615B1000FC2077480001F442F0300FFCF2AE494947
|
||||
:201C5000F77EF8081C4FFE008843F495696F0004756F001F77340001773500007734000060
|
||||
:201C6000773500017734000E77350A00773400047735004077340002773500407734000564
|
||||
:201C7000773500017734000377350001773400067735000F773400077735201077340001A6
|
||||
:201C8000773502C1686FFFFB756F001FF12040E0773400014835F47EF8081C8A8933483556
|
||||
:201C9000F47EF8081C8F89334831773400004835F47EF8081C9748314835F47EF8081C9C75
|
||||
:201CA0004831F01040E0685BEFFF6864FFBF77340001FF4477350000FC44695B10006964D4
|
||||
:201CB0000040774800017749000077480000774900007748000E77490A00774800047749BB
|
||||
:201CC00000407748000577490001774800067749001F774800077749201077480001774965
|
||||
:201CD00002C1E800E900F0741C46E800E901F0741C46E800E902F0741C46E800E903F07431
|
||||
:201CE0001C46FC00773400017735000077340000773500007734000E77350A0277340004B7
|
||||
:201CF000773500A077340002773500007734000577350001773400037735000077340006C7
|
||||
:201D00007735001F773400077735202077340001773502C1685BEFFF696400407564001593
|
||||
:021D1000FC00D5
|
||||
:20200000F0730080F495F495F4EBF495F495F4950000000000000000000000000000000051
|
||||
:202010000000000000000000000000000000000000000000000000000000000000000000B0
|
||||
:202020000000000000000000000000000000000000000000000000000000000000000000A0
|
||||
:20203000000000000000000000000000000000000000000000000000000000000000000090
|
||||
:20204000F073018DF495F495F4EBF495F495F495F4EBF495F495F495F4EBF495F495F4950F
|
||||
:20205000F4EBF495F495F495F4EBF495F495F495F4EBF495F495F495F4EBF495F495F49588
|
||||
:08206000F4EBF495F495F495FE
|
||||
:2021000000000192032404B6064807D9096A0AFB0C8C0E1C0FAB113A12C8145515E2176E1F
|
||||
:2021100018F91A821C0B1D931F1A209F222323A6252826A8282629A32B1F2C992E112F87EC
|
||||
:2021200030FB326E33DF354D36BA3824398C3AF23C563DB83F17407341CE4325447A45CD2C
|
||||
:20213000471C486949B44AFB4C3F4D814EBF4FFB51335268539B54C955F5571D584259642B
|
||||
:202140005A825B9C5CB35DC75ED75FE360EB61F062F163EE64E865DD66CF67BC68A6698BDA
|
||||
:202150006A6D6B4A6C236CF86DC96E966F5E702270E2719D7254730773B5745F750475A529
|
||||
:20216000764176D8776B77FA7884790979897A057A7C7AEE7B5C7BC57C297C887CE37D39D5
|
||||
:202170007D897DD57E1D7E5F7E9C7ED57F097F377F617F867FA67FC17FD87FE97FF57FFDDB
|
||||
:202180007FFF7FFD7FF57FE97FD87FC17FA67F867F617F377F097ED57E9C7E5F7E1D7DD553
|
||||
:202190007D897D397CE37C887C297BC57B5C7AEE7A7C7A0579897909788477FA776B76D856
|
||||
:2021A000764175A57504745F73B573077254719D70E270226F5E6E966DC96CF86C236B4AF9
|
||||
:2021B0006A6D698B68A667BC66CF65DD64E863EE62F161F060EB5FE35ED75DC75CB35B9C6F
|
||||
:2021C0005A8259645842571D55F554C9539B526851334FFB4EBF4D814C3F4AFB49B4486922
|
||||
:2021D000471C45CD447A432541CE40733F173DB83C563AF2398C382436BA354D33DF326E44
|
||||
:2021E00030FB2F872E112C992B1F29A3282626A8252823A62223209F1F1A1D931C0B1A8202
|
||||
:2021F00018F9176E15E2145512C8113A0FAB0E1C0C8C0AFB096A07D9064804B6032401921E
|
||||
:202200000000FE6EFCDCFB4AF9B8F827F696F505F374F1E4F055EEC6ED38EBABEA1EE8926D
|
||||
:20221000E707E57EE3F5E26DE0E6DF61DDDDDC5ADAD8D958D7DAD65DD4E1D367D1EFD07981
|
||||
:20222000CF05CD92CC21CAB3C946C7DCC674C50EC3AAC248C0E9BF8DBE32BCDBBB86BA3321
|
||||
:20223000B8E4B797B64CB505B3C1B27FB141B005AECDAD98AC65AB37AA0BA8E3A7BEA69C02
|
||||
:20224000A57EA464A34DA239A129A01D9F159E109D0F9C129B189A2399319844975A967533
|
||||
:20225000959394B693DD93089237916A90A28FDE8F1E8E638DAC8CF98C4B8BA18AFC8A5BC4
|
||||
:2022600089BF892888958806877C86F7867785FB8584851284A4843B83D78378831D82C7F8
|
||||
:202270008277822B81E381A18164812B80F780C9809F807A805A803F80288017800B8003D2
|
||||
:2022800080018003800B80178028803F805A807A809F80C980F7812B816481A181E3822B3A
|
||||
:20229000827782C7831D837883D7843B84A48512858485FB867786F7877C88068895892817
|
||||
:2022A00089BF8A5B8AFC8BA18C4B8CF98DAC8E638F1E8FDE90A2916A9237930893DD94B654
|
||||
:2022B00095939675975A984499319A239B189C129D0F9E109F15A01DA129A239A34DA464BE
|
||||
:2022C000A57EA69CA7BEA8E3AA0BAB37AC65AD98AECDB005B141B27FB3C1B505B64CB797EB
|
||||
:2022D000B8E4BA33BB86BCDBBE32BF8DC0E9C248C3AAC50EC674C7DCC946CAB3CC21CD92A9
|
||||
:2022E000CF05D079D1EFD367D4E1D65DD7DAD958DAD8DC5ADDDDDF61E0E6E26DE3F5E57ECB
|
||||
:2022F000E707E892EA1EEBABED38EEC6F055F1E4F374F505F696F827F9B8FB4AFCDCFE6E8F
|
||||
:2023000000000192032404B6064807D9096A0AFB0C8C0E1C0FAB113A12C8145515E2176E1D
|
||||
:2023100018F91A821C0B1D931F1A209F222323A6252826A8282629A32B1F2C992E112F87EA
|
||||
:2023200030FB326E33DF354D36BA3824398C3AF23C563DB83F17407341CE4325447A45CD2A
|
||||
:20233000471C486949B44AFB4C3F4D814EBF4FFB51335268539B54C955F5571D5842596429
|
||||
:202340005A825B9C5CB35DC75ED75FE360EB61F062F163EE64E865DD66CF67BC68A6698BD8
|
||||
:202350006A6D6B4A6C236CF86DC96E966F5E702270E2719D7254730773B5745F750475A527
|
||||
:20236000764176D8776B77FA7884790979897A057A7C7AEE7B5C7BC57C297C887CE37D39D3
|
||||
:202370007D897DD57E1D7E5F7E9C7ED57F097F377F617F867FA67FC17FD87FE97FF57FFDD9
|
||||
:00000001FF
|
BIN
PrintS/ScannerCtrl/RTC4DLL.dll
Normal file
BIN
PrintS/ScannerCtrl/RTC4DLL.dll
Normal file
Binary file not shown.
BIN
PrintS/ScannerCtrl/RTC4DLL.lib
Normal file
BIN
PrintS/ScannerCtrl/RTC4DLL.lib
Normal file
Binary file not shown.
BIN
PrintS/ScannerCtrl/RTC4DLLx64.dll
Normal file
BIN
PrintS/ScannerCtrl/RTC4DLLx64.dll
Normal file
Binary file not shown.
BIN
PrintS/ScannerCtrl/RTC4DLLx64.lib
Normal file
BIN
PrintS/ScannerCtrl/RTC4DLLx64.lib
Normal file
Binary file not shown.
402
PrintS/ScannerCtrl/RTC4Scanner.cpp
Normal file
402
PrintS/ScannerCtrl/RTC4Scanner.cpp
Normal file
@ -0,0 +1,402 @@
|
||||
#include "RTC4Scanner.h"
|
||||
#include "RTC4impl.h"
|
||||
#include "../global.h"
|
||||
#include "../Logger.h"
|
||||
#include "../LanguageManager.h"
|
||||
#include "../utils/MathHelper.h"
|
||||
|
||||
RTC4Scanner::RTC4Scanner(LaserCfg* cfg) :Scanner(cfg)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
RTC4Scanner::~RTC4Scanner()
|
||||
{
|
||||
}
|
||||
|
||||
bool RTC4Scanner::Init()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
return true;
|
||||
#endif
|
||||
m_output_vfactor = 1023.0 / 10.0;
|
||||
m_list_memory = 4000;
|
||||
m_kfactor = m_CorrectParamCfg->m_FactorK;
|
||||
m_xfactor = m_kfactor*m_CorrectParamCfg->m_xcorrect;
|
||||
m_yfactor = m_kfactor*m_CorrectParamCfg->m_ycorrect;
|
||||
|
||||
short errorCode = 0;
|
||||
char buffer[512];
|
||||
sprintf_s(buffer, sizeof(buffer), "%sSLM%d.ctb", g_AppPath.c_str(), m_LaserCfg->m_Cno);
|
||||
string crtPath = string(buffer);
|
||||
errorCode = n_load_correction_file((unsigned short)m_LaserCfg->m_Cno, crtPath.c_str(), 1, 1.0, 1.0, m_CorrectParamCfg->m_angle, 0.0, 0.0);
|
||||
if (errorCode) {
|
||||
g_log->TraceError(g_LngManager->Log_LoadCorrectFileError->ShowText());
|
||||
m_InitErrorInfos.push_back(g_LngManager->Log_LoadCorrectFileError->ShowText());
|
||||
return false;
|
||||
}
|
||||
string pfilePath = g_AppPath + "SLM.hex";
|
||||
errorCode = n_load_program_file((unsigned short)m_LaserCfg->m_Cno, pfilePath.c_str());
|
||||
if (errorCode) {
|
||||
g_log->TraceError(g_LngManager->Log_LoadRTCFileError->ShowText());
|
||||
m_InitErrorInfos.push_back(g_LngManager->Log_LoadRTCFileError->ShowText());
|
||||
return false;
|
||||
}
|
||||
n_select_cor_table((unsigned short)m_LaserCfg->m_Cno, 1, 0);
|
||||
n_set_laser_mode((unsigned short)m_LaserCfg->m_Cno, 4);
|
||||
unsigned short power = 1023.0* m_PowerCompensateCfg->CalcPowerCompensate((float)m_ScanTestCfg->m_laser_power) / 100.0;
|
||||
|
||||
unsigned short jumpDelay = m_ScanParamCfg->m_jump_delay / 10;
|
||||
unsigned short markDelay = m_ScanParamCfg->m_scan_delay / 10;
|
||||
unsigned short polygonDelay = m_ScanParamCfg->m_polygon_delay / 10;
|
||||
|
||||
double markspeed = m_kfactor* m_ScanParamCfg->m_mark_speed / 1000.0;
|
||||
double jumpspeed = m_kfactor* m_ScanParamCfg->m_jump_speed / 1000.0;
|
||||
unsigned short edgeLevel = m_ScanParamCfg->m_edge_level / 10;
|
||||
unsigned short minJumpDelay = m_ScanParamCfg->m_min_jump_delay / 10;
|
||||
|
||||
float xoffset = m_CorrectParamCfg->m_xposfix*cos(m_CorrectParamCfg->m_angle*MathHelper::m_PI / 180.0) - m_CorrectParamCfg->m_yoffset*sin(m_CorrectParamCfg->m_angle*MathHelper::m_PI / 180.0);
|
||||
float yoffset = m_CorrectParamCfg->m_xposfix*sin(m_CorrectParamCfg->m_angle*MathHelper::m_PI / 180.0) + m_CorrectParamCfg->m_yoffset*cos(m_CorrectParamCfg->m_angle*MathHelper::m_PI / 180.0);
|
||||
n_set_start_list((unsigned short)m_LaserCfg->m_Cno, 1);
|
||||
n_set_scanner_delays((unsigned short)m_LaserCfg->m_Cno, jumpDelay, markDelay, polygonDelay);
|
||||
n_set_laser_delays((unsigned short)m_LaserCfg->m_Cno, (short)m_ScanParamCfg->m_laseron_delay, (short)m_ScanParamCfg->m_laseroff_delay);
|
||||
n_set_delay_mode((unsigned short)m_LaserCfg->m_Cno, 1, 0, edgeLevel, minJumpDelay, (unsigned int)(m_ScanParamCfg->m_jump_length_limit*m_kfactor));
|
||||
n_set_jump_speed((unsigned short)m_LaserCfg->m_Cno, jumpspeed);
|
||||
n_set_mark_speed((unsigned short)m_LaserCfg->m_Cno, markspeed);
|
||||
n_write_da_1_list((unsigned short)m_LaserCfg->m_Cno, power);
|
||||
n_set_offset_list((unsigned short)m_LaserCfg->m_Cno, (short)(xoffset*m_xfactor), (short)(yoffset*m_yfactor));
|
||||
n_set_end_of_list((unsigned short)m_LaserCfg->m_Cno);
|
||||
ListExecute(1, true);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool RTC4Scanner::PreInit(unsigned int &card_count)
|
||||
{
|
||||
card_count = rtc4_count_cards();
|
||||
g_ScanSerial = get_serial_number();
|
||||
return true;
|
||||
}
|
||||
|
||||
int RTC4Scanner::GetSerialNo(unsigned int no)
|
||||
{
|
||||
return n_get_serial_number(no);
|
||||
}
|
||||
|
||||
bool RTC4Scanner::StopWork()
|
||||
{
|
||||
n_stop_execution((unsigned short)m_LaserCfg->m_Cno);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
void RTC4Scanner::LoadList(unsigned int listid, bool wait)
|
||||
{
|
||||
if (wait) {
|
||||
bool isbreak = false;
|
||||
unsigned short busy, position;
|
||||
while (true) {
|
||||
n_get_status((unsigned short)m_LaserCfg->m_Cno, &busy, &position);
|
||||
if (busy) {
|
||||
if (listid == 2) {
|
||||
if (position >= 4000) {
|
||||
Sleep(10);
|
||||
}
|
||||
else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (position < 4000) {
|
||||
Sleep(10);
|
||||
}
|
||||
else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
break;
|
||||
}
|
||||
if (m_print_state == BaseCtrl::STOP) {
|
||||
isbreak = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!isbreak)
|
||||
{
|
||||
n_set_start_list((unsigned short)m_LaserCfg->m_Cno, listid);
|
||||
}
|
||||
}
|
||||
else {
|
||||
n_set_start_list((unsigned short)m_LaserCfg->m_Cno, listid);
|
||||
}
|
||||
}
|
||||
|
||||
void RTC4Scanner::EndList()
|
||||
{
|
||||
n_set_end_of_list((unsigned short)m_LaserCfg->m_Cno);
|
||||
}
|
||||
|
||||
|
||||
void RTC4Scanner::ListExecute(unsigned int listid, bool wait)
|
||||
{
|
||||
n_execute_list((unsigned short)m_LaserCfg->m_Cno, (unsigned short)listid);
|
||||
unsigned short Busy(0), Pos(0);
|
||||
if (wait) {
|
||||
do
|
||||
{
|
||||
Sleep(20);
|
||||
n_get_status((unsigned short)m_LaserCfg->m_Cno, &Busy, &Pos);
|
||||
if (m_print_state == BaseCtrl::STOP) {
|
||||
break;
|
||||
}
|
||||
} while (Busy);
|
||||
}
|
||||
}
|
||||
|
||||
void RTC4Scanner::AutoChangeList()
|
||||
{
|
||||
n_auto_change((unsigned short)m_LaserCfg->m_Cno);
|
||||
}
|
||||
|
||||
void RTC4Scanner::WaitListFree()
|
||||
{
|
||||
unsigned short Busy(0), Pos(0);
|
||||
do
|
||||
{
|
||||
Sleep(10);
|
||||
n_get_status((unsigned short)m_LaserCfg->m_Cno, &Busy, &Pos);
|
||||
if (m_print_state == BaseCtrl::STOP) {
|
||||
break;
|
||||
}
|
||||
} while (Busy);
|
||||
}
|
||||
|
||||
void RTC4Scanner::SetScanSpeed(double fspeed)
|
||||
{
|
||||
double speed = fspeed / 1000.0*m_kfactor;
|
||||
n_set_mark_speed((unsigned short)m_LaserCfg->m_Cno, speed);
|
||||
}
|
||||
|
||||
void RTC4Scanner::SetPower(double watt)
|
||||
{
|
||||
unsigned short power = 1023.0*watt / 100.0;
|
||||
if (power > 1023)power = 1023;
|
||||
n_write_da_1_list((unsigned short)m_LaserCfg->m_Cno, power);
|
||||
}
|
||||
|
||||
void RTC4Scanner::AddVector(double startx, double starty, double endx, double endy)
|
||||
{
|
||||
|
||||
int lstartx = (int)round(startx*m_xfactor);
|
||||
int lstarty = (int)round(starty*m_yfactor);
|
||||
int lendx = (int)round(endx*m_xfactor);
|
||||
int lendy = (int)round(endy*m_yfactor);
|
||||
if (lstartx > SHRT_MAX) {
|
||||
lstartx = SHRT_MAX;
|
||||
}
|
||||
if (lstartx < SHRT_MIN) {
|
||||
lstartx = SHRT_MIN;
|
||||
}
|
||||
if (lstarty > SHRT_MAX) {
|
||||
lstarty = SHRT_MAX;
|
||||
}
|
||||
if (lstarty < SHRT_MIN) {
|
||||
lstarty = SHRT_MIN;
|
||||
}
|
||||
if (lendx > SHRT_MAX)
|
||||
{
|
||||
lendx = SHRT_MAX;
|
||||
}
|
||||
if (lendx < SHRT_MIN) {
|
||||
lendx = SHRT_MIN;
|
||||
}
|
||||
if (lendy > SHRT_MAX)
|
||||
{
|
||||
lendy = SHRT_MAX;
|
||||
}
|
||||
if (lendy < SHRT_MIN) {
|
||||
lendy = SHRT_MIN;
|
||||
}
|
||||
n_jump_abs((unsigned short)m_LaserCfg->m_Cno, lstartx, lstarty);
|
||||
n_mark_abs((unsigned short)m_LaserCfg->m_Cno, lendx, lendy);
|
||||
}
|
||||
|
||||
void RTC4Scanner::ListNop()
|
||||
{
|
||||
n_list_nop((unsigned short)m_LaserCfg->m_Cno);
|
||||
}
|
||||
|
||||
void RTC4Scanner::JumpAbs(double x, double y)
|
||||
{
|
||||
int lx = (int)round(x*m_xfactor);
|
||||
int ly = (int)round(y*m_yfactor);
|
||||
if (lx > SHRT_MAX) {
|
||||
lx = SHRT_MAX;
|
||||
}
|
||||
if (lx < SHRT_MIN)
|
||||
{
|
||||
lx = SHRT_MIN;
|
||||
}
|
||||
if (ly > SHRT_MAX) {
|
||||
ly = SHRT_MAX;
|
||||
}
|
||||
if (ly < SHRT_MIN)
|
||||
{
|
||||
ly = SHRT_MIN;
|
||||
}
|
||||
n_jump_abs((unsigned short)m_LaserCfg->m_Cno, lx, ly);
|
||||
}
|
||||
|
||||
void RTC4Scanner::MarkAbs(double x, double y)
|
||||
{
|
||||
int lx = (int)round(x*m_xfactor);
|
||||
int ly = (int)round(y*m_yfactor);
|
||||
if (lx > SHRT_MAX) {
|
||||
lx = SHRT_MAX;
|
||||
}
|
||||
if (lx < SHRT_MIN) {
|
||||
lx = SHRT_MIN;
|
||||
}
|
||||
if (ly > SHRT_MAX) {
|
||||
ly = SHRT_MAX;
|
||||
}
|
||||
if (ly < SHRT_MIN) {
|
||||
ly = SHRT_MIN;
|
||||
}
|
||||
n_mark_abs((unsigned short)m_LaserCfg->m_Cno, lx, ly);
|
||||
}
|
||||
|
||||
void RTC4Scanner::ScanDebug()
|
||||
{
|
||||
unsigned short power = (unsigned short)(1023.0*m_PowerCompensateCfg->CalcPowerCompensate((float)m_ScanTestCfg->m_laser_power) / 100.0);
|
||||
if (power > 1023)power = 1023;
|
||||
double markspeed = m_kfactor*m_ScanParamCfg->m_mark_speed / 1000.0;
|
||||
n_set_start_list((unsigned short)m_LaserCfg->m_Cno, 1);
|
||||
n_write_da_1_list((unsigned short)m_LaserCfg->m_Cno, power);
|
||||
n_set_mark_speed((unsigned short)m_LaserCfg->m_Cno, markspeed);
|
||||
if (m_ScanParamCfg->m_IsDynamicFocus) {
|
||||
short df = m_ScanTestCfg->m_defocus*m_zfactor;
|
||||
n_set_defocus_list((unsigned short)m_LaserCfg->m_Cno, df);
|
||||
}
|
||||
else {
|
||||
n_set_defocus_list((unsigned short)m_LaserCfg->m_Cno, 0);
|
||||
}
|
||||
n_set_end_of_list((unsigned short)m_LaserCfg->m_Cno);
|
||||
ListExecute(1, true);
|
||||
do {
|
||||
ScanTestProc();
|
||||
Sleep(20);
|
||||
} while (m_ScanTestCfg->m_is_cycle && m_DebugFlag);
|
||||
}
|
||||
|
||||
void RTC4Scanner::ScanTestProc()
|
||||
{
|
||||
int shapeSize = m_ScanTestCfg->m_shape_size;
|
||||
switch (m_ScanTestCfg->m_debug_shape) {
|
||||
case 0: {
|
||||
double xoffset = m_ScanTestCfg->m_cross_x*cos(m_CorrectParamCfg->m_angle*MathHelper::m_PI / 180.0) - m_ScanTestCfg->m_cross_y*sin(m_CorrectParamCfg->m_angle*MathHelper::m_PI / 180.0);
|
||||
double yoffset = m_ScanTestCfg->m_cross_x*sin(m_CorrectParamCfg->m_angle*MathHelper::m_PI / 180.0) + m_ScanTestCfg->m_cross_y*cos(m_CorrectParamCfg->m_angle*MathHelper::m_PI / 180.0);
|
||||
double tempx = xoffset - shapeSize / 2;
|
||||
double tempy = yoffset + shapeSize / 2;
|
||||
n_set_start_list((unsigned short)m_LaserCfg->m_Cno, 1);
|
||||
JumpAbs(tempx, yoffset);
|
||||
MarkAbs(tempx + shapeSize, yoffset);
|
||||
JumpAbs(xoffset, tempy);
|
||||
MarkAbs(xoffset, tempy - shapeSize);
|
||||
n_set_end_of_list((unsigned short)m_LaserCfg->m_Cno);
|
||||
ListExecute(1, true);
|
||||
}break;
|
||||
case 1: {
|
||||
float sqlength = (float)shapeSize / 2;
|
||||
double xoffset = m_ScanTestCfg->m_cross_x*cos(m_CorrectParamCfg->m_angle*MathHelper::m_PI / 180.0) - m_ScanTestCfg->m_cross_y*sin(m_CorrectParamCfg->m_angle*MathHelper::m_PI / 180.0);
|
||||
double yoffset = m_ScanTestCfg->m_cross_x*sin(m_CorrectParamCfg->m_angle*MathHelper::m_PI / 180.0) + m_ScanTestCfg->m_cross_y*cos(m_CorrectParamCfg->m_angle*MathHelper::m_PI / 180.0);
|
||||
polygon square[] = {
|
||||
-sqlength + xoffset, -sqlength + yoffset,
|
||||
-sqlength + xoffset, sqlength + yoffset,
|
||||
sqlength + xoffset, sqlength + yoffset,
|
||||
sqlength + xoffset, -sqlength + yoffset,
|
||||
-sqlength + xoffset, -sqlength + yoffset
|
||||
};
|
||||
int sqsize = (sizeof(square) / sizeof(polygon));
|
||||
n_set_start_list((unsigned short)m_LaserCfg->m_Cno, 1);
|
||||
JumpAbs(square[0].xval, square[0].yval);
|
||||
for (int i = 1; i < sqsize; i++) {
|
||||
MarkAbs(square[i].xval, square[i].yval);
|
||||
}
|
||||
n_set_end_of_list((unsigned short)m_LaserCfg->m_Cno);
|
||||
ListExecute(1, true);
|
||||
}break;
|
||||
case 2: {
|
||||
n_set_start_list(m_LaserCfg->m_Cno, 1);
|
||||
n_set_defocus_list(m_LaserCfg->m_Cno, 0);
|
||||
JumpAbs(m_ScanTestCfg->m_cross_x, m_ScanTestCfg->m_cross_y);
|
||||
n_set_end_of_list(m_LaserCfg->m_Cno);
|
||||
ListExecute(1, true);
|
||||
Sleep(200);
|
||||
n_laser_signal_on(m_LaserCfg->m_Cno);
|
||||
DWORD tflag = GetTickCount();
|
||||
while (m_DebugFlag) {
|
||||
Sleep(20);
|
||||
DWORD tnow = GetTickCount();
|
||||
unsigned int dif = tnow - tflag;
|
||||
if (dif >= m_ExtCfg->m_TestEmissionTime) {
|
||||
m_DebugFlag = false;
|
||||
if (m_ScanTestCfg->m_is_cycle) {
|
||||
m_ScanTestCfg->m_is_cycle = false;
|
||||
}
|
||||
//StopWork();
|
||||
}
|
||||
}
|
||||
n_laser_signal_off(m_LaserCfg->m_Cno);
|
||||
}break;
|
||||
case 3: {
|
||||
n_set_defocus_list((unsigned short)m_LaserCfg->m_Cno, 0);
|
||||
Sleep(10);
|
||||
long zlength = n_get_z_distance((unsigned short)m_LaserCfg->m_Cno, m_ScanTestCfg->m_cross_x*m_xfactor, m_ScanTestCfg->m_cross_y*m_yfactor, 0);
|
||||
if (m_zfactor != 0.0) {
|
||||
m_ScanTestCfg->m_z_distance = (double)zlength / m_zfactor;
|
||||
}
|
||||
}break;
|
||||
}
|
||||
}
|
||||
|
||||
void RTC4Scanner::UpdateSetting()
|
||||
{
|
||||
unsigned short power = 1023.0* m_PowerCompensateCfg->CalcPowerCompensate((float)m_ScanTestCfg->m_laser_power) / 100.0;
|
||||
if (power > 1023)power = 1023;
|
||||
unsigned short jumpDelay = m_ScanParamCfg->m_jump_delay / 10;
|
||||
unsigned short markDelay = m_ScanParamCfg->m_scan_delay / 10;
|
||||
unsigned short polygonDelay = m_ScanParamCfg->m_polygon_delay / 10;
|
||||
|
||||
double markspeed = m_kfactor* m_ScanParamCfg->m_mark_speed / 1000.0;
|
||||
double jumpspeed = m_kfactor* m_ScanParamCfg->m_jump_speed / 1000.0;
|
||||
unsigned short edgeLevel = m_ScanParamCfg->m_edge_level / 10;
|
||||
unsigned short minJumpDelay = m_ScanParamCfg->m_min_jump_delay / 10;
|
||||
n_set_start_list((unsigned short)m_LaserCfg->m_Cno, 1);
|
||||
n_write_da_1_list((unsigned short)m_LaserCfg->m_Cno, power);
|
||||
n_set_scanner_delays((unsigned short)m_LaserCfg->m_Cno, jumpDelay, markDelay, polygonDelay);
|
||||
n_set_laser_delays((unsigned short)m_LaserCfg->m_Cno, (short)m_ScanParamCfg->m_laseron_delay, (short)m_ScanParamCfg->m_laseroff_delay);
|
||||
n_set_delay_mode((unsigned short)m_LaserCfg->m_Cno, 1, 0, edgeLevel, minJumpDelay, (unsigned int)(m_ScanParamCfg->m_jump_length_limit*m_kfactor));
|
||||
n_set_jump_speed((unsigned short)m_LaserCfg->m_Cno, jumpspeed);
|
||||
n_set_mark_speed((unsigned short)m_LaserCfg->m_Cno, markspeed);
|
||||
n_set_end_of_list((unsigned short)m_LaserCfg->m_Cno);
|
||||
ListExecute(1, true);
|
||||
}
|
||||
|
||||
void RTC4Scanner::SetXyOffset(float x, float y)
|
||||
{
|
||||
short bitx = x*m_xfactor*m_scaleX;
|
||||
short bity = y*m_yfactor*m_scaleY;
|
||||
n_set_offset((unsigned short)m_LaserCfg->m_Cno, bitx, bity);
|
||||
}
|
||||
|
||||
|
||||
void RTC4Scanner::SetAngle(double angle)
|
||||
{
|
||||
double m11 = cos(angle*MathHelper::m_PI / 180.0);
|
||||
double m12 = -sin(angle*MathHelper::m_PI / 180.0);
|
||||
double m21 = sin(angle*MathHelper::m_PI / 180.0);
|
||||
double m22 = cos(angle*MathHelper::m_PI / 180.0);
|
||||
n_set_matrix((unsigned short)m_LaserCfg->m_Cno, m11, m12, m21, m22);
|
||||
}
|
45
PrintS/ScannerCtrl/RTC4Scanner.h
Normal file
45
PrintS/ScannerCtrl/RTC4Scanner.h
Normal file
@ -0,0 +1,45 @@
|
||||
#pragma once
|
||||
#include "Scanner.h"
|
||||
|
||||
class RTC4Scanner : public Scanner
|
||||
{
|
||||
public:
|
||||
RTC4Scanner(LaserCfg* cfg);
|
||||
~RTC4Scanner();
|
||||
bool Init();
|
||||
bool StopWork();
|
||||
static bool PreInit(unsigned int &card_count);
|
||||
static int GetSerialNo(unsigned int no);
|
||||
|
||||
void SetK(double k) {
|
||||
m_kfactor = k;
|
||||
m_xfactor = m_kfactor*m_CorrectParamCfg->m_xcorrect;
|
||||
m_yfactor = m_kfactor*m_CorrectParamCfg->m_ycorrect;
|
||||
}
|
||||
private:
|
||||
void LoadList(unsigned int listid, bool wait);
|
||||
void EndList();
|
||||
void ListExecute(unsigned int listid, bool wait);
|
||||
void AutoChangeList();
|
||||
void WaitListFree();
|
||||
|
||||
void SetScanSpeed(double value);
|
||||
void SetPower(double watt);
|
||||
void SetDefocus(float value) {}
|
||||
|
||||
void AddVector(double startx, double starty, double endx, double endy);
|
||||
void ListNop();
|
||||
void JumpAbs(double x, double y);
|
||||
void MarkAbs(double x, double y);
|
||||
|
||||
unsigned int GetMemorySize() { return m_list_memory; }
|
||||
void ScanDebug();
|
||||
void UpdateSetting();
|
||||
void SetXyOffset(float x, float y);
|
||||
void SetAngle(double angle);
|
||||
|
||||
void ScanTestProc();
|
||||
|
||||
|
||||
};
|
||||
|
338
PrintS/ScannerCtrl/RTC4impl.h
Normal file
338
PrintS/ScannerCtrl/RTC4impl.h
Normal file
@ -0,0 +1,338 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// File: RTC4impl.h Copyright (c) 2018 SCANLAB GmbH
|
||||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//
|
||||
// Abstract
|
||||
// RTC4 function prototypes for implicitly linking - also known as
|
||||
// static load linking - to the RTC4DLL.DLL or RTC4DLLx64.DLL.
|
||||
//
|
||||
// Authors
|
||||
// Gerald Schmid, Bernhard Schrems, Christian Lutz
|
||||
//
|
||||
// Revision History
|
||||
// +-----+---------+--------+------------------------------------------+
|
||||
// | Mod | Date | Author | Description |
|
||||
// +-----+---------+--------+------------------------------------------+
|
||||
// | 0.0 | 13Dec00 | GS | * initial release |
|
||||
// | 0.1 | 10Jan01 | BS | * standard calling |
|
||||
// | 0.2 | 10Jan01 | BS | * use of const in parameter declarations |
|
||||
// | 0.3 | 18Jun15 | CLU | * include guard |
|
||||
// | 0.4 | 15Dec15 | BS,CLU | * 64bit compatibility |
|
||||
// | 0.5 | 29Sep16 | CLU | * Company name updated |
|
||||
// | | | | |
|
||||
// +-----+---------+--------+------------------------------------------+
|
||||
//
|
||||
// This file was automatically generated on Mrz 28, 2018.
|
||||
//
|
||||
// NOTE
|
||||
// You need to link the (Visual C++) import library RTC4DLL.LIB or
|
||||
// RTC4DLLx64.LIB for building a Win32 or a Win64 application
|
||||
// respectively.
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#pragma once
|
||||
|
||||
__declspec(dllimport) short __stdcall getmemory(unsigned short adr);
|
||||
__declspec(dllimport) void __stdcall n_get_waveform(unsigned short n, unsigned short channel, unsigned short istop, signed short *memptr);
|
||||
__declspec(dllimport) void __stdcall get_waveform(unsigned short channel, unsigned short istop, signed short *memptr);
|
||||
__declspec(dllimport) void __stdcall n_measurement_status(unsigned short n, unsigned short *busy, unsigned short *position);
|
||||
__declspec(dllimport) void __stdcall measurement_status(unsigned short *busy, unsigned short *position);
|
||||
__declspec(dllimport) short __stdcall n_load_varpolydelay(unsigned short n, const char* stbfilename, unsigned short tableno);
|
||||
__declspec(dllimport) short __stdcall load_varpolydelay(const char* stbfilename, unsigned short tableno);
|
||||
__declspec(dllimport) short __stdcall n_load_program_file(unsigned short n, const char* name);
|
||||
__declspec(dllimport) short __stdcall load_program_file(const char* name);
|
||||
__declspec(dllimport) short __stdcall n_load_correction_file(unsigned short n, const char* filename, short cortable, double kx, double ky, double phi, double xoffset, double yoffset);
|
||||
__declspec(dllimport) short __stdcall load_correction_file(const char* filename, short cortable, double kx, double ky, double phi, double xoffset, double yoffset);
|
||||
__declspec(dllimport) short __stdcall n_load_z_table(unsigned short n, double a, double b, double c);
|
||||
__declspec(dllimport) short __stdcall load_z_table(double a, double b, double c);
|
||||
__declspec(dllimport) void __stdcall n_list_nop(unsigned short n);
|
||||
__declspec(dllimport) void __stdcall list_nop(void);
|
||||
__declspec(dllimport) void __stdcall n_set_end_of_list(unsigned short n);
|
||||
__declspec(dllimport) void __stdcall set_end_of_list(void);
|
||||
__declspec(dllimport) void __stdcall n_jump_abs_3d(unsigned short n, short x, short y, short z);
|
||||
__declspec(dllimport) void __stdcall jump_abs_3d(short x, short y, short z);
|
||||
__declspec(dllimport) void __stdcall n_jump_abs(unsigned short n, short x, short y);
|
||||
__declspec(dllimport) void __stdcall jump_abs(short x, short y);
|
||||
__declspec(dllimport) void __stdcall n_mark_abs_3d(unsigned short n, short x, short y, short z);
|
||||
__declspec(dllimport) void __stdcall mark_abs_3d(short x, short y, short z);
|
||||
__declspec(dllimport) void __stdcall n_mark_abs(unsigned short n, short x, short y);
|
||||
__declspec(dllimport) void __stdcall mark_abs(short x, short y);
|
||||
__declspec(dllimport) void __stdcall n_jump_rel_3d(unsigned short n, short dx, short dy, short dz);
|
||||
__declspec(dllimport) void __stdcall jump_rel_3d(short dx, short dy, short dz);
|
||||
__declspec(dllimport) void __stdcall n_jump_rel(unsigned short n, short dx, short dy);
|
||||
__declspec(dllimport) void __stdcall jump_rel(short dx, short dy);
|
||||
__declspec(dllimport) void __stdcall n_mark_rel_3d(unsigned short n, short dx, short dy, short dz);
|
||||
__declspec(dllimport) void __stdcall mark_rel_3d(short dx, short dy, short dz);
|
||||
__declspec(dllimport) void __stdcall n_mark_rel(unsigned short n, short dx, short dy);
|
||||
__declspec(dllimport) void __stdcall mark_rel(short dx, short dy);
|
||||
__declspec(dllimport) void __stdcall n_write_8bit_port_list(unsigned short n, unsigned short value);
|
||||
__declspec(dllimport) void __stdcall write_8bit_port_list(unsigned short value);
|
||||
__declspec(dllimport) void __stdcall n_write_da_1_list(unsigned short n, unsigned short value);
|
||||
__declspec(dllimport) void __stdcall write_da_1_list(unsigned short value);
|
||||
__declspec(dllimport) void __stdcall n_write_da_2_list(unsigned short n, unsigned short value);
|
||||
__declspec(dllimport) void __stdcall write_da_2_list(unsigned short value);
|
||||
__declspec(dllimport) void __stdcall n_set_matrix_list(unsigned short n, unsigned short i, unsigned short j, double mij);
|
||||
__declspec(dllimport) void __stdcall set_matrix_list(unsigned short i, unsigned short j, double mij);
|
||||
__declspec(dllimport) void __stdcall n_set_defocus_list(unsigned short n, short value);
|
||||
__declspec(dllimport) void __stdcall set_defocus_list(short value);
|
||||
__declspec(dllimport) void __stdcall n_set_control_mode_list(unsigned short n, unsigned short mode);
|
||||
__declspec(dllimport) void __stdcall set_control_mode_list(unsigned short mode);
|
||||
__declspec(dllimport) void __stdcall n_set_offset_list(unsigned short n, short xoffset, short yoffset);
|
||||
__declspec(dllimport) void __stdcall set_offset_list(short xoffset, short yoffset);
|
||||
__declspec(dllimport) void __stdcall n_long_delay(unsigned short n, unsigned short value);
|
||||
__declspec(dllimport) void __stdcall long_delay(unsigned short value);
|
||||
__declspec(dllimport) void __stdcall n_laser_on_list(unsigned short n, unsigned short value);
|
||||
__declspec(dllimport) void __stdcall laser_on_list(unsigned short value);
|
||||
__declspec(dllimport) void __stdcall n_set_jump_speed(unsigned short n, double speed);
|
||||
__declspec(dllimport) void __stdcall set_jump_speed(double speed);
|
||||
__declspec(dllimport) void __stdcall n_set_mark_speed(unsigned short n, double speed);
|
||||
__declspec(dllimport) void __stdcall set_mark_speed(double speed);
|
||||
__declspec(dllimport) void __stdcall n_set_laser_delays(unsigned short n, short ondelay, short offdelay);
|
||||
__declspec(dllimport) void __stdcall set_laser_delays(short ondelay, short offdelay);
|
||||
__declspec(dllimport) void __stdcall n_set_scanner_delays(unsigned short n, unsigned short jumpdelay, unsigned short markdelay, unsigned short polydelay);
|
||||
__declspec(dllimport) void __stdcall set_scanner_delays(unsigned short jumpdelay, unsigned short markdelay, unsigned short polydelay);
|
||||
__declspec(dllimport) void __stdcall n_set_list_jump(unsigned short n, unsigned short position);
|
||||
__declspec(dllimport) void __stdcall set_list_jump(unsigned short position);
|
||||
__declspec(dllimport) void __stdcall n_set_input_pointer(unsigned short n, unsigned short pointer);
|
||||
__declspec(dllimport) void __stdcall set_input_pointer(unsigned short pointer);
|
||||
__declspec(dllimport) void __stdcall n_list_call(unsigned short n, unsigned short position);
|
||||
__declspec(dllimport) void __stdcall list_call(unsigned short position);
|
||||
__declspec(dllimport) void __stdcall n_list_return(unsigned short n);
|
||||
__declspec(dllimport) void __stdcall list_return(void);
|
||||
__declspec(dllimport) void __stdcall n_z_out_list(unsigned short n, short z);
|
||||
__declspec(dllimport) void __stdcall z_out_list(short z);
|
||||
__declspec(dllimport) void __stdcall n_set_standby_list(unsigned short n, unsigned short half_period, unsigned short pulse);
|
||||
__declspec(dllimport) void __stdcall set_standby_list(unsigned short half_period, unsigned short pulse);
|
||||
__declspec(dllimport) void __stdcall n_timed_jump_abs(unsigned short n, short x, short y, double time);
|
||||
__declspec(dllimport) void __stdcall timed_jump_abs(short x, short y, double time);
|
||||
__declspec(dllimport) void __stdcall n_timed_mark_abs(unsigned short n, short x, short y, double time);
|
||||
__declspec(dllimport) void __stdcall timed_mark_abs(short x, short y, double time);
|
||||
__declspec(dllimport) void __stdcall n_timed_jump_rel(unsigned short n, short dx, short dy, double time);
|
||||
__declspec(dllimport) void __stdcall timed_jump_rel(short dx, short dy, double time);
|
||||
__declspec(dllimport) void __stdcall n_timed_mark_rel(unsigned short n, short dx, short dy, double time);
|
||||
__declspec(dllimport) void __stdcall timed_mark_rel(short dx, short dy, double time);
|
||||
__declspec(dllimport) void __stdcall n_set_laser_timing(unsigned short n, unsigned short halfperiod, unsigned short pulse1, unsigned short pulse2, unsigned short timebase);
|
||||
__declspec(dllimport) void __stdcall set_laser_timing(unsigned short halfperiod, unsigned short pulse1, unsigned short pulse2, unsigned short timebase);
|
||||
__declspec(dllimport) void __stdcall n_set_wobbel_xy(unsigned short n, unsigned short long_wob, unsigned short trans_wob, double frequency);
|
||||
__declspec(dllimport) void __stdcall set_wobbel_xy(unsigned short long_wob, unsigned short trans_wob, double frequency);
|
||||
__declspec(dllimport) void __stdcall n_set_wobbel(unsigned short n, unsigned short amplitude, double frequency);
|
||||
__declspec(dllimport) void __stdcall set_wobbel(unsigned short amplitude, double frequency);
|
||||
__declspec(dllimport) void __stdcall n_set_fly_x(unsigned short n, double kx);
|
||||
__declspec(dllimport) void __stdcall set_fly_x(double kx);
|
||||
__declspec(dllimport) void __stdcall n_set_fly_y(unsigned short n, double ky);
|
||||
__declspec(dllimport) void __stdcall set_fly_y(double ky);
|
||||
__declspec(dllimport) void __stdcall n_set_fly_rot(unsigned short n, double resolution);
|
||||
__declspec(dllimport) void __stdcall set_fly_rot(double resolution);
|
||||
__declspec(dllimport) void __stdcall n_fly_return(unsigned short n, short x, short y);
|
||||
__declspec(dllimport) void __stdcall fly_return(short x, short y);
|
||||
__declspec(dllimport) void __stdcall n_calculate_fly(unsigned short n, unsigned short direction, double distance);
|
||||
__declspec(dllimport) void __stdcall calculate_fly(unsigned short direction, double distance);
|
||||
__declspec(dllimport) void __stdcall n_write_io_port_list(unsigned short n, unsigned short value);
|
||||
__declspec(dllimport) void __stdcall write_io_port_list(unsigned short value);
|
||||
__declspec(dllimport) void __stdcall n_select_cor_table_list(unsigned short n, unsigned short heada, unsigned short headb);
|
||||
__declspec(dllimport) void __stdcall select_cor_table_list(unsigned short heada, unsigned short headb);
|
||||
__declspec(dllimport) void __stdcall n_set_wait(unsigned short n, unsigned short value);
|
||||
__declspec(dllimport) void __stdcall set_wait(unsigned short value);
|
||||
__declspec(dllimport) void __stdcall n_simulate_ext_start(unsigned short n, short delay, short encoder);
|
||||
__declspec(dllimport) void __stdcall simulate_ext_start(short delay, short encoder);
|
||||
__declspec(dllimport) void __stdcall n_write_da_x_list(unsigned short n, unsigned short x, unsigned short value);
|
||||
__declspec(dllimport) void __stdcall write_da_x_list(unsigned short x, unsigned short value);
|
||||
__declspec(dllimport) void __stdcall n_set_pixel_line(unsigned short n, unsigned short pixelmode, unsigned short pixelperiod, double dx, double dy);
|
||||
__declspec(dllimport) void __stdcall set_pixel_line(unsigned short pixelmode, unsigned short pixelperiod, double dx, double dy);
|
||||
__declspec(dllimport) void __stdcall n_set_pixel(unsigned short n, unsigned short pulswidth, unsigned short davalue, unsigned short adchannel);
|
||||
__declspec(dllimport) void __stdcall set_pixel(unsigned short pulswidth, unsigned short davalue, unsigned short adchannel);
|
||||
__declspec(dllimport) void __stdcall n_set_extstartpos_list(unsigned short n, unsigned short position);
|
||||
__declspec(dllimport) void __stdcall set_extstartpos_list(unsigned short position);
|
||||
__declspec(dllimport) void __stdcall n_laser_signal_on_list(unsigned short n);
|
||||
__declspec(dllimport) void __stdcall laser_signal_on_list(void);
|
||||
__declspec(dllimport) void __stdcall n_laser_signal_off_list(unsigned short n);
|
||||
__declspec(dllimport) void __stdcall laser_signal_off_list(void);
|
||||
__declspec(dllimport) void __stdcall n_set_firstpulse_killer_list(unsigned short n, unsigned short fpk);
|
||||
__declspec(dllimport) void __stdcall set_firstpulse_killer_list(unsigned short fpk);
|
||||
__declspec(dllimport) void __stdcall n_set_io_cond_list(unsigned short n, unsigned short mask_1, unsigned short mask_0, unsigned short mask_set);
|
||||
__declspec(dllimport) void __stdcall set_io_cond_list(unsigned short mask_1, unsigned short mask_0, unsigned short mask_set);
|
||||
__declspec(dllimport) void __stdcall n_clear_io_cond_list(unsigned short n, unsigned short mask_1, unsigned short mask_0, unsigned short mask_clear);
|
||||
__declspec(dllimport) void __stdcall clear_io_cond_list(unsigned short mask_1, unsigned short mask_0, unsigned short mask_clear);
|
||||
__declspec(dllimport) void __stdcall n_list_jump_cond(unsigned short n, unsigned short mask_1, unsigned short mask_0, unsigned short position);
|
||||
__declspec(dllimport) void __stdcall list_jump_cond(unsigned short mask_1, unsigned short mask_0, unsigned short position);
|
||||
__declspec(dllimport) void __stdcall n_list_call_cond(unsigned short n, unsigned short mask_1, unsigned short mask_0, unsigned short position);
|
||||
__declspec(dllimport) void __stdcall list_call_cond(unsigned short mask_1, unsigned short mask_0, unsigned short position);
|
||||
__declspec(dllimport) void __stdcall n_save_and_restart_timer(unsigned short n);
|
||||
__declspec(dllimport) void __stdcall save_and_restart_timer(void);
|
||||
__declspec(dllimport) void __stdcall n_set_ext_start_delay_list(unsigned short n, short delay, short encoder);
|
||||
__declspec(dllimport) void __stdcall set_ext_start_delay_list(short delay, short encoder);
|
||||
__declspec(dllimport) void __stdcall n_set_trigger(unsigned short n, unsigned short sampleperiod, unsigned short channel1, unsigned short channel2);
|
||||
__declspec(dllimport) void __stdcall set_trigger(unsigned short sampleperiod, unsigned short signal1, unsigned short signal2);
|
||||
__declspec(dllimport) void __stdcall n_arc_rel(unsigned short n, short dx, short dy, double angle);
|
||||
__declspec(dllimport) void __stdcall arc_rel(short dx, short dy, double angle);
|
||||
__declspec(dllimport) void __stdcall n_arc_abs(unsigned short n, short x, short y, double angle);
|
||||
__declspec(dllimport) void __stdcall arc_abs(short x, short y, double angle);
|
||||
__declspec(dllimport) void __stdcall drilling(short pulsewidth, short relencoderdelay);
|
||||
__declspec(dllimport) void __stdcall regulation(void);
|
||||
__declspec(dllimport) void __stdcall flyline(short encoderdelay);
|
||||
__declspec(dllimport) unsigned short __stdcall n_get_input_pointer(unsigned short n);
|
||||
__declspec(dllimport) unsigned short __stdcall get_input_pointer(void);
|
||||
__declspec(dllimport) void __stdcall select_rtc(unsigned short cardno);
|
||||
__declspec(dllimport) unsigned short __stdcall rtc4_count_cards(void);
|
||||
__declspec(dllimport) void __stdcall n_get_status(unsigned short n, unsigned short *busy, unsigned short *position);
|
||||
__declspec(dllimport) void __stdcall get_status(unsigned short *busy, unsigned short *position);
|
||||
__declspec(dllimport) unsigned short __stdcall n_read_status(unsigned short n);
|
||||
__declspec(dllimport) unsigned short __stdcall read_status(void);
|
||||
__declspec(dllimport) unsigned short __stdcall n_get_startstop_info(unsigned short n);
|
||||
__declspec(dllimport) unsigned short __stdcall get_startstop_info(void);
|
||||
__declspec(dllimport) unsigned short __stdcall n_get_marking_info(unsigned short n);
|
||||
__declspec(dllimport) unsigned short __stdcall get_marking_info(void);
|
||||
__declspec(dllimport) unsigned short __stdcall get_dll_version(void);
|
||||
__declspec(dllimport) void __stdcall n_set_start_list_1(unsigned short n);
|
||||
__declspec(dllimport) void __stdcall set_start_list_1(void);
|
||||
__declspec(dllimport) void __stdcall n_set_start_list_2(unsigned short n);
|
||||
__declspec(dllimport) void __stdcall set_start_list_2(void);
|
||||
__declspec(dllimport) void __stdcall n_set_start_list(unsigned short n, unsigned short listno);
|
||||
__declspec(dllimport) void __stdcall set_start_list(unsigned short listno);
|
||||
__declspec(dllimport) void __stdcall n_execute_list_1(unsigned short n);
|
||||
__declspec(dllimport) void __stdcall execute_list_1(void);
|
||||
__declspec(dllimport) void __stdcall n_execute_list_2(unsigned short n);
|
||||
__declspec(dllimport) void __stdcall execute_list_2(void);
|
||||
__declspec(dllimport) void __stdcall n_execute_list(unsigned short n, unsigned short listno);
|
||||
__declspec(dllimport) void __stdcall execute_list(unsigned short listno);
|
||||
__declspec(dllimport) void __stdcall n_write_8bit_port(unsigned short n, unsigned short value);
|
||||
__declspec(dllimport) void __stdcall write_8bit_port(unsigned short value);
|
||||
__declspec(dllimport) void __stdcall n_write_io_port(unsigned short n, unsigned short value);
|
||||
__declspec(dllimport) void __stdcall write_io_port(unsigned short value);
|
||||
__declspec(dllimport) void __stdcall n_auto_change(unsigned short n);
|
||||
__declspec(dllimport) void __stdcall auto_change(void);
|
||||
__declspec(dllimport) void __stdcall n_auto_change_pos(unsigned short n, unsigned short start);
|
||||
__declspec(dllimport) void __stdcall auto_change_pos(unsigned short start);
|
||||
__declspec(dllimport) void __stdcall aut_change(void);
|
||||
__declspec(dllimport) void __stdcall n_start_loop(unsigned short n);
|
||||
__declspec(dllimport) void __stdcall start_loop(void);
|
||||
__declspec(dllimport) void __stdcall n_quit_loop(unsigned short n);
|
||||
__declspec(dllimport) void __stdcall quit_loop(void);
|
||||
__declspec(dllimport) void __stdcall n_set_list_mode(unsigned short n, unsigned short mode);
|
||||
__declspec(dllimport) void __stdcall set_list_mode(unsigned short mode);
|
||||
__declspec(dllimport) void __stdcall n_stop_execution(unsigned short n);
|
||||
__declspec(dllimport) void __stdcall stop_execution(void);
|
||||
__declspec(dllimport) unsigned short __stdcall n_read_io_port(unsigned short n);
|
||||
__declspec(dllimport) unsigned short __stdcall read_io_port(void);
|
||||
__declspec(dllimport) void __stdcall n_write_da_1(unsigned short n, unsigned short value);
|
||||
__declspec(dllimport) void __stdcall write_da_1(unsigned short value);
|
||||
__declspec(dllimport) void __stdcall n_write_da_2(unsigned short n, unsigned short value);
|
||||
__declspec(dllimport) void __stdcall write_da_2(unsigned short value);
|
||||
__declspec(dllimport) void __stdcall n_set_max_counts(unsigned short n, long counts);
|
||||
__declspec(dllimport) void __stdcall set_max_counts(long counts);
|
||||
__declspec(dllimport) long __stdcall n_get_counts(unsigned short n);
|
||||
__declspec(dllimport) long __stdcall get_counts(void);
|
||||
__declspec(dllimport) void __stdcall n_set_matrix(unsigned short n, double m11, double m12, double m21, double m22);
|
||||
__declspec(dllimport) void __stdcall set_matrix(double m11, double m12, double m21, double m22);
|
||||
__declspec(dllimport) void __stdcall n_set_offset(unsigned short n, short xoffset, short yoffset);
|
||||
__declspec(dllimport) void __stdcall set_offset(short xoffset, short yoffset);
|
||||
__declspec(dllimport) void __stdcall n_goto_xyz(unsigned short n, short x, short y, short z);
|
||||
__declspec(dllimport) void __stdcall goto_xyz(short x, short y, short z);
|
||||
__declspec(dllimport) void __stdcall n_goto_xy(unsigned short n, short x, short y);
|
||||
__declspec(dllimport) void __stdcall goto_xy(short x, short y);
|
||||
__declspec(dllimport) unsigned short __stdcall n_get_hex_version(unsigned short n);
|
||||
__declspec(dllimport) unsigned short __stdcall get_hex_version(void);
|
||||
__declspec(dllimport) void __stdcall n_disable_laser(unsigned short n);
|
||||
__declspec(dllimport) void __stdcall disable_laser(void);
|
||||
__declspec(dllimport) void __stdcall n_enable_laser(unsigned short n);
|
||||
__declspec(dllimport) void __stdcall enable_laser(void);
|
||||
__declspec(dllimport) void __stdcall n_stop_list(unsigned short n);
|
||||
__declspec(dllimport) void __stdcall stop_list(void);
|
||||
__declspec(dllimport) void __stdcall n_restart_list(unsigned short n);
|
||||
__declspec(dllimport) void __stdcall restart_list(void);
|
||||
__declspec(dllimport) void __stdcall n_get_xyz_pos(unsigned short n, short *x, short *y, short *z);
|
||||
__declspec(dllimport) void __stdcall get_xyz_pos(short *x, short *y, short *z);
|
||||
__declspec(dllimport) void __stdcall n_get_xy_pos(unsigned short n, short *x, short *y);
|
||||
__declspec(dllimport) void __stdcall get_xy_pos(short *x, short *y);
|
||||
__declspec(dllimport) void __stdcall n_select_list(unsigned short n, unsigned short list_2);
|
||||
__declspec(dllimport) void __stdcall select_list(unsigned short list_2);
|
||||
__declspec(dllimport) void __stdcall n_z_out(unsigned short n, short z);
|
||||
__declspec(dllimport) void __stdcall z_out(short z);
|
||||
__declspec(dllimport) void __stdcall n_set_firstpulse_killer(unsigned short n, unsigned short fpk);
|
||||
__declspec(dllimport) void __stdcall set_firstpulse_killer(unsigned short fpk);
|
||||
__declspec(dllimport) void __stdcall n_set_standby(unsigned short n, unsigned short half_period, unsigned short pulse);
|
||||
__declspec(dllimport) void __stdcall set_standby(unsigned short half_period, unsigned short pulse);
|
||||
__declspec(dllimport) void __stdcall n_laser_signal_on(unsigned short n);
|
||||
__declspec(dllimport) void __stdcall laser_signal_on(void);
|
||||
__declspec(dllimport) void __stdcall n_laser_signal_off(unsigned short n);
|
||||
__declspec(dllimport) void __stdcall laser_signal_off(void);
|
||||
__declspec(dllimport) void __stdcall n_set_delay_mode(unsigned short n, unsigned short varpoly, unsigned short directmove3d, unsigned short edgelevel, unsigned short minjumpdelay, unsigned short jumplengthlimit);
|
||||
__declspec(dllimport) void __stdcall set_delay_mode(unsigned short varpoly, unsigned short directmove3d, unsigned short edgelevel, unsigned short minjumpdelay, unsigned short jumplengthlimit);
|
||||
__declspec(dllimport) void __stdcall n_set_piso_control(unsigned short n, unsigned short l1, unsigned short l2);
|
||||
__declspec(dllimport) void __stdcall set_piso_control(unsigned short l1, unsigned short l2);
|
||||
__declspec(dllimport) void __stdcall n_select_status(unsigned short n, unsigned short mode);
|
||||
__declspec(dllimport) void __stdcall select_status(unsigned short mode);
|
||||
__declspec(dllimport) void __stdcall n_get_encoder(unsigned short n, short *zx, short *zy);
|
||||
__declspec(dllimport) void __stdcall get_encoder(short *zx, short *zy);
|
||||
__declspec(dllimport) void __stdcall n_select_cor_table(unsigned short n, unsigned short heada, unsigned short headb);
|
||||
__declspec(dllimport) void __stdcall select_cor_table(unsigned short heada, unsigned short headb);
|
||||
__declspec(dllimport) void __stdcall n_execute_at_pointer(unsigned short n, unsigned short position);
|
||||
__declspec(dllimport) void __stdcall execute_at_pointer(unsigned short position);
|
||||
__declspec(dllimport) unsigned short __stdcall n_get_head_status(unsigned short n, unsigned short head);
|
||||
__declspec(dllimport) unsigned short __stdcall get_head_status(unsigned short head);
|
||||
__declspec(dllimport) void __stdcall n_simulate_encoder(unsigned short n, unsigned short channel);
|
||||
__declspec(dllimport) void __stdcall simulate_encoder(unsigned short channel);
|
||||
__declspec(dllimport) void __stdcall n_set_hi(unsigned short n, double galvogainx, double galvogainy, short galvooffsetx, short galvooffsety, short head);
|
||||
__declspec(dllimport) void __stdcall set_hi(double galvogainx, double galvogainy, short galvooffsetx, short galvooffsety, short head);
|
||||
__declspec(dllimport) void __stdcall n_release_wait(unsigned short n);
|
||||
__declspec(dllimport) void __stdcall release_wait(void);
|
||||
__declspec(dllimport) unsigned short __stdcall n_get_wait_status(unsigned short n);
|
||||
__declspec(dllimport) unsigned short __stdcall get_wait_status(void);
|
||||
__declspec(dllimport) void __stdcall n_set_control_mode(unsigned short n, unsigned short mode);
|
||||
__declspec(dllimport) void __stdcall set_control_mode(unsigned short mode);
|
||||
__declspec(dllimport) void __stdcall n_set_laser_mode(unsigned short n, unsigned short mode);
|
||||
__declspec(dllimport) void __stdcall set_laser_mode(unsigned short mode);
|
||||
__declspec(dllimport) void __stdcall n_set_ext_start_delay(unsigned short n, short delay, short encoder);
|
||||
__declspec(dllimport) void __stdcall set_ext_start_delay(short delay, short encoder);
|
||||
__declspec(dllimport) void __stdcall n_home_position(unsigned short n, short xhome, short yhome);
|
||||
__declspec(dllimport) void __stdcall home_position(short xhome, short yhome);
|
||||
__declspec(dllimport) void __stdcall n_set_rot_center(unsigned short n, long center_x, long center_y);
|
||||
__declspec(dllimport) void __stdcall set_rot_center(long center_x, long center_y);
|
||||
__declspec(dllimport) void __stdcall n_dsp_start(unsigned short n);
|
||||
__declspec(dllimport) void __stdcall dsp_start(void);
|
||||
__declspec(dllimport) void __stdcall n_write_da_x(unsigned short n, unsigned short x, unsigned short value);
|
||||
__declspec(dllimport) void __stdcall write_da_x(unsigned short x, unsigned short value);
|
||||
__declspec(dllimport) unsigned short __stdcall n_read_ad_x(unsigned short n, unsigned short x);
|
||||
__declspec(dllimport) unsigned short __stdcall read_ad_x(unsigned short x);
|
||||
__declspec(dllimport) unsigned short __stdcall n_read_pixel_ad(unsigned short n, unsigned short pos);
|
||||
__declspec(dllimport) unsigned short __stdcall read_pixel_ad(unsigned short pos);
|
||||
__declspec(dllimport) short __stdcall n_get_z_distance(unsigned short n, short x, short y, short z);
|
||||
__declspec(dllimport) short __stdcall get_z_distance(short x, short y, short z);
|
||||
__declspec(dllimport) unsigned short __stdcall n_get_io_status(unsigned short n);
|
||||
__declspec(dllimport) unsigned short __stdcall get_io_status(void);
|
||||
__declspec(dllimport) double __stdcall n_get_time(unsigned short n);
|
||||
__declspec(dllimport) double __stdcall get_time(void);
|
||||
__declspec(dllimport) void __stdcall n_set_defocus(unsigned short n, short value);
|
||||
__declspec(dllimport) void __stdcall set_defocus(short value);
|
||||
__declspec(dllimport) void __stdcall n_set_softstart_mode(unsigned short n, unsigned short mode, unsigned short number, unsigned short restartdelay);
|
||||
__declspec(dllimport) void __stdcall set_softstart_mode(unsigned short mode, unsigned short number, unsigned short resetdelay);
|
||||
__declspec(dllimport) void __stdcall n_set_softstart_level(unsigned short n, unsigned short index, unsigned short level);
|
||||
__declspec(dllimport) void __stdcall set_softstart_level(unsigned short index, unsigned short level);
|
||||
__declspec(dllimport) void __stdcall n_control_command(unsigned short n, unsigned short head, unsigned short axis, unsigned short data);
|
||||
__declspec(dllimport) void __stdcall control_command(unsigned short head, unsigned short axis, unsigned short data);
|
||||
__declspec(dllimport) short __stdcall load_cor(const char* filename);
|
||||
__declspec(dllimport) short __stdcall load_pro(const char* filename);
|
||||
__declspec(dllimport) unsigned short __stdcall n_get_serial_number(unsigned short n);
|
||||
__declspec(dllimport) unsigned short __stdcall get_serial_number(void);
|
||||
__declspec(dllimport) long __stdcall n_get_serial_number_32(unsigned short n);
|
||||
__declspec(dllimport) long __stdcall get_serial_number_32(void);
|
||||
__declspec(dllimport) unsigned short __stdcall n_get_rtc_version(unsigned short n);
|
||||
__declspec(dllimport) unsigned short __stdcall get_rtc_version(void);
|
||||
__declspec(dllimport) void __stdcall get_hi_data(unsigned short *x1, unsigned short *x2, unsigned short *y1, unsigned short *y2);
|
||||
__declspec(dllimport) short __stdcall n_auto_cal(unsigned short n, unsigned short head, unsigned short command);
|
||||
__declspec(dllimport) short __stdcall auto_cal(unsigned short head, unsigned short command);
|
||||
__declspec(dllimport) unsigned short __stdcall n_get_list_space(unsigned short n);
|
||||
__declspec(dllimport) unsigned short __stdcall get_list_space(void);
|
||||
__declspec(dllimport) short __stdcall teachin(const char* filename, short xin, short yin, short zin, double ll0, short *xout, short *yout, short *zout);
|
||||
__declspec(dllimport) short __stdcall n_get_value(unsigned short n, unsigned short signal);
|
||||
__declspec(dllimport) short __stdcall get_value(unsigned short signal);
|
||||
__declspec(dllimport) void __stdcall n_set_io_bit(unsigned short n, unsigned short mask1);
|
||||
__declspec(dllimport) void __stdcall set_io_bit(unsigned short mask1);
|
||||
__declspec(dllimport) void __stdcall n_clear_io_bit(unsigned short n, unsigned short mask0);
|
||||
__declspec(dllimport) void __stdcall clear_io_bit(unsigned short mask0);
|
||||
__declspec(dllimport) void __stdcall set_duty_cycle_table(unsigned short index, unsigned short dutycycle);
|
||||
__declspec(dllimport) void __stdcall n_move_to(unsigned short n, unsigned short position);
|
||||
__declspec(dllimport) void __stdcall move_to(unsigned short position);
|
BIN
PrintS/ScannerCtrl/RTC5DAT.dat
Normal file
BIN
PrintS/ScannerCtrl/RTC5DAT.dat
Normal file
Binary file not shown.
BIN
PrintS/ScannerCtrl/RTC5DLL.dll
Normal file
BIN
PrintS/ScannerCtrl/RTC5DLL.dll
Normal file
Binary file not shown.
BIN
PrintS/ScannerCtrl/RTC5DLL.lib
Normal file
BIN
PrintS/ScannerCtrl/RTC5DLL.lib
Normal file
Binary file not shown.
BIN
PrintS/ScannerCtrl/RTC5DLLx64.dll
Normal file
BIN
PrintS/ScannerCtrl/RTC5DLLx64.dll
Normal file
Binary file not shown.
BIN
PrintS/ScannerCtrl/RTC5DLLx64.lib
Normal file
BIN
PrintS/ScannerCtrl/RTC5DLLx64.lib
Normal file
Binary file not shown.
BIN
PrintS/ScannerCtrl/RTC5OUT.out
Normal file
BIN
PrintS/ScannerCtrl/RTC5OUT.out
Normal file
Binary file not shown.
BIN
PrintS/ScannerCtrl/RTC5RBF.rbf
Normal file
BIN
PrintS/ScannerCtrl/RTC5RBF.rbf
Normal file
Binary file not shown.
1032
PrintS/ScannerCtrl/RTC5Scanner.cpp
Normal file
1032
PrintS/ScannerCtrl/RTC5Scanner.cpp
Normal file
File diff suppressed because it is too large
Load Diff
77
PrintS/ScannerCtrl/RTC5Scanner.h
Normal file
77
PrintS/ScannerCtrl/RTC5Scanner.h
Normal file
@ -0,0 +1,77 @@
|
||||
#pragma once
|
||||
#include "Scanner.h"
|
||||
|
||||
class RTC5Scanner : public Scanner
|
||||
{
|
||||
public:
|
||||
RTC5Scanner(ScannerControlCfg* cfg);
|
||||
~RTC5Scanner();
|
||||
bool Init();
|
||||
bool StopWork();
|
||||
static bool PreInit(unsigned int &card_count);
|
||||
static void Uninit();
|
||||
void SetK(double k) {
|
||||
if (!m_CorrectParamCfg->m_IsCorrectFile3D) {
|
||||
m_kfactor = k;
|
||||
m_xfactor = m_kfactor*m_CorrectParamCfg->m_xcorrect;
|
||||
m_yfactor = m_kfactor*m_CorrectParamCfg->m_ycorrect;
|
||||
|
||||
m_XOffsetAssist = m_CorrectParamCfg->m_xposfix *m_xfactor;
|
||||
m_YOffsetAssist = m_CorrectParamCfg->m_yposfix *m_yfactor;
|
||||
}
|
||||
}
|
||||
|
||||
void UpdateScanParamByCfg(ScanParamCfg* cfg);
|
||||
protected:
|
||||
void HeatingScannerRun();
|
||||
void ScannerInfoRun();
|
||||
void UpdateScannerInfo();
|
||||
void CheckAlarm();
|
||||
private:
|
||||
void LoadList(unsigned int listid, bool wait);
|
||||
void EndList();
|
||||
void ListExecute(unsigned int listid, bool wait);
|
||||
void AutoChangeList();
|
||||
void WaitListFree();
|
||||
|
||||
void SetScanSpeed(double value);
|
||||
void SetPower(double watt);
|
||||
void SetDefocus(float value);
|
||||
void ResetDefocus();
|
||||
void AddVector(double startx, double starty, double endx, double endy);
|
||||
void ListNop();
|
||||
void JumpAbs(double x, double y);
|
||||
void MarkAbs(double x, double y);
|
||||
|
||||
unsigned int GetMemorySize() { return m_list_memory; }
|
||||
void ScanDebug();
|
||||
void UpdateSetting();
|
||||
void SetXyOffset(float x, float y);
|
||||
void SetAngle(double angle);
|
||||
void UpdateSkyWriting(bool islist);
|
||||
void GetInfo(vector<string> &ins);
|
||||
void SetSkyWritingEnable(bool benable, bool islist);
|
||||
|
||||
void ScanTestProc();
|
||||
|
||||
private:
|
||||
|
||||
const uint32_t ScanStatusAddr = 0x0500;
|
||||
const uint32_t ActualPositionAddr = 0x0501;
|
||||
const uint32_t SetPositionAddr = 0x0502;
|
||||
const uint32_t PositionErrorAddr = 0x0503;
|
||||
const uint32_t ActualCurrentAddr = 0x0504;
|
||||
const uint32_t ActualVelocityAddr = 0x0506;
|
||||
const uint32_t GalvanometerScannerTempAddr = 0x0514;
|
||||
const uint32_t ServoBoardTempAddr = 0x0515;
|
||||
const uint32_t PDSupplyVoltageAddr = 0x0516;
|
||||
const uint32_t DSPCoreSupplyVoltageAddr = 0x0517;
|
||||
const uint32_t DSPIOVoltageAddr = 0x0518;
|
||||
const uint32_t AnalogSectionVoltageAddr = 0x0519;
|
||||
const uint32_t ADConverterSupplyVoltageAddr = 0x051A;
|
||||
const uint32_t PDSupplyCurrentAddr = 0x051B;
|
||||
const uint32_t FirmwareVersionAddr = 0x0522;
|
||||
const uint32_t CurrentOperationStateLowAddr = 0x0528;
|
||||
const uint32_t CurrentOperationStateHighAddr = 0x0529;
|
||||
const uint32_t StopEventCode = 0x052A;
|
||||
};
|
915
PrintS/ScannerCtrl/RTC5impl.hpp
Normal file
915
PrintS/ScannerCtrl/RTC5impl.hpp
Normal file
@ -0,0 +1,915 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// File: RTC5impl.hpp
|
||||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// Abstract
|
||||
// RTC5 function prototypes for implicitly linking - also known as
|
||||
// static load linking - to the RTC5DLL.DLL or libslrtc5.so.
|
||||
//
|
||||
// This file was automatically generated on Jan 8, 2019
|
||||
//
|
||||
// NOTE
|
||||
// On Windows platforms for building an executable, you must link with
|
||||
// the (Visual C++) import library RTC5DLL.LIB.
|
||||
//
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#pragma once
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif //defined(__cplusplus)
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#if !defined(ULONG_PTR) // usually defined in <BaseTsd.h>
|
||||
#if !defined(_WIN64)
|
||||
#define ULONG_PTR UINT
|
||||
#else
|
||||
#define ULONG_PTR UINT64
|
||||
#endif // !defined(_WIN64)
|
||||
#endif // !defined(ULONG_PTR)
|
||||
#else
|
||||
#include <stdint.h>
|
||||
typedef int32_t LONG; // LONG is assumed to be 4 Bytes
|
||||
typedef uint32_t UINT; // UINT is assumed to be 4 Bytes
|
||||
typedef uintptr_t ULONG_PTR;
|
||||
#define __stdcall
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#define RTC5_API __declspec(dllimport)
|
||||
#else
|
||||
#define RTC5_API
|
||||
#endif
|
||||
|
||||
RTC5_API UINT __stdcall init_rtc5_dll(void);
|
||||
RTC5_API void __stdcall free_rtc5_dll(void);
|
||||
RTC5_API void __stdcall set_rtc4_mode(void);
|
||||
RTC5_API void __stdcall set_rtc5_mode(void);
|
||||
RTC5_API UINT __stdcall get_rtc_mode(void);
|
||||
RTC5_API UINT __stdcall n_get_error(const UINT CardNo);
|
||||
RTC5_API UINT __stdcall n_get_last_error(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_reset_error(const UINT CardNo, const UINT Code);
|
||||
RTC5_API UINT __stdcall n_set_verify(const UINT CardNo, const UINT Verify);
|
||||
RTC5_API UINT __stdcall get_error(void);
|
||||
RTC5_API UINT __stdcall get_last_error(void);
|
||||
RTC5_API void __stdcall reset_error(const UINT Code);
|
||||
RTC5_API UINT __stdcall set_verify(const UINT Verify);
|
||||
RTC5_API UINT __stdcall verify_checksum(const char* Name);
|
||||
RTC5_API UINT __stdcall read_abc_from_file(const char* Name, double& A, double& B, double& C);
|
||||
RTC5_API UINT __stdcall write_abc_to_file(const char* Name, const double A, const double B, const double C);
|
||||
RTC5_API UINT __stdcall rtc5_count_cards(void);
|
||||
RTC5_API UINT __stdcall acquire_rtc(const UINT CardNo);
|
||||
RTC5_API UINT __stdcall release_rtc(const UINT CardNo);
|
||||
RTC5_API UINT __stdcall select_rtc(const UINT CardNo);
|
||||
RTC5_API UINT __stdcall get_dll_version(void);
|
||||
RTC5_API UINT __stdcall n_get_serial_number(const UINT CardNo);
|
||||
RTC5_API UINT __stdcall n_get_hex_version(const UINT CardNo);
|
||||
RTC5_API UINT __stdcall n_get_rtc_version(const UINT CardNo);
|
||||
RTC5_API UINT __stdcall get_serial_number(void);
|
||||
RTC5_API UINT __stdcall get_hex_version(void);
|
||||
RTC5_API UINT __stdcall get_rtc_version(void);
|
||||
RTC5_API UINT __stdcall n_load_program_file(const UINT CardNo, const char* Path);
|
||||
RTC5_API void __stdcall n_sync_slaves(const UINT CardNo);
|
||||
RTC5_API UINT __stdcall n_get_sync_status(const UINT CardNo);
|
||||
RTC5_API UINT __stdcall n_load_correction_file(const UINT CardNo, const char* Name, const UINT No, const UINT Dim);
|
||||
RTC5_API UINT __stdcall n_load_zoom_correction_file(const UINT CardNo, const char* Name, const UINT No);
|
||||
RTC5_API UINT __stdcall n_load_z_table(const UINT CardNo, const double A, const double B, const double C);
|
||||
RTC5_API void __stdcall n_select_cor_table(const UINT CardNo, const UINT HeadA, const UINT HeadB);
|
||||
RTC5_API UINT __stdcall n_set_dsp_mode(const UINT CardNo, const UINT Mode);
|
||||
RTC5_API long __stdcall n_load_stretch_table(const UINT CardNo, const char* Name, const long No);
|
||||
RTC5_API void __stdcall n_number_of_correction_tables(const UINT CardNo, const UINT Number);
|
||||
RTC5_API double __stdcall n_get_head_para(const UINT CardNo, const UINT HeadNo, const UINT ParaNo);
|
||||
RTC5_API double __stdcall n_get_table_para(const UINT CardNo, const UINT TableNo, const UINT ParaNo);
|
||||
RTC5_API UINT __stdcall load_program_file(const char* Path);
|
||||
RTC5_API void __stdcall sync_slaves(void);
|
||||
RTC5_API UINT __stdcall get_sync_status(void);
|
||||
RTC5_API UINT __stdcall load_correction_file(const char* Name, const UINT No, const UINT Dim);
|
||||
RTC5_API UINT __stdcall load_zoom_correction_file(const char* Name, const UINT No);
|
||||
RTC5_API UINT __stdcall load_z_table(const double A, const double B, const double C);
|
||||
RTC5_API void __stdcall select_cor_table(const UINT HeadA, const UINT HeadB);
|
||||
RTC5_API UINT __stdcall set_dsp_mode(const UINT Mode);
|
||||
RTC5_API long __stdcall load_stretch_table(const char* Name, const long No);
|
||||
RTC5_API void __stdcall number_of_correction_tables(const UINT Number);
|
||||
RTC5_API double __stdcall get_head_para(const UINT HeadNo, const UINT ParaNo);
|
||||
RTC5_API double __stdcall get_table_para(const UINT TableNo, const UINT ParaNo);
|
||||
RTC5_API void __stdcall n_config_list(const UINT CardNo, const UINT Mem1, const UINT Mem2);
|
||||
RTC5_API void __stdcall n_get_config_list(const UINT CardNo);
|
||||
RTC5_API UINT __stdcall n_save_disk(const UINT CardNo, const char* Name, const UINT Mode);
|
||||
RTC5_API UINT __stdcall n_load_disk(const UINT CardNo, const char* Name, const UINT Mode);
|
||||
RTC5_API UINT __stdcall n_get_list_space(const UINT CardNo);
|
||||
RTC5_API void __stdcall config_list(const UINT Mem1, const UINT Mem2);
|
||||
RTC5_API void __stdcall get_config_list(void);
|
||||
RTC5_API UINT __stdcall save_disk(const char* Name, const UINT Mode);
|
||||
RTC5_API UINT __stdcall load_disk(const char* Name, const UINT Mode);
|
||||
RTC5_API UINT __stdcall get_list_space(void);
|
||||
RTC5_API void __stdcall n_set_start_list_pos(const UINT CardNo, const UINT ListNo, const UINT Pos);
|
||||
RTC5_API void __stdcall n_set_start_list(const UINT CardNo, const UINT ListNo);
|
||||
RTC5_API void __stdcall n_set_start_list_1(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_set_start_list_2(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_set_input_pointer(const UINT CardNo, const UINT Pos);
|
||||
RTC5_API UINT __stdcall n_load_list(const UINT CardNo, const UINT ListNo, const UINT Pos);
|
||||
RTC5_API void __stdcall n_load_sub(const UINT CardNo, const UINT Index);
|
||||
RTC5_API void __stdcall n_load_char(const UINT CardNo, const UINT Char);
|
||||
RTC5_API void __stdcall n_load_text_table(const UINT CardNo, const UINT Index);
|
||||
RTC5_API void __stdcall n_get_list_pointer(const UINT CardNo, UINT& ListNo, UINT& Pos);
|
||||
RTC5_API UINT __stdcall n_get_input_pointer(const UINT CardNo);
|
||||
RTC5_API void __stdcall set_start_list_pos(const UINT ListNo, const UINT Pos);
|
||||
RTC5_API void __stdcall set_start_list(const UINT ListNo);
|
||||
RTC5_API void __stdcall set_start_list_1(void);
|
||||
RTC5_API void __stdcall set_start_list_2(void);
|
||||
RTC5_API void __stdcall set_input_pointer(const UINT Pos);
|
||||
RTC5_API UINT __stdcall load_list(const UINT ListNo, const UINT Pos);
|
||||
RTC5_API void __stdcall load_sub(const UINT Index);
|
||||
RTC5_API void __stdcall load_char(const UINT Char);
|
||||
RTC5_API void __stdcall load_text_table(const UINT Index);
|
||||
RTC5_API void __stdcall get_list_pointer(UINT& ListNo, UINT& Pos);
|
||||
RTC5_API UINT __stdcall get_input_pointer(void);
|
||||
RTC5_API void __stdcall n_execute_list_pos(const UINT CardNo, const UINT ListNo, const UINT Pos);
|
||||
RTC5_API void __stdcall n_execute_at_pointer(const UINT CardNo, const UINT Pos);
|
||||
RTC5_API void __stdcall n_execute_list(const UINT CardNo, const UINT ListNo);
|
||||
RTC5_API void __stdcall n_execute_list_1(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_execute_list_2(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_get_out_pointer(const UINT CardNo, UINT& ListNo, UINT& Pos);
|
||||
RTC5_API void __stdcall execute_list_pos(const UINT ListNo, const UINT Pos);
|
||||
RTC5_API void __stdcall execute_at_pointer(const UINT Pos);
|
||||
RTC5_API void __stdcall execute_list(const UINT ListNo);
|
||||
RTC5_API void __stdcall execute_list_1(void);
|
||||
RTC5_API void __stdcall execute_list_2(void);
|
||||
RTC5_API void __stdcall get_out_pointer(UINT& ListNo, UINT& Pos);
|
||||
RTC5_API void __stdcall n_auto_change_pos(const UINT CardNo, const UINT Pos);
|
||||
RTC5_API void __stdcall n_start_loop(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_quit_loop(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_pause_list(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_restart_list(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_release_wait(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_stop_execution(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_set_pause_list_cond(const UINT CardNo, const UINT Mask1, const UINT Mask0);
|
||||
RTC5_API void __stdcall n_set_pause_list_not_cond(const UINT CardNo, const UINT Mask1, const UINT Mask0);
|
||||
RTC5_API void __stdcall n_auto_change(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_stop_list(const UINT CardNo);
|
||||
RTC5_API UINT __stdcall n_get_wait_status(const UINT CardNo);
|
||||
RTC5_API UINT __stdcall n_read_status(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_get_status(const UINT CardNo, UINT& Status, UINT& Pos);
|
||||
RTC5_API void __stdcall auto_change_pos(const UINT Pos);
|
||||
RTC5_API void __stdcall start_loop(void);
|
||||
RTC5_API void __stdcall quit_loop(void);
|
||||
RTC5_API void __stdcall pause_list(void);
|
||||
RTC5_API void __stdcall restart_list(void);
|
||||
RTC5_API void __stdcall release_wait(void);
|
||||
RTC5_API void __stdcall stop_execution(void);
|
||||
RTC5_API void __stdcall set_pause_list_cond(const UINT Mask1, const UINT Mask0);
|
||||
RTC5_API void __stdcall set_pause_list_not_cond(const UINT Mask1, const UINT Mask0);
|
||||
RTC5_API void __stdcall auto_change(void);
|
||||
RTC5_API void __stdcall stop_list(void);
|
||||
RTC5_API UINT __stdcall get_wait_status(void);
|
||||
RTC5_API UINT __stdcall read_status(void);
|
||||
RTC5_API void __stdcall get_status(UINT& Status, UINT& Pos);
|
||||
RTC5_API void __stdcall n_set_extstartpos(const UINT CardNo, const UINT Pos);
|
||||
RTC5_API void __stdcall n_set_max_counts(const UINT CardNo, const UINT Counts);
|
||||
RTC5_API void __stdcall n_set_control_mode(const UINT CardNo, const UINT Mode);
|
||||
RTC5_API void __stdcall n_simulate_ext_stop(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_simulate_ext_start_ctrl(const UINT CardNo);
|
||||
RTC5_API UINT __stdcall n_get_counts(const UINT CardNo);
|
||||
RTC5_API UINT __stdcall n_get_startstop_info(const UINT CardNo);
|
||||
RTC5_API void __stdcall set_extstartpos(const UINT Pos);
|
||||
RTC5_API void __stdcall set_max_counts(const UINT Counts);
|
||||
RTC5_API void __stdcall set_control_mode(const UINT Mode);
|
||||
RTC5_API void __stdcall simulate_ext_stop(void);
|
||||
RTC5_API void __stdcall simulate_ext_start_ctrl(void);
|
||||
RTC5_API UINT __stdcall get_counts(void);
|
||||
RTC5_API UINT __stdcall get_startstop_info(void);
|
||||
RTC5_API void __stdcall n_copy_dst_src(const UINT CardNo, const UINT Dst, const UINT Src, const UINT Mode);
|
||||
RTC5_API void __stdcall n_set_char_pointer(const UINT CardNo, const UINT Char, const UINT Pos);
|
||||
RTC5_API void __stdcall n_set_sub_pointer(const UINT CardNo, const UINT Index, const UINT Pos);
|
||||
RTC5_API void __stdcall n_set_text_table_pointer(const UINT CardNo, const UINT Index, const UINT Pos);
|
||||
RTC5_API void __stdcall n_set_char_table(const UINT CardNo, const UINT Index, const UINT Pos);
|
||||
RTC5_API UINT __stdcall n_get_char_pointer(const UINT CardNo, const UINT Char);
|
||||
RTC5_API UINT __stdcall n_get_sub_pointer(const UINT CardNo, const UINT Index);
|
||||
RTC5_API UINT __stdcall n_get_text_table_pointer(const UINT CardNo, const UINT Index);
|
||||
RTC5_API void __stdcall copy_dst_src(const UINT Dst, const UINT Src, const UINT Mode);
|
||||
RTC5_API void __stdcall set_char_pointer(const UINT Char, const UINT Pos);
|
||||
RTC5_API void __stdcall set_sub_pointer(const UINT Index, const UINT Pos);
|
||||
RTC5_API void __stdcall set_text_table_pointer(const UINT Index, const UINT Pos);
|
||||
RTC5_API void __stdcall set_char_table(const UINT Index, const UINT Pos);
|
||||
RTC5_API UINT __stdcall get_char_pointer(const UINT Char);
|
||||
RTC5_API UINT __stdcall get_sub_pointer(const UINT Index);
|
||||
RTC5_API UINT __stdcall get_text_table_pointer(const UINT Index);
|
||||
RTC5_API void __stdcall n_time_update(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_set_serial_step(const UINT CardNo, const UINT No, const UINT Step);
|
||||
RTC5_API void __stdcall n_select_serial_set(const UINT CardNo, const UINT No);
|
||||
RTC5_API void __stdcall n_set_serial(const UINT CardNo, const UINT No);
|
||||
RTC5_API double __stdcall n_get_serial(const UINT CardNo);
|
||||
RTC5_API double __stdcall n_get_list_serial(const UINT CardNo, UINT& SetNo);
|
||||
RTC5_API void __stdcall time_update(void);
|
||||
RTC5_API void __stdcall set_serial_step(const UINT No, const UINT Step);
|
||||
RTC5_API void __stdcall select_serial_set(const UINT No);
|
||||
RTC5_API void __stdcall set_serial(const UINT No);
|
||||
RTC5_API double __stdcall get_serial(void);
|
||||
RTC5_API double __stdcall get_list_serial(UINT& SetNo);
|
||||
RTC5_API void __stdcall n_write_io_port_mask(const UINT CardNo, const UINT Value, const UINT Mask);
|
||||
RTC5_API void __stdcall n_write_8bit_port(const UINT CardNo, const UINT Value);
|
||||
RTC5_API UINT __stdcall n_read_io_port(const UINT CardNo);
|
||||
RTC5_API UINT __stdcall n_read_io_port_buffer(const UINT CardNo, const UINT Index, UINT& Value, long& XPos, long& YPos, UINT& Time);
|
||||
RTC5_API UINT __stdcall n_get_io_status(const UINT CardNo);
|
||||
RTC5_API UINT __stdcall n_read_analog_in(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_write_da_x(const UINT CardNo, const UINT x, const UINT Value);
|
||||
RTC5_API void __stdcall n_set_laser_off_default(const UINT CardNo, const UINT AnalogOut1, const UINT AnalogOut2, const UINT DigitalOut);
|
||||
RTC5_API void __stdcall n_set_port_default(const UINT CardNo, const UINT Port, const UINT Value);
|
||||
RTC5_API void __stdcall n_write_io_port(const UINT CardNo, const UINT Value);
|
||||
RTC5_API void __stdcall n_write_da_1(const UINT CardNo, const UINT Value);
|
||||
RTC5_API void __stdcall n_write_da_2(const UINT CardNo, const UINT Value);
|
||||
RTC5_API void __stdcall write_io_port_mask(const UINT Value, const UINT Mask);
|
||||
RTC5_API void __stdcall write_8bit_port(const UINT Value);
|
||||
RTC5_API UINT __stdcall read_io_port(void);
|
||||
RTC5_API UINT __stdcall read_io_port_buffer(const UINT Index, UINT& Value, long& XPos, long& YPos, UINT& Time);
|
||||
RTC5_API UINT __stdcall get_io_status(void);
|
||||
RTC5_API UINT __stdcall read_analog_in(void);
|
||||
RTC5_API void __stdcall write_da_x(const UINT x, const UINT Value);
|
||||
RTC5_API void __stdcall set_laser_off_default(const UINT AnalogOut1, const UINT AnalogOut2, const UINT DigitalOut);
|
||||
RTC5_API void __stdcall set_port_default(const UINT Port, const UINT Value);
|
||||
RTC5_API void __stdcall write_io_port(const UINT Value);
|
||||
RTC5_API void __stdcall write_da_1(const UINT Value);
|
||||
RTC5_API void __stdcall write_da_2(const UINT Value);
|
||||
RTC5_API void __stdcall n_disable_laser(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_enable_laser(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_laser_signal_on(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_laser_signal_off(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_set_standby(const UINT CardNo, const UINT HalfPeriod, const UINT PulseLength);
|
||||
RTC5_API void __stdcall n_set_laser_pulses_ctrl(const UINT CardNo, const UINT HalfPeriod, const UINT PulseLength);
|
||||
RTC5_API void __stdcall n_set_firstpulse_killer(const UINT CardNo, const UINT Length);
|
||||
RTC5_API void __stdcall n_set_qswitch_delay(const UINT CardNo, const UINT Delay);
|
||||
RTC5_API void __stdcall n_set_laser_mode(const UINT CardNo, const UINT Mode);
|
||||
RTC5_API void __stdcall n_set_laser_control(const UINT CardNo, const UINT Ctrl);
|
||||
RTC5_API void __stdcall n_set_laser_pin_out(const UINT CardNo, const UINT Pins);
|
||||
RTC5_API UINT __stdcall n_get_laser_pin_in(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_set_softstart_level(const UINT CardNo, const UINT Index, const UINT Level);
|
||||
RTC5_API void __stdcall n_set_softstart_mode(const UINT CardNo, const UINT Mode, const UINT Number, const UINT Delay);
|
||||
RTC5_API UINT __stdcall n_set_auto_laser_control(const UINT CardNo, const UINT Ctrl, const UINT Value, const UINT Mode, const UINT MinValue, const UINT MaxValue);
|
||||
RTC5_API UINT __stdcall n_set_auto_laser_params(const UINT CardNo, const UINT Ctrl, const UINT Value, const UINT MinValue, const UINT MaxValue);
|
||||
RTC5_API long __stdcall n_load_auto_laser_control(const UINT CardNo, const char* Name, const UINT No);
|
||||
RTC5_API long __stdcall n_load_position_control(const UINT CardNo, const char* Name, const UINT No);
|
||||
RTC5_API void __stdcall n_set_default_pixel(const UINT CardNo, const UINT PulseLength);
|
||||
RTC5_API void __stdcall n_get_standby(const UINT CardNo, UINT& HalfPeriod, UINT& PulseLength);
|
||||
RTC5_API void __stdcall n_set_pulse_picking(const UINT CardNo, const UINT No);
|
||||
RTC5_API void __stdcall n_set_pulse_picking_length(const UINT CardNo, const UINT Length);
|
||||
RTC5_API void __stdcall n_config_laser_signals(const UINT CardNo, const UINT Config);
|
||||
RTC5_API void __stdcall disable_laser(void);
|
||||
RTC5_API void __stdcall enable_laser(void);
|
||||
RTC5_API void __stdcall laser_signal_on(void);
|
||||
RTC5_API void __stdcall laser_signal_off(void);
|
||||
RTC5_API void __stdcall set_standby(const UINT HalfPeriod, const UINT PulseLength);
|
||||
RTC5_API void __stdcall set_laser_pulses_ctrl(const UINT HalfPeriod, const UINT PulseLength);
|
||||
RTC5_API void __stdcall set_firstpulse_killer(const UINT Length);
|
||||
RTC5_API void __stdcall set_qswitch_delay(const UINT Delay);
|
||||
RTC5_API void __stdcall set_laser_mode(const UINT Mode);
|
||||
RTC5_API void __stdcall set_laser_control(const UINT Ctrl);
|
||||
RTC5_API void __stdcall set_laser_pin_out(const UINT Pins);
|
||||
RTC5_API UINT __stdcall get_laser_pin_in(void);
|
||||
RTC5_API void __stdcall set_softstart_level(const UINT Index, const UINT Level);
|
||||
RTC5_API void __stdcall set_softstart_mode(const UINT Mode, const UINT Number, const UINT Delay);
|
||||
RTC5_API UINT __stdcall set_auto_laser_control(const UINT Ctrl, const UINT Value, const UINT Mode, const UINT MinValue, const UINT MaxValue);
|
||||
RTC5_API UINT __stdcall set_auto_laser_params(const UINT Ctrl, const UINT Value, const UINT MinValue, const UINT MaxValue);
|
||||
RTC5_API long __stdcall load_auto_laser_control(const char* Name, const UINT No);
|
||||
RTC5_API long __stdcall load_position_control(const char* Name, const UINT No);
|
||||
RTC5_API void __stdcall set_default_pixel(const UINT PulseLength);
|
||||
RTC5_API void __stdcall get_standby(UINT& HalfPeriod, UINT& PulseLength);
|
||||
RTC5_API void __stdcall set_pulse_picking(const UINT No);
|
||||
RTC5_API void __stdcall set_pulse_picking_length(const UINT Length);
|
||||
RTC5_API void __stdcall config_laser_signals(const UINT Config);
|
||||
RTC5_API void __stdcall n_set_ext_start_delay(const UINT CardNo, const long Delay, const UINT EncoderNo);
|
||||
RTC5_API void __stdcall n_set_rot_center(const UINT CardNo, const long X, const long Y);
|
||||
RTC5_API void __stdcall n_simulate_encoder(const UINT CardNo, const UINT EncoderNo);
|
||||
RTC5_API UINT __stdcall n_get_marking_info(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_set_encoder_speed_ctrl(const UINT CardNo, const UINT EncoderNo, const double Speed, const double Smooth);
|
||||
RTC5_API void __stdcall n_set_mcbsp_x(const UINT CardNo, const double ScaleX);
|
||||
RTC5_API void __stdcall n_set_mcbsp_y(const UINT CardNo, const double ScaleY);
|
||||
RTC5_API void __stdcall n_set_mcbsp_rot(const UINT CardNo, const double Resolution);
|
||||
RTC5_API void __stdcall n_set_mcbsp_matrix(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_set_mcbsp_in(const UINT CardNo, const UINT Mode, const double Scale);
|
||||
RTC5_API void __stdcall n_set_multi_mcbsp_in(const UINT CardNo, const UINT Ctrl, const UINT P, const UINT Mode);
|
||||
RTC5_API void __stdcall n_set_fly_tracking_error(const UINT CardNo, const UINT TrackingErrorX, const UINT TrackingErrorY);
|
||||
RTC5_API long __stdcall n_load_fly_2d_table(const UINT CardNo, const char* Name, const UINT No);
|
||||
RTC5_API void __stdcall n_init_fly_2d(const UINT CardNo, const long OffsetX, const long OffsetY);
|
||||
RTC5_API void __stdcall n_get_fly_2d_offset(const UINT CardNo, long& OffsetX, long& OffsetY);
|
||||
RTC5_API void __stdcall n_get_encoder(const UINT CardNo, long& Encoder0, long& Encoder1);
|
||||
RTC5_API void __stdcall n_read_encoder(const UINT CardNo, long& Encoder0_1, long& Encoder1_1, long& Encoder0_2, long& Encoder1_2);
|
||||
RTC5_API long __stdcall n_get_mcbsp(const UINT CardNo);
|
||||
RTC5_API long __stdcall n_read_mcbsp(const UINT CardNo, const UINT No);
|
||||
RTC5_API long __stdcall n_read_multi_mcbsp(const UINT CardNo, const UINT No);
|
||||
RTC5_API void __stdcall set_ext_start_delay(const long Delay, const UINT EncoderNo);
|
||||
RTC5_API void __stdcall set_rot_center(const long X, const long Y);
|
||||
RTC5_API void __stdcall simulate_encoder(const UINT EncoderNo);
|
||||
RTC5_API UINT __stdcall get_marking_info(void);
|
||||
RTC5_API void __stdcall set_encoder_speed_ctrl(const UINT EncoderNo, const double Speed, const double Smooth);
|
||||
RTC5_API void __stdcall set_mcbsp_x(const double ScaleX);
|
||||
RTC5_API void __stdcall set_mcbsp_y(const double ScaleY);
|
||||
RTC5_API void __stdcall set_mcbsp_rot(const double Resolution);
|
||||
RTC5_API void __stdcall set_mcbsp_matrix(void);
|
||||
RTC5_API void __stdcall set_mcbsp_in(const UINT Mode, const double Scale);
|
||||
RTC5_API void __stdcall set_multi_mcbsp_in(const UINT Ctrl, const UINT P, const UINT Mode);
|
||||
RTC5_API void __stdcall set_fly_tracking_error(const UINT TrackingErrorX, const UINT TrackingErrorY);
|
||||
RTC5_API long __stdcall load_fly_2d_table(const char* Name, const UINT No);
|
||||
RTC5_API void __stdcall init_fly_2d(const long OffsetX, const long OffsetY);
|
||||
RTC5_API void __stdcall get_fly_2d_offset(long& OffsetX, long& OffsetY);
|
||||
RTC5_API void __stdcall get_encoder(long& Encoder0, long& Encoder1);
|
||||
RTC5_API void __stdcall read_encoder(long& Encoder0_1, long& Encoder1_1, long& Encoder0_2, long& Encoder1_2);
|
||||
RTC5_API long __stdcall get_mcbsp(void);
|
||||
RTC5_API long __stdcall read_mcbsp(const UINT No);
|
||||
RTC5_API long __stdcall read_multi_mcbsp(const UINT No);
|
||||
RTC5_API double __stdcall n_get_time(const UINT CardNo);
|
||||
RTC5_API double __stdcall n_get_lap_time(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_measurement_status(const UINT CardNo, UINT& Busy, UINT& Pos);
|
||||
RTC5_API void __stdcall n_get_waveform(const UINT CardNo, const UINT Channel, const UINT Number, const ULONG_PTR Ptr);
|
||||
RTC5_API void __stdcall n_bounce_supp(const UINT CardNo, const UINT Length);
|
||||
RTC5_API void __stdcall n_home_position_xyz(const UINT CardNo, const long XHome, const long YHome, const long ZHome);
|
||||
RTC5_API void __stdcall n_home_position(const UINT CardNo, const long XHome, const long YHome);
|
||||
RTC5_API void __stdcall n_rs232_config(const UINT CardNo, const UINT BaudRate);
|
||||
RTC5_API void __stdcall n_rs232_write_data(const UINT CardNo, const UINT Data);
|
||||
RTC5_API void __stdcall n_rs232_write_text(const UINT CardNo, const char* pData);
|
||||
RTC5_API UINT __stdcall n_rs232_read_data(const UINT CardNo);
|
||||
RTC5_API UINT __stdcall n_set_mcbsp_freq(const UINT CardNo, const UINT Freq);
|
||||
RTC5_API void __stdcall n_mcbsp_init(const UINT CardNo, const UINT XDelay, const UINT RDelay);
|
||||
RTC5_API void __stdcall n_mcbsp_init_spi(const UINT CardNo, const UINT ClockLevel, const UINT ClockDelay);
|
||||
RTC5_API UINT __stdcall n_get_overrun(const UINT CardNo);
|
||||
RTC5_API UINT __stdcall n_get_master_slave(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_get_transform(const UINT CardNo, const UINT Number, const ULONG_PTR Ptr1, const ULONG_PTR Ptr2, const ULONG_PTR Ptr, const UINT Code);
|
||||
RTC5_API void __stdcall n_stop_trigger(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_move_to(const UINT CardNo, const UINT Pos);
|
||||
RTC5_API void __stdcall n_set_enduring_wobbel(const UINT CardNo, const UINT CenterX, const UINT CenterY, const UINT CenterZ, const UINT LimitHi, const UINT LimitLo, const double ScaleX, const double ScaleY, const double ScaleZ);
|
||||
RTC5_API void __stdcall n_set_enduring_wobbel_2(const UINT CardNo, const UINT CenterX, const UINT CenterY, const UINT CenterZ, const UINT LimitHi, const UINT LimitLo, const double ScaleX, const double ScaleY, const double ScaleZ);
|
||||
RTC5_API void __stdcall n_set_free_variable(const UINT CardNo, const UINT VarNo, const UINT Value);
|
||||
RTC5_API UINT __stdcall n_get_free_variable(const UINT CardNo, const UINT VarNo);
|
||||
RTC5_API void __stdcall n_set_mcbsp_out_ptr(const UINT CardNo, const UINT Number, const ULONG_PTR SignalPtr);
|
||||
RTC5_API void __stdcall n_periodic_toggle(const UINT CardNo, const UINT Port, const UINT Mask, const UINT P1, const UINT P2, const UINT Count, const UINT Start);
|
||||
RTC5_API UINT __stdcall n_load_wobbel_power(const UINT CardNo, const UINT TableNo, const ULONG_PTR Ptr, const long Flag);
|
||||
RTC5_API double __stdcall get_time(void);
|
||||
RTC5_API double __stdcall get_lap_time(void);
|
||||
RTC5_API void __stdcall measurement_status(UINT& Busy, UINT& Pos);
|
||||
RTC5_API void __stdcall get_waveform(const UINT Channel, const UINT Number, const ULONG_PTR Ptr);
|
||||
RTC5_API void __stdcall bounce_supp(const UINT Length);
|
||||
RTC5_API void __stdcall home_position_xyz(const long XHome, const long YHome, const long ZHome);
|
||||
RTC5_API void __stdcall home_position(const long XHome, const long YHome);
|
||||
RTC5_API void __stdcall rs232_config(const UINT BaudRate);
|
||||
RTC5_API void __stdcall rs232_write_data(const UINT Data);
|
||||
RTC5_API void __stdcall rs232_write_text(const char* pData);
|
||||
RTC5_API UINT __stdcall rs232_read_data(void);
|
||||
RTC5_API UINT __stdcall set_mcbsp_freq(const UINT Freq);
|
||||
RTC5_API void __stdcall mcbsp_init(const UINT XDelay, const UINT RDelay);
|
||||
RTC5_API void __stdcall mcbsp_init_spi(const UINT ClockLevel, const UINT ClockDelay);
|
||||
RTC5_API UINT __stdcall get_overrun(void);
|
||||
RTC5_API UINT __stdcall get_master_slave(void);
|
||||
RTC5_API void __stdcall get_transform(const UINT Number, const ULONG_PTR Ptr1, const ULONG_PTR Ptr2, const ULONG_PTR Ptr, const UINT Code);
|
||||
RTC5_API void __stdcall stop_trigger(void);
|
||||
RTC5_API void __stdcall move_to(const UINT Pos);
|
||||
RTC5_API void __stdcall set_enduring_wobbel(const UINT CenterX, const UINT CenterY, const UINT CenterZ, const UINT LimitHi, const UINT LimitLo, const double ScaleX, const double ScaleY, const double ScaleZ);
|
||||
RTC5_API void __stdcall set_enduring_wobbel_2(const UINT CenterX, const UINT CenterY, const UINT CenterZ, const UINT LimitHi, const UINT LimitLo, const double ScaleX, const double ScaleY, const double ScaleZ);
|
||||
RTC5_API void __stdcall set_free_variable(const UINT VarNo, const UINT Value);
|
||||
RTC5_API UINT __stdcall get_free_variable(const UINT VarNo);
|
||||
RTC5_API void __stdcall set_mcbsp_out_ptr(const UINT Number, const ULONG_PTR SignalPtr);
|
||||
RTC5_API void __stdcall periodic_toggle(const UINT Port, const UINT Mask, const UINT P1, const UINT P2, const UINT Count, const UINT Start);
|
||||
RTC5_API UINT __stdcall load_wobbel_power(const UINT TableNo, const ULONG_PTR Ptr, const long Flag);
|
||||
RTC5_API void __stdcall n_set_defocus(const UINT CardNo, const long Shift);
|
||||
RTC5_API void __stdcall n_set_defocus_offset(const UINT CardNo, const long Shift);
|
||||
RTC5_API void __stdcall n_goto_xyz(const UINT CardNo, const long X, const long Y, const long Z);
|
||||
RTC5_API void __stdcall n_set_zoom(const UINT CardNo, const UINT Zoom);
|
||||
RTC5_API void __stdcall n_goto_xy(const UINT CardNo, const long X, const long Y);
|
||||
RTC5_API long __stdcall n_get_z_distance(const UINT CardNo, const long X, const long Y, const long Z);
|
||||
RTC5_API void __stdcall set_defocus(const long Shift);
|
||||
RTC5_API void __stdcall set_defocus_offset(const long Shift);
|
||||
RTC5_API void __stdcall goto_xyz(const long X, const long Y, const long Z);
|
||||
RTC5_API void __stdcall goto_xy(const long X, const long Y);
|
||||
RTC5_API void __stdcall set_zoom(const UINT Zoom);
|
||||
RTC5_API long __stdcall get_z_distance(const long X, const long Y, const long Z);
|
||||
RTC5_API void __stdcall n_set_offset_xyz(const UINT CardNo, const UINT HeadNo, const long XOffset, const long YOffset, const long ZOffset, const UINT at_once);
|
||||
RTC5_API void __stdcall n_set_offset(const UINT CardNo, const UINT HeadNo, const long XOffset, const long YOffset, const UINT at_once);
|
||||
RTC5_API void __stdcall n_set_matrix(const UINT CardNo, const UINT HeadNo, const double M11, const double M12, const double M21, const double M22, const UINT at_once);
|
||||
RTC5_API void __stdcall n_set_angle(const UINT CardNo, const UINT HeadNo, const double Angle, const UINT at_once);
|
||||
RTC5_API void __stdcall n_set_scale(const UINT CardNo, const UINT HeadNo, const double Scale, const UINT at_once);
|
||||
RTC5_API void __stdcall n_apply_mcbsp(const UINT CardNo, const UINT HeadNo, const UINT at_once);
|
||||
RTC5_API UINT __stdcall n_upload_transform(const UINT CardNo, const UINT HeadNo, const ULONG_PTR Ptr);
|
||||
RTC5_API void __stdcall set_offset_xyz(const UINT HeadNo, const long XOffset, const long YOffset, const long ZOffset, const UINT at_once);
|
||||
RTC5_API void __stdcall set_offset(const UINT HeadNo, const long XOffset, const long YOffset, const UINT at_once);
|
||||
RTC5_API void __stdcall set_matrix(const UINT HeadNo, const double M11, const double M12, const double M21, const double M22, const UINT at_once);
|
||||
RTC5_API void __stdcall set_angle(const UINT HeadNo, const double Angle, const UINT at_once);
|
||||
RTC5_API void __stdcall set_scale(const UINT HeadNo, const double Scale, const UINT at_once);
|
||||
RTC5_API void __stdcall apply_mcbsp(const UINT HeadNo, const UINT at_once);
|
||||
RTC5_API UINT __stdcall upload_transform(const UINT HeadNo, const ULONG_PTR Ptr);
|
||||
RTC5_API UINT __stdcall transform(long& Sig1, long& Sig2, const ULONG_PTR Ptr, const UINT Code);
|
||||
RTC5_API void __stdcall n_set_delay_mode(const UINT CardNo, const UINT VarPoly, const UINT DirectMove3D, const UINT EdgeLevel, const UINT MinJumpDelay, const UINT JumpLengthLimit);
|
||||
RTC5_API void __stdcall n_set_jump_speed_ctrl(const UINT CardNo, const double Speed);
|
||||
RTC5_API void __stdcall n_set_mark_speed_ctrl(const UINT CardNo, const double Speed);
|
||||
RTC5_API void __stdcall n_set_sky_writing_para(const UINT CardNo, const double Timelag, const long LaserOnShift, const UINT Nprev, const UINT Npost);
|
||||
RTC5_API void __stdcall n_set_sky_writing_limit(const UINT CardNo, const double CosAngle);
|
||||
RTC5_API void __stdcall n_set_sky_writing_mode(const UINT CardNo, const UINT Mode);
|
||||
RTC5_API long __stdcall n_load_varpolydelay(const UINT CardNo, const char* Name, const UINT No);
|
||||
RTC5_API void __stdcall n_set_hi(const UINT CardNo, const UINT HeadNo, const double GalvoGainX, const double GalvoGainY, const long GalvoOffsetX, const long GalvoOffsetY);
|
||||
RTC5_API void __stdcall n_get_hi_pos(const UINT CardNo, const UINT HeadNo, long& X1, long& X2, long& Y1, long& Y2);
|
||||
RTC5_API UINT __stdcall n_auto_cal(const UINT CardNo, const UINT HeadNo, const UINT Command);
|
||||
RTC5_API UINT __stdcall n_get_auto_cal(const UINT CardNo, const UINT HeadNo);
|
||||
RTC5_API UINT __stdcall n_write_hi_pos(const UINT CardNo, const UINT HeadNo, const long X1, const long X2, const long Y1, const long Y2);
|
||||
RTC5_API void __stdcall n_set_sky_writing(const UINT CardNo, const double Timelag, const long LaserOnShift);
|
||||
RTC5_API void __stdcall n_get_hi_data(const UINT CardNo, long& X1, long& X2, long& Y1, long& Y2);
|
||||
RTC5_API void __stdcall set_delay_mode(const UINT VarPoly, const UINT DirectMove3D, const UINT EdgeLevel, const UINT MinJumpDelay, const UINT JumpLengthLimit);
|
||||
RTC5_API void __stdcall set_jump_speed_ctrl(const double Speed);
|
||||
RTC5_API void __stdcall set_mark_speed_ctrl(const double Speed);
|
||||
RTC5_API void __stdcall set_sky_writing_para(const double Timelag, const long LaserOnShift, const UINT Nprev, const UINT Npost);
|
||||
RTC5_API void __stdcall set_sky_writing_limit(const double CosAngle);
|
||||
RTC5_API void __stdcall set_sky_writing_mode(const UINT Mode);
|
||||
RTC5_API long __stdcall load_varpolydelay(const char* Name, const UINT No);
|
||||
RTC5_API void __stdcall set_hi(const UINT HeadNo, const double GalvoGainX, const double GalvoGainY, const long GalvoOffsetX, const long GalvoOffsetY);
|
||||
RTC5_API void __stdcall get_hi_pos(const UINT HeadNo, long& X1, long& X2, long& Y1, long& Y2);
|
||||
RTC5_API UINT __stdcall auto_cal(const UINT HeadNo, const UINT Command);
|
||||
RTC5_API UINT __stdcall get_auto_cal(const UINT HeadNo);
|
||||
RTC5_API UINT __stdcall write_hi_pos(const UINT HeadNo, const long X1, const long X2, const long Y1, const long Y2);
|
||||
RTC5_API void __stdcall set_sky_writing(const double Timelag, const long LaserOnShift);
|
||||
RTC5_API void __stdcall get_hi_data(long& X1, long& X2, long& Y1, long& Y2);
|
||||
RTC5_API void __stdcall n_send_user_data(const UINT CardNo, const UINT Head, const UINT Axis, const long Data0, const long Data1, const long Data2, const long Data3, const long Data4);
|
||||
RTC5_API long __stdcall n_read_user_data(const UINT CardNo, const UINT Head, const UINT Axis, long& Data0, long& Data1, long& Data2, long& Data3, long& Data4);
|
||||
RTC5_API void __stdcall n_control_command(const UINT CardNo, const UINT Head, const UINT Axis, const UINT Data);
|
||||
RTC5_API long __stdcall n_get_value(const UINT CardNo, const UINT Signal);
|
||||
RTC5_API void __stdcall n_get_values(const UINT CardNo, const ULONG_PTR SignalPtr, const ULONG_PTR ResultPtr);
|
||||
RTC5_API void __stdcall n_get_galvo_controls(const UINT CardNo, const ULONG_PTR SignalPtr, const ULONG_PTR ResultPtr);
|
||||
RTC5_API UINT __stdcall n_get_head_status(const UINT CardNo, const UINT Head);
|
||||
RTC5_API long __stdcall n_set_jump_mode(const UINT CardNo, const long Flag, const UINT Length, const long VA1, const long VA2, const long VB1, const long VB2, const long JA1, const long JA2, const long JB1, const long JB2);
|
||||
RTC5_API long __stdcall n_load_jump_table_offset(const UINT CardNo, const char* Name, const UINT No, const UINT PosAck, const long Offset, const UINT MinDelay, const UINT MaxDelay, const UINT ListPos);
|
||||
RTC5_API UINT __stdcall n_get_jump_table(const UINT CardNo, const ULONG_PTR Ptr);
|
||||
RTC5_API UINT __stdcall n_set_jump_table(const UINT CardNo, const ULONG_PTR Ptr);
|
||||
RTC5_API long __stdcall n_load_jump_table(const UINT CardNo, const char* Name, const UINT No, const UINT PosAck, const UINT MinDelay, const UINT MaxDelay, const UINT ListPos);
|
||||
RTC5_API void __stdcall send_user_data(const UINT Head, const UINT Axis, const long Data0, const long Data1, const long Data2, const long Data3, const long Data4);
|
||||
RTC5_API long __stdcall read_user_data(const UINT Head, const UINT Axis, long& Data0, long& Data1, long& Data2, long& Data3, long& Data4);
|
||||
RTC5_API void __stdcall control_command(const UINT Head, const UINT Axis, const UINT Data);
|
||||
RTC5_API long __stdcall get_value(const UINT Signal);
|
||||
RTC5_API void __stdcall get_values(const ULONG_PTR SignalPtr, const ULONG_PTR ResultPtr);
|
||||
RTC5_API void __stdcall get_galvo_controls(const ULONG_PTR SignalPtr, const ULONG_PTR ResultPtr);
|
||||
RTC5_API UINT __stdcall get_head_status(const UINT Head);
|
||||
RTC5_API long __stdcall set_jump_mode(const long Flag, const UINT Length, const long VA1, const long VA2, const long VB1, const long VB2, const long JA1, const long JA2, const long JB1, const long JB2);
|
||||
RTC5_API long __stdcall load_jump_table_offset(const char* Name, const UINT No, const UINT PosAck, const long Offset, const UINT MinDelay, const UINT MaxDelay, const UINT ListPos);
|
||||
RTC5_API UINT __stdcall get_jump_table(const ULONG_PTR Ptr);
|
||||
RTC5_API UINT __stdcall set_jump_table(const ULONG_PTR Ptr);
|
||||
RTC5_API long __stdcall load_jump_table(const char* Name, const UINT No, const UINT PosAck, const UINT MinDelay, const UINT MaxDelay, const UINT ListPos);
|
||||
RTC5_API void __stdcall n_stepper_init(const UINT CardNo, const UINT No, const UINT Period, const long Dir, const long Pos, const UINT Tol, const UINT Enable, const UINT WaitTime);
|
||||
RTC5_API void __stdcall n_stepper_enable(const UINT CardNo, const long Enable1, const long Enable2);
|
||||
RTC5_API void __stdcall n_stepper_disable_switch(const UINT CardNo, const long Disable1, const long Disable2);
|
||||
RTC5_API void __stdcall n_stepper_control(const UINT CardNo, const long Period1, const long Period2);
|
||||
RTC5_API void __stdcall n_stepper_abs_no(const UINT CardNo, const UINT No, const long Pos, const UINT WaitTime);
|
||||
RTC5_API void __stdcall n_stepper_rel_no(const UINT CardNo, const UINT No, const long dPos, const UINT WaitTime);
|
||||
RTC5_API void __stdcall n_stepper_abs(const UINT CardNo, const long Pos1, const long Pos2, const UINT WaitTime);
|
||||
RTC5_API void __stdcall n_stepper_rel(const UINT CardNo, const long dPos1, const long dPos2, const UINT WaitTime);
|
||||
RTC5_API void __stdcall n_get_stepper_status(const UINT CardNo, UINT& Status1, long& Pos1, UINT& Status2, long& Pos2);
|
||||
RTC5_API void __stdcall stepper_init(const UINT No, const UINT Period, const long Dir, const long Pos, const UINT Tol, const UINT Enable, const UINT WaitTime);
|
||||
RTC5_API void __stdcall stepper_enable(const long Enable1, const long Enable2);
|
||||
RTC5_API void __stdcall stepper_disable_switch(const long Disable1, const long Disable2);
|
||||
RTC5_API void __stdcall stepper_control(const long Period1, const long Period2);
|
||||
RTC5_API void __stdcall stepper_abs_no(const UINT No, const long Pos, const UINT WaitTime);
|
||||
RTC5_API void __stdcall stepper_rel_no(const UINT No, const long dPos, const UINT WaitTime);
|
||||
RTC5_API void __stdcall stepper_abs(const long Pos1, const long Pos2, const UINT WaitTime);
|
||||
RTC5_API void __stdcall stepper_rel(const long dPos1, const long dPos2, const UINT WaitTime);
|
||||
RTC5_API void __stdcall get_stepper_status(UINT& Status1, long& Pos1, UINT& Status2, long& Pos2);
|
||||
RTC5_API void __stdcall n_select_cor_table_list(const UINT CardNo, const UINT HeadA, const UINT HeadB);
|
||||
RTC5_API void __stdcall select_cor_table_list(const UINT HeadA, const UINT HeadB);
|
||||
RTC5_API void __stdcall n_list_nop(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_list_continue(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_list_next(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_long_delay(const UINT CardNo, const UINT Delay);
|
||||
RTC5_API void __stdcall n_set_end_of_list(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_set_wait(const UINT CardNo, const UINT WaitWord);
|
||||
RTC5_API void __stdcall n_list_jump_pos(const UINT CardNo, const UINT Pos);
|
||||
RTC5_API void __stdcall n_list_jump_rel(const UINT CardNo, const long Pos);
|
||||
RTC5_API void __stdcall n_list_repeat(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_list_until(const UINT CardNo, const UINT Number);
|
||||
RTC5_API void __stdcall n_range_checking(const UINT CardNo, const UINT HeadNo, const UINT Mode, const UINT Data);
|
||||
RTC5_API void __stdcall n_set_list_jump(const UINT CardNo, const UINT Pos);
|
||||
RTC5_API void __stdcall list_nop(void);
|
||||
RTC5_API void __stdcall list_continue(void);
|
||||
RTC5_API void __stdcall list_next(void);
|
||||
RTC5_API void __stdcall long_delay(const UINT Delay);
|
||||
RTC5_API void __stdcall set_end_of_list(void);
|
||||
RTC5_API void __stdcall set_wait(const UINT WaitWord);
|
||||
RTC5_API void __stdcall list_jump_pos(const UINT Pos);
|
||||
RTC5_API void __stdcall list_jump_rel(const long Pos);
|
||||
RTC5_API void __stdcall list_repeat(void);
|
||||
RTC5_API void __stdcall list_until(const UINT Number);
|
||||
RTC5_API void __stdcall range_checking(const UINT HeadNo, const UINT Mode, const UINT Data);
|
||||
RTC5_API void __stdcall set_list_jump(const UINT Pos);
|
||||
RTC5_API void __stdcall n_set_extstartpos_list(const UINT CardNo, const UINT Pos);
|
||||
RTC5_API void __stdcall n_set_control_mode_list(const UINT CardNo, const UINT Mode);
|
||||
RTC5_API void __stdcall n_simulate_ext_start(const UINT CardNo, const long Delay, const UINT EncoderNo);
|
||||
RTC5_API void __stdcall set_extstartpos_list(const UINT Pos);
|
||||
RTC5_API void __stdcall set_control_mode_list(const UINT Mode);
|
||||
RTC5_API void __stdcall simulate_ext_start(const long Delay, const UINT EncoderNo);
|
||||
RTC5_API void __stdcall n_list_return(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_list_call_repeat(const UINT CardNo, const UINT Pos, const UINT Number);
|
||||
RTC5_API void __stdcall n_list_call_abs_repeat(const UINT CardNo, const UINT Pos, const UINT Number);
|
||||
RTC5_API void __stdcall n_list_call(const UINT CardNo, const UINT Pos);
|
||||
RTC5_API void __stdcall n_list_call_abs(const UINT CardNo, const UINT Pos);
|
||||
RTC5_API void __stdcall n_sub_call_repeat(const UINT CardNo, const UINT Index, const UINT Number);
|
||||
RTC5_API void __stdcall n_sub_call_abs_repeat(const UINT CardNo, const UINT Index, const UINT Number);
|
||||
RTC5_API void __stdcall n_sub_call(const UINT CardNo, const UINT Index);
|
||||
RTC5_API void __stdcall n_sub_call_abs(const UINT CardNo, const UINT Index);
|
||||
RTC5_API void __stdcall list_return(void);
|
||||
RTC5_API void __stdcall list_call_repeat(const UINT Pos, const UINT Number);
|
||||
RTC5_API void __stdcall list_call_abs_repeat(const UINT Pos, const UINT Number);
|
||||
RTC5_API void __stdcall list_call(const UINT Pos);
|
||||
RTC5_API void __stdcall list_call_abs(const UINT Pos);
|
||||
RTC5_API void __stdcall sub_call_repeat(const UINT Index, const UINT Number);
|
||||
RTC5_API void __stdcall sub_call_abs_repeat(const UINT Index, const UINT Number);
|
||||
RTC5_API void __stdcall sub_call(const UINT Index);
|
||||
RTC5_API void __stdcall sub_call_abs(const UINT Index);
|
||||
RTC5_API void __stdcall n_list_call_cond(const UINT CardNo, const UINT Mask1, const UINT Mask0, const UINT Pos);
|
||||
RTC5_API void __stdcall n_list_call_abs_cond(const UINT CardNo, const UINT Mask1, const UINT Mask0, const UINT Pos);
|
||||
RTC5_API void __stdcall n_sub_call_cond(const UINT CardNo, const UINT Mask1, const UINT Mask0, const UINT Pos);
|
||||
RTC5_API void __stdcall n_sub_call_abs_cond(const UINT CardNo, const UINT Mask1, const UINT Mask0, const UINT Pos);
|
||||
RTC5_API void __stdcall n_list_jump_pos_cond(const UINT CardNo, const UINT Mask1, const UINT Mask0, const UINT Index);
|
||||
RTC5_API void __stdcall n_list_jump_rel_cond(const UINT CardNo, const UINT Mask1, const UINT Mask0, const long Index);
|
||||
RTC5_API void __stdcall n_if_cond(const UINT CardNo, const UINT Mask1, const UINT Mask0);
|
||||
RTC5_API void __stdcall n_if_not_cond(const UINT CardNo, const UINT Mask1, const UINT Mask0);
|
||||
RTC5_API void __stdcall n_if_pin_cond(const UINT CardNo, const UINT Mask1, const UINT Mask0);
|
||||
RTC5_API void __stdcall n_if_not_pin_cond(const UINT CardNo, const UINT Mask1, const UINT Mask0);
|
||||
RTC5_API void __stdcall n_switch_ioport(const UINT CardNo, const UINT MaskBits, const UINT ShiftBits);
|
||||
RTC5_API void __stdcall n_list_jump_cond(const UINT CardNo, const UINT Mask1, const UINT Mask0, const UINT Pos);
|
||||
RTC5_API void __stdcall list_call_cond(const UINT Mask1, const UINT Mask0, const UINT Pos);
|
||||
RTC5_API void __stdcall list_call_abs_cond(const UINT Mask1, const UINT Mask0, const UINT Pos);
|
||||
RTC5_API void __stdcall sub_call_cond(const UINT Mask1, const UINT Mask0, const UINT Index);
|
||||
RTC5_API void __stdcall sub_call_abs_cond(const UINT Mask1, const UINT Mask0, const UINT Index);
|
||||
RTC5_API void __stdcall list_jump_pos_cond(const UINT Mask1, const UINT Mask0, const UINT Pos);
|
||||
RTC5_API void __stdcall list_jump_rel_cond(const UINT Mask1, const UINT Mask0, const long Pos);
|
||||
RTC5_API void __stdcall if_cond(const UINT Mask1, const UINT Mask0);
|
||||
RTC5_API void __stdcall if_not_cond(const UINT Mask1, const UINT Mask0);
|
||||
RTC5_API void __stdcall if_pin_cond(const UINT Mask1, const UINT Mask0);
|
||||
RTC5_API void __stdcall if_not_pin_cond(const UINT Mask1, const UINT Mask0);
|
||||
RTC5_API void __stdcall switch_ioport(const UINT MaskBits, const UINT ShiftBits);
|
||||
RTC5_API void __stdcall list_jump_cond(const UINT Mask1, const UINT Mask0, const UINT Pos);
|
||||
RTC5_API void __stdcall n_select_char_set(const UINT CardNo, const UINT No);
|
||||
RTC5_API void __stdcall n_mark_text(const UINT CardNo, const char* Text);
|
||||
RTC5_API void __stdcall n_mark_text_abs(const UINT CardNo, const char* Text);
|
||||
RTC5_API void __stdcall n_mark_char(const UINT CardNo, const UINT Char);
|
||||
RTC5_API void __stdcall n_mark_char_abs(const UINT CardNo, const UINT Char);
|
||||
RTC5_API void __stdcall select_char_set(const UINT No);
|
||||
RTC5_API void __stdcall mark_text(const char* Text);
|
||||
RTC5_API void __stdcall mark_text_abs(const char* Text);
|
||||
RTC5_API void __stdcall mark_char(const UINT Char);
|
||||
RTC5_API void __stdcall mark_char_abs(const UINT Char);
|
||||
RTC5_API void __stdcall n_mark_serial(const UINT CardNo, const UINT Mode, const UINT Digits);
|
||||
RTC5_API void __stdcall n_mark_serial_abs(const UINT CardNo, const UINT Mode, const UINT Digits);
|
||||
RTC5_API void __stdcall n_mark_date(const UINT CardNo, const UINT Part, const UINT Mode);
|
||||
RTC5_API void __stdcall n_mark_date_abs(const UINT CardNo, const UINT Part, const UINT Mode);
|
||||
RTC5_API void __stdcall n_mark_time(const UINT CardNo, const UINT Part, const UINT Mode);
|
||||
RTC5_API void __stdcall n_mark_time_abs(const UINT CardNo, const UINT Part, const UINT Mode);
|
||||
RTC5_API void __stdcall n_select_serial_set_list(const UINT CardNo, const UINT No);
|
||||
RTC5_API void __stdcall n_set_serial_step_list(const UINT CardNo, const UINT No, const UINT Step);
|
||||
RTC5_API void __stdcall n_time_fix_f_off(const UINT CardNo, const UINT FirstDay, const UINT Offset);
|
||||
RTC5_API void __stdcall n_time_fix_f(const UINT CardNo, const UINT FirstDay);
|
||||
RTC5_API void __stdcall n_time_fix(const UINT CardNo);
|
||||
RTC5_API void __stdcall mark_serial(const UINT Mode, const UINT Digits);
|
||||
RTC5_API void __stdcall mark_serial_abs(const UINT Mode, const UINT Digits);
|
||||
RTC5_API void __stdcall mark_date(const UINT Part, const UINT Mode);
|
||||
RTC5_API void __stdcall mark_date_abs(const UINT Part, const UINT Mode);
|
||||
RTC5_API void __stdcall mark_time(const UINT Part, const UINT Mode);
|
||||
RTC5_API void __stdcall mark_time_abs(const UINT Part, const UINT Mode);
|
||||
RTC5_API void __stdcall time_fix_f_off(const UINT FirstDay, const UINT Offset);
|
||||
RTC5_API void __stdcall select_serial_set_list(const UINT No);
|
||||
RTC5_API void __stdcall set_serial_step_list(const UINT No, const UINT Step);
|
||||
RTC5_API void __stdcall time_fix_f(const UINT FirstDay);
|
||||
RTC5_API void __stdcall time_fix(void);
|
||||
RTC5_API void __stdcall n_clear_io_cond_list(const UINT CardNo, const UINT Mask1, const UINT Mask0, const UINT Mask);
|
||||
RTC5_API void __stdcall n_set_io_cond_list(const UINT CardNo, const UINT Mask1, const UINT Mask0, const UINT Mask);
|
||||
RTC5_API void __stdcall n_write_io_port_mask_list(const UINT CardNo, const UINT Value, const UINT Mask);
|
||||
RTC5_API void __stdcall n_write_8bit_port_list(const UINT CardNo, const UINT Value);
|
||||
RTC5_API void __stdcall n_read_io_port_list(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_write_da_x_list(const UINT CardNo, const UINT x, const UINT Value);
|
||||
RTC5_API void __stdcall n_write_io_port_list(const UINT CardNo, const UINT Value);
|
||||
RTC5_API void __stdcall n_write_da_1_list(const UINT CardNo, const UINT Value);
|
||||
RTC5_API void __stdcall n_write_da_2_list(const UINT CardNo, const UINT Value);
|
||||
RTC5_API void __stdcall clear_io_cond_list(const UINT Mask1, const UINT Mask0, const UINT MaskClear);
|
||||
RTC5_API void __stdcall set_io_cond_list(const UINT Mask1, const UINT Mask0, const UINT MaskSet);
|
||||
RTC5_API void __stdcall write_io_port_mask_list(const UINT Value, const UINT Mask);
|
||||
RTC5_API void __stdcall write_8bit_port_list(const UINT Value);
|
||||
RTC5_API void __stdcall read_io_port_list(void);
|
||||
RTC5_API void __stdcall write_da_x_list(const UINT x, const UINT Value);
|
||||
RTC5_API void __stdcall write_io_port_list(const UINT Value);
|
||||
RTC5_API void __stdcall write_da_1_list(const UINT Value);
|
||||
RTC5_API void __stdcall write_da_2_list(const UINT Value);
|
||||
RTC5_API void __stdcall n_laser_signal_on_list(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_laser_signal_off_list(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_para_laser_on_pulses_list(const UINT CardNo, const UINT Period, const UINT Pulses, const UINT P);
|
||||
RTC5_API void __stdcall n_laser_on_pulses_list(const UINT CardNo, const UINT Period, const UINT Pulses);
|
||||
RTC5_API void __stdcall n_laser_on_list(const UINT CardNo, const UINT Period);
|
||||
RTC5_API void __stdcall n_set_laser_delays(const UINT CardNo, const long LaserOnDelay, const UINT LaserOffDelay);
|
||||
RTC5_API void __stdcall n_set_standby_list(const UINT CardNo, const UINT HalfPeriod, const UINT PulseLength);
|
||||
RTC5_API void __stdcall n_set_laser_pulses(const UINT CardNo, const UINT HalfPeriod, const UINT PulseLength);
|
||||
RTC5_API void __stdcall n_set_firstpulse_killer_list(const UINT CardNo, const UINT Length);
|
||||
RTC5_API void __stdcall n_set_qswitch_delay_list(const UINT CardNo, const UINT Delay);
|
||||
RTC5_API void __stdcall n_set_laser_pin_out_list(const UINT CardNo, const UINT Pins);
|
||||
RTC5_API void __stdcall n_set_vector_control(const UINT CardNo, const UINT Ctrl, const UINT Value);
|
||||
RTC5_API void __stdcall n_set_default_pixel_list(const UINT CardNo, const UINT PulseLength);
|
||||
RTC5_API void __stdcall n_set_port_default_list(const UINT CardNo, const UINT Port, const UINT Value);
|
||||
RTC5_API void __stdcall n_set_auto_laser_params_list(const UINT CardNo, const UINT Ctrl, const UINT Value, const UINT MinValue, const UINT MaxValue);
|
||||
RTC5_API void __stdcall n_set_pulse_picking_list(const UINT CardNo, const UINT No);
|
||||
RTC5_API void __stdcall n_set_softstart_level_list(const UINT CardNo, const UINT Index, const UINT Level1, const UINT Level2, const UINT Level3);
|
||||
RTC5_API void __stdcall n_set_softstart_mode_list(const UINT CardNo, const UINT Mode, const UINT Number, const UINT Delay);
|
||||
RTC5_API void __stdcall n_config_laser_signals_list(const UINT CardNo, const UINT Config);
|
||||
RTC5_API void __stdcall n_set_laser_timing(const UINT CardNo, const UINT HalfPeriod, const UINT PulseLength1, const UINT PulseLength2, const UINT TimeBase);
|
||||
RTC5_API void __stdcall laser_signal_on_list(void);
|
||||
RTC5_API void __stdcall laser_signal_off_list(void);
|
||||
RTC5_API void __stdcall para_laser_on_pulses_list(const UINT Period, const UINT Pulses, const UINT P);
|
||||
RTC5_API void __stdcall laser_on_pulses_list(const UINT Period, const UINT Pulses);
|
||||
RTC5_API void __stdcall laser_on_list(const UINT Period);
|
||||
RTC5_API void __stdcall set_laser_delays(const long LaserOnDelay, const UINT LaserOffDelay);
|
||||
RTC5_API void __stdcall set_standby_list(const UINT HalfPeriod, const UINT PulseLength);
|
||||
RTC5_API void __stdcall set_laser_pulses(const UINT HalfPeriod, const UINT PulseLength);
|
||||
RTC5_API void __stdcall set_firstpulse_killer_list(const UINT Length);
|
||||
RTC5_API void __stdcall set_qswitch_delay_list(const UINT Delay);
|
||||
RTC5_API void __stdcall set_laser_pin_out_list(const UINT Pins);
|
||||
RTC5_API void __stdcall set_vector_control(const UINT Ctrl, const UINT Value);
|
||||
RTC5_API void __stdcall set_default_pixel_list(const UINT PulseLength);
|
||||
RTC5_API void __stdcall set_port_default_list(const UINT Port, const UINT Value);
|
||||
RTC5_API void __stdcall set_auto_laser_params_list(const UINT Ctrl, const UINT Value, const UINT MinValue, const UINT MaxValue);
|
||||
RTC5_API void __stdcall set_pulse_picking_list(const UINT No);
|
||||
RTC5_API void __stdcall set_softstart_level_list(const UINT Index, const UINT Level1, const UINT Level2, const UINT Level3);
|
||||
RTC5_API void __stdcall set_softstart_mode_list(const UINT Mode, const UINT Number, const UINT Delay);
|
||||
RTC5_API void __stdcall config_laser_signals_list(const UINT Config);
|
||||
RTC5_API void __stdcall set_laser_timing(const UINT HalfPeriod, const UINT PulseLength1, const UINT PulseLength2, const UINT TimeBase);
|
||||
RTC5_API void __stdcall n_fly_return_z(const UINT CardNo, const long X, const long Y, const long Z);
|
||||
RTC5_API void __stdcall n_fly_return(const UINT CardNo, const long X, const long Y);
|
||||
RTC5_API void __stdcall n_set_rot_center_list(const UINT CardNo, const long X, const long Y);
|
||||
RTC5_API void __stdcall n_set_ext_start_delay_list(const UINT CardNo, const long Delay, const UINT EncoderNo);
|
||||
RTC5_API void __stdcall n_set_fly_x(const UINT CardNo, const double ScaleX);
|
||||
RTC5_API void __stdcall n_set_fly_y(const UINT CardNo, const double ScaleY);
|
||||
RTC5_API void __stdcall n_set_fly_z(const UINT CardNo, const double ScaleZ, const UINT EndoderNo);
|
||||
RTC5_API void __stdcall n_set_fly_rot(const UINT CardNo, const double Resolution);
|
||||
RTC5_API void __stdcall n_set_fly_2d(const UINT CardNo, const double ScaleX, const double ScaleY);
|
||||
RTC5_API void __stdcall n_set_fly_x_pos(const UINT CardNo, const double ScaleX);
|
||||
RTC5_API void __stdcall n_set_fly_y_pos(const UINT CardNo, const double ScaleY);
|
||||
RTC5_API void __stdcall n_set_fly_rot_pos(const UINT CardNo, const double Resolution);
|
||||
RTC5_API void __stdcall n_set_fly_limits(const UINT CardNo, const long Xmin, const long Xmax, const long Ymin, const long Ymax);
|
||||
RTC5_API void __stdcall n_set_fly_limits_z(const UINT CardNo, const long Zmin, const long Zmax);
|
||||
RTC5_API void __stdcall n_if_fly_x_overflow(const UINT CardNo, const long Mode);
|
||||
RTC5_API void __stdcall n_if_fly_y_overflow(const UINT CardNo, const long Mode);
|
||||
RTC5_API void __stdcall n_if_fly_z_overflow(const UINT CardNo, const long Mode);
|
||||
RTC5_API void __stdcall n_if_not_fly_x_overflow(const UINT CardNo, const long Mode);
|
||||
RTC5_API void __stdcall n_if_not_fly_y_overflow(const UINT CardNo, const long Mode);
|
||||
RTC5_API void __stdcall n_if_not_fly_z_overflow(const UINT CardNo, const long Mode);
|
||||
RTC5_API void __stdcall n_clear_fly_overflow(const UINT CardNo, const UINT Mode);
|
||||
RTC5_API void __stdcall n_set_mcbsp_x_list(const UINT CardNo, const double ScaleX);
|
||||
RTC5_API void __stdcall n_set_mcbsp_y_list(const UINT CardNo, const double ScaleY);
|
||||
RTC5_API void __stdcall n_set_mcbsp_rot_list(const UINT CardNo, const double Resolution);
|
||||
RTC5_API void __stdcall n_set_mcbsp_matrix_list(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_set_mcbsp_in_list(const UINT CardNo, const UINT Mode, const double Scale);
|
||||
RTC5_API void __stdcall n_set_multi_mcbsp_in_list(const UINT CardNo, const UINT Ctrl, const UINT P, const UINT Mode);
|
||||
RTC5_API void __stdcall n_wait_for_encoder_mode(const UINT CardNo, const long Value, const UINT EncoderNo, const long Mode);
|
||||
RTC5_API void __stdcall n_wait_for_mcbsp(const UINT CardNo, const UINT Axis, const long Value, const long Mode);
|
||||
RTC5_API void __stdcall n_set_encoder_speed(const UINT CardNo, const UINT EncoderNo, const double Speed, const double Smooth);
|
||||
RTC5_API void __stdcall n_get_mcbsp_list(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_store_encoder(const UINT CardNo, const UINT Pos);
|
||||
RTC5_API void __stdcall n_wait_for_encoder_in_range(const UINT CardNo, const long EncXmin, const long EncXmax, const long EncYmin, const long EncYmax);
|
||||
RTC5_API void __stdcall n_activate_fly_xy(const UINT CardNo, const double ScaleX, const double ScaleY);
|
||||
RTC5_API void __stdcall n_activate_fly_2d(const UINT CardNo, const double ScaleX, const double ScaleY);
|
||||
RTC5_API void __stdcall n_activate_fly_xy_encoder(const UINT CardNo, const double ScaleX, const double ScaleY, const long EncX, const long EncY);
|
||||
RTC5_API void __stdcall n_activate_fly_2d_encoder(const UINT CardNo, const double ScaleX, const double ScaleY, const long EncX, const long EncY);
|
||||
RTC5_API void __stdcall n_if_not_activated(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_park_position(const UINT CardNo, const UINT Mode, const long X, const long Y);
|
||||
RTC5_API void __stdcall n_park_return(const UINT CardNo, const UINT Mode, const long X, const long Y);
|
||||
RTC5_API void __stdcall n_wait_for_encoder(const UINT CardNo, const long Value, const UINT EncoderNo);
|
||||
RTC5_API void __stdcall fly_return_z(const long X, const long Y, const long Z);
|
||||
RTC5_API void __stdcall fly_return(const long X, const long Y);
|
||||
RTC5_API void __stdcall set_rot_center_list(const long X, const long Y);
|
||||
RTC5_API void __stdcall set_ext_start_delay_list(const long Delay, const UINT EncoderNo);
|
||||
RTC5_API void __stdcall set_fly_x(const double ScaleX);
|
||||
RTC5_API void __stdcall set_fly_y(const double ScaleY);
|
||||
RTC5_API void __stdcall set_fly_z(const double ScaleZ, const UINT EncoderNo);
|
||||
RTC5_API void __stdcall set_fly_rot(const double Resolution);
|
||||
RTC5_API void __stdcall set_fly_2d(const double ScaleX, const double ScaleY);
|
||||
RTC5_API void __stdcall set_fly_x_pos(const double ScaleX);
|
||||
RTC5_API void __stdcall set_fly_y_pos(const double ScaleY);
|
||||
RTC5_API void __stdcall set_fly_rot_pos(const double Resolution);
|
||||
RTC5_API void __stdcall set_fly_limits(const long Xmin, const long Xmax, const long Ymin, const long Ymax);
|
||||
RTC5_API void __stdcall set_fly_limits_z(const long Zmin, const long Zmax);
|
||||
RTC5_API void __stdcall if_fly_x_overflow(const long Mode);
|
||||
RTC5_API void __stdcall if_fly_y_overflow(const long Mode);
|
||||
RTC5_API void __stdcall if_fly_z_overflow(const long Mode);
|
||||
RTC5_API void __stdcall if_not_fly_x_overflow(const long Mode);
|
||||
RTC5_API void __stdcall if_not_fly_y_overflow(const long Mode);
|
||||
RTC5_API void __stdcall if_not_fly_z_overflow(const long Mode);
|
||||
RTC5_API void __stdcall clear_fly_overflow(const UINT Mode);
|
||||
RTC5_API void __stdcall set_mcbsp_x_list(const double ScaleX);
|
||||
RTC5_API void __stdcall set_mcbsp_y_list(const double ScaleY);
|
||||
RTC5_API void __stdcall set_mcbsp_rot_list(const double Resolution);
|
||||
RTC5_API void __stdcall set_mcbsp_matrix_list(void);
|
||||
RTC5_API void __stdcall set_mcbsp_in_list(const UINT Mode, const double Scale);
|
||||
RTC5_API void __stdcall set_multi_mcbsp_in_list(const UINT Ctrl, const UINT P, const UINT Mode);
|
||||
RTC5_API void __stdcall wait_for_encoder_mode(const long Value, const UINT EncoderNo, const long Mode);
|
||||
RTC5_API void __stdcall wait_for_mcbsp(const UINT Axis, const long Value, const long Mode);
|
||||
RTC5_API void __stdcall set_encoder_speed(const UINT EncoderNo, const double Speed, const double Smooth);
|
||||
RTC5_API void __stdcall get_mcbsp_list(void);
|
||||
RTC5_API void __stdcall store_encoder(const UINT Pos);
|
||||
RTC5_API void __stdcall wait_for_encoder_in_range(const long EncXmin, const long EncXmax, const long EncYmin, const long EncYmax);
|
||||
RTC5_API void __stdcall activate_fly_xy(const double ScaleX, const double ScaleY);
|
||||
RTC5_API void __stdcall activate_fly_2d(const double ScaleX, const double ScaleY);
|
||||
RTC5_API void __stdcall activate_fly_xy_encoder(const double ScaleX, const double ScaleY, const long EncX, const long EncY);
|
||||
RTC5_API void __stdcall activate_fly_2d_encoder(const double ScaleX, const double ScaleY, const long EncX, const long EncY);
|
||||
RTC5_API void __stdcall if_not_activated(void);
|
||||
RTC5_API void __stdcall park_position(const UINT Mode, const long X, const long Y);
|
||||
RTC5_API void __stdcall park_return(const UINT Mode, const long X, const long Y);
|
||||
RTC5_API void __stdcall wait_for_encoder(const long Value, const UINT EncoderNo);
|
||||
RTC5_API void __stdcall n_save_and_restart_timer(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_set_wobbel(const UINT CardNo, const UINT Transversal, const UINT Longitudinal, const double Freq);
|
||||
RTC5_API void __stdcall n_set_wobbel_mode(const UINT CardNo, const UINT Transversal, const UINT Longitudinal, const double Freq, const long Mode);
|
||||
RTC5_API void __stdcall n_set_wobbel_mode_phase(const UINT CardNo, const UINT Transversal, const UINT Longitudinal, const double Freq, const long Mode, const double Phase);
|
||||
RTC5_API void __stdcall n_set_wobbel_direction(const UINT CardNo, const long dX, const long dY);
|
||||
RTC5_API void __stdcall n_set_wobbel_control(const UINT CardNo, const UINT Ctrl, const UINT Value, const UINT MinValue, const UINT MaxValue);
|
||||
RTC5_API void __stdcall n_set_wobbel_vector(const UINT CardNo, const double dTrans, const double dLong, const UINT Period, const double dPower);
|
||||
RTC5_API void __stdcall n_set_wobbel_offset(const UINT CardNo, const long OffsetTrans, const long OffsetLong);
|
||||
RTC5_API void __stdcall n_load_wobbel_power_list(const UINT CardNo, const UINT TableNo, const ULONG_PTR Ptr, const long Flag);
|
||||
RTC5_API void __stdcall n_set_wobbel_power_angle(const UINT CardNo, const UINT Angle);
|
||||
RTC5_API void __stdcall n_set_trigger(const UINT CardNo, const UINT Period, const UINT Signal1, const UINT Signal2);
|
||||
RTC5_API void __stdcall n_set_trigger4(const UINT CardNo, const UINT Period, const UINT Signal1, const UINT Signal2, const UINT Signal3, const UINT Signal4);
|
||||
RTC5_API void __stdcall n_set_pixel_line_3d(const UINT CardNo, const UINT Channel, const UINT HalfPeriod, const double dX, const double dY, const double dZ);
|
||||
RTC5_API void __stdcall n_set_pixel_line(const UINT CardNo, const UINT Channel, const UINT HalfPeriod, const double dX, const double dY);
|
||||
RTC5_API void __stdcall n_stretch_pixel_line(const UINT CardNo, const UINT Delay, const UINT Period);
|
||||
RTC5_API void __stdcall n_set_n_pixel(const UINT CardNo, const UINT PulseLength, const UINT AnalogOut, const UINT Number);
|
||||
RTC5_API void __stdcall n_set_pixel(const UINT CardNo, const UINT PulseLength, const UINT AnalogOut);
|
||||
RTC5_API void __stdcall n_rs232_write_text_list(const UINT CardNo, const char* pData);
|
||||
RTC5_API void __stdcall n_set_mcbsp_out(const UINT CardNo, const UINT Signal1, const UINT Signal2);
|
||||
RTC5_API void __stdcall n_camming(const UINT CardNo, const UINT FirstPos, const UINT NPos, const UINT No, const UINT Ctrl, const double Scale, const UINT Code);
|
||||
RTC5_API void __stdcall n_periodic_toggle_list(const UINT CardNo, const UINT Port, const UINT Mask, const UINT P1, const UINT P2, const UINT Count, const UINT Start);
|
||||
RTC5_API void __stdcall n_micro_vector_abs_3d(const UINT CardNo, const long X, const long Y, const long Z, const long LasOn, const long LasOf);
|
||||
RTC5_API void __stdcall n_micro_vector_rel_3d(const UINT CardNo, const long dX, const long dY, const long dZ, const long LasOn, const long LasOf);
|
||||
RTC5_API void __stdcall n_micro_vector_abs(const UINT CardNo, const long X, const long Y, const long LasOn, const long LasOf);
|
||||
RTC5_API void __stdcall n_micro_vector_rel(const UINT CardNo, const long dX, const long dY, const long LasOn, const long LasOf);
|
||||
RTC5_API void __stdcall n_set_free_variable_list(const UINT CardNo, const UINT VarNo, const UINT Value);
|
||||
RTC5_API void __stdcall n_control_command_list(const UINT CardNo, const UINT Head, const UINT Axis, const UINT Data);
|
||||
RTC5_API void __stdcall n_jump_abs_drill_2(const UINT CardNo, const long X, const long Y, const UINT DrillTime, const long XOff, const long YOff);
|
||||
RTC5_API void __stdcall n_jump_rel_drill_2(const UINT CardNo, const long dX, const long dY, const UINT DrillTime, const long XOff, const long YOff);
|
||||
RTC5_API void __stdcall n_jump_abs_drill(const UINT CardNo, const long X, const long Y, const UINT DrillTime);
|
||||
RTC5_API void __stdcall n_jump_rel_drill(const UINT CardNo, const long dX, const long dY, const UINT DrillTime);
|
||||
RTC5_API void __stdcall save_and_restart_timer(void);
|
||||
RTC5_API void __stdcall set_wobbel(const UINT Transversal, const UINT Longitudinal, const double Freq);
|
||||
RTC5_API void __stdcall set_wobbel_mode(const UINT Transversal, const UINT Longitudinal, const double Freq, const long Mode);
|
||||
RTC5_API void __stdcall set_wobbel_mode_phase(const UINT Transversal, const UINT Longitudinal, const double Freq, const long Mode, const double Phase);
|
||||
RTC5_API void __stdcall set_wobbel_direction(const long dX, const long dY);
|
||||
RTC5_API void __stdcall set_wobbel_control(const UINT Ctrl, const UINT Value, const UINT MinValue, const UINT MaxValue);
|
||||
RTC5_API void __stdcall set_wobbel_vector(const double dTrans, const double dLong, const UINT Period, const double dPower);
|
||||
RTC5_API void __stdcall set_wobbel_offset(const long OffsetTrans, const long OffsetLong);
|
||||
RTC5_API void __stdcall load_wobbel_power_list(const UINT TableNo, const ULONG_PTR Ptr, const long Flag);
|
||||
RTC5_API void __stdcall set_wobbel_power_angle(const UINT Angle);
|
||||
RTC5_API void __stdcall set_trigger(const UINT Period, const UINT Signal1, const UINT Signal2);
|
||||
RTC5_API void __stdcall set_trigger4(const UINT Period, const UINT Signal1, const UINT Signal2, const UINT Signal3, const UINT Signal4);
|
||||
RTC5_API void __stdcall set_pixel_line_3d(const UINT Channel, const UINT HalfPeriod, const double dX, const double dY, const double dZ);
|
||||
RTC5_API void __stdcall set_pixel_line(const UINT Channel, const UINT HalfPeriod, const double dX, const double dY);
|
||||
RTC5_API void __stdcall stretch_pixel_line(const UINT Delay, const UINT Period);
|
||||
RTC5_API void __stdcall set_n_pixel(const UINT PulseLength, const UINT AnalogOut, const UINT Number);
|
||||
RTC5_API void __stdcall set_pixel(const UINT PulseLength, const UINT AnalogOut);
|
||||
RTC5_API void __stdcall rs232_write_text_list(const char* pData);
|
||||
RTC5_API void __stdcall set_mcbsp_out(const UINT Signal1, const UINT Signal2);
|
||||
RTC5_API void __stdcall camming(const UINT FirstPos, const UINT NPos, const UINT No, const UINT Ctrl, const double Scale, const UINT Code);
|
||||
RTC5_API void __stdcall periodic_toggle_list(const UINT Port, const UINT Mask, const UINT P1, const UINT P2, const UINT Count, const UINT Start);
|
||||
RTC5_API void __stdcall micro_vector_abs_3d(const long X, const long Y, const long Z, const long LasOn, const long LasOf);
|
||||
RTC5_API void __stdcall micro_vector_rel_3d(const long dX, const long dY, const long dZ, const long LasOn, const long LasOf);
|
||||
RTC5_API void __stdcall micro_vector_abs(const long X, const long Y, const long LasOn, const long LasOf);
|
||||
RTC5_API void __stdcall micro_vector_rel(const long dX, const long dY, const long LasOn, const long LasOf);
|
||||
RTC5_API void __stdcall set_free_variable_list(const UINT VarNo, const UINT Value);
|
||||
RTC5_API void __stdcall control_command_list(const UINT Head, const UINT Axis, const UINT Data);
|
||||
RTC5_API void __stdcall jump_abs_drill_2(const long X, const long Y, const UINT DrillTime, const long XOff, const long YOff);
|
||||
RTC5_API void __stdcall jump_rel_drill_2(const long dX, const long dY, const UINT DrillTime, const long XOff, const long YOff);
|
||||
RTC5_API void __stdcall jump_abs_drill(const long X, const long Y, const UINT DrillTime);
|
||||
RTC5_API void __stdcall jump_rel_drill(const long dX, const long dY, const UINT DrillTime);
|
||||
RTC5_API void __stdcall n_timed_mark_abs_3d(const UINT CardNo, const long X, const long Y, const long Z, const double T);
|
||||
RTC5_API void __stdcall n_timed_mark_rel_3d(const UINT CardNo, const long dX, const long dY, const long dZ, const double T);
|
||||
RTC5_API void __stdcall n_timed_mark_abs(const UINT CardNo, const long X, const long Y, const double T);
|
||||
RTC5_API void __stdcall n_timed_mark_rel(const UINT CardNo, const long dX, const long dY, const double T);
|
||||
RTC5_API void __stdcall timed_mark_abs_3d(const long X, const long Y, const long Z, const double T);
|
||||
RTC5_API void __stdcall timed_mark_rel_3d(const long dX, const long dY, const long dZ, const double T);
|
||||
RTC5_API void __stdcall timed_mark_abs(const long X, const long Y, const double T);
|
||||
RTC5_API void __stdcall timed_mark_rel(const long dX, const long dY, const double T);
|
||||
RTC5_API void __stdcall n_mark_abs_3d(const UINT CardNo, const long X, const long Y, const long Z);
|
||||
RTC5_API void __stdcall n_mark_rel_3d(const UINT CardNo, const long dX, const long dY, const long dZ);
|
||||
RTC5_API void __stdcall n_mark_abs(const UINT CardNo, const long X, const long Y);
|
||||
RTC5_API void __stdcall n_mark_rel(const UINT CardNo, const long dX, const long dY);
|
||||
RTC5_API void __stdcall mark_abs_3d(const long X, const long Y, const long Z);
|
||||
RTC5_API void __stdcall mark_rel_3d(const long dX, const long dY, const long dZ);
|
||||
RTC5_API void __stdcall mark_abs(const long X, const long Y);
|
||||
RTC5_API void __stdcall mark_rel(const long dX, const long dY);
|
||||
RTC5_API void __stdcall n_timed_jump_abs_3d(const UINT CardNo, const long X, const long Y, const long Z, const double T);
|
||||
RTC5_API void __stdcall n_timed_jump_rel_3d(const UINT CardNo, const long dX, const long dY, const long dZ, const double T);
|
||||
RTC5_API void __stdcall n_timed_jump_abs(const UINT CardNo, const long X, const long Y, const double T);
|
||||
RTC5_API void __stdcall n_timed_jump_rel(const UINT CardNo, const long dX, const long dY, const double T);
|
||||
RTC5_API void __stdcall timed_jump_abs_3d(const long X, const long Y, const long Z, const double T);
|
||||
RTC5_API void __stdcall timed_jump_rel_3d(const long dX, const long dY, const long dZ, const double T);
|
||||
RTC5_API void __stdcall timed_jump_abs(const long X, const long Y, const double T);
|
||||
RTC5_API void __stdcall timed_jump_rel(const long dX, const long dY, const double T);
|
||||
RTC5_API void __stdcall n_jump_abs_3d(const UINT CardNo, const long X, const long Y, const long Z);
|
||||
RTC5_API void __stdcall n_jump_rel_3d(const UINT CardNo, const long dX, const long dY, const long dZ);
|
||||
RTC5_API void __stdcall n_jump_abs(const UINT CardNo, const long X, const long Y);
|
||||
RTC5_API void __stdcall n_jump_rel(const UINT CardNo, const long dX, const long dY);
|
||||
RTC5_API void __stdcall jump_abs_3d(const long X, const long Y, const long Z);
|
||||
RTC5_API void __stdcall jump_rel_3d(const long dX, const long dY, const long dZ);
|
||||
RTC5_API void __stdcall jump_abs(const long X, const long Y);
|
||||
RTC5_API void __stdcall jump_rel(const long dX, const long dY);
|
||||
RTC5_API void __stdcall n_para_mark_abs_3d(const UINT CardNo, const long X, const long Y, const long Z, const UINT P);
|
||||
RTC5_API void __stdcall n_para_mark_rel_3d(const UINT CardNo, const long dX, const long dY, const long dZ, const UINT P);
|
||||
RTC5_API void __stdcall n_para_mark_abs(const UINT CardNo, const long X, const long Y, const UINT P);
|
||||
RTC5_API void __stdcall n_para_mark_rel(const UINT CardNo, const long dX, const long dY, const UINT P);
|
||||
RTC5_API void __stdcall para_mark_abs_3d(const long X, const long Y, const long Z, const UINT P);
|
||||
RTC5_API void __stdcall para_mark_rel_3d(const long dX, const long dY, const long dZ, const UINT P);
|
||||
RTC5_API void __stdcall para_mark_abs(const long X, const long Y, const UINT P);
|
||||
RTC5_API void __stdcall para_mark_rel(const long dX, const long dY, const UINT P);
|
||||
RTC5_API void __stdcall n_para_jump_abs_3d(const UINT CardNo, const long X, const long Y, const long Z, const UINT P);
|
||||
RTC5_API void __stdcall n_para_jump_rel_3d(const UINT CardNo, const long dX, const long dY, const long dZ, const UINT P);
|
||||
RTC5_API void __stdcall n_para_jump_abs(const UINT CardNo, const long X, const long Y, const UINT P);
|
||||
RTC5_API void __stdcall n_para_jump_rel(const UINT CardNo, const long dX, const long dY, const UINT P);
|
||||
RTC5_API void __stdcall para_jump_abs_3d(const long X, const long Y, const long Z, const UINT P);
|
||||
RTC5_API void __stdcall para_jump_rel_3d(const long dX, const long dY, const long dZ, const UINT P);
|
||||
RTC5_API void __stdcall para_jump_abs(const long X, const long Y, const UINT P);
|
||||
RTC5_API void __stdcall para_jump_rel(const long dX, const long dY, const UINT P);
|
||||
RTC5_API void __stdcall n_timed_para_mark_abs_3d(const UINT CardNo, const long X, const long Y, const long Z, const UINT P, const double T);
|
||||
RTC5_API void __stdcall n_timed_para_mark_rel_3d(const UINT CardNo, const long dX, const long dY, const long dZ, const UINT P, const double T);
|
||||
RTC5_API void __stdcall n_timed_para_jump_abs_3d(const UINT CardNo, const long X, const long Y, const long Z, const UINT P, const double T);
|
||||
RTC5_API void __stdcall n_timed_para_jump_rel_3d(const UINT CardNo, const long dX, const long dY, const long dZ, const UINT P, const double T);
|
||||
RTC5_API void __stdcall n_timed_para_mark_abs(const UINT CardNo, const long X, const long Y, const UINT P, const double T);
|
||||
RTC5_API void __stdcall n_timed_para_mark_rel(const UINT CardNo, const long dX, const long dY, const UINT P, const double T);
|
||||
RTC5_API void __stdcall n_timed_para_jump_abs(const UINT CardNo, const long X, const long Y, const UINT P, const double T);
|
||||
RTC5_API void __stdcall n_timed_para_jump_rel(const UINT CardNo, const long dX, const long dY, const UINT P, const double T);
|
||||
RTC5_API void __stdcall timed_para_mark_abs_3d(const long X, const long Y, const long Z, const UINT P, const double T);
|
||||
RTC5_API void __stdcall timed_para_mark_rel_3d(const long dX, const long dY, const long dZ, const UINT P, const double T);
|
||||
RTC5_API void __stdcall timed_para_jump_abs_3d(const long X, const long Y, const long Z, const UINT P, const double T);
|
||||
RTC5_API void __stdcall timed_para_jump_rel_3d(const long dX, const long dY, const long dZ, const UINT P, const double T);
|
||||
RTC5_API void __stdcall timed_para_mark_abs(const long X, const long Y, const UINT P, const double T);
|
||||
RTC5_API void __stdcall timed_para_mark_rel(const long dX, const long dY, const UINT P, const double T);
|
||||
RTC5_API void __stdcall timed_para_jump_abs(const long X, const long Y, const UINT P, const double T);
|
||||
RTC5_API void __stdcall timed_para_jump_rel(const long dX, const long dY, const UINT P, const double T);
|
||||
RTC5_API void __stdcall n_set_defocus_list(const UINT CardNo, const long Shift);
|
||||
RTC5_API void __stdcall n_set_defocus_offset_list(const UINT CardNo, const long Shift);
|
||||
RTC5_API void __stdcall n_set_zoom_list(const UINT CardNo, const UINT Zoom);
|
||||
RTC5_API void __stdcall set_defocus_list(const long Shift);
|
||||
RTC5_API void __stdcall set_defocus_offset_list(const long Shift);
|
||||
RTC5_API void __stdcall set_zoom_list(const UINT Zoom);
|
||||
RTC5_API void __stdcall n_timed_arc_abs(const UINT CardNo, const long X, const long Y, const double Angle, const double T);
|
||||
RTC5_API void __stdcall n_timed_arc_rel(const UINT CardNo, const long dX, const long dY, const double Angle, const double T);
|
||||
RTC5_API void __stdcall timed_arc_abs(const long X, const long Y, const double Angle, const double T);
|
||||
RTC5_API void __stdcall timed_arc_rel(const long dX, const long dY, const double Angle, const double T);
|
||||
RTC5_API void __stdcall n_arc_abs_3d(const UINT CardNo, const long X, const long Y, const long Z, const double Angle);
|
||||
RTC5_API void __stdcall n_arc_rel_3d(const UINT CardNo, const long dX, const long dY, const long dZ, const double Angle);
|
||||
RTC5_API void __stdcall n_arc_abs(const UINT CardNo, const long X, const long Y, const double Angle);
|
||||
RTC5_API void __stdcall n_arc_rel(const UINT CardNo, const long dX, const long dY, const double Angle);
|
||||
RTC5_API void __stdcall n_set_ellipse(const UINT CardNo, const UINT A, const UINT B, const double Phi0, const double Phi);
|
||||
RTC5_API void __stdcall n_mark_ellipse_abs(const UINT CardNo, const long X, const long Y, const double Alpha);
|
||||
RTC5_API void __stdcall n_mark_ellipse_rel(const UINT CardNo, const long dX, const long dY, const double Alpha);
|
||||
RTC5_API void __stdcall arc_abs_3d(const long X, const long Y, const long Z, const double Angle);
|
||||
RTC5_API void __stdcall arc_rel_3d(const long dX, const long dY, const long dZ, const double Angle);
|
||||
RTC5_API void __stdcall arc_abs(const long X, const long Y, const double Angle);
|
||||
RTC5_API void __stdcall arc_rel(const long dX, const long dY, const double Angle);
|
||||
RTC5_API void __stdcall set_ellipse(const UINT A, const UINT B, const double Phi0, const double Phi);
|
||||
RTC5_API void __stdcall mark_ellipse_abs(const long X, const long Y, const double Alpha);
|
||||
RTC5_API void __stdcall mark_ellipse_rel(const long dX, const long dY, const double Alpha);
|
||||
RTC5_API void __stdcall n_set_offset_xyz_list(const UINT CardNo, const UINT HeadNo, const long XOffset, const long YOffset, const long ZOffset, const UINT at_once);
|
||||
RTC5_API void __stdcall n_set_offset_list(const UINT CardNo, const UINT HeadNo, const long XOffset, const long YOffset, const UINT at_once);
|
||||
RTC5_API void __stdcall n_set_matrix_list(const UINT CardNo, const UINT HeadNo, const UINT Ind1, const UINT Ind2, const double Mij, const UINT at_once);
|
||||
RTC5_API void __stdcall n_set_angle_list(const UINT CardNo, const UINT HeadNo, const double Angle, const UINT at_once);
|
||||
RTC5_API void __stdcall n_set_scale_list(const UINT CardNo, const UINT HeadNo, const double Scale, const UINT at_once);
|
||||
RTC5_API void __stdcall n_apply_mcbsp_list(const UINT CardNo, const UINT HeadNo, const UINT at_once);
|
||||
RTC5_API void __stdcall set_offset_xyz_list(const UINT HeadNo, const long XOffset, const long YOffset, const long ZOffset, const UINT at_once);
|
||||
RTC5_API void __stdcall set_offset_list(const UINT HeadNo, const long XOffset, const long YOffset, const UINT at_once);
|
||||
RTC5_API void __stdcall set_matrix_list(const UINT HeadNo, const UINT Ind1, const UINT Ind2, const double Mij, const UINT at_once);
|
||||
RTC5_API void __stdcall set_angle_list(const UINT HeadNo, const double Angle, const UINT at_once);
|
||||
RTC5_API void __stdcall set_scale_list(const UINT HeadNo, const double Scale, const UINT at_once);
|
||||
RTC5_API void __stdcall apply_mcbsp_list(const UINT HeadNo, const UINT at_once);
|
||||
RTC5_API void __stdcall n_set_mark_speed(const UINT CardNo, const double Speed);
|
||||
RTC5_API void __stdcall n_set_jump_speed(const UINT CardNo, const double Speed);
|
||||
RTC5_API void __stdcall n_set_sky_writing_para_list(const UINT CardNo, const double Timelag, const long LaserOnShift, const UINT Nprev, const UINT Npost);
|
||||
RTC5_API void __stdcall n_set_sky_writing_list(const UINT CardNo, const double Timelag, const long LaserOnShift);
|
||||
RTC5_API void __stdcall n_set_sky_writing_limit_list(const UINT CardNo, const double CosAngle);
|
||||
RTC5_API void __stdcall n_set_sky_writing_mode_list(const UINT CardNo, const UINT Mode);
|
||||
RTC5_API void __stdcall n_set_scanner_delays(const UINT CardNo, const UINT Jump, const UINT Mark, const UINT Polygon);
|
||||
RTC5_API void __stdcall n_set_jump_mode_list(const UINT CardNo, const long Flag);
|
||||
RTC5_API void __stdcall n_enduring_wobbel(const UINT CardNo);
|
||||
RTC5_API void __stdcall n_set_delay_mode_list(const UINT CardNo, const UINT VarPoly, const UINT DirectMove3D, const UINT EdgeLevel, const UINT MinJumpDelay, const UINT JumpLengthLimit);
|
||||
RTC5_API void __stdcall set_mark_speed(const double Speed);
|
||||
RTC5_API void __stdcall set_jump_speed(const double Speed);
|
||||
RTC5_API void __stdcall set_sky_writing_para_list(const double Timelag, const long LaserOnShift, const UINT Nprev, const UINT Npost);
|
||||
RTC5_API void __stdcall set_sky_writing_list(const double Timelag, const long LaserOnShift);
|
||||
RTC5_API void __stdcall set_sky_writing_limit_list(const double CosAngle);
|
||||
RTC5_API void __stdcall set_sky_writing_mode_list(const UINT Mode);
|
||||
RTC5_API void __stdcall set_scanner_delays(const UINT Jump, const UINT Mark, const UINT Polygon);
|
||||
RTC5_API void __stdcall set_jump_mode_list(const long Flag);
|
||||
RTC5_API void __stdcall enduring_wobbel(void);
|
||||
RTC5_API void __stdcall set_delay_mode_list(const UINT VarPoly, const UINT DirectMove3D, const UINT EdgeLevel, const UINT MinJumpDelay, const UINT JumpLengthLimit);
|
||||
RTC5_API void __stdcall n_stepper_enable_list(const UINT CardNo, const long Enable1, const long Enable2);
|
||||
RTC5_API void __stdcall n_stepper_control_list(const UINT CardNo, const long Period1, const long Period2);
|
||||
RTC5_API void __stdcall n_stepper_abs_no_list(const UINT CardNo, const UINT No, const long Pos);
|
||||
RTC5_API void __stdcall n_stepper_rel_no_list(const UINT CardNo, const UINT No, const long dPos);
|
||||
RTC5_API void __stdcall n_stepper_abs_list(const UINT CardNo, const long Pos1, const long Pos2);
|
||||
RTC5_API void __stdcall n_stepper_rel_list(const UINT CardNo, const long dPos1, const long dPos2);
|
||||
RTC5_API void __stdcall n_stepper_wait(const UINT CardNo, const UINT No);
|
||||
RTC5_API void __stdcall stepper_enable_list(const long Enable1, const long Enable2);
|
||||
RTC5_API void __stdcall stepper_control_list(const long Period1, const long Period2);
|
||||
RTC5_API void __stdcall stepper_abs_no_list(const UINT No, const long Pos);
|
||||
RTC5_API void __stdcall stepper_rel_no_list(const UINT No, const long dPos);
|
||||
RTC5_API void __stdcall stepper_abs_list(const long Pos1, const long Pos2);
|
||||
RTC5_API void __stdcall stepper_rel_list(const long dPos1, const long dPos2);
|
||||
RTC5_API void __stdcall stepper_wait(const UINT No);
|
||||
|
||||
#if defined(__cplusplus)
|
||||
} // extern "C"
|
||||
#endif //defined(__cplusplus)
|
1209
PrintS/ScannerCtrl/Scanner.cpp
Normal file
1209
PrintS/ScannerCtrl/Scanner.cpp
Normal file
File diff suppressed because it is too large
Load Diff
222
PrintS/ScannerCtrl/Scanner.h
Normal file
222
PrintS/ScannerCtrl/Scanner.h
Normal file
@ -0,0 +1,222 @@
|
||||
#pragma once
|
||||
#include "../stdafx.h"
|
||||
#include "../job/BPBinary.h"
|
||||
#include "../job/MetaData.h"
|
||||
#include "BaseCtrl.h"
|
||||
#include "IntelliScanState.h"
|
||||
#include <vector>
|
||||
#include <bitset>
|
||||
#include <unordered_set>
|
||||
|
||||
struct polygon {
|
||||
float xval, yval;
|
||||
};
|
||||
|
||||
typedef struct DataBlockInfo
|
||||
{
|
||||
BPBinary::BinDataBlock* bdb;
|
||||
MetaData::Part* part;
|
||||
MetaData::ParameterSet* ps;
|
||||
int order;
|
||||
int delayTime;
|
||||
bool isFinished;
|
||||
DataBlockInfo(BPBinary::BinDataBlock* _bdb, MetaData::Part* _part, MetaData::ParameterSet* _ps, int _order, int _delayTime)
|
||||
:bdb(_bdb)
|
||||
, part(_part)
|
||||
, ps(_ps)
|
||||
, order(_order)
|
||||
, delayTime(_delayTime)
|
||||
, isFinished(false)
|
||||
{}
|
||||
} DataBlockInfo;
|
||||
|
||||
class OrderMap {
|
||||
|
||||
public:
|
||||
int m_Order;
|
||||
queue<DataBlockInfo*> m_DBS;
|
||||
};
|
||||
|
||||
class Scanner : public BaseCtrl
|
||||
{
|
||||
public:
|
||||
enum DebugShape
|
||||
{
|
||||
Cross = 0,
|
||||
Square,
|
||||
PointLaser,
|
||||
DefocusLenth,
|
||||
HLine,
|
||||
VLine,
|
||||
MulPoints,
|
||||
MulJumpPoints,
|
||||
Vector
|
||||
};
|
||||
|
||||
public:
|
||||
Scanner(ScannerControlCfg* cfg);
|
||||
~Scanner();
|
||||
virtual void GetInfo(vector<string>& ins) {}
|
||||
|
||||
void AddDataBlock(BPBinary::BinDataBlock* bdb, MetaData::Part* part, MetaData::ParameterSet* ps,int _order,int _delayTime);
|
||||
//virtual int GetSerialNum() { return m_LaserCfg->m_Cno; }
|
||||
|
||||
virtual void SetXyOffset(float x, float y) = 0;
|
||||
virtual void SetAngle(double angle) = 0;
|
||||
virtual void UpdateSetting() = 0;
|
||||
virtual void UpdateSkyWriting(bool islist) {}
|
||||
virtual void SetSkyWritingEnable(bool benable, bool islist) {}
|
||||
|
||||
|
||||
virtual void SetXYCorrect(double x, double y)
|
||||
{
|
||||
m_xfactor = m_kfactor*x;
|
||||
m_yfactor = m_kfactor*y;
|
||||
}
|
||||
|
||||
virtual void SetK(double k){}
|
||||
double GetK() { return m_kfactor; }
|
||||
|
||||
ScannerControlCfg* GetConfig() { return m_ScannerControlCfg; }
|
||||
|
||||
bool IsDebugEnable();
|
||||
void StartDebugTest();
|
||||
void StopDebugTest();
|
||||
|
||||
virtual bool BeginWork();
|
||||
virtual bool PauseWork() { return true; }
|
||||
virtual void WaitFinish();
|
||||
|
||||
virtual void Clean();
|
||||
|
||||
void StartHeatingScannerTest();
|
||||
void StopHeatingScannerTest();
|
||||
bool IsHeatingScannerTest();
|
||||
|
||||
void WaitHeatingScanner();
|
||||
|
||||
void StartGetScanInfo();
|
||||
void StopGetScanInfo();
|
||||
void SetAutoUpdateScanInfo(bool isauto);
|
||||
void GetXYScanState(ScanStateXY* scanstate, time_t &t);
|
||||
virtual void UpdateScannerInfo() {}
|
||||
|
||||
//bool IsUpScanner();
|
||||
|
||||
void static ResetScaningLimit() {
|
||||
EnterCriticalSection(&m_SeqCS);
|
||||
m_ScaningBit.reset();
|
||||
m_SeqDataUnFinishBit.reset();
|
||||
m_SupportSeqDataUnFinishBit.reset();
|
||||
LeaveCriticalSection(&m_SeqCS);
|
||||
}
|
||||
virtual void ResetDefocus() = 0;
|
||||
void SetPairScan(Scanner* sc) { m_PairScan = sc; }
|
||||
|
||||
virtual void UpdateScanParamByCfg(ScanParamCfg* cfg) = 0;
|
||||
protected:
|
||||
static DWORD WINAPI DebugProc(Scanner* _this);
|
||||
virtual void ScanDebug() {}
|
||||
static DWORD WINAPI ScanProc(Scanner* _this);
|
||||
virtual void Scan();
|
||||
virtual void ScanSeqV2();
|
||||
virtual unsigned int GetMemorySize() = 0;
|
||||
|
||||
virtual void LoadList(unsigned int listid, bool iswait) = 0;
|
||||
virtual void EndList() = 0;
|
||||
virtual void ListExecute(unsigned int listid, bool iswait) = 0;
|
||||
virtual void AutoChangeList() = 0;
|
||||
virtual void WaitListFree() = 0;
|
||||
|
||||
virtual void SetScanSpeed(double value) = 0;
|
||||
virtual void SetPower(double watt) = 0;
|
||||
virtual void SetDefocus(float value) = 0;
|
||||
|
||||
virtual void AddVector(double startx, double starty, double endx, double endy) = 0;
|
||||
virtual void ListNop() = 0;
|
||||
virtual void JumpAbs(double x, double y) = 0;
|
||||
virtual void MarkAbs(double x, double y) = 0;
|
||||
|
||||
virtual void HeatingScannerRun() {}
|
||||
virtual void ScannerInfoRun() {}
|
||||
static uint64_t GetLimitCodeV2(int ivalue);
|
||||
void ScanDataBlock(DataBlockInfo* Printdbi);
|
||||
map<int, int>* GetOrderDataCountMap() { return &m_OrderDataCountMap; }
|
||||
private:
|
||||
static DWORD WINAPI ScannerInfoProc(Scanner* _this);
|
||||
static DWORD WINAPI HeatingScannerProc(Scanner* _this);
|
||||
public:
|
||||
uint64_t m_JobStartTime;
|
||||
bool m_IsOrderSeqV2;
|
||||
static map<int, unsigned int> m_CurrentSerio;
|
||||
protected:
|
||||
vector<DataBlockInfo*> m_ScanData;
|
||||
vector<DataBlockInfo*> m_SupportSeq;
|
||||
queue<DataBlockInfo*> m_ZeroSeq;
|
||||
|
||||
//LaserCfg* m_LaserCfg;
|
||||
ScannerControlCfg* m_ScannerControlCfg;
|
||||
RunCfg* m_RunCfg;
|
||||
ExtCfg* m_ExtCfg;
|
||||
HANDLE m_DebugThread;
|
||||
bool m_DebugFlag;
|
||||
|
||||
TimePowerCompensateCfg* m_TimePowerCompensateCfg;
|
||||
PowerCompensateCfg* m_PowerCompensateCfg;
|
||||
CorrectParamCfg* m_CorrectParamCfg;
|
||||
SkyWritingCfg* m_SkyWritingCfg;
|
||||
ScanParamCfg* m_ScanParamCfg;
|
||||
ScanTestCfg* m_ScanTestCfg;
|
||||
MachineCfg* m_MachineCfg;
|
||||
AlarmCfgWrapper* m_AlarmCfgWrapper;
|
||||
IOCfg* m_ScannerIO;
|
||||
|
||||
HANDLE m_Thread;
|
||||
|
||||
HANDLE m_HeatingScannerThread;
|
||||
bool m_HeatingScannerRunFlag;
|
||||
|
||||
unsigned int m_list_memory;
|
||||
unsigned int m_laser_control;
|
||||
double m_output_vfactor;
|
||||
|
||||
double m_kfactor;
|
||||
double m_xfactor;
|
||||
double m_yfactor;
|
||||
double m_zfactor;
|
||||
double m_workingdis;
|
||||
double m_Angle;
|
||||
double m_Radians;
|
||||
|
||||
HANDLE m_InfoThread;
|
||||
bool m_InfoRunFlag;
|
||||
bool m_IsAutoInfo;
|
||||
CRITICAL_SECTION m_ScannerInfoCS;
|
||||
|
||||
time_t m_ScanStateUpdateTime;
|
||||
ScanStateXY m_ScanState;
|
||||
|
||||
double m_XOffsetAssist;
|
||||
double m_YOffsetAssist;
|
||||
|
||||
//bitset<32> m_SeqBit;
|
||||
map<int, int> m_OrderDataCountMap;
|
||||
map<int, OrderMap*> m_OrderMap;
|
||||
|
||||
map<string, ScanParamCfg*> m_ScanParamCfgMap;
|
||||
//unordered_set<int> m_OrderSeq;
|
||||
|
||||
bool m_IsLeftScan;
|
||||
Scanner* m_PairScan;
|
||||
|
||||
static bitset<64> m_ScaningBit;
|
||||
static CRITICAL_SECTION m_SeqCS;
|
||||
|
||||
static map<int, uint64_t> m_LimitMap2;
|
||||
static map<int, uint64_t> m_HorizontalSeq2;
|
||||
static bitset<8> m_SeqDataUnFinishBit;
|
||||
static bitset<8> m_SupportSeqDataUnFinishBit;
|
||||
static const int m_SeqCount = 32;
|
||||
|
||||
|
||||
};
|
1737
PrintS/ScannerCtrl/ScannerCtrl.cpp
Normal file
1737
PrintS/ScannerCtrl/ScannerCtrl.cpp
Normal file
File diff suppressed because it is too large
Load Diff
130
PrintS/ScannerCtrl/ScannerCtrl.h
Normal file
130
PrintS/ScannerCtrl/ScannerCtrl.h
Normal file
@ -0,0 +1,130 @@
|
||||
#pragma once
|
||||
#include "../stdafx.h"
|
||||
#include "BaseCtrl.h"
|
||||
#include "../Purifier/BasePurifier.h"
|
||||
#include "Scanner.h"
|
||||
#include "../Machine/Machine.h"
|
||||
#include "../PLC/MachineCtrl.h"
|
||||
//#include "../camera/HBDCamera.h"
|
||||
//#include "../RecoatCheck/RecoatCheck.h"
|
||||
#include "../Communication/ServoManager.h"
|
||||
#include "ScannerPair.h"
|
||||
#include "../Communication/ScannerPowerClient.h"
|
||||
|
||||
class RemoteClient;
|
||||
class ScannerCtrl : public BaseCtrl
|
||||
{
|
||||
typedef ScannerCtrl thisClass;
|
||||
|
||||
public:
|
||||
|
||||
|
||||
ScannerCtrl();
|
||||
~ScannerCtrl();
|
||||
bool Init();
|
||||
|
||||
bool BeginWork();
|
||||
bool PauseWork();
|
||||
void PauseAuto();
|
||||
bool StopWork();
|
||||
|
||||
bool IsTestLayerEnable();
|
||||
void StopRedTest();
|
||||
void TestLayer();
|
||||
vector<Scanner*>* GetScanners() { return &m_scan; }
|
||||
JobController* GetJobController() { return m_job_controller; }
|
||||
void RemoveScanner(int seq);
|
||||
|
||||
void SetPurifierClient(BasePurifier* purifierClient) {
|
||||
m_PurifierClient = purifierClient;
|
||||
}
|
||||
void SetScannerPowerClient(ScannerPowerClient* spc) { m_ScannerPowerClient = spc; }
|
||||
void GetInitErrorInfos(vector<string>& vec);
|
||||
bool HasInitError() { return !m_InitErrorInfos.empty(); }
|
||||
void ModelScan(void);
|
||||
void StopModelScan(void);
|
||||
|
||||
void SetMachineCtrl(MachineCtrl* machineCtrl) {
|
||||
m_MachineCtrl = machineCtrl;
|
||||
}
|
||||
|
||||
bool IsHeatingScannerEnable();
|
||||
|
||||
//void SetCamera(HBDCamera* camera) { m_Camera = camera; }
|
||||
//void SetRecoatCheck(RecoatCheck* rc) { m_RecoatCheck = rc; }
|
||||
void SetServoManager(ServoManager* servoManager) { m_ServoManager = servoManager; }
|
||||
|
||||
void StartHeatingMotion();
|
||||
void StopHeatingMotion(bool iswait);
|
||||
|
||||
void SetRemoteClient(RemoteClient* rc) { m_RemoteClient = rc; }
|
||||
void DrawFinishReport();
|
||||
private:
|
||||
static DWORD WINAPI PrintProc(thisClass* _this);
|
||||
static DWORD WINAPI RedPrintTestProc(thisClass* _this);
|
||||
static DWORD WINAPI ModelScanProc(thisClass* _this);
|
||||
static DWORD WINAPI ReleasePressureProc(thisClass* _this);
|
||||
|
||||
static DWORD WINAPI HeatingMotionProc(ScannerCtrl* _this);
|
||||
void HeatingMotionRun();
|
||||
|
||||
void PrintRun();
|
||||
bool ReadyPrint(bool startAfterPause);
|
||||
|
||||
void CtrlWhenStop();
|
||||
void CtrlIoWhenExit();
|
||||
|
||||
void DispatchDataBlock();
|
||||
|
||||
void DispatchTestDataBlock();
|
||||
void DispatchModelDataBlock(int partId, string scanType, float power, float speed);
|
||||
|
||||
public:
|
||||
string m_PauseMsg;
|
||||
string m_StopMsg;
|
||||
|
||||
vector<AlarmCfg*> m_StopAlarms;
|
||||
vector<AlarmCfg*> m_PauseAlarms;
|
||||
private:
|
||||
vector<Scanner*> m_scan;
|
||||
|
||||
HANDLE m_print_thread;
|
||||
HANDLE m_RedPrintTestThread;
|
||||
|
||||
CRITICAL_SECTION m_LayerTestCs;
|
||||
BasePurifier* m_PurifierClient;
|
||||
RunCfg* m_RunCfg;
|
||||
MachineCfg* m_MachineCfg;
|
||||
Machine* m_Machine;
|
||||
IOCfgWrapper* m_IOCfgWrapper;
|
||||
CoverCfg* m_CoverCfg;
|
||||
PowderEstimateCfg* m_PowderEstimateCfg;
|
||||
ExtCfg* m_ExtCfg;
|
||||
ServoManager* m_ServoManager;
|
||||
MachineCtrl* m_MachineCtrl;
|
||||
AlarmCfgWrapper* m_AlarmCfgWrapper;
|
||||
HANDLE m_PressureThread;
|
||||
bool m_PressureCtrlFlag;
|
||||
|
||||
unsigned int m_DownSkinStopFlag;
|
||||
bool m_IsDownSkinContinue;
|
||||
|
||||
//HBDCamera* m_Camera;
|
||||
//RecoatCheck* m_RecoatCheck;
|
||||
RecoatCheckCfg* m_RecoatCheckCfg;
|
||||
|
||||
ScannerPowerClient* m_ScannerPowerClient;
|
||||
|
||||
|
||||
HANDLE m_HeatingMotionThread;
|
||||
bool m_HeatingMotionFlag;
|
||||
|
||||
RemoteClient* m_RemoteClient;
|
||||
|
||||
bool m_ShowFinishReport;
|
||||
time_t m_LastSendFinishReportTime;
|
||||
|
||||
vector<BPBinary::BinDataBlock*> m_RedTestDBS;
|
||||
vector<BPBinary::BinDataBlock*> m_ModeTestDBS;
|
||||
|
||||
};
|
112
PrintS/ScannerCtrl/ScannerPair.cpp
Normal file
112
PrintS/ScannerCtrl/ScannerPair.cpp
Normal file
@ -0,0 +1,112 @@
|
||||
#include "ScannerPair.h"
|
||||
#include <atlbase.h>
|
||||
|
||||
|
||||
ScannerPair::ScannerPair()
|
||||
:m_Thread(INVALID_HANDLE_VALUE)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
ScannerPair::~ScannerPair()
|
||||
{
|
||||
ClearData();
|
||||
}
|
||||
|
||||
void ScannerPair::ClearData()
|
||||
{
|
||||
for (list<ScannerPairDBInfo*>::iterator it = m_LeftDatas.begin(); it != m_LeftDatas.end();it++) {
|
||||
ScannerPairDBInfo* dbi = (*it);
|
||||
delete dbi;
|
||||
dbi = NULL;
|
||||
}
|
||||
m_LeftDatas.clear();
|
||||
|
||||
for (list<ScannerPairDBInfo*>::iterator it = m_RightDatas.begin(); it != m_RightDatas.end(); it++) {
|
||||
ScannerPairDBInfo* dbi = (*it);
|
||||
delete dbi;
|
||||
dbi = NULL;
|
||||
}
|
||||
m_RightDatas.clear();
|
||||
|
||||
while (!m_LeftZeroSeqDatas.empty()) {
|
||||
ScannerPairDBInfo * info= m_LeftZeroSeqDatas.front();
|
||||
delete info;
|
||||
info = NULL;
|
||||
m_LeftZeroSeqDatas.pop();
|
||||
}
|
||||
|
||||
while (!m_RightZeroSeqDatas.empty()) {
|
||||
ScannerPairDBInfo * info = m_RightZeroSeqDatas.front();
|
||||
delete info;
|
||||
info = NULL;
|
||||
m_RightZeroSeqDatas.pop();
|
||||
}
|
||||
}
|
||||
|
||||
void ScannerPair::WaitFinished()
|
||||
{
|
||||
if (m_Thread == INVALID_HANDLE_VALUE)return;
|
||||
WaitForSingleObject(m_Thread, INFINITE);
|
||||
ClearData();
|
||||
CloseHandle(m_Thread);
|
||||
m_Thread = INVALID_HANDLE_VALUE;
|
||||
}
|
||||
|
||||
void ScannerPair::BeginWork()
|
||||
{
|
||||
if (m_RightDatas.empty() && m_LeftDatas.empty() && m_LeftZeroSeqDatas.empty() && m_RightZeroSeqDatas.empty())return ;
|
||||
if (m_Thread != INVALID_HANDLE_VALUE) {
|
||||
m_LeftScanner->StopWork();
|
||||
m_RightScanner->StopWork();
|
||||
TerminateThread(m_Thread, 1);
|
||||
CloseHandle(m_Thread);
|
||||
m_Thread = INVALID_HANDLE_VALUE;
|
||||
}
|
||||
m_Thread = AtlCreateThread(ScanProc, this);
|
||||
}
|
||||
|
||||
DWORD ScannerPair::ScanProc(ScannerPair* _this)
|
||||
{
|
||||
if (_this) {
|
||||
_this->Scan();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void ScannerPair::Scan()
|
||||
{
|
||||
|
||||
/*for (set<int>::iterator it = m_OrderSet.begin(); it != m_OrderSet.end();it++) {
|
||||
if (BaseCtrl::IsStop())break;
|
||||
int order = (*it);
|
||||
|
||||
while (!m_LeftDatas.empty()) {
|
||||
ScannerPairDBInfo* info= m_LeftDatas.front();
|
||||
if (info->m_DB->order == order) {
|
||||
m_LeftScanner->AddDataBlock(info->m_BDB, info->m_Part, info->m_PS);
|
||||
m_LeftDatas.pop();
|
||||
}
|
||||
else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
while (!m_RightDatas.empty()) {
|
||||
ScannerPairDBInfo* info = m_RightDatas.front();
|
||||
if (info->m_DB->order == order) {
|
||||
m_RightScanner->AddDataBlock(info->m_BDB, info->m_Part, info->m_PS);
|
||||
m_RightDatas.pop();
|
||||
}
|
||||
else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (BaseCtrl::IsStop())break;
|
||||
m_LeftScanner->BeginWork();
|
||||
m_RightScanner->BeginWork();
|
||||
Sleep(5);
|
||||
m_LeftScanner->WaitFinish();
|
||||
m_RightScanner->WaitFinish();
|
||||
}
|
||||
ClearData();*/
|
||||
}
|
80
PrintS/ScannerCtrl/ScannerPair.h
Normal file
80
PrintS/ScannerCtrl/ScannerPair.h
Normal file
@ -0,0 +1,80 @@
|
||||
#pragma once
|
||||
#include <set>
|
||||
|
||||
using namespace std;
|
||||
#include "Scanner.h"
|
||||
|
||||
class ScannerPairDBInfo {
|
||||
public:
|
||||
ScannerPairDBInfo(MetaData::DataBlock* db, BPBinary::BinDataBlock* bdb, MetaData::Part* part, MetaData::ParameterSet* ps) {
|
||||
m_DB = db;
|
||||
m_BDB = bdb;
|
||||
m_Part = part;
|
||||
m_PS = ps;
|
||||
}
|
||||
~ScannerPairDBInfo(){}
|
||||
|
||||
public:
|
||||
MetaData::DataBlock* m_DB;
|
||||
BPBinary::BinDataBlock* m_BDB;
|
||||
MetaData::Part* m_Part;
|
||||
MetaData::ParameterSet* m_PS;
|
||||
};
|
||||
|
||||
class ScannerPair
|
||||
{
|
||||
public:
|
||||
ScannerPair();
|
||||
~ScannerPair();
|
||||
|
||||
void AddDB(Scanner* sc, MetaData::DataBlock* db, BPBinary::BinDataBlock* bdb, MetaData::Part* part, MetaData::ParameterSet* ps) {
|
||||
if (!IsContain(sc))return;
|
||||
if (db->order == 0)
|
||||
{
|
||||
if (sc == m_LeftScanner) {
|
||||
m_LeftZeroSeqDatas.push(new ScannerPairDBInfo(db, bdb, part, ps));
|
||||
}
|
||||
else {
|
||||
m_RightZeroSeqDatas.push(new ScannerPairDBInfo(db, bdb, part, ps));
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (sc == m_LeftScanner) {
|
||||
m_LeftDatas.push_back(new ScannerPairDBInfo(db, bdb, part, ps));
|
||||
}
|
||||
else {
|
||||
m_RightDatas.push_back(new ScannerPairDBInfo(db, bdb, part, ps));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ClearData();
|
||||
|
||||
bool IsContain(Scanner* sc) {
|
||||
if (!sc)return false;
|
||||
if (sc == m_LeftScanner || sc == m_RightScanner) {
|
||||
return true;
|
||||
}
|
||||
else return false;
|
||||
}
|
||||
|
||||
void BeginWork();
|
||||
void WaitFinished();
|
||||
private:
|
||||
static DWORD WINAPI ScanProc(ScannerPair* _this);
|
||||
void Scan();
|
||||
public:
|
||||
HANDLE m_Thread;
|
||||
|
||||
//set<int> m_OrderSet;
|
||||
list<ScannerPairDBInfo*> m_LeftDatas;
|
||||
list<ScannerPairDBInfo*> m_RightDatas;
|
||||
|
||||
queue<ScannerPairDBInfo*> m_LeftZeroSeqDatas;
|
||||
queue<ScannerPairDBInfo*> m_RightZeroSeqDatas;
|
||||
|
||||
Scanner* m_LeftScanner;
|
||||
Scanner* m_RightScanner;
|
||||
|
||||
};
|
||||
|
175
PrintS/camera/Galaxy/include/GXDeviceInfo.h
Normal file
175
PrintS/camera/Galaxy/include/GXDeviceInfo.h
Normal file
@ -0,0 +1,175 @@
|
||||
//------------------------------------------------------------------------
|
||||
/**
|
||||
\file GXDeviceInfo.h
|
||||
\brief The device enumeration process creates a list of CGXDeviceInfo objects
|
||||
(GxIAPICPP::gxdeviceinfo_vector). Each CGXDeviceInfo object stores the information of a device.
|
||||
The information is retrieved during the device enumeration process (IGXFactory::UpdateDeviceList)
|
||||
\Date 2016-8-09
|
||||
\Version 1.1.1608.9091
|
||||
*/
|
||||
//------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#include "IGXDeviceInfo.h"
|
||||
#include "GXSmartPtr.h"
|
||||
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable: 4251) // class 'xxx' needs to have dll-interface to be used by clients of class 'yyy'
|
||||
|
||||
class IGXDeviceInfoImpl;
|
||||
typedef GXSmartPtr<IGXDeviceInfoImpl> CGXDeviceInfoImplPointer;
|
||||
|
||||
class GXIAPICPP_API CGXDeviceInfo : public IGXDeviceInfo
|
||||
{
|
||||
public:
|
||||
//Constructor
|
||||
CGXDeviceInfo();
|
||||
|
||||
///Constructor
|
||||
CGXDeviceInfo(CGXDeviceInfoImplPointer& objCGXDeviceInfoImplPointer);
|
||||
|
||||
///Destructor
|
||||
virtual ~CGXDeviceInfo(void);
|
||||
|
||||
public:
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the vendor name of the device.
|
||||
\return The vendor name
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetVendorName() const;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the model name of the device.
|
||||
\return The model name
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetModelName() const;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the serial number of the device.
|
||||
\return The serial number
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetSN() const;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the display name of the device.
|
||||
\return The display name
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetDisplayName() const;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the device id of the device.
|
||||
\return The device id
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetDeviceID() const;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the user defined name of the device if present.
|
||||
\return The user defined name
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetUserID() const;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the current access status of the device(e.g. read only, read & write, or no access).
|
||||
\return The current access status
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GX_ACCESS_STATUS GetAccessStatus() const;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the class of the device(e.g. USB2.0\Gige\USB3.0).
|
||||
\return The device class
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GX_DEVICE_CLASS_LIST GetDeviceClass() const;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the MAC address of the device if present.
|
||||
\return The MAC address
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetMAC() const;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the IP address of the device if present.
|
||||
\return The IP address
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetIP() const;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the subnet mask address of the device if present.
|
||||
\return The subnet mask
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetSubnetMask() const;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the gateway of the device if present.
|
||||
\return The gateway
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetGateway() const;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the NIC's MAC address of the device if present.
|
||||
\return The NIC's MAC address
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetNICMAC() const;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the NIC's IP address of the device if present.
|
||||
\return The NIC's IP address
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetNICIP() const;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the NIC's subnet mask address of the device if present.
|
||||
\return The NIC's subnet mask
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetNICSubnetMask() const;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the NIC's gateway of the device if present.
|
||||
\return The NIC's gateway
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetNICGateway() const;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the NIC's description of the device if present.
|
||||
\return The NIC's description
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetNICDescription() const;
|
||||
|
||||
|
||||
private:
|
||||
CGXDeviceInfoImplPointer m_CGXDeviceInfoImplPointer; ///< Internal use only
|
||||
};
|
||||
|
||||
#pragma warning(pop)
|
191
PrintS/camera/Galaxy/include/GXDeviceInfoVector.h
Normal file
191
PrintS/camera/Galaxy/include/GXDeviceInfoVector.h
Normal file
@ -0,0 +1,191 @@
|
||||
//------------------------------------------------------------------------
|
||||
/**
|
||||
\file GXDeviceInfoVector.h
|
||||
\brief Portable CGXDeviceInfo vector implementation
|
||||
\Date 2016-8-09
|
||||
\Version 1.1.1608.9091
|
||||
*/
|
||||
//------------------------------------------------------------------------
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef _WIN32
|
||||
# include <stdint.h>
|
||||
#endif
|
||||
|
||||
#if defined ( __GNUC__ ) && defined ( __linux__)
|
||||
# include <cstddef>
|
||||
#endif
|
||||
|
||||
#if defined (_WIN32) || (defined (__GNUC__) && (defined (__linux__) || defined (__APPLE__)))
|
||||
|
||||
// conversion from 'uintptr_t' to 'void *' of greater size
|
||||
// This is a portability warning
|
||||
#pragma warning( disable : 4312 )
|
||||
|
||||
namespace std
|
||||
{
|
||||
template <class T> class allocator;
|
||||
template <class T, class Allocator > class vector;
|
||||
}
|
||||
|
||||
class CGXDeviceInfo;
|
||||
namespace GxIAPICPP
|
||||
{
|
||||
/**
|
||||
\brief A vector of CGXDeviceInfo object
|
||||
*/
|
||||
class GXIAPICPP_API TList_vector
|
||||
{
|
||||
typedef CGXDeviceInfo T;
|
||||
// Nested types
|
||||
// ---------------------------------------------------------------------------
|
||||
public:
|
||||
class GXIAPICPP_API const_iterator
|
||||
{
|
||||
// iterator traits
|
||||
// ------------------------------------------------------------------------
|
||||
public:
|
||||
typedef std::random_access_iterator_tag iterator_category;
|
||||
typedef T value_type;
|
||||
typedef ptrdiff_t difference_type;
|
||||
typedef T* pointer;
|
||||
typedef T& reference;
|
||||
|
||||
// Ctor / Dtor
|
||||
// -------------------------------------------------------------------------
|
||||
public:
|
||||
const_iterator ( T *pPtr = 0 );
|
||||
|
||||
// Operators
|
||||
// -------------------------------------------------------------------------
|
||||
public:
|
||||
const T & operator * ( void ) const;
|
||||
const_iterator & operator ++ ( void );
|
||||
const_iterator operator ++ ( int );
|
||||
const_iterator & operator -- ( void );
|
||||
const_iterator operator -- ( int );
|
||||
const_iterator & operator += ( intptr_t iInc );
|
||||
const_iterator operator += ( intptr_t iInc ) const;
|
||||
const_iterator operator + ( intptr_t iInc ) const;
|
||||
const_iterator & operator -= ( intptr_t iDec );
|
||||
const_iterator operator -= ( intptr_t iDec ) const;
|
||||
intptr_t operator - ( const const_iterator &iter ) const;
|
||||
const_iterator operator - ( intptr_t iDec ) const;
|
||||
const T & operator [] ( intptr_t iIndex ) const;
|
||||
bool operator == ( const const_iterator &iter ) const;
|
||||
bool operator != ( const const_iterator &iter ) const;
|
||||
bool operator < ( const const_iterator &iter ) const;
|
||||
bool operator > ( const const_iterator &iter ) const;
|
||||
bool operator <= ( const const_iterator &iter ) const;
|
||||
bool operator >= ( const const_iterator &iter ) const;
|
||||
GXIAPICPP_API
|
||||
friend const_iterator operator + ( intptr_t iInc, const const_iterator &iter);
|
||||
|
||||
// Member
|
||||
// -------------------------------------------------------------------------
|
||||
protected:
|
||||
T * _ps;
|
||||
};
|
||||
|
||||
class GXIAPICPP_API iterator :
|
||||
public const_iterator
|
||||
{
|
||||
public:
|
||||
// iterator traits
|
||||
// -------------------------------------------------------------------------
|
||||
typedef std::random_access_iterator_tag iterator_category;
|
||||
typedef T value_type;
|
||||
typedef const_iterator::difference_type difference_type;
|
||||
typedef const_iterator::pointer pointer;
|
||||
typedef const_iterator::reference reference;
|
||||
// Ctor / Dtor
|
||||
// -------------------------------------------------------------------------
|
||||
public:
|
||||
iterator ( T *pPtr = 0 );
|
||||
|
||||
// Operators
|
||||
// -------------------------------------------------------------------------
|
||||
public:
|
||||
T & operator * ( void ) const;
|
||||
iterator & operator ++ ( void );
|
||||
iterator operator ++ ( int );
|
||||
iterator & operator -- ( void );
|
||||
iterator operator -- ( int );
|
||||
iterator & operator += ( intptr_t iInc );
|
||||
iterator operator += ( intptr_t iInc ) const;
|
||||
iterator operator + ( intptr_t iInc ) const;
|
||||
iterator & operator -= ( intptr_t iDec );
|
||||
iterator operator -= ( intptr_t iDec ) const;
|
||||
intptr_t operator - ( const iterator &iter ) const;
|
||||
iterator operator - ( intptr_t iDec ) const;
|
||||
T & operator [] ( intptr_t iIndex ) const;
|
||||
GXIAPICPP_API
|
||||
friend iterator operator + ( intptr_t iInc, const iterator &iter);
|
||||
};
|
||||
|
||||
// Ctor / Dtor
|
||||
// ---------------------------------------------------------------------------
|
||||
public:
|
||||
TList_vector ( void );
|
||||
explicit TList_vector ( size_t uiSize);
|
||||
TList_vector ( const TList_vector &obj);
|
||||
virtual ~TList_vector ( void );
|
||||
|
||||
// Element access
|
||||
// ---------------------------------------------------------------------------
|
||||
public:
|
||||
virtual void assign ( size_t n, const T &obj );
|
||||
virtual void clear ( void );
|
||||
virtual iterator erase ( iterator pos );
|
||||
virtual T & at ( size_t uiIndex );
|
||||
virtual const T & at ( size_t uiIndex ) const;
|
||||
virtual T & back ( void );
|
||||
virtual const T & back ( void ) const;
|
||||
virtual iterator begin ( void );
|
||||
virtual const_iterator begin ( void ) const;
|
||||
virtual size_t capacity ( void ) const;
|
||||
virtual iterator end ( void );
|
||||
virtual const_iterator end ( void ) const;
|
||||
virtual T & front ( void );
|
||||
virtual const T & front ( void ) const;
|
||||
virtual size_t max_size ( void ) const;
|
||||
virtual size_t size ( void ) const;
|
||||
virtual iterator insert ( iterator pos, const T& val) ;
|
||||
virtual bool empty ( void ) const;
|
||||
virtual void pop_back ( void );
|
||||
virtual void push_back ( const T &val );
|
||||
virtual void resize ( size_t uiSize, const T &val );
|
||||
virtual void reserve ( size_t uiSize );
|
||||
|
||||
|
||||
// Do not use - only left in for backwards compatibility!
|
||||
virtual void erase (size_t uiIndex);
|
||||
virtual void insert (size_t uiIndex, const T &val);
|
||||
|
||||
// Operators
|
||||
// ---------------------------------------------------------------------------
|
||||
public:
|
||||
TList_vector & operator = ( const TList_vector &obj );
|
||||
T & operator [] ( size_t uiIndex );
|
||||
const T & operator [] ( size_t uiIndex ) const;
|
||||
void operator delete ( void *pWhere );
|
||||
void * operator new ( size_t uiSize );
|
||||
|
||||
// Member
|
||||
// ---------------------------------------------------------------------------
|
||||
private:
|
||||
typedef std::vector<T, std::allocator<T> > vector_t;
|
||||
vector_t *_pv;
|
||||
};
|
||||
|
||||
//! a list of DeviceInfo references
|
||||
typedef TList_vector gxdeviceinfo_vector;
|
||||
}
|
||||
|
||||
|
||||
#else
|
||||
# error No known support for shared libraries
|
||||
#endif
|
||||
|
||||
|
244
PrintS/camera/Galaxy/include/GXIAPIBase.h
Normal file
244
PrintS/camera/Galaxy/include/GXIAPIBase.h
Normal file
@ -0,0 +1,244 @@
|
||||
//------------------------------------------------------------------------
|
||||
/**
|
||||
\file GXIAPIBase.h
|
||||
\brief Platform-dependent type definitions
|
||||
\Date 2019-10-09
|
||||
\Version 1.1.1910.9091
|
||||
*/
|
||||
//------------------------------------------------------------------------
|
||||
|
||||
#ifndef GXIAPI_BASE_H
|
||||
#define GXIAPI_BASE_H
|
||||
|
||||
#if defined(_WIN32)
|
||||
#ifndef _STDINT_H
|
||||
#ifdef _MSC_VER // Microsoft compiler
|
||||
#if _MSC_VER < 1600
|
||||
typedef __int8 int8_t; ///< makes int 8 portable across different platforms
|
||||
typedef __int16 int16_t; ///< makes short portable across different platforms
|
||||
typedef __int32 int32_t; ///< makes __int32 portable across different platforms
|
||||
typedef __int64 int64_t; ///< makes int64 portable across different platforms
|
||||
typedef unsigned __int8 uint8_t; ///< makes unsigned char portable across different platforms
|
||||
typedef unsigned __int16 uint16_t; ///< makes unsigned short portable across different platforms
|
||||
typedef unsigned __int32 uint32_t; ///< makes unsigned int32 portable across different platforms
|
||||
typedef unsigned __int64 uint64_t; ///< makes unsigned int64 portable across different platforms
|
||||
#else
|
||||
// stdint.h is already included in Visual Studio 2010
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
#else
|
||||
// Not a Microsoft compiler
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
#endif
|
||||
#else
|
||||
// Linux
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
|
||||
#ifdef GXIAPICPP_EXPORTS
|
||||
#define GXIAPICPP_API __declspec(dllexport)
|
||||
#else
|
||||
#define GXIAPICPP_API __declspec(dllimport)
|
||||
#endif
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// The error codes list
|
||||
//------------------------------------------------------------------------------
|
||||
typedef enum GX_STATUS_LIST
|
||||
{
|
||||
GX_STATUS_SUCCESS = 0, ///< Operation was successful; no error occurred.
|
||||
GX_STATUS_ERROR = -1, ///< Unspecified runtime error.
|
||||
GX_STATUS_NOT_FOUND_TL = -2, ///< Special error code for initialize, when IGXFactory::Init was called.
|
||||
GX_STATUS_NOT_FOUND_DEVICE = -3, ///< Special error code for opening device, when IGXFactory::OpenDeviceByxxx was called.
|
||||
GX_STATUS_OFFLINE = -4, ///< Communication error has occurred; e.g. a read or write operation failed.
|
||||
GX_STATUS_INVALID_PARAMETER = -5, ///< One of the parameters given was not valid or out of range.
|
||||
GX_STATUS_INVALID_HANDLE = -6, ///< Given handle does not support the operation; e.g. function call on wrong handle or NULL pointer.
|
||||
GX_STATUS_INVALID_CALL = -7, ///< Requested operation is not allowed, special for interface; e.g. callback capture and the getimage can not be used at the same time.
|
||||
GX_STATUS_INVALID_ACCESS = -8, ///< Requested operation is not allowed, special for camera; e.g. a remote device has be opened by another client.
|
||||
GX_STATUS_NEED_MORE_BUFFER = -9, ///< A provided buffer is too small to receive the expected amount of data.
|
||||
GX_STATUS_ERROR_TYPE = -10, ///< Special error code for IGXFeatureControl::GetxxxFeature(); e.g. code like this "GetIntFeature("Gain")" is wrong, because "Gain" is an fload feature.
|
||||
GX_STATUS_OUT_OF_RANGE = -11, ///< A given value is out of range; e.g. IIntFeautre::SetValue() had been set an value bigger than the Max Value.
|
||||
GX_STATUS_NOT_IMPLEMENTED = -12, ///< Requested operation is not implemented; e.g. no color feature on Mono Camera.
|
||||
GX_STATUS_NOT_INIT_API = -13, ///< A module or resource is not initialized; e.g. IGXFactory::Init was not called.
|
||||
GX_STATUS_TIMEOUT = -14, ///< An operation's timeout time expired before it could be completed.
|
||||
}GX_STATUS_LIST;
|
||||
typedef int32_t GX_STATUS;
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Used for open device interface; IGXFactory::OpenDeviceByxxx
|
||||
//------------------------------------------------------------------------------
|
||||
typedef enum GX_ACCESS_MODE
|
||||
{
|
||||
GX_ACCESS_READONLY =2, ///< Open a device read only. All Port functions can only read from the device.
|
||||
GX_ACCESS_CONTROL =3, ///< Open a device in a way that other hosts/processes can have read only access to the device. Device's access level is read/write for this process.
|
||||
GX_ACCESS_EXCLUSIVE =4, ///< Open a device in a way that only this host/process can have access to the device. Device's access level is read/write for this process.
|
||||
}GX_ACCESS_MODE;
|
||||
typedef int32_t GX_ACCESS_MODE_CMD;
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Used for CGXDeviceInfo
|
||||
//------------------------------------------------------------------------------
|
||||
typedef enum GX_DEVICE_CLASS_LIST
|
||||
{
|
||||
GX_DEVICE_CLASS_UNKNOWN = 0, ///< Not used in a command. Can be used to initialize a variable to query that information
|
||||
GX_DEVICE_CLASS_USB2 = 1, ///< USB2.0 Cameras
|
||||
GX_DEVICE_CLASS_GEV = 2, ///< GigE Vision Cameras
|
||||
GX_DEVICE_CLASS_U3V = 3, ///< USB3.0 Cameras
|
||||
}GX_DEVICE_CLASS_LIST;
|
||||
typedef int32_t GX_DEVICE_CLASS;
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Used for CGXDeviceInfo
|
||||
//------------------------------------------------------------------------------
|
||||
typedef enum GX_ACCESS_STATUS
|
||||
{
|
||||
GX_ACCESS_STATUS_UNKNOWN = 0, ///< Not used in a command. Can be used to initialize a variable to query that information
|
||||
GX_ACCESS_STATUS_READWRITE = 1, ///< Device can be read and write
|
||||
GX_ACCESS_STATUS_READONLY = 2, ///< Device can only be read
|
||||
GX_ACCESS_STATUS_NOACCESS = 3, ///< Device no access
|
||||
}GX_ACCESS_STATUS;
|
||||
typedef int32_t GX_ACCESS_STATUS_CMD;
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Used for IImageData::GetStatus
|
||||
//------------------------------------------------------------------------------
|
||||
typedef enum GX_FRAME_STATUS_LIST
|
||||
{
|
||||
GX_FRAME_STATUS_SUCCESS = 0, ///< Flag to indicate that a buffer was filled completed.
|
||||
GX_FRAME_STATUS_INCOMPLETE = -1, ///< Flag to indicate that a buffer was filled but an error occurred during that process.
|
||||
}GX_FRAME_STATUS_LIST;
|
||||
typedef int32_t GX_FRAME_STATUS;
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// IP Confingure Mode
|
||||
//------------------------------------------------------------------------------
|
||||
enum GX_IP_CONFIGURE_MODE_LIST
|
||||
{
|
||||
GX_IP_CONFIGURE_DHCP = 6, ///< Enable DHCP
|
||||
GX_IP_CONFIGURE_LLA = 4, ///< LLA
|
||||
GX_IP_CONFIGURE_STATIC_IP = 5, ///< Static IP
|
||||
GX_IP_CONFIGURE_DEFAULT = 7, ///< Default
|
||||
};
|
||||
typedef int32_t GX_IP_CONFIGURE_MODE;
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Used for IGXFeatureControl::GetFeatureType
|
||||
//------------------------------------------------------------------------------
|
||||
typedef enum GX_FEATURE_TYPE
|
||||
{
|
||||
GX_FEATURE_INT =0x10000000, ///< Int feature
|
||||
GX_FEATURE_FLOAT =0X20000000, ///< Float feature
|
||||
GX_FEATURE_ENUM =0x30000000, ///< Enum feature
|
||||
GX_FEATURE_BOOL =0x40000000, ///< Bool feature
|
||||
GX_FEATURE_STRING =0x50000000, ///< String feature
|
||||
GX_FEATURE_BUFFER =0x60000000, ///< Register feature
|
||||
GX_FEATURE_COMMAND =0x70000000, ///< Command feature
|
||||
}GX_FEATURE_TYPE;
|
||||
|
||||
#define GX_PIXEL_MONO ( 0x01000000 )
|
||||
#define GX_PIXEL_COLOR ( 0x02000000 )
|
||||
|
||||
#define GX_PIXEL_8BIT ( 0x00080000 )
|
||||
#define GX_PIXEL_10BIT ( 0x000A0000 )
|
||||
#define GX_PIXEL_12BIT ( 0x000C0000 )
|
||||
#define GX_PIXEL_16BIT ( 0x00100000 )
|
||||
#define GX_PIXEL_24BIT ( 0x00180000 )
|
||||
#define GX_PIXEL_30BIT ( 0x001E0000 )
|
||||
#define GX_PIXEL_32BIT ( 0x00200000 )
|
||||
#define GX_PIXEL_36BIT ( 0x00240000 )
|
||||
#define GX_PIXEL_48BIT ( 0x00300000 )
|
||||
#define GX_PIXEL_64BIT ( 0x00400000 )
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Used for IImageData::GetPixelFormat
|
||||
//------------------------------------------------------------------------------
|
||||
typedef enum GX_PIXEL_FORMAT_ENTRY
|
||||
{
|
||||
GX_PIXEL_FORMAT_UNDEFINED = (0),
|
||||
GX_PIXEL_FORMAT_MONO8 = (GX_PIXEL_MONO | GX_PIXEL_8BIT | 0x0001),//0x1080001,
|
||||
GX_PIXEL_FORMAT_MONO8_SIGNED = (GX_PIXEL_MONO | GX_PIXEL_8BIT | 0x0002),//0x1080002,
|
||||
GX_PIXEL_FORMAT_MONO10 = (GX_PIXEL_MONO | GX_PIXEL_16BIT | 0x0003),//0x1100003,
|
||||
GX_PIXEL_FORMAT_MONO12 = (GX_PIXEL_MONO | GX_PIXEL_16BIT | 0x0005),//0x1100005,
|
||||
GX_PIXEL_FORMAT_MONO14 = (GX_PIXEL_MONO | GX_PIXEL_16BIT | 0x0025),//0x1100025,
|
||||
GX_PIXEL_FORMAT_MONO16 = (GX_PIXEL_MONO | GX_PIXEL_16BIT | 0x0007),//0x1100007,
|
||||
GX_PIXEL_FORMAT_BAYER_GR8 = (GX_PIXEL_MONO | GX_PIXEL_8BIT | 0x0008),//0x1080008,
|
||||
GX_PIXEL_FORMAT_BAYER_RG8 = (GX_PIXEL_MONO | GX_PIXEL_8BIT | 0x0009),//0x1080009,
|
||||
GX_PIXEL_FORMAT_BAYER_GB8 = (GX_PIXEL_MONO | GX_PIXEL_8BIT | 0x000A),//0x108000A,
|
||||
GX_PIXEL_FORMAT_BAYER_BG8 = (GX_PIXEL_MONO | GX_PIXEL_8BIT | 0x000B),//0x108000B,
|
||||
GX_PIXEL_FORMAT_BAYER_GR10 = (GX_PIXEL_MONO | GX_PIXEL_16BIT | 0x000C),//0x110000C,
|
||||
GX_PIXEL_FORMAT_BAYER_RG10 = (GX_PIXEL_MONO | GX_PIXEL_16BIT | 0x000D),//0x110000D,
|
||||
GX_PIXEL_FORMAT_BAYER_GB10 = (GX_PIXEL_MONO | GX_PIXEL_16BIT | 0x000E),//0x110000E,
|
||||
GX_PIXEL_FORMAT_BAYER_BG10 = (GX_PIXEL_MONO | GX_PIXEL_16BIT | 0x000F),//0x110000F,
|
||||
GX_PIXEL_FORMAT_BAYER_GR12 = (GX_PIXEL_MONO | GX_PIXEL_16BIT | 0x0010),//0x1100010,
|
||||
GX_PIXEL_FORMAT_BAYER_RG12 = (GX_PIXEL_MONO | GX_PIXEL_16BIT | 0x0011),//0x1100011,
|
||||
GX_PIXEL_FORMAT_BAYER_GB12 = (GX_PIXEL_MONO | GX_PIXEL_16BIT | 0x0012),//0x1100012,
|
||||
GX_PIXEL_FORMAT_BAYER_BG12 = (GX_PIXEL_MONO | GX_PIXEL_16BIT | 0x0013),//0x1100013,
|
||||
GX_PIXEL_FORMAT_BAYER_GR16 = (GX_PIXEL_MONO | GX_PIXEL_16BIT | 0x002E),//0x110002E,
|
||||
GX_PIXEL_FORMAT_BAYER_RG16 = (GX_PIXEL_MONO | GX_PIXEL_16BIT | 0x002F),//0x110002F,
|
||||
GX_PIXEL_FORMAT_BAYER_GB16 = (GX_PIXEL_MONO | GX_PIXEL_16BIT | 0x0030),//0x1100030,
|
||||
GX_PIXEL_FORMAT_BAYER_BG16 = (GX_PIXEL_MONO | GX_PIXEL_16BIT | 0x0031),//0x1100031,
|
||||
GX_PIXEL_FORMAT_RGB8_PLANAR = (GX_PIXEL_COLOR | GX_PIXEL_24BIT | 0x0021),//0x2180021,
|
||||
GX_PIXEL_FORMAT_RGB10_PLANAR = (GX_PIXEL_COLOR | GX_PIXEL_48BIT | 0x0022),//0x2300022,
|
||||
GX_PIXEL_FORMAT_RGB12_PLANAR = (GX_PIXEL_COLOR | GX_PIXEL_48BIT | 0x0023),//0x2300023,
|
||||
GX_PIXEL_FORMAT_RGB16_PLANAR = (GX_PIXEL_COLOR | GX_PIXEL_48BIT | 0x0024),//0x2300024,
|
||||
}GX_PIXEL_FORMAT_ENTRY;
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Image interpolation method; Used for IImageProcessConfig::SetConvertType
|
||||
//------------------------------------------------------------------------------
|
||||
typedef enum GX_BAYER_CONVERT_TYPE_LIST
|
||||
{
|
||||
GX_RAW2RGB_NEIGHBOUR = 0,
|
||||
GX_RAW2RGB_ADAPTIVE = 1,
|
||||
GX_RAW2RGB_NEIGHBOUR3 = 2
|
||||
}GX_BAYER_CONVERT_TYPE_LIST;
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Image valid bit; Used for IImageData::ConvertToRaw8/IImageData::ConvertToRGB24/IImageProcessConfig.SetValidBit
|
||||
//------------------------------------------------------------------------------
|
||||
typedef enum GX_VALID_BIT_LIST
|
||||
{
|
||||
GX_BIT_0_7 = 0, ///< bit 0~7
|
||||
GX_BIT_1_8 = 1, ///< bit 1~8
|
||||
GX_BIT_2_9 = 2, ///< bit 2~9
|
||||
GX_BIT_3_10 = 3, ///< bit 3~10
|
||||
GX_BIT_4_11 = 4 ///< bit 4~11
|
||||
}GX_VALID_BIT_LIST;
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Reset Device Mode
|
||||
//------------------------------------------------------------------------------
|
||||
typedef enum GX_RESET_DEVICE_MODE
|
||||
{
|
||||
GX_MANUFACTURER_SPECIFIC_RECONNECT = 0x1, ///< reconnect Device
|
||||
GX_MANUFACTURER_SPECIFIC_RESET = 0x2 ///< reset Device
|
||||
}GX_RESET_DEVICE_MODE;
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// color transform factor
|
||||
// Valid range£º-4.0 ~ 4.0
|
||||
//------------------------------------------------------------------------------
|
||||
typedef struct COLOR_TRANSFORM_FACTOR
|
||||
{
|
||||
float fGain00; ///< red contribution to the red pixel (multiplicative factor)
|
||||
float fGain01; ///< green contribution to the red pixel (multiplicative factor)
|
||||
float fGain02; ///< blue contribution to the red pixel (multiplicative factor)
|
||||
|
||||
float fGain10; ///< red contribution to the green pixel (multiplicative factor)
|
||||
float fGain11; ///< green contribution to the green pixel (multiplicative factor)
|
||||
float fGain12; ///< blue contribution to the green pixel (multiplicative factor)
|
||||
|
||||
float fGain20; ///< red contribution to the blue pixel (multiplicative factor)
|
||||
float fGain21; ///< green contribution to the blue pixel (multiplicative factor)
|
||||
float fGain22; ///< blue contribution to the blue pixel (multiplicative factor)
|
||||
} COLOR_TRANSFORM_FACTOR;
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Call back handles
|
||||
//------------------------------------------------------------------------------
|
||||
typedef void* GX_DEVICE_OFFLINE_CALLBACK_HANDLE; ///< Retrieve from IGXDevice::RegisterDeviceOfflineCallback
|
||||
typedef void* GX_FEATURE_CALLBACK_HANDLE; ///< Retrieve from IGXFeatureControl::RegisterFeatureCallback
|
||||
|
||||
#endif //GXIAPI_BASE_H
|
254
PrintS/camera/Galaxy/include/GXSmartPtr.h
Normal file
254
PrintS/camera/Galaxy/include/GXSmartPtr.h
Normal file
@ -0,0 +1,254 @@
|
||||
//------------------------------------------------------------------------
|
||||
/**
|
||||
\file GXSmartPtr.h
|
||||
\brief Definition of template GXSmartPtr
|
||||
\Date 2019-01-04
|
||||
\Version 1.1.1901.9041
|
||||
*/
|
||||
//------------------------------------------------------------------------
|
||||
#ifndef GX_SMART_POINTER_H
|
||||
#define GX_SMART_POINTER_H
|
||||
|
||||
#if defined (_WIN32)
|
||||
#include "windows.h"
|
||||
#endif
|
||||
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable: 4251) // class 'xxx' needs to have dll-interface to be used by clients of class 'yyy'
|
||||
#pragma warning(disable: 4150)
|
||||
|
||||
#ifndef GXIAPICPP_EXPORTS
|
||||
#pragma comment(lib, "GxIAPICPPEx.lib")
|
||||
#endif
|
||||
|
||||
/**
|
||||
\brief A Reference Counting Class
|
||||
*/
|
||||
class GXSPCountedBase
|
||||
{
|
||||
private:
|
||||
GXSPCountedBase( GXSPCountedBase const & );
|
||||
GXSPCountedBase & operator= ( GXSPCountedBase const & );
|
||||
|
||||
LONG m_nUseCount; // #shared
|
||||
|
||||
public:
|
||||
|
||||
/// Default constructor
|
||||
volatile GXSPCountedBase(): m_nUseCount(1)
|
||||
{
|
||||
}
|
||||
|
||||
virtual ~GXSPCountedBase() // nothrow
|
||||
{
|
||||
}
|
||||
|
||||
/// Count plus one, Thread Safety
|
||||
void AddRefCopy()
|
||||
{
|
||||
InterlockedIncrement(&m_nUseCount);
|
||||
}
|
||||
|
||||
/// Count minus one, Thread Safety
|
||||
LONG Release() // nothrow
|
||||
{
|
||||
return InterlockedDecrement(&m_nUseCount);
|
||||
}
|
||||
|
||||
LONG* GetUsePtr()
|
||||
{
|
||||
return &m_nUseCount;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
#pragma optimize("", off)
|
||||
template<typename T>
|
||||
class GXSmartPtr
|
||||
{
|
||||
public:
|
||||
|
||||
/// Default constructor
|
||||
explicit GXSmartPtr(T*p=0):m_ptr(p)
|
||||
{
|
||||
m_pUse = new GXSPCountedBase();
|
||||
}
|
||||
|
||||
/// Constructor from GXSmartPtr ref type.
|
||||
GXSmartPtr(const GXSmartPtr& src):m_ptr(src.m_ptr),m_pUse(src.GetCountBasePtr())
|
||||
{
|
||||
#if defined (_WIN32)
|
||||
m_pUse->AddRefCopy();
|
||||
#elif defined (__linux__)
|
||||
//Linux TODO
|
||||
#else
|
||||
# error No/unknown platform thread support
|
||||
#endif
|
||||
}
|
||||
|
||||
///Assign GXSmartPtr Pointer
|
||||
GXSmartPtr&operator=(const GXSmartPtr&rhs)
|
||||
{
|
||||
#if defined (_WIN32)
|
||||
rhs.GetCountBasePtr()->AddRefCopy();
|
||||
#elif defined (__linux__)
|
||||
//Linux TODO
|
||||
#else
|
||||
# error No/unknown platform thread support
|
||||
#endif
|
||||
decrUse();
|
||||
m_ptr=rhs.m_ptr;
|
||||
m_pUse=rhs.GetCountBasePtr();
|
||||
return *this;
|
||||
}
|
||||
|
||||
/// Dereferencing
|
||||
T* operator->()
|
||||
{
|
||||
if(m_ptr)
|
||||
{
|
||||
return m_ptr;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw CGalaxyException(GX_STATUS_ERROR,"Access through NULL pointer");
|
||||
}
|
||||
}
|
||||
|
||||
/// Dereferencing
|
||||
const T* operator->()const
|
||||
{
|
||||
if(m_ptr)
|
||||
{
|
||||
return m_ptr;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw CGalaxyException(GX_STATUS_ERROR,"Access through NULL pointer");
|
||||
}
|
||||
}
|
||||
|
||||
/// Dereferencing
|
||||
T &operator*()
|
||||
{
|
||||
if(m_ptr)
|
||||
{
|
||||
return *m_ptr;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw CGalaxyException(GX_STATUS_ERROR,"Access through NULL pointer");
|
||||
}
|
||||
}
|
||||
|
||||
/// Dereferencing
|
||||
const T &operator*()const
|
||||
{
|
||||
if(m_ptr)
|
||||
{
|
||||
return *m_ptr;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw CGalaxyException(GX_STATUS_ERROR,"Access through NULL pointer");
|
||||
}
|
||||
}
|
||||
|
||||
/// Get the reference count
|
||||
LONG* getUse() const throw()
|
||||
{
|
||||
return m_pUse->GetUsePtr();
|
||||
}
|
||||
|
||||
/// Get the underlying raw pointer
|
||||
T* getPtr() const throw()
|
||||
{
|
||||
return m_ptr;
|
||||
}
|
||||
|
||||
/// true if the pointer is not valid
|
||||
bool IsNull(void) const
|
||||
{
|
||||
return m_ptr == NULL;
|
||||
}
|
||||
|
||||
/// pointer equal
|
||||
bool operator == (const GXSmartPtr<T>& objAnother) const
|
||||
{
|
||||
return m_ptr == objAnother.m_ptr;
|
||||
}
|
||||
|
||||
/// pointer equal
|
||||
bool operator == (const T* pT) const
|
||||
{
|
||||
return m_ptr == pT;
|
||||
}
|
||||
|
||||
/// Destructor
|
||||
virtual ~GXSmartPtr()
|
||||
{
|
||||
decrUse();
|
||||
}
|
||||
|
||||
template <class U>
|
||||
GXSmartPtr(const GXSmartPtr<U>& ptr, T* p) :
|
||||
m_pUse(ptr.GetCountBasePtr())
|
||||
{
|
||||
#if defined (_WIN32)
|
||||
m_pUse->AddRefCopy();
|
||||
#elif defined (__linux__)
|
||||
//Linux TODO
|
||||
#else
|
||||
# error No/unknown platform thread support
|
||||
#endif
|
||||
m_ptr = p;
|
||||
}
|
||||
|
||||
template<class T, class U>
|
||||
friend GXSmartPtr<T> gxdynamic_pointer_cast(const GXSmartPtr<U>& ptr);
|
||||
|
||||
GXSPCountedBase* GetCountBasePtr() const throw()
|
||||
{
|
||||
return m_pUse;
|
||||
}
|
||||
|
||||
private:
|
||||
void decrUse()
|
||||
{
|
||||
#if defined (_WIN32)
|
||||
if(0 == m_pUse->Release())
|
||||
{
|
||||
delete m_ptr;
|
||||
m_ptr = NULL;
|
||||
delete m_pUse;
|
||||
m_pUse = NULL;
|
||||
}
|
||||
#elif defined (__linux__)
|
||||
//Linux TODO
|
||||
#else
|
||||
# error No/unknown platform thread support
|
||||
#endif
|
||||
}
|
||||
|
||||
T* m_ptr; ///< Underlying raw pointer
|
||||
GXSPCountedBase* m_pUse; ///< The reference count
|
||||
};
|
||||
#pragma optimize("", on)
|
||||
// dynamic cast of GXSmartPtr
|
||||
template<class T, class U>
|
||||
GXSmartPtr<T> gxdynamic_pointer_cast(const GXSmartPtr<U>& ptr) // never throws
|
||||
{
|
||||
T* p = dynamic_cast<T*>(ptr.getPtr());
|
||||
if (NULL != p)
|
||||
{
|
||||
return GXSmartPtr<T>(ptr, p);
|
||||
}
|
||||
else
|
||||
{
|
||||
return GXSmartPtr<T>();
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning(pop)
|
||||
|
||||
#endif //GX_SMART_POINTER_H
|
166
PrintS/camera/Galaxy/include/GXStringCPP.h
Normal file
166
PrintS/camera/Galaxy/include/GXStringCPP.h
Normal file
@ -0,0 +1,166 @@
|
||||
//------------------------------------------------------------------------
|
||||
/**
|
||||
\file GXStringCPP.h
|
||||
\brief A string class which is a clone of std::string.
|
||||
\Date 2016-8-09
|
||||
\Version 1.1.1608.9091
|
||||
*/
|
||||
//------------------------------------------------------------------------
|
||||
#pragma once
|
||||
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable: 4251) // class 'xxx' needs to have dll-interface to be used by clients of class 'yyy'
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
#include "GXIAPIBase.h"
|
||||
|
||||
#pragma pack(push, 8)
|
||||
|
||||
#define GXSTRING_NPOS size_t(-1)
|
||||
|
||||
namespace GxIAPICPP
|
||||
{
|
||||
/// A string class which is a clone of std::string
|
||||
class GXIAPICPP_API gxstring
|
||||
{
|
||||
#if defined(_MSC_VER) && !defined(PHARLAP_WIN32)
|
||||
/// Helper class for returning wchar_t* on the stack
|
||||
class GXIAPICPP_API gxwchar
|
||||
{
|
||||
public:
|
||||
/// Constructor taking ownership of the memory block allocated with new on the heap
|
||||
explicit gxwchar( const wchar_t *pBuffer = NULL );
|
||||
|
||||
/// copy constructor taking ownership
|
||||
gxwchar( gxwchar& _gwchar );
|
||||
|
||||
/// cast operator to (wchar_t*)
|
||||
operator const wchar_t *() const;
|
||||
|
||||
/// destructor
|
||||
~gxwchar();
|
||||
protected:
|
||||
/// the memory block owned by this class
|
||||
const wchar_t *m_pBuffer;
|
||||
|
||||
private:
|
||||
/// no assignment constructor
|
||||
gxwchar& operator=( const gxwchar& );
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
// Ctor / Dtor
|
||||
// -------------------------------------------------------------------------
|
||||
public:
|
||||
gxstring ();
|
||||
gxstring ( const char *pc );
|
||||
gxstring ( size_t count, char ch );
|
||||
gxstring ( const gxstring &str );
|
||||
#if defined(_MSC_VER) && !defined(PHARLAP_WIN32)
|
||||
explicit gxstring ( const wchar_t *pBufferUTF16 );
|
||||
#endif
|
||||
virtual ~gxstring ( void );
|
||||
|
||||
// Data access
|
||||
// -------------------------------------------------------------------------
|
||||
public:
|
||||
virtual gxstring & append ( const gxstring &str );
|
||||
virtual gxstring & append ( size_t count, char ch );
|
||||
virtual gxstring & assign ( const gxstring &str );
|
||||
virtual gxstring & assign ( size_t count, char ch );
|
||||
#if defined(_MSC_VER) && !defined(PHARLAP_WIN32)
|
||||
virtual gxstring & assign ( const wchar_t *pStringUTF16 );
|
||||
#endif
|
||||
virtual int compare ( const gxstring &str ) const;
|
||||
#if defined(_MSC_VER) && !defined(PHARLAP_WIN32)
|
||||
virtual gxwchar w_str ( void ) const;
|
||||
#endif
|
||||
virtual const char *c_str ( void ) const;
|
||||
virtual bool empty ( void ) const;
|
||||
virtual size_t find ( char ch, size_t offset = 0 ) const;
|
||||
virtual size_t find ( const gxstring &str, size_t offset = 0 ) const;
|
||||
virtual size_t find ( const gxstring &str, size_t offset, size_t count ) const;
|
||||
virtual size_t find ( const char* pc, size_t offset = 0) const;
|
||||
virtual size_t find ( const char* pc, size_t offset, size_t count ) const;
|
||||
virtual size_t length ( void ) const;
|
||||
virtual size_t size ( void ) const;
|
||||
virtual void resize ( size_t n );
|
||||
virtual size_t max_size ( ) const;
|
||||
virtual gxstring substr ( size_t offset = 0, size_t count = GXSTRING_NPOS ) const;
|
||||
virtual size_t find_first_of ( const gxstring &str, size_t offset = 0 ) const;
|
||||
virtual size_t find_first_not_of ( const gxstring &str, size_t offset = 0 ) const;
|
||||
static size_t _npos ( void );
|
||||
virtual void swap ( gxstring &Right );
|
||||
|
||||
|
||||
// Operators
|
||||
// -------------------------------------------------------------------------
|
||||
public:
|
||||
bool operator != ( const gxstring &str ) const;
|
||||
bool operator != ( const char *pc ) const;
|
||||
gxstring & operator += ( const gxstring &str );
|
||||
gxstring operator += ( const gxstring &str ) const;
|
||||
gxstring & operator += ( char ch );
|
||||
gxstring operator += ( char ch ) const;
|
||||
gxstring & operator = ( const gxstring &str );
|
||||
#if defined(_MSC_VER) && !defined(PHARLAP_WIN32)
|
||||
gxstring & operator = ( const wchar_t *pStringUTF16 );
|
||||
#endif
|
||||
bool operator == ( const gxstring &str ) const;
|
||||
bool operator == ( const char *pc ) const;
|
||||
bool operator < ( const gxstring &str ) const;
|
||||
bool operator > ( const gxstring &str ) const;
|
||||
operator const char * ( void ) const;
|
||||
void operator delete ( void *pWhere );
|
||||
void operator delete ( void *pWhere, void *pNewWhere );
|
||||
void * operator new ( size_t uiSize );
|
||||
void * operator new ( size_t uiSize, void *pWhere );
|
||||
GXIAPICPP_API
|
||||
friend gxstring operator + ( const gxstring &left, const gxstring &right );
|
||||
GXIAPICPP_API
|
||||
friend gxstring operator + ( const gxstring &left, const char *right );
|
||||
GXIAPICPP_API
|
||||
friend gxstring operator + ( const char *left, const gxstring &right );
|
||||
|
||||
// Member
|
||||
// -------------------------------------------------------------------------
|
||||
private:
|
||||
// redundant pointer to make the possible to see the contents of the string in the debugger
|
||||
const char* m_psz;
|
||||
// actual std::string object
|
||||
uint8_t m_opaqueData[64];
|
||||
|
||||
const std::string& GetInternalString() const;
|
||||
std::string& GetInternalString();
|
||||
|
||||
// Constants
|
||||
// -------------------------------------------------------------------------
|
||||
public:
|
||||
// Beware : this static member prevents delay loading
|
||||
// use _npos() instead
|
||||
static const size_t npos;
|
||||
};
|
||||
|
||||
GXIAPICPP_API
|
||||
std::istream & getline ( std::istream& is, GxIAPICPP::gxstring& str );
|
||||
GXIAPICPP_API
|
||||
std::istream & getline ( std::istream& is, GxIAPICPP::gxstring& str, char delim );
|
||||
}
|
||||
|
||||
///STL operator out
|
||||
inline std::ostream & operator <<(std::ostream &ostr, const GxIAPICPP::gxstring &str) { return ostr << str.c_str(); }
|
||||
|
||||
/// STL operator in
|
||||
inline std::istream & operator >>(std::istream &istr, GxIAPICPP::gxstring &str)
|
||||
{
|
||||
std::string tmp;
|
||||
istr >> tmp;
|
||||
str = tmp.c_str();
|
||||
return istr;
|
||||
}
|
||||
|
||||
#pragma pack(pop)
|
||||
#pragma warning(pop)
|
||||
|
163
PrintS/camera/Galaxy/include/GXStringVector.h
Normal file
163
PrintS/camera/Galaxy/include/GXStringVector.h
Normal file
@ -0,0 +1,163 @@
|
||||
//------------------------------------------------------------------------
|
||||
/**
|
||||
\file GXStringVector.h
|
||||
\brief A vector of gxstrings which is a clone of std::vector<std::string>
|
||||
\Date 2016-8-09
|
||||
\Version 1.1.1608.9091
|
||||
*/
|
||||
//------------------------------------------------------------------------
|
||||
|
||||
#pragma once
|
||||
#include "GXStringCPP.h"
|
||||
|
||||
#pragma pack(push, 8)
|
||||
|
||||
|
||||
#if defined (_WIN32) || (defined (__GNUC__) && (defined (__linux__) || defined(__APPLE__)))
|
||||
|
||||
|
||||
namespace std
|
||||
{
|
||||
template <class T> class allocator;
|
||||
template <class T, class Allocator > class vector;
|
||||
}
|
||||
|
||||
namespace GxIAPICPP
|
||||
{
|
||||
|
||||
/**
|
||||
\brief A vector of gxstrings which is a clone of std::vector<std::string>
|
||||
*/
|
||||
class GXIAPICPP_API gxstring_vector
|
||||
{
|
||||
// Nested types
|
||||
// ---------------------------------------------------------------------------
|
||||
public:
|
||||
class GXIAPICPP_API const_iterator
|
||||
{
|
||||
// Ctor / Dtor
|
||||
// -------------------------------------------------------------------------
|
||||
public:
|
||||
const_iterator ( gxstring *pStr = 0 );
|
||||
|
||||
// Operators
|
||||
// -------------------------------------------------------------------------
|
||||
public:
|
||||
const gxstring & operator * ( void ) const;
|
||||
const gxstring * operator -> ( void ) const;
|
||||
const_iterator & operator ++ ( void );
|
||||
const_iterator operator ++ ( int );
|
||||
const_iterator & operator -- ( void );
|
||||
const_iterator operator -- ( int );
|
||||
const_iterator & operator += ( intptr_t iInc );
|
||||
const_iterator operator + ( intptr_t iInc ) const;
|
||||
const_iterator & operator -= ( intptr_t iDec );
|
||||
intptr_t operator - ( const const_iterator &iter ) const;
|
||||
const_iterator operator - ( intptr_t iDec ) const;
|
||||
const gxstring & operator [] ( intptr_t iIndex ) const;
|
||||
bool operator == ( const const_iterator &iter ) const;
|
||||
bool operator != ( const const_iterator &iter ) const;
|
||||
bool operator < ( const const_iterator &iter ) const;
|
||||
bool operator > ( const const_iterator &iter ) const;
|
||||
bool operator <= ( const const_iterator &iter ) const;
|
||||
bool operator >= ( const const_iterator &iter ) const;
|
||||
GXIAPICPP_API
|
||||
friend const_iterator operator + ( intptr_t iInc, const const_iterator &iter);
|
||||
|
||||
// Member
|
||||
// -------------------------------------------------------------------------
|
||||
protected:
|
||||
gxstring * _ps;
|
||||
};
|
||||
|
||||
class GXIAPICPP_API iterator :
|
||||
public const_iterator
|
||||
{
|
||||
// Ctor / Dtor
|
||||
// -------------------------------------------------------------------------
|
||||
public:
|
||||
iterator ( gxstring *pStr = 0 );
|
||||
|
||||
// Operators
|
||||
// -------------------------------------------------------------------------
|
||||
public:
|
||||
gxstring & operator * ( void ) const;
|
||||
gxstring * operator -> ( void ) const;
|
||||
iterator & operator ++ ( void );
|
||||
iterator operator ++ ( int );
|
||||
iterator & operator -- ( void );
|
||||
iterator operator -- ( int );
|
||||
iterator & operator += ( intptr_t iInc );
|
||||
iterator operator + ( intptr_t iInc ) const;
|
||||
iterator & operator -= ( intptr_t iDec );
|
||||
intptr_t operator - ( const iterator &iter ) const;
|
||||
iterator operator - ( intptr_t iDec ) const;
|
||||
gxstring & operator [] ( intptr_t iIndex ) const;
|
||||
GXIAPICPP_API
|
||||
friend iterator operator + ( intptr_t iInc, const iterator &iter);
|
||||
};
|
||||
|
||||
// Ctor / Dtor
|
||||
// ---------------------------------------------------------------------------
|
||||
public:
|
||||
gxstring_vector ( void );
|
||||
explicit gxstring_vector ( size_t uiSize, const gxstring &str = gxstring() );
|
||||
gxstring_vector ( const gxstring_vector &obj);
|
||||
virtual ~gxstring_vector ( void );
|
||||
|
||||
// Element access
|
||||
// ---------------------------------------------------------------------------
|
||||
public:
|
||||
virtual void assign ( size_t n, const gxstring &val);
|
||||
virtual void clear ( void );
|
||||
virtual iterator erase ( iterator pos );
|
||||
virtual gxstring & at ( size_t uiIndex );
|
||||
virtual const gxstring & at ( size_t uiIndex ) const;
|
||||
virtual gxstring & back ( void );
|
||||
virtual const gxstring & back ( void ) const;
|
||||
virtual iterator begin ( void );
|
||||
virtual const_iterator begin ( void ) const;
|
||||
virtual size_t capacity ( void ) const;
|
||||
virtual iterator end ( void );
|
||||
virtual const_iterator end ( void ) const;
|
||||
virtual gxstring & front ( void );
|
||||
virtual const gxstring & front ( void ) const;
|
||||
virtual size_t max_size ( void ) const;
|
||||
virtual size_t size ( void ) const;
|
||||
virtual iterator insert ( iterator pos, const gxstring &str );
|
||||
virtual bool empty ( void ) const;
|
||||
virtual void pop_back ( void );
|
||||
virtual void push_back ( const gxstring &str );
|
||||
virtual void resize ( size_t uiSize, const gxstring &str = gxstring() );
|
||||
virtual void reserve ( size_t uiSize );
|
||||
|
||||
// Do not use the methods below - they only exist for
|
||||
// backwards compatibility
|
||||
virtual gxstring_vector & assign ( const gxstring_vector &obj );
|
||||
virtual void erase ( size_t uiIndex );
|
||||
virtual void insert ( size_t uiIndex, const gxstring &str );
|
||||
|
||||
|
||||
// Operators
|
||||
// ---------------------------------------------------------------------------
|
||||
public:
|
||||
gxstring_vector & operator = ( const gxstring_vector &obj );
|
||||
gxstring & operator [] ( size_t uiIndex );
|
||||
const gxstring & operator [] ( size_t uiIndex ) const;
|
||||
void operator delete ( void *pWhere );
|
||||
void * operator new ( size_t uiSize );
|
||||
|
||||
// Member
|
||||
// ---------------------------------------------------------------------------
|
||||
private:
|
||||
std::vector<gxstring, std::allocator<gxstring> > * const _pv;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
#else
|
||||
# error No known support for shared libraries
|
||||
#endif
|
||||
|
||||
#pragma pack(pop)
|
||||
|
37
PrintS/camera/Galaxy/include/GalaxyException.h
Normal file
37
PrintS/camera/Galaxy/include/GalaxyException.h
Normal file
@ -0,0 +1,37 @@
|
||||
//------------------------------------------------------------------------
|
||||
/**
|
||||
\file GalaxyException.h
|
||||
\brief GXIAPICPP's exception class
|
||||
\Date 2016-8-09
|
||||
\Version 1.1.1608.9091
|
||||
*/
|
||||
//------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#pragma warning(disable: 4275) ///< non - DLL-interface classkey 'identifier' used as base for DLL-interface classkey 'identifier'
|
||||
#include <iostream>
|
||||
#include "GXStringCPP.h"
|
||||
using namespace GxIAPICPP;
|
||||
|
||||
class GXIAPICPP_API CGalaxyException:public std::runtime_error
|
||||
{
|
||||
public:
|
||||
///Constructor
|
||||
CGalaxyException(int emErrorCode,const GxIAPICPP::gxstring& strDescription);
|
||||
|
||||
///Destructor
|
||||
virtual ~CGalaxyException(void) throw();
|
||||
|
||||
///Get exception message
|
||||
virtual const char * what() const throw();
|
||||
|
||||
///Get error code
|
||||
int GetErrorCode();
|
||||
private:
|
||||
int m_emErrorCode; ///< The error code
|
||||
GxIAPICPP::gxstring m_strDescription; ///< The stored message string
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
37
PrintS/camera/Galaxy/include/GalaxyIncludes.h
Normal file
37
PrintS/camera/Galaxy/include/GalaxyIncludes.h
Normal file
@ -0,0 +1,37 @@
|
||||
//------------------------------------------------------------------------
|
||||
/**
|
||||
\file GalaxyIncludes.h
|
||||
\brief Master include for GxIAPICPP
|
||||
\Date 2016-8-09
|
||||
\Version 1.1.1608.9091
|
||||
*/
|
||||
//------------------------------------------------------------------------
|
||||
#pragma once
|
||||
|
||||
#include "GXIAPIBase.h"
|
||||
#include "GXSmartPtr.h"
|
||||
#include "GalaxyException.h"
|
||||
|
||||
#include "IGXFactory.h"
|
||||
#include "GXDeviceInfo.h"
|
||||
#include "IGXDevice.h"
|
||||
#include "IDeviceOfflineEventHandler.h"
|
||||
|
||||
#include "IGXFeatureControl.h"
|
||||
#include "IIntFeature.h"
|
||||
#include "IFloatFeature.h"
|
||||
#include "IEnumFeature.h"
|
||||
#include "IBoolFeature.h"
|
||||
#include "IStringFeature.h"
|
||||
#include "ICommandFeature.h"
|
||||
#include "IRegisterFeature.h"
|
||||
#include "IFeatureEventHandler.h"
|
||||
|
||||
#include "IGXStream.h"
|
||||
#include "IImageData.h"
|
||||
#include "IImageProcessConfig.h"
|
||||
#include "ICaptureEventHandler.h"
|
||||
|
||||
#include "GXStringCPP.h"
|
||||
#include "GXStringVector.h"
|
||||
#include "GXDeviceInfoVector.h"
|
43
PrintS/camera/Galaxy/include/IBoolFeature.h
Normal file
43
PrintS/camera/Galaxy/include/IBoolFeature.h
Normal file
@ -0,0 +1,43 @@
|
||||
//------------------------------------------------------------------------
|
||||
/**
|
||||
\file IBoolFeature.h
|
||||
\brief Definition of interface IBoolFeature
|
||||
\Date 2016-8-09
|
||||
\Version 1.1.1608.9091
|
||||
*/
|
||||
//------------------------------------------------------------------------
|
||||
#pragma once
|
||||
|
||||
#include "GXIAPIBase.h"
|
||||
#include "GXSmartPtr.h"
|
||||
|
||||
class GXIAPICPP_API IBoolFeature
|
||||
{
|
||||
public:
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Destructor
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual ~IBoolFeature(){};
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Get node value
|
||||
\return The value read
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual bool GetValue() = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Set node value
|
||||
\param bValue[in] The value to set
|
||||
\return void
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual void SetValue(bool bValue) = 0;
|
||||
};
|
||||
|
||||
template class GXIAPICPP_API GXSmartPtr<IBoolFeature>;
|
||||
typedef GXSmartPtr<IBoolFeature> CBoolFeaturePointer;
|
40
PrintS/camera/Galaxy/include/ICaptureEventHandler.h
Normal file
40
PrintS/camera/Galaxy/include/ICaptureEventHandler.h
Normal file
@ -0,0 +1,40 @@
|
||||
//------------------------------------------------------------------------
|
||||
/**
|
||||
\file ICaptureEventHandler.h
|
||||
\brief Contains the image event handler base class.
|
||||
\Date 2016-8-09
|
||||
\Version 1.1.1608.9091
|
||||
*/
|
||||
//------------------------------------------------------------------------
|
||||
#ifndef GX_CAPUTRE_EVENT_HANDLER_H
|
||||
#define GX_CAPUTRE_EVENT_HANDLER_H
|
||||
#include "IImageData.h"
|
||||
|
||||
|
||||
class ICaptureEventHandler
|
||||
{
|
||||
public:
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Destructor
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual ~ICaptureEventHandler(void){};
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief This method is called when an image has been grabbed.
|
||||
Only very short processing tasks can be performed by this method. Otherwise, the event notification will block the
|
||||
receiving of images.
|
||||
|
||||
The status of the grab needs to be checked before accessing The image data.
|
||||
See IImageData::GetStatus ,for more information.
|
||||
|
||||
\param[in] objImageDataPointer The image data.
|
||||
\param[in] pUserParam The user param, it has been registered in CGXStream::RegisterCaptureCallback by user.
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual void DoOnImageCaptured(CImageDataPointer& objImageDataPointer, void* pUserParam) = 0;
|
||||
};
|
||||
|
||||
#endif //GX_CAPUTRE_EVENT_HANDLER_H
|
34
PrintS/camera/Galaxy/include/ICommandFeature.h
Normal file
34
PrintS/camera/Galaxy/include/ICommandFeature.h
Normal file
@ -0,0 +1,34 @@
|
||||
//------------------------------------------------------------------------
|
||||
/**
|
||||
\file ICommandFeature.h
|
||||
\brief Definition of ICommand interface
|
||||
\Date 2016-8-09
|
||||
\Version 1.1.1608.9091
|
||||
*/
|
||||
//------------------------------------------------------------------------
|
||||
#pragma once
|
||||
|
||||
#include "GXIAPIBase.h"
|
||||
#include "GXSmartPtr.h"
|
||||
|
||||
class GXIAPICPP_API ICommandFeature
|
||||
{
|
||||
public:
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Destructor
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual ~ICommandFeature(){};
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Execute the command
|
||||
\return void
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual void Execute() = 0;
|
||||
};
|
||||
|
||||
template class GXIAPICPP_API GXSmartPtr<ICommandFeature>;
|
||||
typedef GXSmartPtr<ICommandFeature> CCommandFeaturePointer;
|
32
PrintS/camera/Galaxy/include/IDeviceOfflineEventHandler.h
Normal file
32
PrintS/camera/Galaxy/include/IDeviceOfflineEventHandler.h
Normal file
@ -0,0 +1,32 @@
|
||||
//------------------------------------------------------------------------
|
||||
/**
|
||||
\file IDeviceOfflineEventHandler.h
|
||||
\brief Contains the device off-line event handler base class.
|
||||
\Date 2016-8-09
|
||||
\Version 1.1.1608.9091
|
||||
*/
|
||||
//------------------------------------------------------------------------
|
||||
|
||||
#ifndef GX_DEVICE_OFFLINE_EVENT_HANDLER_H
|
||||
#define GX_DEVICE_OFFLINE_EVENT_HANDLER_H
|
||||
|
||||
|
||||
class IDeviceOfflineEventHandler
|
||||
{
|
||||
public:
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Destructor
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual ~IDeviceOfflineEventHandler(void){};
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief This method is called when the device was off-line.
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual void DoOnDeviceOfflineEvent(void* pUserParam) = 0;
|
||||
};
|
||||
|
||||
#endif //GX_DEVICE_OFFLINE_EVENT_HANDLER_H
|
50
PrintS/camera/Galaxy/include/IEnumFeature.h
Normal file
50
PrintS/camera/Galaxy/include/IEnumFeature.h
Normal file
@ -0,0 +1,50 @@
|
||||
//------------------------------------------------------------------------
|
||||
/**
|
||||
\file IEnumFeature.h
|
||||
\brief Definition of interface IEnumFeature
|
||||
\Date 2016-8-09
|
||||
\Version 1.1.1608.9091
|
||||
*/
|
||||
//------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#include "GXStringCPP.h"
|
||||
#include "GXStringVector.h"
|
||||
#include "GXIAPIBase.h"
|
||||
#include "GXSmartPtr.h"
|
||||
|
||||
|
||||
class GXIAPICPP_API IEnumFeature
|
||||
{
|
||||
public:
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Destructor
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual ~IEnumFeature(){};
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Get list of symbolic Values
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring_vector GetEnumEntryList() = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Get the current value of the enum feature
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetValue() = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Set the current value of the enum feature
|
||||
\param [in]strValue the value write
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual void SetValue(const GxIAPICPP::gxstring& strValue) = 0;
|
||||
};
|
||||
|
||||
template class GXIAPICPP_API GXSmartPtr<IEnumFeature>;
|
||||
typedef GXSmartPtr<IEnumFeature> CEnumFeaturePointer;
|
35
PrintS/camera/Galaxy/include/IFeatureEventHandler.h
Normal file
35
PrintS/camera/Galaxy/include/IFeatureEventHandler.h
Normal file
@ -0,0 +1,35 @@
|
||||
//------------------------------------------------------------------------
|
||||
/**
|
||||
\file IFeatureEventHandler.h
|
||||
\brief Contains the feature event handler base class.
|
||||
\Date 2016-8-09
|
||||
\Version 1.1.1608.9091
|
||||
*/
|
||||
//------------------------------------------------------------------------
|
||||
#ifndef GX_FEATURE_EVENT_HANDLER_H
|
||||
#define GX_FEATURE_EVENT_HANDLER_H
|
||||
#include "GXStringCPP.h"
|
||||
|
||||
class IFeatureEventHandler
|
||||
{
|
||||
public:
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Destructor
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual ~IFeatureEventHandler(void){};
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief This method is called when a camera event has been received.
|
||||
Only very short processing tasks can be performed in this function. Otherwise, the event notification will block the
|
||||
receiving of events.
|
||||
\param[in] strFeatureName The feature name registered.
|
||||
\param[in] pUserParam The user param passed when registering for the event. It can be used to distinguish between different events.
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual void DoOnFeatureEvent(const GxIAPICPP::gxstring& strFeatureName, void* pUserParam) = 0;
|
||||
};
|
||||
|
||||
#endif //GX_FEATURE_EVENT_HANDLER_H
|
76
PrintS/camera/Galaxy/include/IFloatFeature.h
Normal file
76
PrintS/camera/Galaxy/include/IFloatFeature.h
Normal file
@ -0,0 +1,76 @@
|
||||
//------------------------------------------------------------------------
|
||||
/**
|
||||
\file IFloatFeature.h
|
||||
\brief Definition of the IFloatFeature interface
|
||||
\Date 2016-8-09
|
||||
\Version 1.1.1608.9091
|
||||
*/
|
||||
//------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#include "GXStringCPP.h"
|
||||
#include "GXIAPIBase.h"
|
||||
#include "GXSmartPtr.h"
|
||||
|
||||
class GXIAPICPP_API IFloatFeature
|
||||
{
|
||||
public:
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Destructor
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual ~IFloatFeature(){};
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Get minimum value allowed
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual double GetMin() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Get maximum value allowed
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual double GetMax() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief True if the float has a constant increment
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual bool HasInc() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Get the constant increment if there is any
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual double GetInc() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Get the physical unit name
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetUnit() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Get feature value
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual double GetValue() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Set feature value
|
||||
\return void
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual void SetValue(double dValue) = 0;
|
||||
};
|
||||
|
||||
template class GXIAPICPP_API GXSmartPtr<IFloatFeature>;
|
||||
typedef GXSmartPtr<IFloatFeature> CFloatFeaturePointer;
|
165
PrintS/camera/Galaxy/include/IGXDevice.h
Normal file
165
PrintS/camera/Galaxy/include/IGXDevice.h
Normal file
@ -0,0 +1,165 @@
|
||||
//------------------------------------------------------------------------
|
||||
/**
|
||||
\file IGXDevice.h
|
||||
\brief Definition of the IGXDevice interface
|
||||
\Date 2018-11-08
|
||||
\Version 1.1.1811.9081
|
||||
*/
|
||||
//------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#include "GXIAPIBase.h"
|
||||
#include "GXDeviceInfo.h"
|
||||
#include "GXSmartPtr.h"
|
||||
#include "IDeviceOfflineEventHandler.h"
|
||||
#include "GXStringCPP.h"
|
||||
#include "IGXStream.h"
|
||||
#include "IGXFeatureControl.h"
|
||||
#include "IImageProcessConfig.h"
|
||||
|
||||
class GXIAPICPP_API IGXDevice
|
||||
{
|
||||
|
||||
public:
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Destructor
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual ~IGXDevice(){};
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Returns info object which stores the informations of the device, such as the device's name.
|
||||
\return A reference to the device info object
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual const CGXDeviceInfo& GetDeviceInfo() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Returns the number of the stream object that the camera object provides.
|
||||
\return The number of stream object
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual uint32_t GetStreamCount() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Returns a CGXStreamPointer object
|
||||
Stream grabbers (CGXStreamPointer) are the objects used for grabbing images
|
||||
from a camera device. A camera device might be able to send image data
|
||||
over more than one logical channel which is also called stream. A stream grabber grabs
|
||||
data from one single stream.
|
||||
|
||||
\param [in]nStreamID The number of the grabber to return
|
||||
\return A CGXStreamPointer object to a stream grabber
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual CGXStreamPointer OpenStream(uint32_t nStreamID) = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Returns the set of related local device parameters.
|
||||
\return A CGXFeatureControlPointer object to a feature control.
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual CGXFeatureControlPointer GetFeatureControl() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Returns the set of related remote device parameters.
|
||||
\return A CGXFeatureControlPointer object to a feature control.
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual CGXFeatureControlPointer GetRemoteFeatureControl() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Clear the receiving buffer list for the remote device's event
|
||||
\return void
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual void FlushEvent() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Get the current size of receiving buffer list for the remote device's event
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual uint32_t GetEventNumInQueue() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Register the device's off-line event
|
||||
\param pUserParam[in] The user param can be used to distinguish different call back events
|
||||
\param callBackFun[in] The call back handler pointer; that must be inherited from IDeviceOfflineEventHandler
|
||||
\return The call back handle
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GX_DEVICE_OFFLINE_CALLBACK_HANDLE RegisterDeviceOfflineCallback(IDeviceOfflineEventHandler* pEventHandler, void* pUserParam) = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Unregister the device's off-line event
|
||||
\param hCallback[in] The call back handle
|
||||
\return void
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual void UnregisterDeviceOfflineCallback(GX_DEVICE_OFFLINE_CALLBACK_HANDLE hCallback) = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Export the current feature values of a device to a config file
|
||||
\param [in]strFilePath The export file path
|
||||
\return void
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual void ExportConfigFile(const GxIAPICPP::gxstring& strFilePath) = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Import a config file to the device
|
||||
\param [in]strFilePath The import file path
|
||||
\return void
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual void ImportConfigFile(const GxIAPICPP::gxstring& strFilePath) = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Close the device
|
||||
\return void
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual void Close() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Returns a CImageProcessConfigPointer object,
|
||||
which contains a set of set parameters for image processing. e.g. IImageData::ImageProcess
|
||||
\return A CImageProcessConfigPointer object
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual CImageProcessConfigPointer CreateImageProcessConfig() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Export the current feature values of a device to a config file
|
||||
\param [in]strFilePath The export file path
|
||||
\return void
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual void ExportConfigFileW(const wchar_t* pchWFilePath) = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Import a config file to the device
|
||||
\param [in]strFilePath The import file path
|
||||
\return void
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual void ImportConfigFileW(const wchar_t* pchWFilePath) = 0;
|
||||
};
|
||||
|
||||
template class GXIAPICPP_API GXSmartPtr<IGXDevice>;
|
||||
typedef GXSmartPtr<IGXDevice> CGXDevicePointer;
|
158
PrintS/camera/Galaxy/include/IGXDeviceInfo.h
Normal file
158
PrintS/camera/Galaxy/include/IGXDeviceInfo.h
Normal file
@ -0,0 +1,158 @@
|
||||
//------------------------------------------------------------------------
|
||||
/**
|
||||
\file IGXDeviceInfo.h
|
||||
\brief Holds information about an enumerated device
|
||||
\Date 2016-8-09
|
||||
\Version 1.1.1608.9091
|
||||
*/
|
||||
//------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#include "GXIAPIBase.h"
|
||||
#include "GXStringCPP.h"
|
||||
|
||||
class GXIAPICPP_API IGXDeviceInfo
|
||||
{
|
||||
public:
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Destructor
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual ~IGXDeviceInfo(){};
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the vendor name of the device.
|
||||
\return The vendor name
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetVendorName() const = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the model name of the device.
|
||||
\return The model name
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetModelName() const = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the serial number of the device.
|
||||
\return The serial number
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetSN() const = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the display name of the device.
|
||||
\return The display name
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetDisplayName() const = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the device id of the device.
|
||||
\return The device id
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetDeviceID() const = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the user defined name of the device if present.
|
||||
\return The user defined name
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetUserID() const = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the current access status of the device(for example, read only\read and write\no access).
|
||||
\return The current access status
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GX_ACCESS_STATUS GetAccessStatus() const = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the class of the device(for example, USB2.0\Gige\USB3.0).
|
||||
\return The device class
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GX_DEVICE_CLASS_LIST GetDeviceClass() const = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the MAC address of the device if present.
|
||||
\return The MAC address
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetMAC() const = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the IP address of the device if present.
|
||||
\return The IP address
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetIP() const = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the subnet mask address of the device if present.
|
||||
\return The subnet mask
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetSubnetMask() const = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the gateway of the device if present.
|
||||
\return The gateway
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetGateway() const = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the NIC's MAC address of the device if present.
|
||||
\return The NIC's MAC address
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetNICMAC() const = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the NIC's IP address of the device if present.
|
||||
\return The NIC's IP address
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetNICIP() const = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the NIC's subnet mask address of the device if present.
|
||||
\return The NIC's subnet mask
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetNICSubnetMask() const = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the NIC's gateway of the device if present.
|
||||
\return The NIC's gateway
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetNICGateway() const = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the NIC's description of the device if present.
|
||||
\return The NIC's description
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetNICDescription() const = 0;
|
||||
};
|
165
PrintS/camera/Galaxy/include/IGXFactory.h
Normal file
165
PrintS/camera/Galaxy/include/IGXFactory.h
Normal file
@ -0,0 +1,165 @@
|
||||
//------------------------------------------------------------------------
|
||||
/**
|
||||
\file IGXFactory.h
|
||||
\brief Definition of IGXFactory class. Initialize library, enumerates and open devices.
|
||||
\Date 2018-9-04
|
||||
\Version 1.1.1809.9041
|
||||
*/
|
||||
//------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#include "GXIAPIBase.h"
|
||||
#include "GXDeviceInfo.h"
|
||||
#include "GXSmartPtr.h"
|
||||
#include "IGXDevice.h"
|
||||
#include "GXStringCPP.h"
|
||||
#include "GXDeviceInfoVector.h"
|
||||
|
||||
class GXIAPICPP_API IGXFactory
|
||||
{
|
||||
protected:
|
||||
|
||||
///Constructor
|
||||
IGXFactory(){}
|
||||
|
||||
///Destructor
|
||||
virtual ~IGXFactory(){}
|
||||
|
||||
public:
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Get the static instance object of IGXFactory
|
||||
\return The static instance object of IGXFactory
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
static IGXFactory& GetInstance();
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Initializes the GxIAPICPP runtime system
|
||||
You must call Init before calling any other functions.
|
||||
When finished you must call Uninit to free up all resources used by GxIAPICPP.
|
||||
\return void
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual void Init() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Frees resources allocated by the GxIAPICPP runtime system.
|
||||
\return void
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual void Uninit() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieve a list of available devices. If GigE cameras are connected, this can enumerate all GigE camera devices in the same subnet.
|
||||
\param nTimeout[in] Timeout for the waits in ms.
|
||||
\param vectorDeviceInfo[int,out] A list of available devices
|
||||
\return void
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual void UpdateDeviceList(uint32_t nTimeout, GxIAPICPP::gxdeviceinfo_vector& vectorDeviceInfo) = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieve a list of available devices. If GigE cameras are connected, this can enumerate all GigE camera devices in all subnets.
|
||||
\param nTimeout[in] Timeout for the waits in ms.
|
||||
\param vectorDeviceInfo[int,out] A list of available devices
|
||||
\return void
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual void UpdateAllDeviceList(uint32_t nTimeout, GxIAPICPP::gxdeviceinfo_vector& vectorDeviceInfo) = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Open device by IP address, if present
|
||||
\param strIP[in] IP address
|
||||
\param emAccessMode[in] The access mode
|
||||
\return A smart pointer object of IGXDevice
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual CGXDevicePointer OpenDeviceByIP(const GxIAPICPP::gxstring& strIP, GX_ACCESS_MODE emAccessMode) = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Open device by MAC address, if present
|
||||
\param strIP[in] MAC address
|
||||
\param emAccessMode[in] The access mode
|
||||
\return A smart pointer object of IGXDevice
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual CGXDevicePointer OpenDeviceByMAC(const GxIAPICPP::gxstring& strMAC, GX_ACCESS_MODE emAccessMode) = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Open device by serials number
|
||||
\param strIP[in] Serials number
|
||||
\param emAccessMode[in] The access mode
|
||||
\return A smart pointer object of IGXDevice
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual CGXDevicePointer OpenDeviceBySN(const GxIAPICPP::gxstring& strSN, GX_ACCESS_MODE emAccessMode) = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Open device by user defined name, if present
|
||||
\param strIP[in] The user defined name
|
||||
\param emAccessMode[in] The access mode
|
||||
\return A smart pointer object of IGXDevice
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual CGXDevicePointer OpenDeviceByUserID(const GxIAPICPP::gxstring& strUserID, GX_ACCESS_MODE emAccessMode) = 0;
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Set Device's Static IP Address
|
||||
\param[in] strDevcieMacAddress Device's MAC Address
|
||||
\param[in] emIpConfigMode IP Configure Mode(Static IP/DHCP/LLA)
|
||||
\param[in] strIPAddress IP Address
|
||||
\param[in] strSubnetMask Subnet Mask
|
||||
\param[in] strDefaultGateway Default Gateway
|
||||
\param[in] strUserID User's Name
|
||||
|
||||
\retrun void
|
||||
*/
|
||||
// ---------------------------------------------------------------------------
|
||||
virtual void GigEIpConfiguration(const GxIAPICPP::gxstring& strDeviceMacAddress,
|
||||
GX_IP_CONFIGURE_MODE emIpConfigMode,
|
||||
const GxIAPICPP::gxstring& strIpAddress,
|
||||
const GxIAPICPP::gxstring& strSubnetMask,
|
||||
const GxIAPICPP::gxstring& strDefaultGateway,
|
||||
const GxIAPICPP::gxstring& strUserID) = 0;
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
/**
|
||||
\brief ForceIP
|
||||
\param[in] strDevcieMacAddress Device's MAC Address
|
||||
\param[in] strIPAddress Ip Address
|
||||
\param[in] strSubnetMask Subnet Mask
|
||||
\param[in] strDefaultGateway Default Gateway
|
||||
|
||||
\retrun void
|
||||
*/
|
||||
// ---------------------------------------------------------------------------
|
||||
virtual void GigEForceIp(const GxIAPICPP::gxstring& pszDeviceMacAddress,
|
||||
const GxIAPICPP::gxstring& strIpAddress,
|
||||
const GxIAPICPP::gxstring& strSubnetMask,
|
||||
const GxIAPICPP::gxstring& strDefaultGateway) = 0;
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
/**
|
||||
\brief reset/reconnect Device
|
||||
\param[in] pszDevcieMacAddress Device's MAC Address
|
||||
\param[in] ui32FeatureInfo reset Mode
|
||||
|
||||
\retrun ÎÞ
|
||||
*/
|
||||
// ---------------------------------------------------------------------------
|
||||
virtual void GigEResetDevice(const GxIAPICPP::gxstring& strDeviceMacAddress, GX_RESET_DEVICE_MODE ui32FeatureInfo) = 0;
|
||||
|
||||
private:
|
||||
IGXFactory& operator=(const IGXFactory&);
|
||||
IGXFactory(const IGXFactory&);
|
||||
};
|
||||
|
196
PrintS/camera/Galaxy/include/IGXFeatureControl.h
Normal file
196
PrintS/camera/Galaxy/include/IGXFeatureControl.h
Normal file
@ -0,0 +1,196 @@
|
||||
//------------------------------------------------------------------------
|
||||
/**
|
||||
\file IGXFeatureControl.h
|
||||
\brief Definition of IGXFeatureControl class.
|
||||
\Date 2016-8-09
|
||||
\Version 1.1.1608.9091
|
||||
*/
|
||||
//------------------------------------------------------------------------
|
||||
#ifndef IGXFEATURE_CONTROL_H
|
||||
#define IGXFEATURE_CONTROL_H
|
||||
|
||||
#include "GXIAPIBase.h"
|
||||
#include "GXStringCPP.h"
|
||||
#include "GXStringVector.h"
|
||||
|
||||
#include "GXSmartPtr.h"
|
||||
#include "IBoolFeature.h"
|
||||
#include "IFloatFeature.h"
|
||||
#include "IIntFeature.h"
|
||||
#include "IEnumFeature.h"
|
||||
#include "IStringFeature.h"
|
||||
#include "IRegisterFeature.h"
|
||||
#include "ICommandFeature.h"
|
||||
#include "IFeatureEventHandler.h"
|
||||
|
||||
class GXIAPICPP_API IGXFeatureControl
|
||||
{
|
||||
|
||||
public:
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Destructor
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual ~IGXFeatureControl(){};
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves all feature names in the feature control
|
||||
\param vectorFeatureNameList[int,out] A list of feature name
|
||||
\return void
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual void GetFeatureNameList(GxIAPICPP::gxstring_vector& vectorFeatureNameList) = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Get the feature type of the given feature name
|
||||
\param strFeatureName[in] The feature name
|
||||
\return The feature type
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GX_FEATURE_TYPE GetFeatureType(const GxIAPICPP::gxstring& strFeatureName) = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Checks if a feature is implemented
|
||||
\param strFeatureName[in] The feature name
|
||||
\return True if the feature was implemented
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual bool IsImplemented(const GxIAPICPP::gxstring& strFeatureName) = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Checks if a feature is readable
|
||||
\param strFeatureName[in] The feature name
|
||||
\return True if the feature was readable
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual bool IsReadable(const GxIAPICPP::gxstring& strFeatureName) = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Checks if a feature is writable
|
||||
\param strFeatureName[in] The feature name
|
||||
\return True if the feature was writable
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual bool IsWritable(const GxIAPICPP::gxstring& strFeatureName) = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Read specified register value
|
||||
\param [in]ui64Address Register Address
|
||||
\param [out]pBuffer return register value,It can not be NULL
|
||||
\param [in, out]piSize [in]Buffer size of the user application
|
||||
[out]After reading the value of the register successfully, return the actual size.
|
||||
|
||||
\return void
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual void ReadPort(uint64_t uiAddress, void *pBuffer, size_t *piSize) = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Write specified register value
|
||||
\param [in]ui64Address Register Address
|
||||
\param [out]pBuffer Write register value,It can not be NULL
|
||||
\param [in]piSize [in]Buffer size of the user application
|
||||
|
||||
\return void
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual void WritePort(uint64_t uiAddress, const void *pBuffer, size_t *piSize) = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Get a int feature control, associated with the given feature name
|
||||
\param strFeatureName[in] The feature name
|
||||
\return A int feature control
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual CIntFeaturePointer GetIntFeature(const GxIAPICPP::gxstring& strFeatureName) = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Get a float feature control, associated with the given feature name
|
||||
\param strFeatureName[in] The feature name
|
||||
\return A float feature control
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual CFloatFeaturePointer GetFloatFeature(const GxIAPICPP::gxstring& strFeatureName) = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Get a enum feature control, associated with the given feature name
|
||||
\param strFeatureName[in] The feature name
|
||||
\return A enum feature control
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual CEnumFeaturePointer GetEnumFeature(const GxIAPICPP::gxstring& strFeatureName) = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Get a bool feature control, associated with the given feature name
|
||||
\param strFeatureName[in] The feature name
|
||||
\return A bool feature control
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual CBoolFeaturePointer GetBoolFeature(const GxIAPICPP::gxstring& strFeatureName) = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Get a string feature control, associated with the given feature name
|
||||
\param strFeatureName[in] The feature name
|
||||
\return A string feature control
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual CStringFeaturePointer GetStringFeature(const GxIAPICPP::gxstring& strFeatureName) = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Get a command feature control, associated with the given feature name
|
||||
\param strFeatureName[in] The feature name
|
||||
\return A command feature control
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual CCommandFeaturePointer GetCommandFeature(const GxIAPICPP::gxstring& strFeatureName) = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Get a register feature control, associated with the given feature name
|
||||
\param strFeatureName[in] The feature name
|
||||
\return A register feature control
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual CRegisterFeaturePointer GetRegisterFeature(const GxIAPICPP::gxstring& strFeatureName) = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Register feature event call back
|
||||
\param strFeatureName[in] The feature name
|
||||
\param pUserParam[in] The user param
|
||||
\param callBackFun[in] The call back handler pointer; that must be inherited from IFeatureEventHandler
|
||||
\return The call back handle
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GX_FEATURE_CALLBACK_HANDLE RegisterFeatureCallback(const GxIAPICPP::gxstring& strFeatureName,
|
||||
IFeatureEventHandler* pEventHandler, void* pUserParam) = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Unregister feature event call back
|
||||
\param hCallback[in] The call back handle
|
||||
\return void
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual void UnregisterFeatureCallback(GX_FEATURE_CALLBACK_HANDLE hCallback) = 0;
|
||||
|
||||
};
|
||||
|
||||
template class GXIAPICPP_API GXSmartPtr<IGXFeatureControl>;
|
||||
typedef GXSmartPtr<IGXFeatureControl> CGXFeatureControlPointer;
|
||||
|
||||
#endif //IGXFEATURE_CONTROL_H
|
119
PrintS/camera/Galaxy/include/IGXStream.h
Normal file
119
PrintS/camera/Galaxy/include/IGXStream.h
Normal file
@ -0,0 +1,119 @@
|
||||
//------------------------------------------------------------------------
|
||||
/**
|
||||
\file IGXStream.h
|
||||
\brief Definition of the IGXDevice interface
|
||||
\Date 2019-8-15
|
||||
\Version 1.1.1908.9151
|
||||
*/
|
||||
//------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#include "GXIAPIBase.h"
|
||||
#include "GXSmartPtr.h"
|
||||
#include "IGXFeatureControl.h"
|
||||
#include "IImageData.h"
|
||||
#include "ICaptureEventHandler.h"
|
||||
|
||||
class GXIAPICPP_API IGXStream
|
||||
{
|
||||
public:
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Destructor
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual ~IGXStream(){};
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Start the grab thread, and allocate resource for grab.
|
||||
\return void
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual void StartGrab() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Stop the grab thread, and release the resource for grab.
|
||||
\return void
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual void StopGrab() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Register capture call back for a new buffer event.
|
||||
When a buffer is filled, the grab thread will call the ICaptureEventHandler* , pointed to the user method, registered by user.
|
||||
Only very short processing tasks can be performed in this function. Otherwise, the event notification will block the
|
||||
receiving of images.
|
||||
\param pUserParam[in] The user param
|
||||
\param pEventHandler[in] The call back handler pointer; ; that must be inherited from ICaptureEventHandler
|
||||
\return void
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual void RegisterCaptureCallback(ICaptureEventHandler* pEventHandler, void *pUserParam) = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Unregister capture call back
|
||||
\return void
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual void UnregisterCaptureCallback() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Get one image. Different from the call back way, User can call this function to get one image at one time.
|
||||
If you have registered capture call back, you can't use GetImage at the same time.
|
||||
\param nTimeout[in] The timeout waits in ms.
|
||||
\return A smart pointer object CImageDataPointer
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual CImageDataPointer GetImage(uint32_t nTimeout) = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Returns the set of camera related stream parameters.
|
||||
\return A CGXFeatureControlPointer object to a feature control.
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual CGXFeatureControlPointer GetFeatureControl() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief when underlying thread receives data from a device, it will fill a buffer from the receiving buffer pool.
|
||||
when a buffer is filled it is removed from the pool and if successfully filled, it is put into the output buffer queue.
|
||||
The upper thread get a buffer from the output buffer queue and call user method back,
|
||||
after the user method returned, the upper thread queue the buffer back to the receiving buffer pool.
|
||||
Flush queue means to flush the output buffer queue.
|
||||
\return void
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual void FlushQueue() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Close stream
|
||||
\return void
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual void Close() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Set Acqusition Buffer Number
|
||||
\return void
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual void SetAcqusitionBufferNumber(uint64_t nBufferNum) = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Get the Optimal Packet Size
|
||||
\return uint32_t
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual uint32_t GetOptimalPacketSize(void) = 0;
|
||||
};
|
||||
|
||||
template class GXIAPICPP_API GXSmartPtr<IGXStream>;
|
||||
typedef GXSmartPtr<IGXStream> CGXStreamPointer;
|
121
PrintS/camera/Galaxy/include/IImageData.h
Normal file
121
PrintS/camera/Galaxy/include/IImageData.h
Normal file
@ -0,0 +1,121 @@
|
||||
//------------------------------------------------------------------------
|
||||
/**
|
||||
\file IImageData.h
|
||||
\brief Definition of the IIntFeature interface
|
||||
\Date 2016-8-09
|
||||
\Version 1.1.1608.9091
|
||||
*/
|
||||
//------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#include "GXIAPIBase.h"
|
||||
#include "GXSmartPtr.h"
|
||||
#include "IImageProcessConfig.h"
|
||||
|
||||
class GXIAPICPP_API IImageData
|
||||
{
|
||||
public:
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Destructor
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual ~IImageData(){};
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Get the status of the image, referring to GX_FRAME_STATUS_LIST
|
||||
\return the status of the image, referring to GX_FRAME_STATUS_LIST
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GX_FRAME_STATUS_LIST GetStatus() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Get the payload size of the image
|
||||
\return The payload size of the image
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual uint64_t GetPayloadSize() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Get the width of the image
|
||||
\return The width of the image
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual uint64_t GetWidth() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Get the height of the image
|
||||
\return The height of the image
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual uint64_t GetHeight() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Get the pixel format of the image
|
||||
\return The pixel format of the image
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual GX_PIXEL_FORMAT_ENTRY GetPixelFormat() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Get the frame id of the image
|
||||
\return The frame id of the image
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual uint64_t GetFrameID() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Get the time stamp of the image
|
||||
\return The the time stamp of the image
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual uint64_t GetTimeStamp() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Get the raw data image buffer pointer address
|
||||
\return The raw data image buffer pointer address
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual void* GetBuffer() =0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Special for more than 8 bits data image, To choose a segment contain 8 bits data
|
||||
\param [in]emValidBits refer to GX_VALID_BIT_LIST
|
||||
\return The 8 bits data buffer pointer address
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual void* ConvertToRaw8(GX_VALID_BIT_LIST emValidBits) = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Convert the raw data to RGB24 data
|
||||
\param [in]emValidBits To choose a segment contain 8 bits to convert
|
||||
\param [in]emConvertType The method for image interpolation
|
||||
\param bFlip The flip mode for image interpolation
|
||||
\return The RGB24 data buffer pointer address
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual void* ConvertToRGB24(GX_VALID_BIT_LIST emValidBits
|
||||
,GX_BAYER_CONVERT_TYPE_LIST emConvertType
|
||||
,bool bFlip) = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief To enhance the image effect by ImageProcess
|
||||
\param [in]objCfg A smart pointer object CImageProcessConfigPointer, contain a set of params
|
||||
\return void
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual void* ImageProcess(CImageProcessConfigPointer &objCfg) = 0;
|
||||
};
|
||||
|
||||
template class GXIAPICPP_API GXSmartPtr<IImageData>;
|
||||
typedef GXSmartPtr<IImageData> CImageDataPointer;
|
292
PrintS/camera/Galaxy/include/IImageProcessConfig.h
Normal file
292
PrintS/camera/Galaxy/include/IImageProcessConfig.h
Normal file
@ -0,0 +1,292 @@
|
||||
//------------------------------------------------------------------------
|
||||
/**
|
||||
\file IImageProcessConfig.h
|
||||
\brief Definition of the IImageProcessConfig interface
|
||||
\Date 2019-10-09
|
||||
\Version 1.1.1910.9091
|
||||
*/
|
||||
//------------------------------------------------------------------------
|
||||
#pragma once
|
||||
|
||||
class GXIAPICPP_API IImageProcessConfig
|
||||
{
|
||||
public:
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Destructor
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual ~IImageProcessConfig(){};
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Special for more than 8 bits data device, to choose 8 bits data in all the bits for image process.
|
||||
\param [in]emValidBits The segment
|
||||
\return void
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual void SetValidBit(GX_VALID_BIT_LIST emValidBits) = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief The switch of correcting defective pixel
|
||||
\param [in]bEnable True to enable; False to disable
|
||||
\return void
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual void EnableDefectivePixelCorrect(bool bEnable) = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief The switch of Sharpening
|
||||
\param [in]bEnable True to enable; False to disable
|
||||
\return void
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual void EnableSharpen(bool bEnable) = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Set sharpen value param.
|
||||
\param [in]dParam The sharpen value param
|
||||
\return void
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual void SetSharpenParam(double dParam) = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Set contrast value param.
|
||||
\param [in]nParam The contrast value param
|
||||
\return void
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual void SetContrastParam(int32_t nParam) = 0;
|
||||
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Set gamma value param.
|
||||
\param [in]dParam The gamma value param
|
||||
\return void
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual void SetGammaParam(double dParam) = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Set lightness value param.
|
||||
\param [in]nParam The lightness value param
|
||||
\return void
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual void SetLightnessParam(int32_t nParam) = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief The switch of noise reduction [Does not support the Mono camera]
|
||||
\param [in]bEnable True to enable; False to disable
|
||||
\return void
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual void EnableDenoise(bool bEnable) = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief The switch of color correction [Does not support the Mono camera]
|
||||
\param [in]bEnable True to enable; False to disable
|
||||
\return void
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual void EnableColorCorrection(bool bEnable) = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief True if enable color correction [Does not support the Mono camera]
|
||||
\return True if enable color correction
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual bool IsColorCorrection() = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Set saturation value param [Does not support the Mono camera]
|
||||
\param [in]nParam The saturation value param
|
||||
\return void
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual void SetSaturationParam(int32_t nParam) = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Set convert type of image interpolation [Does not support the Mono camera]
|
||||
\param [in]emConvertType The convert type
|
||||
\return void
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual void SetConvertType(GX_BAYER_CONVERT_TYPE_LIST emConvertType) = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief The switch of flip in image interpolation [Does not support the Mono camera]
|
||||
\param [in]bFlip If true to be flip, else not.
|
||||
\return void
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual void EnableConvertFlip(bool bFlip) = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief The switch of process accelerate, rely on hardware's supporting.
|
||||
\return void
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual void EnableAccelerate(bool bAccelerate) = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Special for more than 8 bits data image, that indicates which 8 bits should be processed.
|
||||
\return The segment bits
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual GX_VALID_BIT_LIST GetValidBit() = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief True if enable defective pixel correction
|
||||
\return True if enable defective pixel correction
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual bool IsDefectivePixelCorrect() = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief True if enable sharpen
|
||||
\return True if enable sharpen
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual bool IsSharpen() = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief True if enable process accelerate
|
||||
\return True if enable process accelerate
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual bool IsAccelerate() = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Get the current sharpen param
|
||||
\return The current sharpen param
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual double GetSharpenParam() = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Get the current contrast param
|
||||
\return The current contrast param
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual int32_t GetContrastParam() = 0;
|
||||
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Get the gamma param
|
||||
\return The the gamma param
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual double GetGammaParam() = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Get lightness param
|
||||
\return The lightness param
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual int32_t GetLightnessParam() = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief True if enable pixel reduction [Does not support the Mono camera]
|
||||
\return True if enable pixel reduction
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual bool IsDenoise() = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Get the current saturation param [Does not support the Mono camera]
|
||||
\return The the current saturation param
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual int32_t GetSaturationParam() = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Get the current convert type for image interpolation [Does not support the Mono camera]
|
||||
\return The the current convert type for image interpolation
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual GX_BAYER_CONVERT_TYPE_LIST GetConvertType() = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Get the current flip mode for image interpolation. True means to flip, False not. [Does not support the Mono camera]
|
||||
\return The the current flip mode for image interpolation. True means to flip, False not.
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual bool IsConvertFlip() = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Reset all the params to the default params.
|
||||
\return void
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual void Reset() = 0;
|
||||
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Get the current Color Correctiong mode for image processing.
|
||||
\return True means to user mode, False means to Default
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual bool IsUserSetCCParam() = 0;
|
||||
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Set whether users are allowed to set CCParam
|
||||
\param[in] bIsUser If true to allow, else not.
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual void EnableUserSetCCParam(bool bIsUserMode) = 0;
|
||||
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Set User CCParam
|
||||
\return void
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual void SetUserCCParam(COLOR_TRANSFORM_FACTOR stColorTransformFactor) = 0;
|
||||
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Get User CCParam
|
||||
\return void
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual COLOR_TRANSFORM_FACTOR GetUserCCParam() = 0;
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
template class GXIAPICPP_API GXSmartPtr<IImageProcessConfig>;
|
||||
typedef GXSmartPtr<IImageProcessConfig> CImageProcessConfigPointer;
|
59
PrintS/camera/Galaxy/include/IIntFeature.h
Normal file
59
PrintS/camera/Galaxy/include/IIntFeature.h
Normal file
@ -0,0 +1,59 @@
|
||||
//------------------------------------------------------------------------
|
||||
/**
|
||||
\file IIntFeature.h
|
||||
\brief Definition of the IIntFeature interface
|
||||
\Date 2016-8-09
|
||||
\Version 1.1.1608.9091
|
||||
*/
|
||||
//------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#include "GXIAPIBase.h"
|
||||
#include "GXSmartPtr.h"
|
||||
|
||||
class GXIAPICPP_API IIntFeature
|
||||
{
|
||||
public:
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Destructor
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual ~IIntFeature(){};
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Get the minimum value allowed
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual int64_t GetMin() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Get the maximum value allowed
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual int64_t GetMax() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Get the constant increment if there is any
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual int64_t GetInc() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Get a feature value
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual int64_t GetValue() = 0;
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
/**
|
||||
\brief Set a feature value
|
||||
*/
|
||||
//----------------------------------------------------------------------------------
|
||||
virtual void SetValue(int64_t nValue) = 0;
|
||||
};
|
||||
template class GXIAPICPP_API GXSmartPtr<IIntFeature>;
|
||||
typedef GXSmartPtr<IIntFeature> CIntFeaturePointer;
|
52
PrintS/camera/Galaxy/include/IRegisterFeature.h
Normal file
52
PrintS/camera/Galaxy/include/IRegisterFeature.h
Normal file
@ -0,0 +1,52 @@
|
||||
//------------------------------------------------------------------------
|
||||
/**
|
||||
\file IRegisterFeature.h
|
||||
\brief Definition of the IRegisterFeature interface
|
||||
\Date 2016-8-09
|
||||
\Version 1.1.1608.9091
|
||||
*/
|
||||
//------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#include "GXIAPIBase.h"
|
||||
#include "GXSmartPtr.h"
|
||||
|
||||
class GXIAPICPP_API IRegisterFeature
|
||||
{
|
||||
public:
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Destructor
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual ~IRegisterFeature(){};
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the length of the register [Bytes]
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual int64_t GetLength() = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Fills a buffer with the register's contents
|
||||
\param [in,out]pBuffer The buffer receiving the data to read
|
||||
\param [in]nLength The number of bytes to retrieve
|
||||
\return void
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual void GetBuffer(uint8_t* pBuffer, int64_t nLength) = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Set the register's contents
|
||||
\param [in]pBuffer The buffer containing the data to set
|
||||
\param [in]nLength The number of bytes in pBuffer
|
||||
\return void
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual void SetBuffer(uint8_t* pBuffer, int64_t nLength) = 0;
|
||||
};
|
||||
|
||||
template class GXIAPICPP_API GXSmartPtr<IRegisterFeature>;
|
||||
typedef GXSmartPtr<IRegisterFeature> CRegisterFeaturePointer;
|
49
PrintS/camera/Galaxy/include/IStringFeature.h
Normal file
49
PrintS/camera/Galaxy/include/IStringFeature.h
Normal file
@ -0,0 +1,49 @@
|
||||
//------------------------------------------------------------------------
|
||||
/**
|
||||
\file IStringFeature.h
|
||||
\brief Definition of the IStringFeature interface
|
||||
\Date 2016-8-09
|
||||
\Version 1.1.1608.9091
|
||||
*/
|
||||
//------------------------------------------------------------------------
|
||||
#pragma once
|
||||
#include "GXStringCPP.h"
|
||||
#include "GXIAPIBase.h"
|
||||
#include "GXSmartPtr.h"
|
||||
|
||||
class GXIAPICPP_API IStringFeature
|
||||
{
|
||||
public:
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Destructor
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual ~IStringFeature(){};
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Get a feature value
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual GxIAPICPP::gxstring GetValue() = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Set a feature value
|
||||
\param strValue[in] The value to be set
|
||||
\return void
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual void SetValue(const GxIAPICPP::gxstring& strValue) = 0;
|
||||
|
||||
//---------------------------------------------------------
|
||||
/**
|
||||
\brief Retrieves the maximum length of the string in bytes
|
||||
*/
|
||||
//---------------------------------------------------------
|
||||
virtual int64_t GetStringMaxLength() = 0;
|
||||
};
|
||||
|
||||
template class GXIAPICPP_API GXSmartPtr<IStringFeature>;
|
||||
typedef GXSmartPtr<IStringFeature> CStringFeaturePointer;
|
BIN
PrintS/camera/Galaxy/x64/AxNICCfg.dll
Normal file
BIN
PrintS/camera/Galaxy/x64/AxNICCfg.dll
Normal file
Binary file not shown.
BIN
PrintS/camera/Galaxy/x64/CLAllSerial_MD_VC120_v3_0.dll
Normal file
BIN
PrintS/camera/Galaxy/x64/CLAllSerial_MD_VC120_v3_0.dll
Normal file
Binary file not shown.
BIN
PrintS/camera/Galaxy/x64/CLProtocol_MD_VC120_v3_0.dll
Normal file
BIN
PrintS/camera/Galaxy/x64/CLProtocol_MD_VC120_v3_0.dll
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user