gwnavgeneration/input/objvisualgeometrybuilder.h Source File

objvisualgeometrybuilder.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: GUAL - secondary contact: MAMU
9 #ifndef GwNavGen_ObjVisualRepresentation_H
10 #define GwNavGen_ObjVisualRepresentation_H
11 
15 
16 namespace Kaim
17 {
18 
19 class ObjFileReader;
20 
21 /* VisualRepresentation of all triangles of an obj file.
22  The color of the triangles is set depending on the associated material according to the given color palette.
23  if materialIndex != KyUInt32MAXVAL, only the passed materialIndex is represented. */
24 class ObjVisualGeometryBuilder : public IVisualGeometryBuilder
25 {
26 public:
27  ObjVisualGeometryBuilder(
28  const ObjFileReader* obj,
29  const CoordSystem& coordSystem,
30  PolygonWinding triangleWinding = POLYGON_IS_CCW,
31  KyUInt32 representedMaterialIndex = KyUInt32MAXVAL);
32 
33  virtual void DoBuild();
34 
35 private:
36  const ObjFileReader* m_objFileReader;
37  CoordSystem m_coordSystem;
38  PolygonWinding m_triangleWinding;
39  KyUInt32 m_representedMaterialIndex;
40 };
41 
42 
43 }
44 
45 
46 #endif
47 
Definition: gamekitcrowddispersion.h:20
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36
#define KyUInt32MAXVAL
The maximum value that can be stored in the KyUInt32 variable type.
Definition: types.h:226