gwnavgeneration/input/objvisualgeometrybuilder.h Source File

objvisualgeometrybuilder.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 
13 
14 namespace Kaim
15 {
16 
17 class ObjFileTriangleSoup;
18 
19 /* VisualRepresentation of all triangles of an obj file.
20  The color of the triangles is set depending on the associated material according to the given color palette.
21  if materialIndex != KyUInt32MAXVAL, only the passed materialIndex is represented. */
22 class ObjVisualGeometryBuilder : public IVisualGeometryBuilder
23 {
24 public:
25  ObjVisualGeometryBuilder(
26  const ObjFileTriangleSoup* obj,
27  const CoordSystem& coordSystem,
28  PolygonWinding triangleWinding = POLYGON_IS_CCW,
29  KyUInt32 representedMaterialIndex = KyUInt32MAXVAL);
30 
31  virtual void DoBuild();
32 
33 private:
34  const ObjFileTriangleSoup* m_objFileReader;
35  CoordSystem m_coordSystem;
36  PolygonWinding m_triangleWinding;
37  KyUInt32 m_representedMaterialIndex;
38 };
39 
40 
41 }
42 
43 
44 
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
#define KyUInt32MAXVAL
KyUInt32 max value
Definition: types.h:68