VR-Forces 5.0.3 Developer's Guide
 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) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 
10 #pragma once
11 
16 
17 #include "features/featureSet.h"
18 #include "features/areaFeature.h"
19 
21 
28 {
29 
30 private:
31 
40 
41 public:
42 
46  DtLocalObject* owner,
47  DtSimulationServices* simManager,
48  DtComponentDescriptor* desc = 0,
49  DtReaderWriterRegistry* parentRegistry = 0);
50 
53 
54  virtual bool init();
55 
58  virtual const char* type() const;
59 
62  static void calculateTerrainPreLoadCallback(
63  DtVrfObjectTerrainPreloadArgs& args, void* usr);
64 
67  virtual void calculateTerrainPreLoad(DtVrfObjectTerrainPreloadArgs& args);
68 
69  static DtSimComponent * creator(const DtString& name,
70  DtLocalObject* owner,
71  DtSimulationServices* simManager,
72  DtComponentDescriptor* desc = 0,
73  DtReaderWriterRegistry* parentRegistry = 0);
74 
75 protected:
77 
79  double myLastSpeed;
82 };
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
const DtControllerComponent & operator=(const DtControllerComponent &orig)
assignment operator
DtPoint myLastPosition
Definition: movementBasedTerrainPreloadController.h:78
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:49
Definition: readerWriterRegistry.h:39
virtual bool init()
Calls setRadio()
DtMovementLocalObjectFacade myMovementLocalObjectFacade
Definition: movementBasedTerrainPreloadController.h:81
This controller is a provider to the DtVrfObjectTerrainPreloadManager. It uses the current movement s...
Definition: movementBasedTerrainPreloadController.h:26
The arguments passed into provider callback functions registered with a DtVrfObjectTerrainPreloadMana...
Definition: vrfObjectTerrainPreloadManager.h:19
double myLastSpeed
Definition: movementBasedTerrainPreloadController.h:79
Descriptor for the DtMovementBasedTerrainPreloadController class. Contains parameters that can be spe...
Definition: movementBasedTerrainPreloadControllerDescriptor.h:22
End User Description: DtControllerComponent is the base class for all controllers components...
Definition: controllerComponent.h:31
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:90
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
double myLastLookaheadRadius
Definition: movementBasedTerrainPreloadController.h:80
const DtMovementBasedTerrainPreloadControllerDescriptor * myDescriptor
Definition: movementBasedTerrainPreloadController.h:76
Definition: point.h:34
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)