VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
entInRangeSearch.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 #pragma once
9 
11 #include <vlutil/vlString.h>
12 #include <vlutil/vlMachineTypes.h>
14 #include "vrfobjcore/simObject.h"
16 #include <vrfutil/rwUUID.h>
17 
24 
25 class Coordinate_System;
26 
28 {
29 public:
30 
33 
34  DtEntInRangeSearch(const DtUUID& area);
35 
37  virtual ~DtEntInRangeSearch();
38 
40  virtual const DtUUID& target() const;
41 
43  virtual void setTarget(const DtUUID&);
44 
45  void setRange(double);
46  double range() const;
47 
48  void setCoordinateSystem(const Coordinate_System* cs);
49  const Coordinate_System* coordinateSystem();
50 
51  void setWarnedOnce(bool);
52  bool warnedOnce() const;
53 
54 protected:
55 
58  virtual bool initializeSearch(const DtSimulationServices* vrfObjectManager);
59 
61  virtual bool inspectEntity(DtSimObjectReference entity);
62 
66  virtual bool searchSubordinates(
67  DtSimObjectReference pAggEntity, bool excludeDestroyed);
68 
69 private:
72 
75 
76 protected:
77 
80  double myRange;
85 };
86 
87 inline void DtEntInRangeSearch::setRange(double d)
88 {
89  myRange = d;
90 }
91 
92 inline double DtEntInRangeSearch::range() const
93 {
94  return myRange;
95 }
96 
98 {
99  myWarnedOnce = b;
100 }
101 
103 {
104  return myWarnedOnce;
105 }
106 #pragma once
UUID is a unique ID wrapper class.
Definition: uuid.h:59
bool myWarnedOnce
Definition: entInRangeSearch.h:83
bool warnedOnce() const
Definition: entInRangeSearch.h:102
DtSimSubordinateSearch & operator=(const DtSimSubordinateSearch &orig)
assignment operator; not implemented
Definition: entInRangeSearch.h:27
double myRange
Definition: entInRangeSearch.h:80
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
Contains the DtUUID class declaration.
const Coordinate_System * myLocalCS
Definition: entInRangeSearch.h:81
class DtSimSubordinateSearch:
Definition: simSubordinateSearch.h:24
#define DT_DLL_vrfplanmgr
This file is used to determine how to build.
Definition: vrfplanmgrDefines.h:28
Definition: coordSystem.h:54
DtUUID myTarget
Member variables.
Definition: entInRangeSearch.h:79
DtTacticalGraphicSimObjectFacade myTacticalGraphicSimObjectFacade
Definition: entInRangeSearch.h:84
void setWarnedOnce(bool)
Definition: entInRangeSearch.h:97
virtual bool searchSubordinates(DtSimObjectReference entity, bool excludeDestroyed)
SearchSubordinates will call searchSubtree on all the immediate children of a given pseudo aggregate...
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:95
virtual bool initializeSearch(DtSimObjectReference entity)
Override initializeSearch if you need to do some initialization at the start of the search process...
double range() const
Definition: entInRangeSearch.h:92
void setRange(double)
Definition: entInRangeSearch.h:87
virtual bool inspectEntity(DtSimObjectReference entity)
Override inspectEntity to do any tests you want to do on base entities that are found in the search...
DtSimObjectReference myTargetObject
Definition: entInRangeSearch.h:82

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)