PointCloudAndImageProvider.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 VisionX::Core
19  * @author Raphael Grimm (raphael dot grimm at kit dot edu)
20  * @date 2019
21  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
22  * GNU General Public License
23  */
24 
25 #pragma once
26 
27 
28 #include <VisionX/interface/components/PointCloudAndImageAndCalibrationProviderInterface.h>
29 
31 
32 #include "PointCloudProvider.h"
33 
34 namespace visionx
35 {
37  virtual public PointCloudAndImageProviderInterface,
38  virtual public ImageProvider,
39  virtual public PointCloudProvider
40  {
41  protected:
42  void onInitComponent() final override
43  {
47  }
48  void onConnectComponent() final override
49  {
53  }
54  void onDisconnectComponent() final override
55  {
59  }
60  void onExitComponent() final override
61  {
65  }
66 
67  // PointCloudProvider interface
68  protected:
69  void onInitPointCloudProvider() final override {}
70  void onExitPointCloudProvider() final override {}
71  void onConnectPointCloudProvider() final override {}
72 
73  // ImageProvider interface
74  protected:
75  void onInitImageProvider() final override {}
76  void onExitImageProvider() final override {}
77  void onConnectImageProvider() final override {}
78  void onDisconnectImageProvider() final override {}
79  protected:
80  virtual void onInitPointCloudAndImageProvider() = 0;
81  virtual void onExitPointCloudAndImageProvider() = 0;
82  virtual void onConnectPointCloudAndImageProvider() = 0;
83  virtual void onDisconnectPointCloudAndImageProvider() = 0;
84 
85  // ProviderWithSharedMemorySupportInterface interface
86  public:
87  bool hasSharedMemorySupport(const Ice::Current& c) override
88  {
90  }
91  };
92 }
visionx::PointCloudAndImageProvider::onInitComponent
void onInitComponent() final override
Pure virtual hook for the subclass.
Definition: PointCloudAndImageProvider.h:42
visionx::PointCloudProvider::onConnectComponent
void onConnectComponent() override
Definition: PointCloudProvider.cpp:77
visionx::PointCloudAndImageProvider::onDisconnectComponent
void onDisconnectComponent() final override
Hook for subclass.
Definition: PointCloudAndImageProvider.h:54
visionx
ArmarX headers.
Definition: OpenPoseStressTest.h:38
visionx::PointCloudAndImageProvider::onExitImageProvider
void onExitImageProvider() final override
This is called when the Component::onExitComponent() setup is called.
Definition: PointCloudAndImageProvider.h:76
visionx::PointCloudAndImageProvider::onDisconnectImageProvider
void onDisconnectImageProvider() final override
Definition: PointCloudAndImageProvider.h:78
visionx::ImageProvider::onExitComponent
void onExitComponent() override
Definition: ImageProvider.cpp:152
PointCloudProvider.h
visionx::PointCloudAndImageProvider::onConnectImageProvider
void onConnectImageProvider() final override
This is called when the Component::onConnectComponent() setup is called.
Definition: PointCloudAndImageProvider.h:77
c
constexpr T c
Definition: UnscentedKalmanFilterTest.cpp:43
visionx::PointCloudAndImageProvider::onExitPointCloudProvider
void onExitPointCloudProvider() final override
This is called when the Component::onExitComponent() setup is called.
Definition: PointCloudAndImageProvider.h:70
visionx::PointCloudProvider::onDisconnectComponent
void onDisconnectComponent() override
Hook for subclass.
Definition: PointCloudProvider.cpp:95
visionx::PointCloudProvider::onExitComponent
void onExitComponent() override
Definition: PointCloudProvider.cpp:106
visionx::PointCloudAndImageProvider::onInitPointCloudAndImageProvider
virtual void onInitPointCloudAndImageProvider()=0
visionx::ImageProvider::onDisconnectComponent
void onDisconnectComponent() override
Hook for subclass.
Definition: ImageProvider.cpp:141
visionx::PointCloudAndImageProvider
Definition: PointCloudAndImageProvider.h:36
visionx::PointCloudAndImageProvider::onInitPointCloudProvider
void onInitPointCloudProvider() final override
This is called when the Component::onInitComponent() is called.
Definition: PointCloudAndImageProvider.h:69
visionx::PointCloudAndImageProvider::onExitComponent
void onExitComponent() final override
Hook for subclass.
Definition: PointCloudAndImageProvider.h:60
visionx::PointCloudAndImageProvider::onDisconnectPointCloudAndImageProvider
virtual void onDisconnectPointCloudAndImageProvider()=0
visionx::PointCloudProvider::onInitComponent
void onInitComponent() override
Definition: PointCloudProvider.cpp:59
visionx::PointCloudAndImageProvider::onConnectComponent
void onConnectComponent() final override
Pure virtual hook for the subclass.
Definition: PointCloudAndImageProvider.h:48
visionx::PointCloudAndImageProvider::onExitPointCloudAndImageProvider
virtual void onExitPointCloudAndImageProvider()=0
visionx::PointCloudAndImageProvider::hasSharedMemorySupport
bool hasSharedMemorySupport(const Ice::Current &c) override
Definition: PointCloudAndImageProvider.h:87
visionx::ImageProvider::hasSharedMemorySupport
bool hasSharedMemorySupport(const Ice::Current &c=Ice::emptyCurrent) override
Definition: ImageProvider.h:93
visionx::ImageProvider
ImageProvider abstract class defines a component which provide images via ice or shared memory.
Definition: ImageProvider.h:66
visionx::ImageProvider::onConnectComponent
void onConnectComponent() override
Definition: ImageProvider.cpp:104
visionx::ImageProvider::onInitComponent
void onInitComponent() override
Definition: ImageProvider.cpp:88
visionx::PointCloudAndImageProvider::onConnectPointCloudProvider
void onConnectPointCloudProvider() final override
This is called when the Component::onConnectComponent() setup is called.
Definition: PointCloudAndImageProvider.h:71
ImageProvider.h
visionx::PointCloudProvider
PointCloudProvider abstract class defines a component which provide point clouds via ice or shared me...
Definition: PointCloudProvider.h:58
visionx::PointCloudAndImageProvider::onConnectPointCloudAndImageProvider
virtual void onConnectPointCloudAndImageProvider()=0
visionx::PointCloudAndImageProvider::onInitImageProvider
void onInitImageProvider() final override
This is called when the Component::onInitComponent() is called.
Definition: PointCloudAndImageProvider.h:75