You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

66 lines
1.4 KiB

#ifndef BMODESETTINGPRESETVALUES_T_H
#define BMODESETTINGPRESETVALUES_T_H
#include <QObject>
#include <QMetaType>
#include "model/ssm/dtoInternal/SsmPresetValues.h"
struct BModeSettingPresetValues_t {
int angle;
int ao;
int criFilter;
int depth;
int dynContB;
int lineDensity;
int rejectB;
int frameFilter;
bool lineFilterBypass;
int lineFilter;
int criLineFilter;
int cri;
int enhanceB;
int gainB;
int focusNumber;
int persist;
int focus;
bool sriBypass;
int sri;
int oti;
int frequency;
bool hi;
bool ffc;
bool virtualConvex;
bool criBypass;
void init(SsmPresetValues_t temp)
{
angle = temp.angle;
ao = 100 + temp.apcTxPower;
criFilter = temp.criFilter;
depth = temp.depth;
dynContB = temp.dynContB;
lineDensity = temp.lineDensity;
rejectB = temp.rejectB;
frameFilter = temp.framFilter;
lineFilterBypass = lineFilter == 0;
lineFilter = temp.lineFilter > 0 ? temp.lineFilter - 1 : temp.lineFilter;
criLineFilter = temp.criLineFilter > 0 ? temp.criLineFilter - 1 : temp.criLineFilter;
cri = temp.cri;
enhanceB = temp.enhanceB;
gainB = temp.gainB;
focusNumber = temp.focusNumber;
persist = temp.persist;
focus = temp.focus;
sriBypass = temp.sriBypass;
sri = temp.sri;
oti = temp.oti;
frequency = temp.frequency;
hi = temp.hi;
ffc = temp.ffc;
virtualConvex = temp.virtualConvex;
criBypass = temp.criBypass;
}
};
#endif //BMODESETTINGPRESETVALUES_T_H