VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
tacticalGraphicSimObjectFacade.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 
10 
11 #define DtLineWidthFromAppearance(theAppr) ((theAppr >> 28) & 0x0000000F)
12 #define DtLineWidthToAppearance(theLineWidth) (theLineWidth << 28)
13 #define DtLineStyleFromAppearance(theAppr) ((theAppr >> 8) & 0x0000000F)
14 #define DtLineStyleToAppearance(theLineStyle) (theLineStyle << 8)
15 #define DtFillStyleFromAppearance(theAppr) ((theAppr >> 12) & 0x0000000F)
16 #define DtFillStyleToAppearance(theFillStyle) (theFillStyle << 12)
17 
18 class DtRangeItems;
20 class DtSymbolString;
21 
25 {
26 public:
29 
31 
33  virtual bool isUsable() const;
34 
35  int fillStyle() const;
36  int penStyle() const;
37  int lineWidth() const;
38  int arrowStyle() const;
39  int arrowHeadPlacement() const;
40  int arrowSize() const;
41 
44  double ceiling() const;
45  bool ceilingSet() const;
46 
50  double floor() const;
51 
53  double physicalLineHeight() const;
54 
56  double physicalLineWidth() const;
57 
58  int color() const;
59  const DtString userData() const;
60 
61  double intelAreaModifierForForce(int force) const;
62 
64  bool closedFigure() const;
65  bool projected() const;
66  bool ellipsoid() const;
67 
68  int objectAttachMode() const;
69 
72  const DtRangeItems& rangeItems() const;
74 
78  double sensorSignature(const DtSymbolString& sensorDomain) const;
80 
82  bool leftOf(const DtVector& point) const;
83  bool inside(const DtVector& point) const;
84  bool insideVolume(const DtVector& point) const;
85 
88  bool activated() const;
89  bool useActivationTimes() const;
90  bool activationTimesAreSimulationTime() const;
91  bool activationTimeIsReusable() const;
92  int activationMode() const;
93  bool activatedOnce() const;
94  double activationTime() const;
95  double deactivationTime() const;
96  bool assumeUnknownIsHostile() const;
98 
99 protected:
101  virtual DtSimObjectReference simObject() const = 0;
102  virtual void setupDecorator();
103 
104 protected:
107 };
108 
virtual DtSimObjectReference simObject() const =0
Implemented by subclasses to return the sim object this class represents.
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
DtSensorSignatureSimObjectDecorator * mySensorSignatureSimObjectDecorator
Definition: tacticalGraphicSimObjectFacade.h:105
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
DT_DLL_vrfutil bool leftOf(const DtVector &localPoint, const DtLocalVertexList &localVertexList, const Coordinate_System &coordinateSystem)
Returns true if localPoint is left of the localVertexList in 2D. Always returns false if this has onl...
bool isUsable() const
Make this call after construction to see if the supplied sim object can use this class.
DT_DLL_vrfutil bool inside(const DtVector &localPoint, const DtLocalVertexList &localVertexList, const Coordinate_System &coordinateSystem)
Determine if the given localPoint is inside the polygon defined by the given localVertexList.
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
This will keep track of the objects sensor signature.
Definition: sensorSignatureDecorator.h:16
DtSimObjectFacade< DtTacticalGraphicSimObjectFacadeInterface > DtTacticalGraphicSimObjectFacade
Definition: tacticalGraphicSimObjectFacade.h:109
This DtAppearanceSimObjectFacadeInterface class will provide common routines for appearances that app...
Definition: appearanceSimObjectFacade.h:20
Definition: rangeItem.h:206
This DtTacticalGraphicSimObjectFacadeInterface class will provide API functionality for tactical grap...
Definition: tacticalGraphicSimObjectFacade.h:23
bool myIsVrfTacticalGraphic
Definition: tacticalGraphicSimObjectFacade.h:106

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)