VR-Forces 4.1 Class Documentation
turretCntlr.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1999 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 DtString;
19 class DtSimManager;
24 
25 
44 {
45 
46 public:
47 
50  DtTurretSlewController(const DtString& name,
51  DtVrfObject* owner,
52  DtSimManager* simManager,
53  DtComponentDescriptor* desc = 0,
54  DtReaderWriterRegistry* parentRegistry = 0);
55 
57  virtual ~DtTurretSlewController();
58 
59  virtual bool init();
60 
63  virtual DtString type() const = 0;
64 
68  virtual void tick();
69 
74  virtual double approximateSlew(double angle);
75 
76  virtual void setMaxSlewRate(DtReal maxSlewRate);
77  virtual DtReal maxSlewRate() const;
78 
79  virtual void setTurretToControl(DtArtPartType turretToControl);
80  virtual DtArtPartType turretToControl() const;
81 
84  virtual double turretBodyRotation() const;
85 
88  virtual bool createSlewPort();
89  virtual bool createLosPort();
90 
95  virtual DtConstrainedAnalogOutputPort * slewPort();
96 
101  virtual DtIntegerOutputPort * losPort();
102 
103 protected:
104 
106  virtual bool createPorts();
107 
115  virtual void lookupAndCacheProcessSR();
116 
117 protected:
118 
121 
124 
127  orig);
128 
129 protected:
130 
133 
141 
149 
151 
158 };
159 

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)