VR-Forces 4.2 Class Documentation
gdbTerrainImplementation.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #ifndef gdbTerrainImplementation_h
12 #define gdbTerrainImplementation_h
13 
16 #include <geometry/intersectionRecord.h>
18 #include "geometry/surface.h"
19 #include "gdb/gdbNode.h"
20 #include "gdb/group.h"
21 #include "gdb/triInd.h"
22 
23 class DtTdbManager;
24 class DtTerrainImplementationDescriptor;
25 namespace makArchives
26 {
27  class DtGenericTerrainRecord;
28 }
29 
35 {
36 public:
38 
39  virtual ~DtGdbTerrainImplementation();
40 
41  static DtTerrainImplementation* create(DtConsoleCommandManager* cmdMgr);
42 
43  virtual bool loadTerrain(const makArchives::DtGenericTerrainRecord& record,
45  const TerrainSettings& settings = TerrainSettings());
46 
47  virtual const Coordinate_System* coordinateSystem() const;
48 
51  virtual bool chordIntersect(const DtChord& chord,
52  DtChordIntersectionRecord& record,
53  DtIntersectionRecord::DtIntersectionType irtFlag = DtIntersectionRecord::INT_ALL_DATA,
54  bool* dataAvailable = 0, bool overrideBlockingAssert = false) const;
55 
58  virtual bool allIntersectsAlongChord(const DtChord& chord,
59  DtChordIntersectRecordList& intList,
60  DtIntersectionRecord::DtIntersectionType irtFlag = DtIntersectionRecord::INT_ALL_DATA,
61  bool* dataAvailable = 0, bool overrideBlockingAssert = false) const;
62 
65  virtual bool sphereIntersect(const DtSphere& sphere, DtSphereIntersectionRecord& record,
66  DtIntersectionRecord::DtIntersectionType irtFlag = DtIntersectionRecord::INT_ALL_DATA,
67  bool* dataAvailable = 0, bool overrideBlockingAssert = false) const;
68 
69  virtual const DtTerrainCapabilities* terrainCapabilities() const;
70 
72  virtual void consumeNode(DtGdbNode* gdbNode, DtTerrainProcessPolygonsBox& box, DtTriangleCallbackFcn func, void* usr) const;
73 protected:
74  DtTdbManager* myTdbManager;
76 };
77 
78 #endif

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)