VR-Forces 4.2 Class Documentation
laserDetectorPort.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: laserDetectorPort.h,v $ $Revision: 1.1 $ $State: Exp $
7 *******************************************************************************/
8 
11 
14 
15 #ifndef DtLaserDetectorPort_H_
16 #define DtLaserDetectorPort_H_
17 
19 #include "vrfobjcore/outputPort.h"
20 #include "vrfobjcore/portData.h"
21 #include "vrfutil/rwReal.h"
22 
24 
25 extern const char* DtLaserSpotPortDatatype;
26 
27 //each laser spot report has this information
28 //no virtual functions-do not derive from this class
29 
32 {
33 public:
34  //constructors
36  DtLaserSpotData(const DtString& name, DtReaderWriterRegistry* const parentRegistry = NULL);
37  DtLaserSpotData(const DtSymbolString& name,DtReaderWriterRegistry* const parentRegistry = NULL);
38 
39  //copy and assignment
40  DtLaserSpotData(const DtLaserSpotData& target, DtReaderWriterRegistry* const parentRegistry = NULL);
42 
43  ~DtLaserSpotData();
44 
45  //distance from the object being lased to the designator
46  void setDistance(double d);
47  double distance() const;
48 
49  //azimuth from the object being lased to the designator
50  void setAzimuth(double a);
51  double azimuth() const;
52 
53 protected:
56 
57 public:
58 };
59 
61 
66 {
67 public:
71  virtual ~DtLaserSpotListPortData();
76 
78  virtual const DtString type() const;
79 
81  virtual void setValue(DtLaserSpotList* v);
82 
84  virtual DtLaserSpotList* value() const;
85 
87  virtual DtPortData* clone() const;
88 
89 protected:
91 };
92 
97 {
98 public:
99  DtLaserDetectorInputPort(const DtString& portName);
100  virtual ~DtLaserDetectorInputPort();
101 
103  virtual bool acceptType(const DtString& type) const;
104 
106  virtual const DtLaserSpotList* value() const;
107 };
108 
113 {
114 public:
115  DtLaserDetectorOutputPort(const DtString& portName);
116  virtual ~DtLaserDetectorOutputPort();
117 
119  virtual const DtString type() const;
120 
122  virtual void createPortData();
123 
126  virtual void emptyList();
127 
129  virtual void addSpotReport(const DtLaserSpotData& spot);
130 
133  virtual void removeSpotReport(const DtLaserSpotData& spot);
134 
135  virtual const DtLaserSpotList* value() const;
136 
137 protected:
139 };
140 
141 
142 #endif

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)