VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lookAtActuator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 #pragma once
11 
14 #include <vl/hostStructs.h>
15 
17 class DtAnalogInputPort;
18 class DtBooleanInputPort;
19 class DtVectorInputPort;
20 class DtInputPortGroup;
21 
29 
31 {
32 
33 public:
34 
37  DtLookAtActuator(const DtString& name,
38  DtVrfObject* owner,
39  DtSimManager* simManager,
40  DtComponentDescriptor* desc = 0,
41  DtReaderWriterRegistry* parentRegistry = 0);
42 
43 
45  virtual ~DtLookAtActuator();
46 
49  virtual const char* type() const;
50 
52  virtual void tick();
53 
57  static DtSimComponent * creator(const DtString& name,
58  DtVrfObject* owner,
59  DtSimManager* simManager,
60  DtComponentDescriptor* desc = 0,
61  DtReaderWriterRegistry* parentRegistry = 0);
62 
64  virtual bool init();
65 
66 protected:
67 
69  virtual bool createPortGroups();
70 
72  virtual bool createPorts();
73 
75  virtual void positionHead(double elevation, double azimuith);
76 
78  virtual void elevateHead(double elevation);
79 
82  virtual void rotateHead(double azimuth);
83 
85  virtual void getElevationAndAzimuth(double& elevation, double& azimuth);
86 
88  virtual double elevationAngleToLocalPoint(const DtVector& localPoint, bool& failed);
89 
91  virtual double azimuthAngleToLocalPoint(const DtVector&, bool& failed);
92 
94  virtual void nodHead();
95 
97  virtual void shakeHead();
98 
100  virtual double elevationRate();
101 
103  virtual double azimuthRate();
104 
105 protected:
106 
109 
111  DtLookAtActuator(const DtLookAtActuator & orig);
112 
114  const DtLookAtActuator & operator=(const DtLookAtActuator & orig);
115 
116 protected:
119  DtArtPartType myHeadArtPart;
121 
125 
131 
138 
144 
150 
159 
166 
173 
179 };
180 

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)