Emergency 20 Dokumentation  4.2.0
SimpleBarrierTapeMeshGenerator.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 
16 
17 
18 //[-------------------------------------------------------]
19 //[ Forward declarations ]
20 //[-------------------------------------------------------]
21 namespace em5
22 {
23  class SimpleBarrierTapeComponent;
24 }
25 
26 
27 //[-------------------------------------------------------]
28 //[ Namespace ]
29 //[-------------------------------------------------------]
30 namespace em5
31 {
32 
33 
34  //[-------------------------------------------------------]
35  //[ Classes ]
36  //[-------------------------------------------------------]
42  {
43 
44 
45  //[-------------------------------------------------------]
46  //[ Public definitions ]
47  //[-------------------------------------------------------]
48  public:
50  {
51  glm::vec3 mCoefficients[4];
52  };
53 
54 
55  //[-------------------------------------------------------]
56  //[ Public methods ]
57  //[-------------------------------------------------------]
58  public:
64 
73 
88  bool createMesh(const std::string& ogreMeshName, const SimpleBarrierTapeComponent& barriertapeComponent, uint32 sectionIndex);
89 
104  bool updateMesh(const std::string& ogreMeshName, const SimpleBarrierTapeComponent& barriertapeComponent, uint32 sectionIndex);
105 
106  void buildSectionSpline(const SimpleBarrierTapeComponent& barriertapeComponent, uint32 sectionIndex, SectionSpline& outSpline);
107  void evaluateSectionSpline(const SectionSpline& spline, float t, glm::vec3& outPosition, glm::vec3& outDirection);
108 
109 
110  //[-------------------------------------------------------]
111  //[ Private methods ]
112  //[-------------------------------------------------------]
113  private:
114  void fillMeshGenerator(const std::string& ogreMeshName, const SimpleBarrierTapeComponent& barriertapeComponent, uint32 sectionIndex);
115 
116 
117  };
118 
119 
120 //[-------------------------------------------------------]
121 //[ Namespace ]
122 //[-------------------------------------------------------]
123 } // em5
Definition: ActionPriority.h:13
Simple warning tape component based on existing implementation.
Definition: SimpleBarrierTapeComponent.h:55
unsigned int uint32
Definition: PlatformTypes.h:181
#define EM5_API_EXPORT
Definition: Export.h:28
Mesh generator class.
Definition: MeshGenerator.h:65
Definition: SimpleBarrierTapeMeshGenerator.h:49
Simple warning tape mesh generator class.
Definition: SimpleBarrierTapeMeshGenerator.h:41