[558] | 1 | /*========================================================================= |
---|
| 2 | |
---|
| 3 | Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. |
---|
| 4 | See OTBCopyright.txt for details. |
---|
| 5 | |
---|
| 6 | Some parts of this code are derived from ITK. See ITKCopyright.txt |
---|
| 7 | for details. |
---|
| 8 | |
---|
| 9 | |
---|
| 10 | This software is distributed WITHOUT ANY WARRANTY; without even |
---|
| 11 | the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
---|
| 12 | PURPOSE. See the above copyright notices for more information. |
---|
| 13 | |
---|
| 14 | See Ref: http://hg.orfeo-toolbox.org/OTB/ Copyright |
---|
| 15 | |
---|
| 16 | =========================================================================*/ |
---|
| 17 | #ifndef __zooOtbWatcher_h |
---|
| 18 | #define __zooOtbWatcher_h |
---|
| 19 | |
---|
| 20 | #include "otbFilterWatcherBase.h" |
---|
| 21 | #include "service.h" |
---|
| 22 | |
---|
| 23 | class /*ITK_EXPORT*/ ZooWatcher : public otb::FilterWatcherBase |
---|
| 24 | { |
---|
| 25 | public: |
---|
| 26 | |
---|
| 27 | /** Constructor. Takes a ProcessObject to monitor and an optional |
---|
| 28 | * comment string that is prepended to each event message. */ |
---|
| 29 | ZooWatcher(itk::ProcessObject* process, |
---|
| 30 | const char *comment = ""); |
---|
| 31 | |
---|
| 32 | ZooWatcher(itk::ProcessObject* process, |
---|
| 33 | const std::string& comment = ""); |
---|
| 34 | |
---|
| 35 | /** Default constructor */ |
---|
| 36 | ZooWatcher(); |
---|
| 37 | |
---|
| 38 | /** Get/Set/Free Configuration maps */ |
---|
| 39 | void SetConf(maps **conf) |
---|
| 40 | { |
---|
| 41 | m_Conf=dupMaps(conf); |
---|
| 42 | } |
---|
| 43 | const maps& GetConf() const |
---|
| 44 | { |
---|
| 45 | return *m_Conf; |
---|
| 46 | } |
---|
| 47 | void FreeConf(){ |
---|
| 48 | freeMaps(&m_Conf); |
---|
| 49 | free(m_Conf); |
---|
| 50 | } |
---|
| 51 | protected: |
---|
| 52 | |
---|
| 53 | /** Callback method to show the ProgressEvent */ |
---|
| 54 | virtual void ShowProgress(); |
---|
| 55 | |
---|
| 56 | /** Callback method to show the StartEvent */ |
---|
| 57 | virtual void StartFilter(); |
---|
| 58 | |
---|
| 59 | /** Callback method to show the EndEvent */ |
---|
| 60 | virtual void EndFilter(); |
---|
| 61 | |
---|
| 62 | private: |
---|
| 63 | |
---|
| 64 | /** Main conf maps */ |
---|
| 65 | maps* m_Conf; |
---|
| 66 | |
---|
| 67 | }; |
---|
| 68 | |
---|
| 69 | #endif |
---|