VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lookAtPointController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
13 
14 class DtVectorOutputPort;
16 class DtAnalogOutputPort;
18 class DtSimMessage;
19 class DtScriptedTaskTask;
20 
25 {
26 
27 public:
28 
31  DtLookAtPointController(const DtString& name,
32  DtVrfObject* owner,
33  DtSimManager* simManager,
34  DtComponentDescriptor* desc = 0,
35  DtReaderWriterRegistry* parentRegistry = 0);
36 
38  virtual ~DtLookAtPointController();
39 
40  virtual bool init();
41 
44  virtual const char* type() const;
45 
46  virtual void tick();
47 
49  static void setLookAtPointCallback(DtSimMessage * msg, void * usr);
50  virtual void processSetLookAtPoint(DtSimMessage* msg);
51 
55  static DtSimComponent * creator(const DtString& name,
56  DtVrfObject* owner,
57  DtSimManager* simManager,
58  DtComponentDescriptor* desc = 0,
59  DtReaderWriterRegistry* parentRegistry = 0);
60 
61 protected:
62 
64  virtual bool createPorts();
65 
67  virtual bool createPortGroups();
68 
69  virtual DtLookAtPointControllerPSR* createPSR();
70 
71  virtual void registerTaskMsgCallbacks();
72 
75  static void nodHeadCallback(DtSimMessage* msg, void* usrData);
76  virtual void processNodHead(DtSimMessage*);
77 
78  static void shakeHeadCallback(DtSimMessage* msg, void* usrData);
79  virtual void processShakeHead(DtSimMessage*);
80 
81  virtual void performLookAt();
82  virtual void performTask();
83 
90  virtual void getTaskValues(DtScriptedTaskTask* task, double& minRange, double& maxRange, double& rate, int& time);
91 
92  virtual void clearTask();
93 
94 private:
95 
98 
101  DtLookAtPointController & orig);
102 
105  const DtLookAtPointController & orig);
106 
107 
108 protected:
109 
111 
113 
114 
118 
124 
131 
137 
143 
152 
159 
166 
172 
174 };

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)