FloorVis.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
7 
8 
9 namespace armarx
10 {
12 }
14 {
15  class CoreSegment;
16  class Entity;
17 }
18 
20 {
21  class FloorVis
22  {
23  public:
24 
25  FloorVis();
26 
27  void defineProperties(armarx::PropertyDefinitionsPtr defs, const std::string& prefix = "");
28  void setArViz(armarx::viz::Client arviz);
29 
30  /// Draw a the floor as a simox object.
31  /// @see `makeFloorObject()`
32  void updateFloorObject(const wm::CoreSegment& classCoreSegment);
33 
35  armarx::viz::Object makeFloorObject(const std::string& name, const arondto::ObjectClass& objectClass);
36 
37 
38  public:
39 
40  struct Properties
41  {
42  bool show = true;
43 
44  std::string entityName = "Building/floor-20x20";
45  std::string layerName = "Floor";
46  float height = -1;
47 
48  void define(armarx::PropertyDefinitionsPtr defs, const std::string& prefix = "");
49  };
50 
51  private:
52 
53  Properties properties;
54 
55  armarx::viz::Client arviz;
56 
57  };
58 }
Client.h
armarx::armem::server::obj::clazz::FloorVis::Properties::entityName
std::string entityName
Definition: FloorVis.h:44
armarx::armem::server::obj::clazz::FloorVis::defineProperties
void defineProperties(armarx::PropertyDefinitionsPtr defs, const std::string &prefix="")
Definition: FloorVis.cpp:18
armarx::armem::server::obj::clazz
Definition: FloorVis.cpp:10
armarx::armem::server::obj::clazz::FloorVis::Properties::layerName
std::string layerName
Definition: FloorVis.h:45
armarx::armem::server::obj::clazz::FloorVis::setArViz
void setArViz(armarx::viz::Client arviz)
Definition: FloorVis.cpp:24
armarx::armem::server::obj::clazz::FloorVis::Properties::define
void define(armarx::PropertyDefinitionsPtr defs, const std::string &prefix="")
Definition: FloorVis.cpp:70
armarx::armem::server::wm::Entity
Definition: memory_definitions.h:30
armarx::armem::server::wm
Definition: forward_declarations.h:62
armarx::armem::server::obj::clazz::FloorVis
Definition: FloorVis.h:21
armarx::viz::Object
Definition: Elements.h:321
armarx::armem::server::obj::clazz::FloorVis::Properties::show
bool show
Definition: FloorVis.h:42
armarx::armem::server::wm::CoreSegment
base::CoreSegmentBase
Definition: memory_definitions.h:86
aron_forward_declarations.h
armarx::armem::server::obj::clazz::FloorVis::FloorVis
FloorVis()
Definition: FloorVis.cpp:13
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::armem::server::obj::clazz::FloorVis::makeFloorObject
armarx::viz::Object makeFloorObject(const wm::Entity &classEntity)
Definition: FloorVis.cpp:50
armarx::armem::server::obj::clazz::FloorVis::Properties
Definition: FloorVis.h:40
armarx::armem::server::obj::clazz::FloorVis::updateFloorObject
void updateFloorObject(const wm::CoreSegment &classCoreSegment)
Draw a the floor as a simox object.
Definition: FloorVis.cpp:30
armarx::PropertyDefinitionsPtr
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
Definition: forward_declarations.h:34
armarx::viz::Client
Definition: Client.h:109
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::armem::server::obj::clazz::FloorVis::Properties::height
float height
Definition: FloorVis.h:46