VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
shapeBasedTerrainPreloadController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
14 
17 
18 #include "features/featureSet.h"
19 #include "features/areaFeature.h"
20 
22 
27 {
28 private:
29 
38 
39 public:
40 
44  DtLocalObject* owner,
45  DtSimulationServices* simManager,
46  DtComponentDescriptor* desc = 0,
47  DtReaderWriterRegistry* parentRegistry = 0);
48 
50  virtual ~DtShapeBasedTerrainPreloadController() override;
51 
52  virtual bool init() override;
53 
54  virtual void preFirstTickInit() override;
55 
58  virtual const char* type() const override;
59 
62  virtual void calculateTerrainPreLoad(DtVrfObjectTerrainPreloadArgs& args);
63 
65  virtual void geometryChanged();
66 
68  virtual void tick() override;
69 
70  static DtSimComponent * creator(const DtString& name,
71  DtLocalObject* owner,
72  DtSimulationServices* simManager,
73  DtComponentDescriptor* desc = 0,
74  DtReaderWriterRegistry* parentRegistry = 0);
75 
76 protected:
78  virtual void loadAndBlock();
79 
82  static void calculateTerrainPreLoadCallback(
83  DtVrfObjectTerrainPreloadArgs& args, void* usr);
84 
87  virtual void processSimObjectAdded(DtSimObjectReference);
88 
89 protected:
91 
92  std::unique_ptr<MAKVRinTerra::DtFeatureSet> myLoadedFeatures;
93 
94  boost::signals2::scoped_connection mySimObjectAddedConnection;
95 };
#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
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
const DtTerrainPreloadControllerDescriptor * myDescriptor
Definition: shapeBasedTerrainPreloadController.h:90
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
boost::signals2::scoped_connection mySimObjectAddedConnection
Definition: shapeBasedTerrainPreloadController.h:94
virtual bool init() override
Calls setRadio()
This controller is a provider to the DtVrfObjectTerrainPreloadManager. It uses the shape of the (area...
Definition: shapeBasedTerrainPreloadController.h:25
std::unique_ptr< MAKVRinTerra::DtFeatureSet > myLoadedFeatures
Definition: shapeBasedTerrainPreloadController.h:92
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
The arguments passed into provider callback functions registered with a DtVrfObjectTerrainPreloadMana...
Definition: vrfObjectTerrainPreloadManager.h:19
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:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
Base class for the preload controller descriptors. Contains parameters that can be specified in the p...
Definition: terrainPreloadControllerDescriptor.h:18
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)