VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
turretSlewController.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 
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 const char* 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 //TODO virtual void setTurretToControl(DtArtPartType turretToControl);
81  virtual DtArtPartType turretToControl() const;
82 
85  virtual double turretBodyRotation() const;
86 
89  virtual bool createSlewPort();
90 
95  virtual DtConstrainedAnalogOutputPort * slewPort();
96 
97 protected:
98 
100  virtual bool createPorts();
101 
109  virtual void lookupAndCacheProcessSR();
110 
111 protected:
112 
115 
118 
121  orig);
122 
123 protected:
124 
127 
135 
137 
144 };
145 

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)