gwnavgeneration/input/objproducer.h Source File

objproducer.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: NOBODY
9 #ifndef GwNavGen_OBJProducer_H
10 #define GwNavGen_OBJProducer_H
11 
12 
14 
15 
16 namespace Kaim
17 {
18 
19 class ObjFileReader;
20 class ClientInputConsumer;
21 class NavTagByString;
22 
23 
27 class OBJProducer : public GeneratorInputProducer
28 {
29 public:
30  void SetupCoordSystem(const Kaim::CoordSystemConfig& objCoordSystemConfig) { m_objCoordSystem.Setup(objCoordSystemConfig); }
31 
32  virtual ~OBJProducer() {}
33 
34  virtual KyResult Produce(const GeneratorSector& sector, ClientInputConsumer& inputConsumer);
35 
36 protected:
37  KyResult ProduceFromObj(const String& inputFileName, ClientInputConsumer& inputConsumer);
38 
39 public:
41 };
42 
43 
44 }
45 
46 
47 #endif
48 
void Setup(KyFloat32 oneMeterInClientUnits, ClientAxis clientAxisForNavigationX, ClientAxis clientAxisForNavigationY, ClientAxis clientAxisForNavigationZ)
Sets the mapping between the coordinate system used in the Gameware Navigation Engine and the game en...
Definition: coordsystem.inl:32
The ClientInputConsumer class is one of the primary components of the NavData generation system...
Definition: clientinputconsumer.h:67
KyInt32 KyResult
Defines a type that can be returned by methods or functions in the Gameware Navigation SDK to indicat...
Definition: types.h:254
This class maintains the mapping between the system of coordinate axes used internally within the gam...
Definition: coordsystem.h:144
A structure that sets up the mapping between the coordinate system used in the Gameware Navigation En...
Definition: coordsystem.h:45
The GeneratorSector class provides a definition for a single sector to be treated by the Generator...
Definition: generatorsector.h:46
CoordSystem m_objCoordSystem
defines the CoordSystem of the obj files
Definition: objproducer.h:44
Definition: gamekitcrowddispersion.h:20
virtual KyResult Produce(const GeneratorSector &sector, ClientInputConsumer &inputConsumer)
Called by the NavData generation system to retrieve the geometry associated to the sector...
The OBJProducer class is a concrete implementation of GeneratorInputProducer that can read the triang...
Definition: objproducer.h:28