gwnavgeneration/input/objfileinputproducer.h Source File

objfileinputproducer.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 #pragma once
8 
10 
11 namespace Kaim
12 {
13 
14 class ClientInputConsumer;
15 
20 {
21 public:
22  void SetupCoordSystem(const Kaim::CoordSystemConfig& objCoordSystemConfig) { m_objCoordSystem.Setup(objCoordSystemConfig); }
23 
24  virtual ~ObjFileInputProducer() {}
25 
27  virtual KyResult Produce(const GeneratorSector& sector, ClientInputConsumer& inputConsumer);
28 
29  KyResult ProduceFromObj(const String& inputAbsPath, ClientInputConsumer& inputConsumer);
30 
31 public:
34 };
35 
36 }
void Setup(KyFloat32 oneMeterInClientUnits, ClientAxis clientAxisForNavigationX, ClientAxis clientAxisForNavigationY, ClientAxis clientAxisForNavigationZ)
Sets the mapping between the coordinate system used in the Autodesk Navigation Engine and the game en...
Definition: coordsystem.inl:28
The ClientInputConsumer class is one of the primary components of the NavData generation system...
Definition: clientinputconsumer.h:62
ObjFileInputProducer is a concrete implementation of GeneratorInputProducer that can read the triangl...
Definition: objfileinputproducer.h:19
This class maintains the mapping between the system of coordinate axes used by the client game engine...
Definition: coordsystem.h:119
A structure that sets up the mapping between the coordinate system used in the Autodesk Navigation En...
Definition: coordsystem.h:43
virtual KyResult Produce(const GeneratorSector &sector, ClientInputConsumer &inputConsumer)
Calls ProduceFromObj for each sector.m_inputFileNames with extension ".obj".
Definition: objfileinputproducer.cpp:46
CoordSystem m_objCoordSystem
defines the CoordSystem of the obj files
Definition: objfileinputproducer.h:32
Vec3f m_offset
mostly useful to test purposes, offset is applied in client coordinates
Definition: objfileinputproducer.h:33
Navigation return code class.
Definition: types.h:108
The GeneratorSector class provides a definition for a single sector to be treated by the Generator...
Definition: generatorsector.h:39
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
The GeneratorInputProducer is an abstract base class for an object invoked by the NavData generation ...
Definition: generatorinputproducer.h:28
3d vector using 32bits floating points.
Definition: vec3f.h:16