File indexing completed on 2024-12-22 04:16:08
0001 /* 0002 * SPDX-FileCopyrightText: 2022 Agata Cacko <cacko.azh@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 #include "KisExperimentOpOptionModel.h" 0007 0008 #include <KisLager.h> 0009 0010 0011 KisExperimentOpOptionModel::KisExperimentOpOptionModel(lager::cursor<KisExperimentOpOptionData> _optionData) 0012 : optionData(_optionData) 0013 , LAGER_QT(isDisplacementEnabled) {_optionData[&KisExperimentOpOptionData::isDisplacementEnabled]} 0014 , LAGER_QT(displacement) {_optionData[&KisExperimentOpOptionData::displacement]} 0015 , LAGER_QT(isSpeedEnabled) {_optionData[&KisExperimentOpOptionData::isSpeedEnabled]} 0016 , LAGER_QT(speed) {_optionData[&KisExperimentOpOptionData::speed]} 0017 , LAGER_QT(isSmoothingEnabled) {_optionData[&KisExperimentOpOptionData::isSmoothingEnabled]} 0018 , LAGER_QT(smoothing) {_optionData[&KisExperimentOpOptionData::smoothing]} 0019 , LAGER_QT(windingFill) {_optionData[&KisExperimentOpOptionData::windingFill]} 0020 , LAGER_QT(hardEdge) {_optionData[&KisExperimentOpOptionData::hardEdge]} 0021 , LAGER_QT(fillType) {_optionData[&KisExperimentOpOptionData::fillType].zoom(kislager::lenses::do_static_cast<ExperimentFillType, int>)} 0022 0023 { 0024 }