VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
DtDynamicObstacleNavInterface Class Reference

This is the DtVrfObjectNavInterface subclass for objects which are treated as frequently moving obstacles by the navigation system, but are not using the navigation system to plan paths. For example, this is used for remote entities.

Inheritance diagram for DtDynamicObstacleNavInterface:
Inheritance graph
[legend]

Public Member Functions

virtual void tick ()
 
virtual ~DtDynamicObstacleNavInterface ()
 
virtual void clearNavObstacles ()
 
- Public Member Functions inherited from DtVrfObjectNavInterface
virtual bool ableToNavigate () const
 
virtual void firstTick ()
 
virtual ~DtVrfObjectNavInterface ()=0
 
virtual void addNavAreaChangedCallback (DtNoArgumentCallbackList::DtCallbackFunctionType callback, void *usr) const
 
virtual void removeNavAreaChangedCallback (DtNoArgumentCallbackList::DtCallbackFunctionType callback, void *usr) const
 
virtual void invokeNavAreaChangedCallbacks ()
 
virtual void setWaitingForLoad (bool isLoading)
 
virtual bool isWaitingForLoad () const
 

Static Public Member Functions

static DtVrfObjectNavInterfacecreateSimObjectInterface (DtSimObjectReference vrfObject)
 
static DtVrfObjectNavInterfacecreateLocalObjectInterface (DtLocalObject *vrfObject)
 

Protected Member Functions

 DtDynamicObstacleNavInterface (DtLocalObject *vrfObject)
 
 DtDynamicObstacleNavInterface (DtSimObjectReference vrfObject)
 
virtual bool init ()
 
virtual void postObjectInit ()
 
virtual void changingNavArea (DtNavArea *newNavArea)
 
virtual bool obstacleEnabled ()
 
virtual void createNavObstacle ()
 
virtual double becomeStationaryObstacleTime () const
 
- Protected Member Functions inherited from DtVrfObjectNavInterface
 DtVrfObjectNavInterface (DtLocalObject *vrfObject)
 
 DtVrfObjectNavInterface (DtSimObjectReference vrfObject)
 
virtual bool isCollidableWhenDestroyed () const
 

Protected Attributes

std::map< DtNavArea
*, DtNavObstacle * > 
myNavObstacles
 
DtVector myPreviousLocalPos
 
DtNavAreamyNavArea
 
double myStationaryTime
 
double myTimeToBecomeStationary
 
DtPlatformSimObjectFacade myPlatformSimObjectFacade
 
bool myOnlyCreateInCurrentArea
 
- Protected Attributes inherited from DtVrfObjectNavInterface
DtLocalObjectmyVrfObject
 
DtSimObjectReference mySimObjectReference
 
DtSimulationServicesmySimulationServices
 
DtNavAreamyCurrentNavArea
 
bool myFirstTick
 
bool myIsWaitingForNavLoad
 
DtNoArgumentCallbackList myChangedNavAreaCallbackList
 

Private Member Functions

 DtDynamicObstacleNavInterface ()
 
 DtDynamicObstacleNavInterface (const DtDynamicObstacleNavInterface &orig)
 
DtDynamicObstacleNavInterfaceoperator= (const DtDynamicObstacleNavInterface &orig)
 

Constructor & Destructor Documentation

DtDynamicObstacleNavInterface::DtDynamicObstacleNavInterface ( )
private

Not Implemented.

DtDynamicObstacleNavInterface::DtDynamicObstacleNavInterface ( const DtDynamicObstacleNavInterface orig)
private

Not Implemented.

DtDynamicObstacleNavInterface::DtDynamicObstacleNavInterface ( DtLocalObject vrfObject)
protected

Use the create() method instead of calling the constructor.

DtDynamicObstacleNavInterface::DtDynamicObstacleNavInterface ( DtSimObjectReference  vrfObject)
protected
virtual DtDynamicObstacleNavInterface::~DtDynamicObstacleNavInterface ( )
virtual

Member Function Documentation

DtDynamicObstacleNavInterface& DtDynamicObstacleNavInterface::operator= ( const DtDynamicObstacleNavInterface orig)
private

Not Implemented.

static DtVrfObjectNavInterface* DtDynamicObstacleNavInterface::createSimObjectInterface ( DtSimObjectReference  vrfObject)
static
static DtVrfObjectNavInterface* DtDynamicObstacleNavInterface::createLocalObjectInterface ( DtLocalObject vrfObject)
static
virtual bool DtDynamicObstacleNavInterface::init ( )
protectedvirtual

Virtual init, called from the create() method.

Reimplemented from DtVrfObjectNavInterface.

virtual void DtDynamicObstacleNavInterface::postObjectInit ( )
protectedvirtual

Perform additional initialization after the object has been initialized. Default behavior is to do nothing, must be implemented in subclass.

Reimplemented from DtVrfObjectNavInterface.

virtual void DtDynamicObstacleNavInterface::changingNavArea ( DtNavArea newNavArea)
protectedvirtual

Called when about to change to a new navArea.

Reimplemented from DtVrfObjectNavInterface.

virtual bool DtDynamicObstacleNavInterface::obstacleEnabled ( )
protectedvirtual
Returns
True if the obstacle should be enabled as a collidable object.
virtual void DtDynamicObstacleNavInterface::createNavObstacle ( )
protectedvirtual

Creates the NavObstacle in the current navArea.

virtual double DtDynamicObstacleNavInterface::becomeStationaryObstacleTime ( ) const
protectedvirtual
Returns
The value of the "dynamic-obstacle-to-stationary-time" property from the navigation parameters in the object's parameter entry. This value defaults to 5.0 if not specified.
virtual void DtDynamicObstacleNavInterface::tick ( )
virtual

Reimplemented from DtVrfObjectNavInterface.

virtual void DtDynamicObstacleNavInterface::clearNavObstacles ( )
virtual

Member Data Documentation

std::map<DtNavArea*, DtNavObstacle*> DtDynamicObstacleNavInterface::myNavObstacles
protected
DtVector DtDynamicObstacleNavInterface::myPreviousLocalPos
protected
DtNavArea* DtDynamicObstacleNavInterface::myNavArea
protected
double DtDynamicObstacleNavInterface::myStationaryTime
protected

How long the obstacle has been stationary.

double DtDynamicObstacleNavInterface::myTimeToBecomeStationary
protected

Cache for the nav property.

DtPlatformSimObjectFacade DtDynamicObstacleNavInterface::myPlatformSimObjectFacade
protected
bool DtDynamicObstacleNavInterface::myOnlyCreateInCurrentArea
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)