comparison transform/FeatureExtractionModelTransformer.cpp @ 923:defbe5bc47b7 tonioni

Add an experimental cancel button to view progress bars
author Chris Cannam
date Fri, 13 Jun 2014 17:39:01 +0100
parents c3656035240f
children d03b3d956358
comparison
equal deleted inserted replaced
922:9911b8cb53bc 923:defbe5bc47b7
1016 if (isOutput<SparseOneDimensionalModel>(n)) { 1016 if (isOutput<SparseOneDimensionalModel>(n)) {
1017 1017
1018 SparseOneDimensionalModel *model = 1018 SparseOneDimensionalModel *model =
1019 getConformingOutput<SparseOneDimensionalModel>(n); 1019 getConformingOutput<SparseOneDimensionalModel>(n);
1020 if (!model) return; 1020 if (!model) return;
1021 if (model->isAbandoning()) abandon();
1021 model->setCompletion(completion, true); 1022 model->setCompletion(completion, true);
1022 1023
1023 } else if (isOutput<SparseTimeValueModel>(n)) { 1024 } else if (isOutput<SparseTimeValueModel>(n)) {
1024 1025
1025 SparseTimeValueModel *model = 1026 SparseTimeValueModel *model =
1026 getConformingOutput<SparseTimeValueModel>(n); 1027 getConformingOutput<SparseTimeValueModel>(n);
1027 if (!model) return; 1028 if (!model) return;
1029 if (model->isAbandoning()) abandon();
1028 model->setCompletion(completion, true); 1030 model->setCompletion(completion, true);
1029 1031
1030 } else if (isOutput<NoteModel>(n)) { 1032 } else if (isOutput<NoteModel>(n)) {
1031 1033
1032 NoteModel *model = getConformingOutput<NoteModel>(n); 1034 NoteModel *model = getConformingOutput<NoteModel>(n);
1033 if (!model) return; 1035 if (!model) return;
1036 if (model->isAbandoning()) abandon();
1034 model->setCompletion(completion, true); 1037 model->setCompletion(completion, true);
1035 1038
1036 } else if (isOutput<FlexiNoteModel>(n)) { 1039 } else if (isOutput<FlexiNoteModel>(n)) {
1037 1040
1038 FlexiNoteModel *model = getConformingOutput<FlexiNoteModel>(n); 1041 FlexiNoteModel *model = getConformingOutput<FlexiNoteModel>(n);
1039 if (!model) return; 1042 if (!model) return;
1043 if (model->isAbandoning()) abandon();
1040 model->setCompletion(completion, true); 1044 model->setCompletion(completion, true);
1041 1045
1042 } else if (isOutput<RegionModel>(n)) { 1046 } else if (isOutput<RegionModel>(n)) {
1043 1047
1044 RegionModel *model = getConformingOutput<RegionModel>(n); 1048 RegionModel *model = getConformingOutput<RegionModel>(n);
1045 if (!model) return; 1049 if (!model) return;
1050 if (model->isAbandoning()) abandon();
1046 model->setCompletion(completion, true); 1051 model->setCompletion(completion, true);
1047 1052
1048 } else if (isOutput<EditableDenseThreeDimensionalModel>(n)) { 1053 } else if (isOutput<EditableDenseThreeDimensionalModel>(n)) {
1049 1054
1050 EditableDenseThreeDimensionalModel *model = 1055 EditableDenseThreeDimensionalModel *model =
1051 getConformingOutput<EditableDenseThreeDimensionalModel>(n); 1056 getConformingOutput<EditableDenseThreeDimensionalModel>(n);
1052 if (!model) return; 1057 if (!model) return;
1058 if (model->isAbandoning()) abandon();
1053 model->setCompletion(completion, true); //!!!m_context.updates); 1059 model->setCompletion(completion, true); //!!!m_context.updates);
1054 } 1060 }
1055 } 1061 }
1056 1062