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 
51 
52  virtual bool init();
53 
54  virtual void preFirstTickInit();
55 
58  virtual const char* type() const;
59 
62  virtual void calculateTerrainPreLoad(DtVrfObjectTerrainPreloadArgs& args);
63 
65  virtual void geometryChanged();
66 
68  virtual void tick();
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  boost::scoped_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...
virtual const char * type() const =0
This returns a string from compTypes.h, and identifies the type of component.
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
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
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
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:95
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:91
Base class for the preload controller descriptors. Contains parameters that can be specified in the p...
Definition: terrainPreloadControllerDescriptor.h:18
boost::scoped_ptr< MAKVRinTerra::DtFeatureSet > myLoadedFeatures
Definition: shapeBasedTerrainPreloadController.h:92
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 Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)