VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ellipsoidTerrainImplementation.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 #pragma once
12 
16 
17 class DtCoordinateSystem;
18 namespace makArchives
19 {
20  class DtGenericTerrainRecord;
21 }
22 
28 {
29 public:
32 
33  static DtTerrainImplementation* create(DtConsoleCommandManager* cmdMgr);
34 
35  virtual bool loadTerrain(
37 
38  virtual const Coordinate_System* coordinateSystem() const;
39 
42  virtual bool chordIntersect(const DtChord& chord,
43  DtChordIntersectionRecord& record,
44  DtIntersectionRecord::DtIntersectionType irtFlag =
45  DtIntersectionRecord::INT_ALL_DATA,
46  bool* dataAvailable = 0, bool overrideBlockingAssert = false) const;
47 
50  virtual bool allIntersectsAlongChord(const DtChord& chord,
51  DtChordIntersectRecordList& intList,
52  DtIntersectionRecord::DtIntersectionType irtFlag =
53  DtIntersectionRecord::INT_ALL_DATA,
54  bool* dataAvailable = 0, bool overrideBlockingAssert = false) const;
55 
56  virtual const DtTerrainCapabilities* terrainCapabilities() const;
57 
59 
60 protected:
61  void fillHitRecord(DtChordIntersectionRecord& rec, const DtChord& chord, const DtPoint& chordNormal,
62  double intersectTime, DtIntersectionRecord::DtIntersectionType irtFlag) const;
63 
64  bool chordEllipsoidIntersect(const DtChord& chord, DtChordIntersectionRecord& hit1,
65  DtChordIntersectionRecord& hit2, DtIntersectionRecord::DtIntersectionType irtFlag) const;
66 
67 protected:
68  Coordinate_System* myCoordinateSystem;
70 };

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)