VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
movementBasedTerrainPreloadController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 
10 #pragma once
11 
15 
16 #include "features/featureSet.h"
17 #include "features/areaFeature.h"
18 
20 
27 {
28 
29 private:
30 
39 
40 public:
41 
45  DtVrfObject* owner,
46  DtSimManager* simManager,
47  DtComponentDescriptor* desc = 0,
48  DtReaderWriterRegistry* parentRegistry = 0);
49 
52 
53  virtual bool init();
54 
57  virtual const char* type() const;
58 
61  static void calculateTerrainPreLoadCallback(
62  DtVrfObjectTerrainPreloadArgs& args, void* usr);
63 
66  virtual void calculateTerrainPreLoad(DtVrfObjectTerrainPreloadArgs& args);
67 
68  static DtSimComponent * creator(const DtString& name,
69  DtVrfObject* owner,
70  DtSimManager* simManager,
71  DtComponentDescriptor* desc = 0,
72  DtReaderWriterRegistry* parentRegistry = 0);
73 
74 protected:
76 
78  std::auto_ptr<MAKVRinTerra::DtAreaFeatureSet> myLOSFeatures;
79 
81  double myLastSpeed;
83 };
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
const DtControllerComponent & operator=(const DtControllerComponent &orig)
assignment operator
DtPoint myLastPosition
Definition: movementBasedTerrainPreloadController.h:80
virtual const char * type() const =0
This returns a string from compTypes.h, and identifies the type of component.
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
Definition: readerWriterRegistry.h:39
virtual bool init()
Calls setRadio()
This controller is a provider to the DtVrfObjectTerrainPreloadManager.
Definition: movementBasedTerrainPreloadController.h:25
The arguments passed into provider callback functions registered with a DtVrfObjectTerrainPreloadMana...
Definition: vrfObjectTerrainPreloadManager.h:19
double myLastSpeed
Definition: movementBasedTerrainPreloadController.h:81
Descriptor for the DtMovementBasedTerrainPreloadController class.
Definition: movementBasedTerrainPreloadControllerDescriptor.h:22
std::auto_ptr< MAKVRinTerra::DtAreaFeatureSet > myLOSFeatures
these feature sets are just held here to keep them loaded
Definition: movementBasedTerrainPreloadController.h:78
End User Description: DtControllerComponent is the base class for all controllers components...
Definition: controllerComponent.h:29
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
double myLastLookaheadRadius
Definition: movementBasedTerrainPreloadController.h:82
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
const DtMovementBasedTerrainPreloadControllerDescriptor * myDescriptor
Definition: movementBasedTerrainPreloadController.h:75
Definition: point.h:34

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)