VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
bhaveMoveDirectionController.h
Go to the documentation of this file.
1 
2 /*******************************************************************************
3 ** Copyright (c) 2009 MAK Technologies, Inc.
4 ** All rights reserved.
5 *******************************************************************************/
6 /*******************************************************************************
7 * Copyright 2009 Autodesk, Inc. All rights reserved.
8 * Use of this software is subject to the terms of the Autodesk license
9 * agreement provided at the time of installation or download, or which otherwise
10 * accompanies this software in either electronic or hard copy form.
11 *******************************************************************************/
12 
13 /*******************************************************************************
14 ** $RCSfile: bhaveMoveDirectionController.h,v $ $Revision: 1.3 $ $State: Exp $
15 *******************************************************************************/
16 
19 
20 #pragma once
21 
24 
25 class DtAnalogInputPort;
26 class DtBooleanInputPort;
27 class DtInputPortGroup;
28 
29 namespace BHAVE
30 {
32 
33 const char DtBhaveMoveDirectionControllerType[] = "bhave-move-direction-controller";
34 
40 {
41 private:
46  orig);
48  const DtBhaveMoveDirectionController & operator=(const
50 
51 public:
55  DtVrfObject* owner,
56  DtSimManager* simManager,
57  DtComponentDescriptor* desc = 0,
58  DtReaderWriterRegistry* parentRegistry = 0);
59 
62 
63  virtual bool init();
64 
67  virtual DtString type() const;
68 
70  virtual double calculateSteering(double currentHeading, double
71  desiredHeading, bool reverseDirection = false) const;
72 
76  static DtSimComponent * creator(const DtString& name,
77  DtVrfObject* owner,
78  DtSimManager* simManager,
79  DtComponentDescriptor* desc = 0,
80  DtReaderWriterRegistry* parentRegistry = 0);
81 
82 protected:
83 
86  virtual bool createPorts();
87 
88  virtual bool createTurningDirectionInputPort();
89 
91  virtual void setControlsForNormalMove();
92 
93  virtual double approximateThrottle(double speed);
94 
95 protected:
96 
98 
99 };
100 
101 } //namespace BHAVE
102 
103 
104 

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)