Emergency 20 Dokumentation  4.2.0
SekDroneScanComponent.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Header guard ]
6 //[-------------------------------------------------------]
7 #pragma once
8 
9 
10 //[-------------------------------------------------------]
11 //[ Includes ]
12 //[-------------------------------------------------------]
13 #include "em5/Export.h"
14 
17 #include <qsf/job/JobProxy.h>
18 
19 
20 //[-------------------------------------------------------]
21 //[ Namespace ]
22 //[-------------------------------------------------------]
23 namespace em5
24 {
25 
26 
27  //[-------------------------------------------------------]
28  //[ Classes ]
29  //[-------------------------------------------------------]
35  {
36 
37 
38  //[-------------------------------------------------------]
39  //[ Public definitions ]
40  //[-------------------------------------------------------]
41  public:
42  static const uint32 COMPONENT_ID;
43 
44 
45  //[-------------------------------------------------------]
46  //[ Public methods ]
47  //[-------------------------------------------------------]
48  public:
56  explicit SekDroneScanComponent(qsf::Prototype* prototype);
57 
62  virtual ~SekDroneScanComponent();
63 
64 
65  //[-------------------------------------------------------]
66  //[ Protected virtual qsf::Component methods ]
67  //[-------------------------------------------------------]
68  protected:
69  virtual bool onStartup() override;
70  virtual void onShutdown() override;
71  virtual void onSetActive(bool active) override;
72 
73 
74  //[-------------------------------------------------------]
75  //[ Private methods ]
76  //[-------------------------------------------------------]
77  private:
78  void show();
79  void hide();
80  void updateSimulation(const qsf::JobArguments& jobArguments);
81 
82 
83  //[-------------------------------------------------------]
84  //[ Private data ]
85  //[-------------------------------------------------------]
86  private:
87  // Job proxies for regular update
88  qsf::JobProxy mSimulationJobProxy;
89  qsf::JobProxy mAnimationJobProxy;
90 
91 
92  //[-------------------------------------------------------]
93  //[ CAMP reflection system ]
94  //[-------------------------------------------------------]
95  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
96 
97 
98  };
99 
100 
101 //[-------------------------------------------------------]
102 //[ Namespace ]
103 //[-------------------------------------------------------]
104 } // em5
105 
106 
107 //[-------------------------------------------------------]
108 //[ CAMP reflection system ]
109 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
Job proxy class.
Definition: JobProxy.h:51
Abstract component class.
Definition: Component.h:105
unsigned int uint32
Definition: PlatformTypes.h:181
#define EM5_API_EXPORT
Definition: Export.h:28
Job arguments class: holds data to be passed to the called job method by the job manager.
Definition: JobArguments.h:40
#define QSF_CAMP_RTTI()
Only adds the virtual method "campClassId()", nothing more.
Definition: CampClass.h:75
#define QSF_CAMP_TYPE_NONCOPYABLE(type)
See "CAMP_TYPE_NONCOPYABLE" for details.
Definition: CampClass.h:112
static const uint32 COMPONENT_ID
"em5::SekDroneScanComponent" unique component ID
Definition: SekDroneScanComponent.h:42
Prototype class.
Definition: Prototype.h:100
SEK drone scan component class.
Definition: SekDroneScanComponent.h:34