VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
groundMoveToControllerComponent.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
15 #include <matrix/vlVector.h>
17 
18 class DtString;
19 class DtSimManager;
20 class DtSimMessage;
21 
22 
35 
38 {
39 public:
40 
44  DtVrfObject* owner,
45  DtSimManager* simManager,
46  DtComponentDescriptor* desc = NULL,
47  DtReaderWriterRegistry* parentRegistry = NULL);
48 
51 
54  virtual const char* type() const;
55 
59  static void moveToCallback(DtSimMessage * msg, void * usr);
60  virtual void processMoveToTask(DtSimMessage * msg);
61 
66  virtual void processDestinationChanged();
67 
71  static DtSimComponent * creator(const DtString& name,
72  DtVrfObject* owner,
73  DtSimManager* simManager,
74  DtComponentDescriptor* desc = 0,
75  DtReaderWriterRegistry* parentRegistry = 0);
76 
78  virtual void registerTaskMsgCallbacks();
79 
83  virtual bool setupDestination();
84 
85  virtual void updateNavBotDestination();
86 
87 private:
91 
94  orig);
95 
99 
100 protected:
104 };
105 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual void registerTaskMsgCallbacks()
Overridden to register interest in move to and set location commands.
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
static DtSimComponent * creator(const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
const DtVrfObject * myControlPoint
This is looked up once per tick - assumed unchanging while we have control.
Definition: groundMoveToControllerComponent.h:103
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
Definition: readerWriterRegistry.h:39
virtual const char * type() const
Returns a string identifies the class type of component.
DtGroundMoveToControllerComponent is a controller that models movement to a waypoint for ground entit...
Definition: groundMoveToControllerComponent.h:37
DtGroundMoveToDestinationControllerComponent is a controller that provides a kinematics-based model o...
Definition: groundMoveToDestinationControllerComponent.h:38
const DtGroundMoveToDestinationControllerComponent & operator=(const DtGroundMoveToDestinationControllerComponent &orig)
assignment operator; see comments on copy constructor!
File: simMsg.h.
Definition: simMessage.h:35
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
virtual bool setupDestination()
This function ensures that the destination stored in the process state matches the member function...
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)