融合代码调整

This commit is contained in:
ljqing 2023-02-09 09:28:10 +08:00
parent 063d9d8652
commit 0e413d7aee
5 changed files with 72 additions and 42 deletions

View File

@ -314,23 +314,34 @@ export default defineComponent({
index < config.hor_density.length + config.ver_density.length; index < config.hor_density.length + config.ver_density.length;
index++ index++
) { ) {
reset(index); reset(index, false);
} }
set?.SetBlendingVerDensity(
$store.getters.GetTheCurrentlySelectedCamera[0],
$store.getters.GetTheCurrentlySelectedCamera[1],
-1, 0
);
}; };
const reset = (index: number) => { const reset = (index: number, send: boolean) => {
send = send?? true;
if (index > 4) { if (index > 4) {
value[index].x = config.hor_density[index - 5].def_x; value[index].x = config.hor_density[index - 5].def_x;
value[index].y = config.hor_density[index - 5].def_y; value[index].y = config.hor_density[index - 5].def_y;
if (send)
{
set?.SetBlendingHorDensity( set?.SetBlendingHorDensity(
$store.getters.GetTheCurrentlySelectedCamera[0], $store.getters.GetTheCurrentlySelectedCamera[0],
$store.getters.GetTheCurrentlySelectedCamera[1], $store.getters.GetTheCurrentlySelectedCamera[1],
index - 5 + 1, index - 5 + 1,
Number(value[index].x) Number(value[index].x)
); );
}
} else { } else {
value[index].x = config.ver_density[index].def_x; value[index].x = config.ver_density[index].def_x;
value[index].y = config.ver_density[index].def_y; value[index].y = config.ver_density[index].def_y;
if (send)
{
set?.SetBlendingVerDensity( set?.SetBlendingVerDensity(
$store.getters.GetTheCurrentlySelectedCamera[0], $store.getters.GetTheCurrentlySelectedCamera[0],
$store.getters.GetTheCurrentlySelectedCamera[1], $store.getters.GetTheCurrentlySelectedCamera[1],
@ -338,6 +349,7 @@ export default defineComponent({
Number(value[index].y) Number(value[index].y)
); );
} }
}
point_postion[index].y = default_location[index].y; point_postion[index].y = default_location[index].y;
point_postion[index].x = default_location[index].x; point_postion[index].x = default_location[index].x;

View File

@ -489,13 +489,16 @@ export default defineComponent({
isshowarray.value[index] = true; isshowarray.value[index] = true;
}, 100); }, 100);
}; };
const reset = (index: number) => { const reset = (index: number, send: boolean) => {
send = send?? true;
fourpostion.value[index].x = defaultfourpostion.value[index].x; fourpostion.value[index].x = defaultfourpostion.value[index].x;
fourpostion.value[index].y = defaultfourpostion.value[index].y; fourpostion.value[index].y = defaultfourpostion.value[index].y;
four[index].x = config.point4[index].def_x; four[index].x = config.point4[index].def_x;
four[index].y = config.point4[index].def_y; four[index].y = config.point4[index].def_y;
if (send)
{
set?.setBlendingCorrection( set?.setBlendingCorrection(
$store.getters.GetTheCurrentlySelectedCamera[0], $store.getters.GetTheCurrentlySelectedCamera[0],
$store.getters.GetTheCurrentlySelectedCamera[1], $store.getters.GetTheCurrentlySelectedCamera[1],
@ -504,6 +507,7 @@ export default defineComponent({
Number(config.point4[index].def_x), Number(config.point4[index].def_x),
Number(config.point4[index].def_y) Number(config.point4[index].def_y)
); );
}
isshowarray.value[index] = false; isshowarray.value[index] = false;
setTimeout(() => { setTimeout(() => {
@ -513,8 +517,13 @@ export default defineComponent({
const resetall = () => { const resetall = () => {
for (let index = 0; index < fourpostion.value.length; index++) { for (let index = 0; index < fourpostion.value.length; index++) {
reset(index); reset(index, false);
} }
set?.setBlendingCorrection(
$store.getters.GetTheCurrentlySelectedCamera[0],
$store.getters.GetTheCurrentlySelectedCamera[1],
4, 0, 0, 0
);
}; };
const moveHandler_1 = (data: any) => { const moveHandler_1 = (data: any) => {

View File

@ -141,7 +141,7 @@ export default defineComponent({
set?.SetBlendingOption("blending_grids_background_color", color[index.value]); set?.SetBlendingOption("blending_grids_background_color", color[index.value]);
break; break;
case 2: case 2:
set?.SetBlendingOption("blending_grids_center_line_color",color[index.value]); set?.SetBlendingOption("blending_grids_ellipse_line_color",color[index.value]);
break; break;
case 3: case 3:
//set?.SetBlendingOption("blending_grids_line_color",color[index.value]); //set?.SetBlendingOption("blending_grids_line_color",color[index.value]);
@ -192,8 +192,8 @@ export default defineComponent({
model[1] = server_conf.blending_grids_column ?? 40; model[1] = server_conf.blending_grids_column ?? 40;
model[2] = server_conf.blending_grids_line_width ?? 6; model[2] = server_conf.blending_grids_line_width ?? 6;
color[0] = server_conf.blending_grids_line_color ?? "#ffffff" color[0] = server_conf.blending_grids_line_color ?? "#ffffff"
color[1] = server_conf.blending_grids_background_color ?? "#00ff5e" color[1] = server_conf.blending_grids_background_color ?? "#7f7f7f"
color[2] = server_conf.blending_grids_center_line_color ?? "#3358de" color[2] = server_conf.blending_grids_ellipse_line_color ?? "#0000ff"
RowsColumns[0] = server_conf.blending_grids_show_row === "false" ? false : true RowsColumns[0] = server_conf.blending_grids_show_row === "false" ? false : true
RowsColumns[1] = server_conf.blending_grids_show_column === "false" ? false : true RowsColumns[1] = server_conf.blending_grids_show_column === "false" ? false : true
RowsColumns[2] = server_conf.blending_grids_show_center_line === "false" ? false : true RowsColumns[2] = server_conf.blending_grids_show_center_line === "false" ? false : true

View File

@ -531,11 +531,14 @@ export default defineComponent({
nine[index].y = config.point9[index].y; nine[index].y = config.point9[index].y;
} }
}; };
const reset = (index: number) => { const reset = (index: number, send: boolean) => {
send = send?? true;
nine[index].x = config.point9[index].def_x; nine[index].x = config.point9[index].def_x;
nine[index].y = config.point9[index].def_y; nine[index].y = config.point9[index].def_y;
if (send)
{
set?.setBlendingCorrection( set?.setBlendingCorrection(
$store.getters.GetTheCurrentlySelectedCamera[0], $store.getters.GetTheCurrentlySelectedCamera[0],
$store.getters.GetTheCurrentlySelectedCamera[1], $store.getters.GetTheCurrentlySelectedCamera[1],
@ -544,6 +547,7 @@ export default defineComponent({
Number(config.point9[index].def_x), Number(config.point9[index].def_x),
Number(config.point9[index].def_y) Number(config.point9[index].def_y)
); );
}
isshowarray.value[index] = false; isshowarray.value[index] = false;
setTimeout(() => { setTimeout(() => {
@ -552,8 +556,13 @@ export default defineComponent({
}; };
const resetall = () => { const resetall = () => {
for (let index = 0; index < nine.length; index++) { for (let index = 0; index < nine.length; index++) {
reset(index); reset(index, false);
} }
set?.setBlendingCorrection(
$store.getters.GetTheCurrentlySelectedCamera[0],
$store.getters.GetTheCurrentlySelectedCamera[1],
9, 0, 0, 0
);
}; };
watch( watch(
() => nine[0], () => nine[0],

View File

@ -285,7 +285,7 @@ export default defineComponent({
const EnableBlending = ref(false); const EnableBlending = ref(false);
let optionsstr = ref(); let optionsstr = ref();
optionsstr.value = "FusionLocale"; optionsstr.value = "FusionLocale";
const disable_blending_params_id = ref("1"); const disable_blending_params_id = ref("blending@disable_blending_params");
const disable_blending_params = ref(false); const disable_blending_params = ref(false);
const show_blending_grids_id = ref("blending_grids_show"); const show_blending_grids_id = ref("blending_grids_show");
const show_blending_grids = ref(false); const show_blending_grids = ref(false);
@ -312,7 +312,7 @@ export default defineComponent({
let tmp = "" let tmp = ""
switch (newVal.value) { switch (newVal.value) {
case 'FusionLocale': case 'FusionLocale':
tmp = '0' tmp = "blending"
break; break;
case 'FourPointCalibration': case 'FourPointCalibration':
tmp = '4' tmp = '4'
@ -326,7 +326,7 @@ export default defineComponent({
default: default:
break; break;
} }
set?.SetBlendingOption("blending_grids_select_ui", tmp) if (tmp.length) set?.SetBlendingOption("blending_grids_select_ui", tmp)
}, },
{ deep: true }) { deep: true })
@ -393,7 +393,7 @@ export default defineComponent({
}); });
get_scenes() get_scenes()
set?.SetBlendingOption("blending_grids_select_ui", '0') set?.SetBlendingOption("blending_grids_select_ui", "blending")
}, 1000); }, 1000);
}); });
const save_cover_name = ref("") const save_cover_name = ref("")