Plugin.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <memory>
4 
6 
7 #include <RobotAPI/interface/armem/server/ReadingMemoryInterface.h>
13 
15 
16 
17 class CByteImage;
18 
20 {
21 
23  {
24  public:
26  virtual ~Plugin() override;
27 
28 
30  addRgbImagesEntity(const std::vector<size_t>& imageIndices);
31 
33  addDepthImagesEntity(const std::vector<size_t>& imageIndices);
34 
35 
36  void useImageBuffers(CByteImage** inputImages, armarx::armem::Time timeProvided);
37  void usePixelBuffers(void** inputPixelBuffers, armarx::armem::Time timeProvided);
38 
39  void commitImages();
40  void commitImages(CByteImage** inputImages, armarx::armem::Time timeProvided);
41  void commitImages(void** inputPixelBuffers, armarx::armem::Time timeProvided);
42 
43 
44  protected:
45  virtual void
47  virtual void preOnInitComponent() override;
48  virtual void postOnInitComponent() override;
49  virtual void postOnConnectComponent() override;
50 
51 
52  private:
53  struct Properties;
54  std::unique_ptr<Properties> properties;
55 
56  std::unique_ptr<visionx::armem_images::ImageToArMem> imageToArMem;
57 
58 
59  armarx::armem::server::Plugin* serverPlugin = nullptr;
60  };
61 
62 } // namespace visionx::armem_images::server::plugins
63 
65 {
66  using plugins::Plugin;
67 }
68 
69 namespace visionx::armem_images
70 {
72 }
visionx::armem_images::server::plugins::Plugin::addDepthImagesEntity
armarx::armem::server::wm::Entity & addDepthImagesEntity(const std::vector< size_t > &imageIndices)
Definition: Plugin.cpp:108
visionx::armem_images::server::plugins::Plugin::Plugin
Plugin(armarx::ManagedIceObject &parent, std::string prefix)
Definition: Plugin.cpp:20
visionx::armem_images::server::plugins::Plugin::usePixelBuffers
void usePixelBuffers(void **inputPixelBuffers, armarx::armem::Time timeProvided)
Definition: Plugin.cpp:128
visionx::armem_images::server::plugins::Plugin::postOnInitComponent
virtual void postOnInitComponent() override
Definition: Plugin.cpp:79
armarx::ManagedIceObjectPlugin::prefix
const std::string & prefix() const
Definition: ManagedIceObjectPlugin.cpp:63
armarx::ManagedIceObjectPlugin::parent
ManagedIceObject & parent()
Definition: ManagedIceObjectPlugin.cpp:69
visionx::armem_images::server::plugins::Plugin::commitImages
void commitImages()
Definition: Plugin.cpp:135
forward_declarations.h
visionx::armem_images::server::plugins::Plugin::~Plugin
virtual ~Plugin() override
Definition: Plugin.cpp:33
armarx::armem::server::wm::Entity
Definition: memory_definitions.h:30
visionx::armem_images::server
Definition: ImageMemoryServer.ice:34
visionx::armem_images
Definition: ImageReader.cpp:29
forward_declarations.h
visionx::armem_images::server::plugins::Plugin
Definition: Plugin.h:22
Plugin.h
armarx::ComponentPlugin
Definition: ComponentPlugin.h:38
visionx::armem_images::server::plugins::Plugin::useImageBuffers
void useImageBuffers(CByteImage **inputImages, armarx::armem::Time timeProvided)
Definition: Plugin.cpp:122
visionx::armem_images::server::plugins::Plugin::addRgbImagesEntity
armarx::armem::server::wm::Entity & addRgbImagesEntity(const std::vector< size_t > &imageIndices)
Definition: Plugin.cpp:94
visionx::armem_images::server::plugins::Plugin::postCreatePropertyDefinitions
virtual void postCreatePropertyDefinitions(armarx::PropertyDefinitionsPtr &properties) override
Definition: Plugin.cpp:65
armarx::core::time::DateTime
Represents a point in time.
Definition: DateTime.h:24
armarx::ManagedIceObject
The ManagedIceObject is the base class for all ArmarX objects.
Definition: ManagedIceObject.h:163
forward_declarations.h
visionx::armem_images::server::plugins::Plugin::postOnConnectComponent
virtual void postOnConnectComponent() override
Definition: Plugin.cpp:87
ReadOnlyPluginUser.h
IceUtil::Handle< class PropertyDefinitionContainer >
visionx::armem_images::server::plugins
Definition: Plugin.cpp:17
forward_declarations.h
plugins::Plugin
ComponentPlugin.h
armarx::armem::server::plugins::Plugin
Definition: Plugin.h:23
visionx::armem_images::server::plugins::Plugin::preOnInitComponent
virtual void preOnInitComponent() override
Definition: Plugin.cpp:71