VisualizationObserver.h
Go to the documentation of this file.
1 
2 /* This file is part of ArmarX.
3 *
4 * ArmarX is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * ArmarX is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * @package ArmarXGuiPlugins::RobotTrajectoryDesigner::Visualization
17 * @author Timo Birr
18 * @date 2018
19 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20 * GNU General Public License
21 */
22 #ifndef VisualizationObserver_H
23 #define VisualizationObserver_H
24 
25 #include <memory>
26 
27 namespace armarx
28 {
29  /**
30  * @brief The AdvancedVisualizationFactory class is the abstract decorator of the Decorator-Pattern and decorates the VisualizationFactoy in Simox
31  *
32  * The additional Functionality is that it can also generate the Visualization for a Manipulator
33  */
35  {
36  public:
37  /**
38  * @brief refresh gets all relevant data from subject an updates itself accoringly
39  * should be called by subject but can also be called from elsewhere
40  */
41  virtual void refresh() = 0;
42  };
43 
44  using VisualizationObserverPtr = std::shared_ptr<VisualizationObserver>;
45 } // namespace armarx
46 
47 #endif
armarx::VisualizationObserverPtr
std::shared_ptr< VisualizationObserver > VisualizationObserverPtr
Definition: VisualizationObserver.h:44
armarx::VisualizationObserver::refresh
virtual void refresh()=0
refresh gets all relevant data from subject an updates itself accoringly should be called by subject ...
armarx::VisualizationObserver
The AdvancedVisualizationFactory class is the abstract decorator of the Decorator-Pattern and decorat...
Definition: VisualizationObserver.h:34
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:27