VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfSensorFieldOfView.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
14 #include <vlutil/vlList.h>
15 #include <vlpi/disEnums.h>
16 #include <matrix/vlVector.h>
19 
20 class DtLocalObject;
22 
28 {
29 private:
33  DtVrfSensorFieldOfView& operator=(const DtVrfSensorFieldOfView& orig);
36 
37 public:
38  DtVrfSensorFieldOfView(DtLocalObject* hostEntity, const DtString& id);
39  virtual ~DtVrfSensorFieldOfView();
40 
41  bool init();
42 
44  DtString id() const;
45 
47 
48  DtVector relativeLocation() const;
49  void setRelativeLocation(const DtVector& loc);
51 
54 
55  DtTaitBryan relativeOrientation() const;
56  void setRelativeOrientation(const DtTaitBryan& ori);
58 
60 
61  virtual void setTargetedEntity(const DtUUID& target);
62  virtual const DtUUID& targetedEntity() const;
64 
66 
67  virtual void setTargetedLocation(const DtVector& target);
68  virtual DtVector targetedLocation() const;
70 
72 
73  virtual void setTrackingMode(DtSensorTrackingMode mode);
74  virtual DtSensorTrackingMode trackingMode() const;
76 
78 
79  DtFloat64 radius() const;
80  void setRadius(DtFloat64 rad);
82 
84 
85  DtFloat64 xHalfAngle() const;
86  void setXHalfAngle(DtFloat64 angle);
88 
90 
91  DtFloat64 yHalfAngle() const;
92  void setYHalfAngle(DtFloat64 angle);
94 
96 
97  DtFloat64 minAzimuthAngle() const;
98  void setMinAzimuthAngle(DtFloat64 angle);
100 
102 
103  DtFloat64 maxAzimuthAngle() const;
104  void setMaxAzimuthAngle(DtFloat64 angle);
106 
108 
109  DtFloat64 minElevationAngle() const;
110  void setMinElevationAngle(DtFloat64 angle);
112 
114 
115  DtFloat64 maxElevationAngle() const;
116  void setMaxElevationAngle(DtFloat64 angle);
118 
120 
121  DtFloat64 maxZoomLevel() const;
122  void setMaxZoomLevel(DtFloat64 level);
124 
126 
127  DtFloat64 currentZoomLevel() const;
128  void setCurrentZoomLevel(DtFloat64 level);
130 
132 
133  DtU32 color() const;
134  void setColor(DtU32 c);
136 
137 protected:
138 
140  virtual bool initSensorFieldOfView();
141 
142 protected:
146 };
UUID is a unique ID wrapper class.
Definition: rwUUID.h:229
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtVrfSensorFieldOfView manages a VR-Link sensor field of view (FOV) publisher, and sets all the value...
Definition: vrfSensorFieldOfView.h:27
DT_DLL_VRVCORE DtTaitBryan level(const DtCoordinateSystem &cs, const DtVector &localOrigin, double topoHeading)
Returns a level orientation with the topographic heading.
DtLocalObject * myHostEntity
Definition: vrfSensorFieldOfView.h:144
1) Define the interface class that will be used to represent the next and curent frames. The UNDEFINED_ macros are convenience macros that will define methods that throw exceptions (until they are implemented)
Definition: sensorFieldOfViewStateComponent.h:21
Instances of DtSensorFieldOfViewEntry are used to specify the parameters that describe the possible a...
Definition: sensorFieldOfViewEntry.h:24
DT_DLL_vrfutil double angle(double vec1[3], double vec2[3])
DtSensorTrackingMode
Definition: sensorFieldOfViewEnums.h:9
DtString mySensorFieldOfViewId
Definition: vrfSensorFieldOfView.h:145
double DtFloat64
Definition: vrvControlStructTypes.h:36
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
const char int mode
Definition: ioapi.h:38
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86
makVrf::DtSensorFieldOfViewStateComponent * mySensorFieldOfViewComponent
Definition: vrfSensorFieldOfView.h:143

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)