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() override;
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) override;
59 
61  virtual bool inspectEntity(DtSimObjectReference entity) override;
62 
66  virtual bool searchSubordinates(DtSimObjectReference pAggEntity, bool excludeDestroyed) override;
67 
68 private:
71 
74 
75 protected:
76 
79  double myRange;
84 };
85 
86 inline void DtEntInRangeSearch::setRange(double d)
87 {
88  myRange = d;
89 }
90 
91 inline double DtEntInRangeSearch::range() const
92 {
93  return myRange;
94 }
95 
97 {
98  myWarnedOnce = b;
99 }
100 
102 {
103  return myWarnedOnce;
104 }
105 #pragma once
UUID is a unique ID wrapper class.
Definition: uuid.h:59
bool myWarnedOnce
Definition: entInRangeSearch.h:82
bool warnedOnce() const
Definition: entInRangeSearch.h:101
DtSimSubordinateSearch & operator=(const DtSimSubordinateSearch &orig)
assignment operator; not implemented
Definition: entInRangeSearch.h:27
double myRange
Definition: entInRangeSearch.h:79
Contains the DtUUID class declaration.
const Coordinate_System * myLocalCS
Definition: entInRangeSearch.h:80
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:78
DtTacticalGraphicSimObjectFacade myTacticalGraphicSimObjectFacade
Definition: entInRangeSearch.h:83
void setWarnedOnce(bool)
Definition: entInRangeSearch.h:96
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:96
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:91
void setRange(double)
Definition: entInRangeSearch.h:86
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:81

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)