VR-Forces 4.10 Class Documentation
 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) 2010 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 
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 
55  virtual void preFirstTickInit();
56 
59  virtual const char* type() const;
60 
63  virtual void calculateTerrainPreLoad(DtVrfObjectTerrainPreloadArgs& args);
64 
66  virtual void geometryChanged();
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  virtual void loadAndBlock();
77 
79  virtual void objectAdded(const DtVrfObject*);
80 
83  static void calculateTerrainPreLoadCallback(
84  DtVrfObjectTerrainPreloadArgs& args, void* usr);
85 
88  static void geometryChangedCallback(const DtVrfObject* obj, void* user);
89 
92  static void objectAddedCallback(const DtVrfObject* simObject, void* usr);
93 
95 
96  boost::scoped_ptr<MAKVRinTerra::DtFeatureSet> myLoadedFeatures;
97  boost::scoped_ptr<MAKVRinTerra::DtAreaFeatureSet> myLOSFeatures;
98 };
#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
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.
const DtTerrainPreloadControllerDescriptor * myDescriptor
Definition: shapeBasedTerrainPreloadController.h:94
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()
boost::scoped_ptr< MAKVRinTerra::DtAreaFeatureSet > myLOSFeatures
Definition: shapeBasedTerrainPreloadController.h:97
This controller is a provider to the DtVrfObjectTerrainPreloadManager.
Definition: shapeBasedTerrainPreloadController.h:25
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:29
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
Base class for the preload controller descriptors.
Definition: terrainPreloadControllerDescriptor.h:18
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
boost::scoped_ptr< MAKVRinTerra::DtFeatureSet > myLoadedFeatures
Definition: shapeBasedTerrainPreloadController.h:96

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)