VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
baseImporter.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
8 #include <kypdg.h>
10 
11 #include "gdb/rangeNetworkSegmentMetric.h"
12 #include "gdb/vectorNetwork.h"
13 #include "gdb/networkSegment.h"
14 #include "gdb/specification.h"
17 
18 class DtTerrainInterface;
19 
21 namespace BHAVE {
22 
26 {
27 protected:
29 
30 public:
31  virtual ~DtBaseImporter();
32 
34  virtual bool initializeCoordinateSystem() = 0;
35 
37  virtual bool generateTriangleMesh(Kaim::ClientInputConsumer & kynapseConsumer, DtExtentBoxStruct* boundingBox = 0) = 0;
38 
40  virtual void setTempKynapseConsumerPtr(Kaim::ClientInputConsumer* kynapseConsumer);
41 
43  virtual const Kaim::ClientInputConsumer* tempKynapseConsumerPtr() const;
44 
47  virtual void applyFeaturesToTriangles(DtTerrainInterface* terrainInterface, DtTerrainProcessPolygonsBox& box,
49 
53  static void processBoundingPolygon(const std::deque<DtPoint>& points, unsigned int terrainType, void* usr);
54 
57  virtual void addTerrainVolume(Kaim::Vec3f* bounds, unsigned int numPoints, KyUInt32 terrainType) const;
58 
60  virtual bool generateObstacleFeatures() const { return myGenerateObstacleFeatures; }
61 
63  virtual void setGenerateObstacleFeatures(bool val) { myGenerateObstacleFeatures = val; }
64 
66  virtual bool generatePathFeatures() const { return myGeneratePathFeatures; }
67 
69  virtual void setGeneratePathFeatures(bool val) { myGeneratePathFeatures = val; }
70 
72  virtual void setImpassableTerrain(DtSoilType soilType);
73  virtual void unsetImpossibleTerrain(DtSoilType soilType);
74 
76  virtual void setImpassableWater(DtBodyOfWaterType soilType);
77 
79  virtual void unsetImpossibleWater(DtBodyOfWaterType soilType);
80 
81 protected:
82  Kaim::ClientInputConsumer* myTempConsumerPtr;
85  std::set<DtSoilType> myImpassableTerrainTypes;
86  std::set<DtBodyOfWaterType> myImpassableWaterTypes;
87 };
88 
89 }
90 

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)