VR-Forces 4.7 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 };

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)