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:
24  virtual ~DtPlatformGeometrySimObjectDecorator() override;
25 
27  virtual bool intersect(const DtChord&, DtVrfChordIntersectionRecord* record = 0) const;
28 
30  virtual bool isEmbeddedInTerrain() const;
31 
32 protected:
34  virtual void tick() override;
35 
36  virtual void update();
37 
38 protected:
43  boost::signals2::scoped_connection myTickConnection;
47  double myLastHeading;
48 };
49 
52 {
53 public:
54  virtual DtSimObjectDecorator* createDecorator(const DtSimObject* o) const override
55  { return new DtPlatformGeometrySimObjectDecorator(o); };
57  { throw makVrf::DtUnimplementedMethod("The DtPlatformGeometryDecorator is not created for the DtLocalObject."); };
58 
59  virtual const char* DecoratorType() const override { return "DtPlatformGeometryDecorator"; };
60 };
NOTE: This entire class is deprecated, in favor of Dt3dChord.
Definition: chord.h:40
Definition: stateDataTypes.h:23
This class is used to interface with the terrain a particular entity is &quot;attached&quot; to...
Definition: attachedTerrain.h:57
bool myAlreadyCheckedEmbarked
Definition: platformGeometryDecorator.h:46
virtual DtLocalObjectDecorator * createDecorator(DtLocalObject *o) const override
Definition: platformGeometryDecorator.h:56
Allows manipulating a terrain object. Returned by functions which create terrain objects.
Definition: terrainImplementation.h:215
DtAppearanceSimObjectFacade myAppearanceSimObjectFacade
Definition: platformGeometryDecorator.h:44
bool myWasEnabledBeforeEmbark
Definition: platformGeometryDecorator.h:45
DtTerrainGeometryHandle * myTerrainEmbeddedGeometry
Definition: platformGeometryDecorator.h:42
virtual const char * DecoratorType() const override
Definition: platformGeometryDecorator.h:59
virtual DtSimObjectDecorator * createDecorator(const DtSimObject *o) const override
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:80
Definition: decoratorBase.h:57
Definition: decoratorBase.h:30
double myLastHeading
Definition: platformGeometryDecorator.h:47
virtual void tick()
No op by default.
Definition: decoratorBase.h:44
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)