Manager.h
Go to the documentation of this file.
1 /*
2  * This file is part of ArmarX.
3  *
4  * Copyright (C) 2011-2016, High Performance Humanoid Technologies (H2T), Karlsruhe Institute of Technology (KIT), all rights reserved.
5  *
6  * ArmarX is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  *
10  * ArmarX is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  *
18  * @package
19  * @author
20  * @date
21  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
22  * GNU General Public License
23  */
24 #pragma once
25 
26 #include <map>
27 
28 #include <Inventor/nodes/SoSeparator.h>
29 
30 #include "CoinPointCloud.h"
31 
32 #include <mutex>
33 
34 
35 namespace visionx
36 {
37  class Manager : public SoSeparator
38  {
39  public:
40 
41  Manager();
42  ~Manager() override;
43 
44  void registerPointCloud(const std::string& name);
45  void unregisterPointCloud(const std::string& name);
46 
47  std::vector<std::string> getRegisteredPointClouds();
48  CoinPointCloud* getCloudByName(const std::string& name);
49 
50  void updatePointCloud(const std::string& name, CoinPointCloud& cloud);
51 
52 
53  private:
54 
55  std::mutex mutex;
56  std::map<std::string, CoinPointCloud*> clouds;
57 
58  };
59 }
60 
visionx
ArmarX headers.
Definition: OpenPoseStressTest.h:38
CoinPointCloud.h
visionx::Manager::unregisterPointCloud
void unregisterPointCloud(const std::string &name)
Definition: Manager.cpp:46
visionx::Manager::Manager
Manager()
Definition: Manager.cpp:29
visionx::Manager
Definition: Manager.h:37
visionx::Manager::getRegisteredPointClouds
std::vector< std::string > getRegisteredPointClouds()
Definition: Manager.cpp:64
visionx::CoinPointCloud
Definition: CoinPointCloud.h:39
visionx::Manager::updatePointCloud
void updatePointCloud(const std::string &name, CoinPointCloud &cloud)
Definition: Manager.cpp:83
visionx::Manager::registerPointCloud
void registerPointCloud(const std::string &name)
Definition: Manager.cpp:37
visionx::Manager::getCloudByName
CoinPointCloud * getCloudByName(const std::string &name)
Definition: Manager.cpp:76
visionx::Manager::~Manager
~Manager() override
Definition: Manager.cpp:33