VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
surfaceEntityMoveToController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 #pragma once
12 
14 
15 class DtString;
16 class DtSimManager;
17 
31 {
32 public:
33 
37  DtVrfObject* owner,
38  DtSimManager* simManager,
39  DtComponentDescriptor* desc = 0,
40  DtReaderWriterRegistry* parentRegistry = 0);
41 
44 
47  virtual const char* type() const;
48 
49  virtual void clearTask();
50 
54  virtual void registerTaskMsgCallbacks();
55 
64  static void moveToCallback (DtSimMessage* msg, void* user);
65 
73  virtual void processMoveToTask (DtSimMessage* msg);
74 
77  static void objectAboutToBeRemovedCallback(const DtVrfObject* obj, void* usr);
78  virtual void processObjectAboutToBeRemoved(const DtVrfObject* obj);
80 
84  static DtSimComponent* creator(const DtString& name,
85  DtVrfObject* owner,
86  DtSimManager* simManager,
87  DtComponentDescriptor* desc = 0,
88  DtReaderWriterRegistry* parentRegistry = 0);
89 
90 private:
93 
96 
100 
101 protected:
108  virtual bool setupControlPoint();
109 
110 protected:
111 
116 };
117 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtSurfaceEntityMoveToController is a controller that models the movement of a surface entity to a spe...
Definition: surfaceEntityMoveToController.h:29
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
DtVector myControlPointLastLocation
Stores last known location of the waypoint.
Definition: surfaceEntityMoveToController.h:115
virtual void clearTask()
Calls down to the base class and then calls allowDeactivation() on mySurfaceControlPortGroup.
const DtVrfObject * myControlPoint
Pointer to the target waypoint.
Definition: surfaceEntityMoveToController.h:113
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
//! DtSurfaceEntityMoveToLocationController is a controller that models the movement of a surface ent...
Definition: surfaceEntityMoveToLocationController.h:28
File: simMsg.h.
Definition: simMessage.h:35
static DtSimComponent * creator(const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
virtual bool setupControlPoint()
Every tick, this makes sure the destination is taken from current data.
const DtSurfaceEntityMoveToLocationController & operator=(const DtSurfaceEntityMoveToLocationController &orig)
assignment operator; not implemented
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
virtual void registerTaskMsgCallbacks()
Registers interest in move to location tasks by calling addTaskProcessorCallback moveToLocationCallba...
virtual const char * type() const
Returns a string identifies the class type of component.

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)