/**************************************************************************** Copyright (C) 2010-2012 the Office National des ForĂȘts (ONF), France All rights reserved. Contact : alexandre.piboule@onf.fr Developers : Alexandre PIBOULE (ONF) This file is part of PluginONF library. PluginONF is free library: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. PluginONF is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with PluginONF. If not, see . *****************************************************************************/ #ifndef ONF_METRICINTENSITY_H #define ONF_METRICINTENSITY_H #include "ctliblas/metrics/abstract/ct_abstractmetric_las.h" #include "ctlibmetrics/tools/ct_valueandbool.h" class ONF_MetricIntensity : public CT_AbstractMetric_LAS { Q_OBJECT public: struct Config { VaB n; VaB n_f; VaB n_o; VaB n0595_f; VaB n0595_o; VaB n1090_f; VaB n1090_o; VaB ntp25_f; VaB ntp25_o; VaB imx_f; VaB imn_f; VaB isd_f; VaB icv_f; VaB imx_o; VaB imn_o; VaB isd_o; VaB icv_o; VaB imx_a; VaB imn_a; VaB isd_a; VaB icv_a; VaB i0595mn_f; VaB i0595sd_f; VaB i0595cv_f; VaB i0595mn_o; VaB i0595sd_o; VaB i0595cv_o; VaB i1090mn_f; VaB i1090sd_f; VaB i1090cv_f; VaB i1090mn_o; VaB i1090sd_o; VaB i1090cv_o; VaB itp25mn_f; VaB itp25sd_f; VaB itp25cv_f; VaB itp25mn_o; VaB itp25sd_o; VaB itp25cv_o; VaB ip05_f; VaB ip10_f; VaB ip25_f; VaB ip50_f; VaB ip75_f; VaB ip90_f; VaB ip95_f; VaB ip05_o; VaB ip10_o; VaB ip25_o; VaB ip50_o; VaB ip75_o; VaB ip90_o; VaB ip95_o; }; ONF_MetricIntensity(QString pluginName); ONF_MetricIntensity(const ONF_MetricIntensity &other); QString getShortDisplayableName() const override; QString getShortDescription() const override; QString getDetailledDescription() const override; /** * @brief Returns the metric configuration */ ONF_MetricIntensity::Config metricConfiguration() const; /** * @brief Change the configuration of this metric */ void setMetricConfiguration(const ONF_MetricIntensity::Config &conf); CT_AbstractConfigurableElement* copy() const override; protected: void computeMetric() override; void declareAttributes(); private: Config m_conf; }; #endif // ONF_METRICINTENSITY_H