VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
intersectTimerPassThroughLayer.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 #include <vlutil/vlPerformanceStats.h>
16 #include <tbb/spin_mutex.h>
17 
18 class DtConsoleCommand;
19 
23 {
24 public:
26  DtConsoleCommandManager* cmdMgr);
28 
30  virtual bool chordIntersect(DtTerrainIntersectStatus& status,
31  const DtChord& chord,
33  const DtTerrainIntersectOptions& options) const;
34 
37  const DtChord& chord,
39  const DtTerrainIntersectOptions& options) const;
40 
41  virtual void resetStatistics();
42 
43  virtual void printStatistics();
44 
45  static DtTerrainPassThroughLayer* create(DtCreatorParam createParam);
46 protected:
47  virtual void printStatistic(int statId);
48 protected:
50 
51  mutable tbb::spin_mutex myMutex;
52  mutable DtPerformanceStats myDataAvailableIntersectionStats;
53  mutable DtPerformanceStats myDataUnavailableIntersectionStats;
54  mutable std::map<unsigned int, unsigned int> myDataAvailableIntersectCount;
55  mutable std::map<unsigned int, unsigned int> myDataUnavailableIntersectCount;
56 };
NOTE: This entire class is deprecated, in favor of Dt3dChord.
Definition: chord.h:40
This is the abstract base class for all terrain implementations.
Definition: terrainImplementation.h:164
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
Definition: terrainPassThroughLayer.h:86
std::map< unsigned int, unsigned int > myDataAvailableIntersectCount
Definition: intersectTimerPassThroughLayer.h:54
DtPerformanceStats myDataUnavailableIntersectionStats
Definition: intersectTimerPassThroughLayer.h:53
This is a class which maintains a list of string command names and the callback functions that are to...
Definition: consoleCommandManager.h:48
DtPerformanceStats myDataAvailableIntersectionStats
Definition: intersectTimerPassThroughLayer.h:52
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
A utility class for use with DtConsoleCommandManager.
Definition: consoleCommandManager.h:157
system includes
Definition: consoleCommandManager.h:27
tbb::spin_mutex myMutex
Definition: intersectTimerPassThroughLayer.h:51
Definition: vrfChordIntersectionRecord.h:19
std::map< unsigned int, unsigned int > myDataUnavailableIntersectCount
Definition: intersectTimerPassThroughLayer.h:55
DtConsoleCommandOwner * myCommandOwner
Definition: intersectTimerPassThroughLayer.h:49
This is a DtTerrainPassThroughLayer which times the intersection functions and provides average inter...
Definition: intersectTimerPassThroughLayer.h:22
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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)