VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
intersectRecordPassThroughLayer.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
15 
16 #include <tbb/spin_mutex.h>
17 #include <tbb/atomic.h>
18 
19 #include <sstream>
20 #include <fstream>
21 
22 class DtConsoleCommand;
23 class DtTerrainInterface;
24 
26 {
27 public:
29  {
34  int flags;
35 
37  unsigned int index;
39  double time;
44 
45  Record* clone() const;
46 
48  void run(DtTerrainInterface&);
49 
50  std::string serialize() const;
51  bool deserialize(const std::string&, std::string* errorMsg = 0);
52 
53  double timeDiff(const Record&) const;
54  std::vector<double> distanceDiffs(const Record&) const;
55  };
56 };
57 
60 {
61 public:
62  static DtTerrainPassThroughLayer* create(DtCreatorParam createParam);
63 
66 
68 
69  virtual bool chordIntersect(DtTerrainIntersectStatus& status,
70  const DtChord& chord,
72  const DtTerrainIntersectOptions& options) const;
73 
75  const DtChord& chord,
77  const DtTerrainIntersectOptions& options) const;
78 
79 protected:
81 
82  mutable tbb::atomic<unsigned int> myIndex;
83 
84  mutable tbb::spin_mutex myMutex;
85  //mutable std::stringstream myOutputText;
86  mutable std::ofstream myOutputText;
87 };
NOTE: This entire class is deprecated, in favor of Dt3dChord.
Definition: chord.h:40
Definition: intersectRecordPassThroughLayer.h:28
This is the abstract base class for all terrain implementations.
Definition: terrainImplementation.h:162
DtVrfChordIntersectionRecord represents a list of DtChordIntersectRecords.
Definition: vrfChordIntersectRecordList.h:31
virtual bool allIntersectsAlongChord(DtTerrainIntersectStatus &status, const DtChord &chord, DtVrfChordIntersectRecordList &intList, const DtTerrainIntersectOptions &options) const
Returns all intersections of chord with terrain.
This class is the base class for creating a &quot;pass-though&quot; layer in the terrain interface.
Definition: terrainPassThroughLayer.h:22
bool returnValue
value returned from intersect function
Definition: intersectRecordPassThroughLayer.h:41
DtConsoleCommandOwner * myCommandOwner
Definition: intersectRecordPassThroughLayer.h:80
Definition: terrainPassThroughLayer.h:86
Record all intersections to a file.
Definition: intersectRecordPassThroughLayer.h:59
bool singleResult
terrain query data
Definition: intersectRecordPassThroughLayer.h:31
This is a class which maintains a list of string command names and the callback functions that are to...
Definition: consoleCommandManager.h:48
double time
amount of time to run intersection
Definition: intersectRecordPassThroughLayer.h:39
std::ofstream myOutputText
Definition: intersectRecordPassThroughLayer.h:86
tbb::atomic< unsigned int > myIndex
Definition: intersectRecordPassThroughLayer.h:82
tbb::spin_mutex myMutex
Definition: intersectRecordPassThroughLayer.h:84
DtTerrainIntersectOptions Passed to terrain intersect functions to modify how intersect acts...
Definition: terrainIntersectOptions.h:15
#define DT_DLL_terrainInterface
This file is used to determine how to build.
Definition: terrainInterfaceDefines.h:25
Definition: intersectRecordPassThroughLayer.h:25
DtVrfChordIntersectRecordList intersections
results of intersection
Definition: intersectRecordPassThroughLayer.h:43
A utility class for use with DtConsoleCommandManager.
Definition: consoleCommandManager.h:157
DtTerrainInterface allows access to common terrain calls without having to know the terrain implement...
Definition: terrainInterface.h:84
system includes
Definition: consoleCommandManager.h:27
DtChord chord
Definition: intersectRecordPassThroughLayer.h:32
Definition: vrfChordIntersectionRecord.h:19
unsigned int index
count of records
Definition: intersectRecordPassThroughLayer.h:37
int flags
Definition: intersectRecordPassThroughLayer.h:34
virtual bool chordIntersect(DtTerrainIntersectStatus &status, const DtChord &chord, DtVrfChordIntersectionRecord &record, const DtTerrainIntersectOptions &options) const
Returns topmost intersection of chord with terrain in record.
DtTerrainIntersectStatus Contains information about result of terrain intersection.
Definition: terrainIntersectStatus.h:16
DtIntersectionType
Definition: intersectionRecord.h:41
DtIntersectionRecord::DtIntersectionType irtFlag
Definition: intersectRecordPassThroughLayer.h:33

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)