VR-Forces 4.1 Class Documentation
baseMountCtlr.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1999-2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
14 
15 #include "vrfobjcore/cntrlCmpnt.h"
16 #include <vlpi/disEnums.h>
17 
18 class DtAnalogInputPort;
20 class DtIntegerInputPort;
21 
32 {
33 
34 public:
35 
39  DtVrfObject* owner,
40  DtSimManager* simManager,
41  DtComponentDescriptor* desc = 0,
42  DtReaderWriterRegistry* parentRegistry = 0);
43 
45  virtual ~DtBaseMountingController();
46 
48  virtual bool postAddComponentsInit();
49 
52  virtual DtString type() const;
53 
55  virtual DtOutputPortGroup* mountingControlPortGroup();
56 
58  virtual DtInputPortGroup* azimuthInfoPortGroup();
59 
61  virtual DtInputPortGroup* elevationInfoPortGroup();
62 
64  virtual void tick();
65 
84  virtual void reorientMounting();
85 
89  virtual void setDesiredAzimuth(DtReal desiredAzimuth);
90  virtual DtReal desiredAzimuth();
92 
96  virtual void setDesiredElevation(DtReal desiredElevation);
97  virtual DtReal desiredElevation();
99 
100  virtual void findDesiredAzimuthAndElevation();
101 
108  virtual bool desiredOrientationIsInRange(double& azimuthOutOfRangeBy,
109  double& elevationOutOfRangeBy, double additionalAzimuthMargin = 0.0,
110  double additionalElevationMargin = 0.0);
111 
114  virtual bool createAzimuthPort();
115  virtual DtConstrainedAnalogOutputPort * azimuthPort() const;
116 
117  virtual bool createElevationPort();
118  virtual DtConstrainedAnalogOutputPort * elevationPort() const;
119 
121  virtual bool createAzimuthInfoPorts();
122 
124  virtual bool createElevationInfoPorts();
125 
134  virtual double approximateMountSwing(double angleChange, double maxRate);
135 
139  static DtSimComponent * creator(const DtString& name,
140  DtVrfObject* owner,
141  DtSimManager* simManager,
142  DtComponentDescriptor* desc = 0,
143  DtReaderWriterRegistry* parentRegistry = 0);
144 
145 protected:
146 
148  virtual bool createPortGroups();
149 
151  virtual bool createPorts();
152 
153 protected:
154 
157 
160 
163  orig);
164 
165 protected:
166 
169 
174 
181 
188 
195 
202 
207 
214 
221 
228 
235 
240 
247 
254 
256 
260 
265 
270 
271 };
272 

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)