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
DtCoverPointNavInterface Class Reference

This is the DtVrfObjectNavInterface subclass for objects which insert themselves as nav edges into the nav areas to affect the path finding behavior of active entities. Nav edges can connect disparate points in the nav data that are not otherwise connected by any nav data.

Inheritance diagram for DtCoverPointNavInterface:
Inheritance graph
[legend]

Public Member Functions

virtual ~DtCoverPointNavInterface () override
 
virtual void postObjectInit () override
 
virtual void tick () override
 
virtual DtNavArea * navArea ()
 
- 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 onNavAreaSetChanged ()
 
virtual void setWaitingForLoad (bool isLoading)
 
virtual bool isWaitingForLoad () const
 

Static Public Member Functions

static DtVrfObjectNavInterface * create (DtLocalObject *vrfObject)
 

Protected Member Functions

 DtCoverPointNavInterface (DtLocalObject *vrfObject)
 
virtual bool init () override
 
virtual void changingNavArea (DtNavArea *newNavArea) override
 
virtual void processVerticesChanged ()
 
bool createCoverPoint ()
 
bool coverPointCreationComplete ()
 
void removeCoverPoint ()
 
bool adjustToNearestVertexLinkPoint (const DtString &, const double, const double, const DtVector &, DtVector &) const
 
- Protected Member Functions inherited from DtVrfObjectNavInterface
 DtVrfObjectNavInterface (DtLocalObject *vrfObject)
 
 DtVrfObjectNavInterface (DtSimObjectReference vrfObject)
 
virtual bool isCollidableWhenDestroyed () const
 

Protected Attributes

DtNavArea * myNavArea
 
DtNavArea * myNewNavArea
 
bool myUpdatePointsRequired
 
bool myChangingNavArea
 
bool myCreationInProgress
 
unsigned myCoverPointIndex
 
boost::signals2::scoped_connection mySetLocationConnection
 
- Protected Attributes inherited from DtVrfObjectNavInterface
DtLocalObject * myVrfObject
 
DtSimObjectReference mySimObjectReference
 
DtSimulationServices * mySimulationServices
 
DtNavArea * myCurrentNavArea
 
bool myFirstTick
 
bool myIsWaitingForNavLoad
 
DtNoArgumentCallbackList myChangedNavAreaCallbackList
 

Private Member Functions

 DtCoverPointNavInterface ()
 
 DtCoverPointNavInterface (const DtCoverPointNavInterface &orig)
 
DtCoverPointNavInterface & operator= (const DtCoverPointNavInterface &orig)
 

Constructor & Destructor Documentation

DtCoverPointNavInterface::DtCoverPointNavInterface ( )
private

Not Implemented.

DtCoverPointNavInterface::DtCoverPointNavInterface ( const DtCoverPointNavInterface &  orig)
private

Not Implemented.

DtCoverPointNavInterface::DtCoverPointNavInterface ( DtLocalObject *  vrfObject)
protected

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

virtual DtCoverPointNavInterface::~DtCoverPointNavInterface ( )
overridevirtual

Member Function Documentation

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

Not Implemented.

static DtVrfObjectNavInterface* DtCoverPointNavInterface::create ( DtLocalObject *  vrfObject)
static
virtual bool DtCoverPointNavInterface::init ( )
overrideprotectedvirtual

Virtual init, called from the create() method.

Reimplemented from DtVrfObjectNavInterface.

virtual void DtCoverPointNavInterface::postObjectInit ( )
overridevirtual

Perform additional initialization after the object has been initialized. Ensures the nav edge is created prior to ticking sim components.

Reimplemented from DtVrfObjectNavInterface.

virtual void DtCoverPointNavInterface::tick ( )
overridevirtual

Reimplemented from DtVrfObjectNavInterface.

virtual DtNavArea* DtCoverPointNavInterface::navArea ( )
virtual
virtual void DtCoverPointNavInterface::changingNavArea ( DtNavArea *  newNavArea)
overrideprotectedvirtual

Called when the objects position is in a navArea that it was not on the previous check.

Reimplemented from DtVrfObjectNavInterface.

virtual void DtCoverPointNavInterface::processVerticesChanged ( )
protectedvirtual
bool DtCoverPointNavInterface::createCoverPoint ( )
protected

Creates a cover point that matches the current location of this object. Returns whether it has finished creating the cover point. (true means nothing more needs to be created, false means it will attempt to finish creating on next tick)

bool DtCoverPointNavInterface::coverPointCreationComplete ( )
protected

Returns true if the cover point has finished being created.

void DtCoverPointNavInterface::removeCoverPoint ( )
protected

Removes the current cover point.

bool DtCoverPointNavInterface::adjustToNearestVertexLinkPoint ( const DtString &  ,
const double  ,
const double  ,
const DtVector &  ,
DtVector &   
) const
protected

Attempt to modify the given DtVector to a point that is "navigable" within the given point profile radius. Returns true if it actually modified the vector.

Member Data Documentation

DtNavArea* DtCoverPointNavInterface::myNavArea
protected
DtNavArea* DtCoverPointNavInterface::myNewNavArea
protected
bool DtCoverPointNavInterface::myUpdatePointsRequired
protected
bool DtCoverPointNavInterface::myChangingNavArea
protected
bool DtCoverPointNavInterface::myCreationInProgress
protected
unsigned DtCoverPointNavInterface::myCoverPointIndex
protected
boost::signals2::scoped_connection DtCoverPointNavInterface::mySetLocationConnection
protected

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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)