OTB  7.1.0
Orfeo Toolbox
otbStandardFilterWatcher.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1999-2011 Insight Software Consortium
3  * Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)
4  *
5  * This file is part of Orfeo Toolbox
6  *
7  * https://www.orfeo-toolbox.org/
8  *
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  */
21 
22 #ifndef otbStandardFilterWatcher_h
23 #define otbStandardFilterWatcher_h
24 
25 #include "otbFilterWatcherBase.h"
26 
27 namespace otb
28 {
29 
52 class OTBCommon_EXPORT StandardFilterWatcher : public FilterWatcherBase
53 {
54 public:
57  StandardFilterWatcher(itk::ProcessObject* process, const char* comment = "");
58 
59  StandardFilterWatcher(itk::ProcessObject* process, const std::string& comment = "");
60 
62  StandardFilterWatcher() : m_StarsCount(0){};
63 
66 
68  void operator=(const StandardFilterWatcher&);
69 
71  void SetStars(int count)
72  {
73  m_StarsCount = count;
74  }
75  const int& GetStars() const
76  {
77  return m_StarsCount;
78  }
80 
81 protected:
83  void ShowProgress() override;
84 
86  void StartFilter() override;
87 
89  void EndFilter() override;
90 
91 private:
94 
96 
98 
99  std::string m_Buffer;
100 };
101 
102 } // end namespace otb
103 
104 #endif
This class shows the percentage progress execution of the pipeline filtering process.
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
This class is an abstract class Provides an interface to progress task mechanic.