gwnavruntime/pathfollower/circlearcsplineblob.h Source File

circlearcsplineblob.h
Go to the documentation of this file.
1 /*
2 * Copyright 2015 Autodesk, Inc. All rights reserved.
3 * Use of this software is subject to the terms of the Autodesk license agreement and any attachments or Appendices thereto provided at the time of installation or download,
4 * or which otherwise accompanies this software in either electronic or hard copy form, or which is signed by you and accepted by Autodesk.
5 */
6 
7 
8 // primary contact: LAPA - secondary contact: NOBODY
9 
10 #ifndef Navigation_CircleArcSplineBlob_H
11 #define Navigation_CircleArcSplineBlob_H
12 
14 
15 
16 namespace Kaim
17 {
18 
19 class CircleArcSpline;
20 
21 class CircleArcSplineBlob
22 {
23  KY_ROOT_BLOB_CLASS(Runtime, CircleArcSplineBlob, 0)
24 
25 public:
26  CircleArcSplineBlob() {}
27 
28  KyUInt32 GetSectionCount() const { return m_sections.GetCount(); }
29  Vec3f GetStart() const;
30  Vec3f GetEnd() const;
31 
32 public:
33  KyUInt32 m_visualDebugId;
34  BlobArray<CircleArcSplineSectionBlob> m_sections;
35 };
36 
37 inline void SwapEndianness(Endianness::Target e, CircleArcSplineBlob& self)
38 {
39  SwapEndianness(e, self.m_visualDebugId);
40  SwapEndianness(e, self.m_sections);
41 }
42 
43 class CircleArcSplineBlobBuilder : public BaseBlobBuilder<CircleArcSplineBlob>
44 {
45  KY_CLASS_WITHOUT_COPY(CircleArcSplineBlobBuilder)
46 
47 public:
48  CircleArcSplineBlobBuilder(const CircleArcSpline* circleArcSpline, KyUInt32 visualDebugId) : m_circleArcSpline(circleArcSpline), m_visualDebugId(visualDebugId) {}
49 
50  virtual void DoBuild();
51 
52 private:
53  const CircleArcSpline* m_circleArcSpline;
54  KyUInt32 m_visualDebugId;
55 };
56 
57 } // namespace Kaim
58 
59 #endif
#define KY_CLASS_WITHOUT_COPY(ClassName)
Define to forbid copy constructor and copy assignment.
Definition: types.h:387
Target
Enumerates the possible endianness types relative to the current platform.
Definition: endianness.h:35
Definition: gamekitcrowddispersion.h:20
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36