VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes
DtIntersectRecordPassThroughLayer Class Reference

Record all intersections to a file. More...

Inheritance diagram for DtIntersectRecordPassThroughLayer:
Inheritance graph
[legend]

Public Member Functions

 DtIntersectRecordPassThroughLayer (DtTerrainImplementation *implementation, DtConsoleCommandManager *cmdMgr, DtString filename=DtString())
 
virtual ~DtIntersectRecordPassThroughLayer ()
 
virtual bool chordIntersect (DtTerrainIntersectStatus &status, const DtChord &chord, DtVrfChordIntersectionRecord &record, const DtTerrainIntersectOptions &options) const
 Returns topmost intersection of chord with terrain in record. More...
 
virtual bool allIntersectsAlongChord (DtTerrainIntersectStatus &status, const DtChord &chord, DtVrfChordIntersectRecordList &intList, const DtTerrainIntersectOptions &options) const
 Returns all intersections of chord with terrain. More...
 
- Public Member Functions inherited from DtTerrainPassThroughLayer
 DtTerrainPassThroughLayer (DtTerrainImplementation *terrainImplementation, DtConsoleCommandManager *cmdMgr)
 The implementation that this layer is wrapping must be passed in within the constructor. More...
 
virtual ~DtTerrainPassThroughLayer ()
 
virtual
MAKVRinTerra::DtFeatureDatabase
featureDatabase ()
 Access feature database. More...
 
virtual const
MAKVRinTerra::DtFeatureDatabase
featureDatabase () const
 
virtual
MAKVRinTerra::DtFeatureContext
featureContext ()
 Access feature context. More...
 
virtual const
MAKVRinTerra::DtFeatureContext
featureContext () const
 
virtual bool loadTerrain (const makArchives::DtGenericTerrainRecord &rec)
 Loads a terrain given the terrain record. More...
 
virtual const Coordinate_SystemcoordinateSystem () const
 
virtual void shutdown (bool block)
 Shutdown the terrain. More...
 
virtual void preloadTerrainAreas (const DtTerrainPagingGeometryList &preloadGeometry)
 Specifies a list of terrain areas that should be preloaded by the terrain implementation, in the case of a paging or streaming terrain source. More...
 
virtual void cacheTerrainArea (int requestId, unsigned minLOD, unsigned maxLOD, const DtExtent &cacheArea, DtCacheProgressCallbackFunction fcn=0, void *usr=0)
 Passed through to terrain implementation. More...
 
virtual void cancelCacheTerrainArea (int requestId)
 Passed through to terrain implementation. More...
 
virtual const
DtTerrainCapabilities
terrainCapabilities () const
 
virtual void setIntersectDataLoadExpireTime (const double &expireTime)
 No-op. More...
 
virtual void expireDataLoadRequestsBeforeTime (const double &currentTime)
 No-op. More...
 
virtual void processTrianglesInArea (DtTriangleOutputInterface &, const DtTerrainProcessPolygonsBox &box) const
 
virtual DtTerrainInformationterrainInformation ()
 Return the terrain information pointer of the terrain implementation (null if none exist) this is a debug/optional function call (return null if not implemented) More...
 
- Public Member Functions inherited from DtTerrainImplementation
 DtTerrainImplementation (DtConsoleCommandManager *cmdManager)
 
virtual ~DtTerrainImplementation ()
 
virtual void init ()
 Called immediately after creation. More...
 
virtual void finishedLoading (const MAKVRinTerra::DtProj &proj)
 Called after terrain loaded successfully. More...
 
virtual double modelHeightDifferencesFromAppearances (int oldApp, int newApp) const
 If supported by the implementation, return the height difference from the currently loaded model as a transition from the old appearance to the new appearance. More...
 
virtual bool createFromExtent (const Dt3dBoundingVolume &)
 Creates an extent from the given extent. Not all implementations will support this. More...
 
virtual bool loadModel (const DtFilename &, const DtEntityType &t=DtEntityType())
 Defaults to loading terrain for gdb. More...
 
virtual DtTerrainInterfaceConfigconfigurationOptions ()
 
virtual const
DtTerrainInterfaceConfig
configurationOptions () const
 
virtual bool dataAvailable (const DtTerrainPagingGeometryList &geometry, DtTerrainIntersectOptions::Fidelity=DtTerrainIntersectOptions::MAX_FIDELITY)
 Returns true if all of the terrain which intersects the geometry list is paged in. More...
 
virtual void breakUpChords (const MAKVRinTerra::DtProj &, const DtChord &chord, std::vector< DtChord > &chords)
 
virtual bool hasFeatureContext () const
 Returns true if there is an active feature context. More...
 
