VR-Forces 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 
52  virtual ~DtMovementBasedTerrainPreloadController() override;
53 
54  virtual bool init() override;
55 
58  virtual const char* type() const override;
59 
62  static void calculateTerrainPreLoadCallback(
63  DtVrfObjectTerrainPreloadArgs& args, void* usr);
64 
67  virtual void calculateTerrainPreLoad(DtVrfObjectTerrainPreloadArgs& args);
68 
70  virtual void enable() override;
71 
73  virtual void disable() override;
74 
75  static DtSimComponent * creator(const DtString& name,
76  DtLocalObject* owner,
77  DtSimulationServices* simManager,
78  DtComponentDescriptor* desc = 0,
79  DtReaderWriterRegistry* parentRegistry = 0);
80 
81 protected:
83 
85  double myLastSpeed;
88 };
#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:84
virtual void enable() override
Enables the component and resends capable tasks and sets.
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
virtual const char * type() const override=0
This returns a string from compTypes.h, and identifies the type of component.
Definition: readerWriterRegistry.h:39
virtual void disable() override
Disables the component and resends capable tasks and sets.
virtual bool init() override
Calls setRadio()
DtMovementLocalObjectFacade myMovementLocalObjectFacade
Definition: movementBasedTerrainPreloadController.h:87
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:85
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:97
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
double myLastLookaheadRadius
Definition: movementBasedTerrainPreloadController.h:86
const DtMovementBasedTerrainPreloadControllerDescriptor * myDescriptor
Definition: movementBasedTerrainPreloadController.h:82
Definition: point.h:34
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)