VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
platformGeometryDecorator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
11 #include <tbb/spin_rw_mutex.h>
13 #include <boost/signals2.hpp>
14 
16 class DtAttachedTerrain;
18 
21 {
22 public:
25 
27  virtual bool intersect(const DtChord&, DtVrfChordIntersectionRecord* record = 0) const;
28 
30  virtual bool isEmbeddedInTerrain() const;
31 
32 protected:
34  virtual void tick();
35 
36  virtual void update();
37 
38 protected:
43  boost::signals2::scoped_connection myTickConnection;
47  double myLastHeading;
48 };
49 
52 {
53 public:
55  virtual DtLocalObjectDecorator* createDecorator(DtLocalObject* o) const { throw makVrf::DtUnimplementedMethod("The DtPlatformGeometryDecorator is not created for the DtLocalObject."); };
56 
57  virtual const char* DecoratorType() const { return "DtPlatformGeometryDecorator"; };
58 };
NOTE: This entire class is deprecated, in favor of Dt3dChord.
Definition: chord.h:40
Definition: stateDataTypes.h:23
Definition: attachedTerrain.h:46
bool myAlreadyCheckedEmbarked
Definition: platformGeometryDecorator.h:46
virtual const char * DecoratorType() const
Definition: platformGeometryDecorator.h:57
Allows manipulating a terrain object. Returned by functions which create terrain objects.
Definition: terrainImplementation.h:143
DtAppearanceSimObjectFacade myAppearanceSimObjectFacade
Definition: platformGeometryDecorator.h:44
bool myWasEnabledBeforeEmbark
Definition: platformGeometryDecorator.h:45
DtTerrainGeometryHandle * myTerrainEmbeddedGeometry
Definition: platformGeometryDecorator.h:42
virtual DtSimObjectDecorator * createDecorator(const DtSimObject *o) const
Definition: platformGeometryDecorator.h:54
The DtPlatformGeometryDecoratorCreator will create the appropriate type of platform geometry proxy lo...
Definition: platformGeometryDecorator.h:51
DtAttachedTerrain * myObjectGeometryModel
The object geometry that this object can use to see if it intersects with a higher level fidelity mod...
Definition: platformGeometryDecorator.h:41
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
boost::signals2::scoped_connection myTickConnection
Definition: platformGeometryDecorator.h:43
This will keep track of the objects illumination for sensor purposes.
Definition: platformGeometryDecorator.h:20
Definition: vrfChordIntersectionRecord.h:19
Represents a single simulation object in the exercise. Object may be VRF simulation, or non-VRF simulated, and may be simulated by the local sim engine, or by a remote sim engine. Only public (external) state of the object is available. All data is read-only. All access to data of the object is thread safe within the simulation frame.
Definition: simObject.h:88
Definition: decoratorBase.h:57
Definition: decoratorBase.h:30
double myLastHeading
Definition: platformGeometryDecorator.h:47
virtual void tick()
No op by default.
virtual DtLocalObjectDecorator * createDecorator(DtLocalObject *o) const
Definition: platformGeometryDecorator.h:55
Definition: decoratorBase.h:44
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 Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)