/**************************************************************************** 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_STEPLOADTREEMAP_H #define ONF_STEPLOADTREEMAP_H #include "ct_step/abstract/ct_abstractstepcanbeaddedfirst.h" #include "ct_itemdrawable/ct_circle2d.h" #include "ct_itemdrawable/ct_loopcounter.h" #include "ct_view/tools/ct_textfileconfigurationdialog.h" class ONF_StepLoadTreeMap: public CT_AbstractStepCanBeAddedFirst { Q_OBJECT using SuperClass = CT_AbstractStepCanBeAddedFirst; public: ONF_StepLoadTreeMap(); QString description() const override; QString detailledDescription() const override; QString inputDescription() const override; QString outputDescription() const override; QString detailsDescription() const override; QString URL() const override; CT_VirtualAbstractStep* createNewInstance() const final; public slots: void fileChanged(); signals: void updateComboBox(QStringList valuesList, QString value); protected: void fillPreInputConfigurationDialog(CT_StepConfigurableDialog* preInputConfigDialog) final; void declareInputModels(CT_StepInModelStructureManager& manager) final; void fillPostInputConfigurationDialog(CT_StepConfigurableDialog* postInputConfigDialog) final; virtual void finalizePostSettings() final; void declareOutputModels(CT_StepOutModelStructureManager& manager) final; void compute() final; private: // Step parameters int _mode; QList _neededFields; QString _refFileName; QString _plotID; bool _refHeader; QString _refSeparator; QString _refDecimal; QLocale _refLocale; int _refSkip; QMap _refColumns; QStringList _plotsIds; CT_ComboBox *_cbox; CT_HandleInResultGroup<> _inResultCounter; CT_HandleInStdZeroOrMoreGroup _inZeroOrMoreRootGroupCounter; CT_HandleInSingularItem _inCounter; CT_HandleOutResultGroup _outResultRef; CT_HandleOutStdGroup _outGrpPlot; CT_HandleOutStdGroup _outGrpRef; CT_HandleOutSingularItem _outRef; CT_HandleOutStdItemAttribute _outRefDbh; CT_HandleOutStdItemAttribute _outRefHeight; CT_HandleOutStdItemAttribute _outRefID; CT_HandleOutStdItemAttribute _outRefIDplot; CT_HandleOutStdItemAttribute _outSpecies; CT_HandleOutStdItemAttribute _outComment; }; #endif // ONF_STEPLOADTREEMAP_H