MemoryRemoteGui.h
Go to the documentation of this file.
1 #pragma once
2 
4 
6 
7 namespace armarx::armem::server
8 {
9 
10  /**
11  * @brief Utility for memory Remote Guis.
12  */
14  {
15  public:
18 
19 
21  GroupBox makeGroupBox(const armem::wm::CoreSegment& coreSegment) const;
22  GroupBox makeGroupBox(const armem::wm::ProviderSegment& providerSegment) const;
23  GroupBox makeGroupBox(const armem::wm::Entity& entity) const;
24  GroupBox makeGroupBox(const armem::wm::EntitySnapshot& entitySnapshot) const;
25  GroupBox makeGroupBox(const armem::wm::EntityInstance& instance) const;
26 
28  GroupBox makeGroupBox(const armem::server::wm::CoreSegment& coreSegment) const;
29  GroupBox makeGroupBox(const armem::server::wm::ProviderSegment& providerSegment) const;
30  GroupBox makeGroupBox(const armem::server::wm::Entity& entity) const;
31 
32 
33  std::string makeGroupLabel(const std::string& term,
34  const std::string& name,
35  size_t size,
36  const std::string& namePrefix = ": '",
37  const std::string& nameSuffix = "'") const;
38  std::string makeNoItemsMessage(const std::string& term) const;
39 
40 
41  int maxHistorySize = 10;
42 
43  private:
44  template <class... Args>
46  _makeGroupBox(const armem::base::MemoryBase<Args...>& memory) const;
47  template <class... Args>
49  _makeGroupBox(const armem::base::CoreSegmentBase<Args...>& coreSegment) const;
50  template <class... Args>
52  _makeGroupBox(const armem::base::ProviderSegmentBase<Args...>& providerSegment) const;
53  template <class... Args>
55  _makeGroupBox(const armem::base::EntityBase<Args...>& entity) const;
56  };
57 
58 
59 } // namespace armarx::armem::server
armarx::armem::base::ProviderSegmentBase
Data of a provider segment containing multiple entities.
Definition: ProviderSegmentBase.h:22
armarx::armem::wm::ProviderSegment
Client-side working memory provider segment.
Definition: memory_definitions.h:105
armarx::armem::wm::EntityInstance
Client-side working entity instance.
Definition: memory_definitions.h:32
armarx::armem::server::MemoryRemoteGui::makeGroupBox
GroupBox makeGroupBox(const armem::wm::Memory &memory) const
Definition: MemoryRemoteGui.cpp:122
armarx::RemoteGui::Client::Label
Definition: Widgets.h:31
armarx::armem::base::EntityBase
An entity over a period of time.
Definition: EntityBase.h:43
armarx::armem::server::wm::Entity
Definition: memory_definitions.h:27
armarx::memory
Brief description of class memory.
Definition: memory.h:38
armarx::armem::server::MemoryRemoteGui::makeGroupLabel
std::string makeGroupLabel(const std::string &term, const std::string &name, size_t size, const std::string &namePrefix=": '", const std::string &nameSuffix="'") const
Definition: MemoryRemoteGui.cpp:211
memory_definitions.h
visionx::voxelgrid::Label
uint32_t Label
Type of an object label.
Definition: types.h:6
armarx::armem::base::CoreSegmentBase
Data of a core segment containing multiple provider segments.
Definition: CoreSegmentBase.h:22
armarx::armem::server::wm::Memory
Definition: memory_definitions.h:122
armarx::armem::wm::CoreSegment
Client-side working memory core segment.
Definition: memory_definitions.h:119
armarx::armem::wm::Memory
Client-side working memory.
Definition: memory_definitions.h:133
armarx::RemoteGui::Client::GroupBox
Definition: Widgets.h:193
armarx::armem::base::MemoryBase
Data of a memory consisting of multiple core segments.
Definition: MemoryBase.h:19
armarx::armem::wm::EntitySnapshot
Client-side working memory entity snapshot.
Definition: memory_definitions.h:80
armarx::armem::server::wm::ProviderSegment
Definition: memory_definitions.h:52
armarx::armem::server
Definition: GraspMemory.cpp:34
armarx::armem::server::wm::CoreSegment
base::CoreSegmentBase
Definition: memory_definitions.h:75
armarx::armem::server::MemoryRemoteGui::makeNoItemsMessage
std::string makeNoItemsMessage(const std::string &term) const
Definition: MemoryRemoteGui.cpp:223
armarx::armem::server::MemoryRemoteGui::maxHistorySize
int maxHistorySize
Definition: MemoryRemoteGui.h:41
Widgets.h
armarx::armem::wm::Entity
Client-side working memory entity.
Definition: memory_definitions.h:93
armarx::armem::server::MemoryRemoteGui
Utility for memory Remote Guis.
Definition: MemoryRemoteGui.h:13