/**************************************************************************** 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_METRICMINMAXLASFIELDS_H #define ONF_METRICMINMAXLASFIELDS_H #include "ctliblas/metrics/abstract/ct_abstractmetric_las.h" #include "ctlibmetrics/tools/ct_valueandbool.h" class ONF_MetricMinMaxLASFields : public CT_AbstractMetric_LAS { Q_OBJECT public: struct Config { VaB _X_Min; VaB _X_Max; VaB _Y_Min; VaB _Y_Max; VaB _Z_Min; VaB _Z_Max; VaB _Intensity_Min; VaB _Intensity_Max; VaB _Return_Number_Min; VaB _Return_Number_Max; VaB _Number_of_Returns_Min; VaB _Number_of_Returns_Max; VaB _Classification_Flags_Min; VaB _Classification_Flags_Max; VaB _Scanner_Channel_Min; VaB _Scanner_Channel_Max; VaB _Scan_Direction_Flag_Min; VaB _Scan_Direction_Flag_Max; VaB _Edge_of_Flight_Line_Min; VaB _Edge_of_Flight_Line_Max; VaB _Classification_Min; VaB _Classification_Max; VaB _Scan_Angle_Rank_Min; VaB _Scan_Angle_Rank_Max; VaB _User_Data_Min; VaB _User_Data_Max; VaB _Point_Source_ID_Min; VaB _Point_Source_ID_Max; VaB _GPS_Time_Min; VaB _GPS_Time_Max; VaB _Red_Min; VaB _Red_Max; VaB _Green_Min; VaB _Green_Max; VaB _Blue_Min; VaB _Blue_Max; }; ONF_MetricMinMaxLASFields(); ONF_MetricMinMaxLASFields(const ONF_MetricMinMaxLASFields &other); QString getShortDescription() const; QString getDetailledDescription() const; /** * @brief Returns the metric configuration */ ONF_MetricMinMaxLASFields::Config metricConfiguration() const; /** * @brief Change the configuration of this metric */ void setMetricConfiguration(const ONF_MetricMinMaxLASFields::Config &conf); CT_AbstractConfigurableElement* copy() const; protected: void computeMetric(); void declareAttributes(); private: Config m_configAndResults; }; #endif // ONF_METRICMINMAXLASFIELDS_H