gwnavruntime/pathfollower/circlearcsplineblob.h Source File

circlearcsplineblob.h
Go to the documentation of this file.
1 /*
2 * Copyright 2016 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 #pragma once
9 
11 
12 
13 namespace Kaim
14 {
15 
16 class CircleArcSpline;
17 
18 class CircleArcSplineBlob
19 {
20  KY_ROOT_BLOB_CLASS(Runtime, CircleArcSplineBlob, 0)
21 
22 public:
23  CircleArcSplineBlob() {}
24 
25  KyUInt32 GetSectionCount() const { return m_sections.GetCount(); }
26  Vec3f GetStart() const;
27  Vec3f GetEnd() const;
28 
29 public:
30  KyUInt32 m_visualDebugId;
31  BlobArray<CircleArcSplineSectionBlob> m_sections;
32 };
33 
34 inline void SwapEndianness(Endianness::Target e, CircleArcSplineBlob& self)
35 {
36  SwapEndianness(e, self.m_visualDebugId);
37  SwapEndianness(e, self.m_sections);
38 }
39 
40 class CircleArcSplineBlobBuilder : public BaseBlobBuilder<CircleArcSplineBlob>
41 {
42  KY_CLASS_WITHOUT_COPY(CircleArcSplineBlobBuilder)
43 
44 public:
45  CircleArcSplineBlobBuilder(const CircleArcSpline* circleArcSpline, KyUInt32 visualDebugId) : m_circleArcSpline(circleArcSpline), m_visualDebugId(visualDebugId) {}
46 
47  virtual void DoBuild();
48 
49 private:
50  const CircleArcSpline* m_circleArcSpline;
51  KyUInt32 m_visualDebugId;
52 };
53 
54 } // namespace Kaim
55 
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
#define KY_CLASS_WITHOUT_COPY(ClassName)
Define to forbid copy constructor and copy assignment.
Definition: types.h:196
Target
Enumerates the possible endianness types relative to the current platform.
Definition: endianness.h:27
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17