VR-Forces 4.1 Class Documentation
ellipsoidTerrainImplementation.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2009 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #ifndef ellipsoidTerrainImplementation_h
12 #define ellipsoidTerrainImplementation_h
13 
17 
18 class DtCoordinateSystem;
19 namespace makArchives
20 {
22 }
23 
29 {
30 public:
33 
34  static DtTerrainImplementation* create(DtConsoleCommandManager* cmdMgr);
35 
36  virtual bool loadTerrain(const makArchives::DtGenericTerrainRecord& record,
38  const TerrainSettings& settings = TerrainSettings());
39 
40  virtual const Coordinate_System* coordinateSystem() const;
41 
44  virtual bool chordIntersect(const DtChord& chord,
48  bool* dataAvailable = 0, bool overrideBlockingAssert = false) const;
49 
52  virtual bool allIntersectsAlongChord(const DtChord& chord,
56  bool* dataAvailable = 0, bool overrideBlockingAssert = false) const;
57 
60  virtual bool sphereIntersect(const DtSphere& sphere, DtSphereIntersectionRecord& record,
63  bool* dataAvailable = 0, bool overrideBlockingAssert = false) const;
64 
65  virtual const DtTerrainCapabilities* terrainCapabilities() const;
66 
68 
69 protected:
70  void fillHitRecord(DtChordIntersectionRecord& rec, const DtChord& chord, const DtPoint& chordNormal,
71  double intersectTime, DtIntersectionRecord::DtIntersectionType irtFlag) const;
72 
73  bool chordEllipsoidIntersect(const DtChord& chord, DtChordIntersectionRecord& hit1,
75 
76 protected:
79 };
80 
81 #endif

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)