VR-Forces Developer's Guide
 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. A terrain implementation is used by ...
Definition: terrainImplementation.h:172
DtVrfChordIntersectionRecord represents a list of DtChordIntersectRecords. This is useful for followi...
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. intList is the list of each intersection record...
This class is the base class for creating a &quot;pass-though&quot; layer in the terrain interface. A pass-though layer contains a real terrain implementation but it wraps all the functions in pass-though functions, which may perform operations in addition to the calls being made to the real terrain implementation. This may be used for logging intersections, gathering statistics, or doing performance analysis.
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:56
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. This class takes ownership of an arbitrary numb...
Definition: consoleCommandManager.h:168
system includes
Definition: consoleCommandManager.h:28
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 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)