VR-Forces 5.0.1 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 
24 {
25 public:
28 
30 
32  virtual bool isUsable() const;
33 
34  int fillStyle() const;
35  int penStyle() const;
36  int lineWidth() const;
37  int arrowStyle() const;
38  int arrowHeadPlacement() const;
39  int arrowSize() const;
40 
43  double ceiling() const;
44  bool ceilingSet() const;
45 
49  double floor() const;
50 
52  double physicalLineHeight() const;
53 
55  double physicalLineWidth() const;
56 
57  int color() const;
58  const DtString userData() const;
59 
60  double intelAreaModifierForForce(int force) const;
61 
63  bool closedFigure() const;
64  bool projected() const;
65  bool ellipsoid() const;
66 
69  const DtRangeItems& rangeItems() const;
71 
75  double sensorSignature(const DtSymbolString& sensorDomain) const;
77 
79  bool leftOf(const DtVector& point) const;
80  bool inside(const DtVector& point) const;
81  bool insideVolume(const DtVector& point) const;
82 
85  bool activated() const;
86  bool useActivationTimes() const;
87  bool activationTimesAreSimulationTime() const;
88  bool activationTimeIsReusable() const;
89  int activationMode() const;
90  bool activatedOnce() const;
91  double activationTime() const;
92  double deactivationTime() const;
93  bool assumeUnknownIsHostile() const;
95 
96 protected:
98  virtual DtSimObjectReference simObject() const = 0;
99  virtual void setupDecorator();
100 
101 protected:
104 };
105 
virtual DtSimObjectReference simObject() const =0
Implemented by subclasses to return the sim object this class represents.
Definition: symbolString.h:20
DtSensorSignatureSimObjectDecorator * mySensorSignatureSimObjectDecorator
Definition: tacticalGraphicSimObjectFacade.h:102
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)
Returns true if localPoint is inside localVertexList in 2D. Always returns false if localVertexList i...
#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:106
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:22
bool myIsVrfTacticalGraphic
Definition: tacticalGraphicSimObjectFacade.h:103

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)