virtual DtTerrainGeometryHandlecreateEntityGeometry (const DtFilename &file)
 Create geometry in the terrain which represents the entity. More...
 
virtual DtTerrainGeometryHandlecreateEntityGeometry (const DtEntityType &file)
 Create geometry in the terrain which represents the entity by the given type, looking up visuals. More...
 
virtual void loadVisuals (const DtScenarioExplorer &)
 Tells the terrain implementation (if it cares) to load visuals to support terrain/model usage. More...
 
virtual
DtDynamicTerrainRequestHandle 
addDynamicTerrainChangeRequest (double time, makVrv::DtDynamicTerrainChange *command)
 Add a dynamic terrain change request to the system. More...
 
virtual DtDynamicTerrainQueryHandle queryDynamicTerrainFeatures (const DtDynamicTerrainQueryCallback &callback, makVrv::DtDynamicTerrainGeometry *geometry=0, bool useOriginalGeometry=false)
 Install a query which will call the supplied callback on matching dynamic terrain features as they are paged in. More...
 
virtual void queryCurrentDynamicTerrainFeatures (const DtDynamicTerrainQueryCallback &callback, makVrv::DtDynamicTerrainGeometry *geometry=0, bool useOriginalGeometry=false)
 
virtual void writeTerrainIndex (const DtString &name)
 Write terrain index. More...
 
virtual void setAssertOnBlockingTerrainCalls (bool assertBlock)
 Determines if an exception should be thrown if a blocking terrain call is made. More...
 
virtual bool assertOnBlockingTerrainCalls () const
 
virtual void setWarnOnBlockingTerrainCalls (bool warnBlock)
 Determines if a warning should be printed out if a blocking terrain call is made. More...
 
virtual bool warnOnBlockingTerrainCalls () const
 

Static Public Member Functions

static DtTerrainPassThroughLayercreate (DtCreatorParam createParam)
 

Protected Attributes

DtConsoleCommandOwnermyCommandOwner
 
tbb::atomic< unsigned intmyIndex
 
tbb::spin_mutex myMutex
 
std::ofstream myOutputText
 
- Protected Attributes inherited from DtTerrainPassThroughLayer
DtTerrainImplementationmyTerrainImplementation
 
- Protected Attributes inherited from DtTerrainImplementation
DtTerrainInterfaceConfig myConfig
 
bool myAssertOnBlockingTerrainCalls
 Determines if an exception should be thrown if a blocking terrain call is made. More...
 
bool myWarnOnBlockingTerrainCalls
 
boost::scoped_ptr
< MAKVRinTerra::DtFeatureDatabase
myFeatureDatabase
 
boost::scoped_ptr
< MAKVRinTerra::DtFeatureContext
myFeatureContext
 

Additional Inherited Members

- Public Types inherited from DtTerrainImplementation
typedef boost::function< void(const
makVrv::DtDynamicTerrainFeature &)> 
DtDynamicTerrainQueryCallback
 

Detailed Description

Record all intersections to a file.

Constructor & Destructor Documentation

DtIntersectRecordPassThroughLayer::DtIntersectRecordPassThroughLayer ( DtTerrainImplementation implementation,
DtConsoleCommandManager cmdMgr,
DtString  filename = DtString() 
)
virtual DtIntersectRecordPassThroughLayer::~DtIntersectRecordPassThroughLayer ( )
virtual

Member Function Documentation

static DtTerrainPassThroughLayer* DtIntersectRecordPassThroughLayer::create ( DtCreatorParam  createParam)
static
virtual bool DtIntersectRecordPassThroughLayer::chordIntersect ( DtTerrainIntersectStatus status,
const DtChord chord,
DtVrfChordIntersectionRecord record,
const DtTerrainIntersectOptions options 
) const
virtual

Returns topmost intersection of chord with terrain in record.

Reimplemented from DtTerrainPassThroughLayer.

virtual bool DtIntersectRecordPassThroughLayer::allIntersectsAlongChord ( DtTerrainIntersectStatus status,
const DtChord chord,
DtVrfChordIntersectRecordList intList,
const DtTerrainIntersectOptions options 
) const
virtual

Returns all intersections of chord with terrain.

intList is the list of each intersection record.

Reimplemented from DtTerrainPassThroughLayer.

Member Data Documentation

DtConsoleCommandOwner* DtIntersectRecordPassThroughLayer::myCommandOwner
protected
tbb::atomic<unsigned int> DtIntersectRecordPassThroughLayer::myIndex
mutableprotected
tbb::spin_mutex DtIntersectRecordPassThroughLayer::myMutex
mutableprotected
std::ofstream DtIntersectRecordPassThroughLayer::myOutputText
mutableprotected

The documentation for this class was generated from the following file:

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)