VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
BHAVE Namespace Reference

Contains BHAVE::BHAVE3DGui::DtAddSpawnSinkPointDialog class. More...

Namespaces

namespace  BHAVE3DGui
namespace  Utils
namespace  DrawingViewer

Classes

class  DtBhavePdgDrawerManager
class  DtBHaveTaskMoveAlongRouteDialog
class  DtBHaveTaskPatrolRouteDialog
class  DtBHaveTaskPatrolTwoPointsDialog
class  DtBHaveTaskMoveToLocationDialog
class  DtBHaveTaskMoveToDialog
class  DtBHaveTaskFollowEntityDialog
class  DtBHaveTaskPatrolRouteDialogCreator
class  DtBHaveTaskPatrolTwoPointsDialogCreator
class  DtBHaveTaskMoveAlongRouteDialogCreator
class  DtBHaveTaskMoveToLocationDialogCreator
class  DtBHaveTaskMoveToDialogCreator
class  DtBHaveTaskFollowEntityDialogCreator
class  DtBhaveTask
 This is the generic B-HAVE Task. More...
class  DtIfAddSinkPoint
class  DtIfAdminRequestSpawnPtData
class  DtIfAdminSetTemplateName
class  DtIfAdminUpdateSpawnInstance
class  DtIfBHAVEValidityRequest
class  DtIfBHAVEValidityResponse
class  DtIfCreateMultipleEntities
class  DtIfCreateSpawnData
 This message is used to create independent spawn points. More...
class  DtIfDeleteSpawnData
class  DtIfRequestSpawnData
 This class defines a message that is used by the GUI to request that the Sim send it the spawn parameters for a particular template. More...
class  DtIfRequestSpawnList
class  DtIfSpawnData
 This is the class defining the interface message content for spawn-data messages. More...
struct  SpawnTemplateListEntry
class  DtIfSpawnList
 Interface content containing the list of spawn point names from a single simulation engine. More...
class  DtIfUpdateSpawnTemplate
 This is the class defining the interface message content for spawn-data messages. More...
class  KynapseDescriptor
class  DtSetBhaveMovementMode
class  DtSetViewTarget
class  DtSpawnControllerDescriptor
 Descriptor for DtSpawnController. More...
class  DtAllMetric
class  DtBaseFeatureConverter
class  DtAreaFeatureConverter
 
More...
class  DtBaseImporter
 This is the abstract base class for all importers. More...
class  DtPathDataGen
 This is the base class of the path data generation. More...
struct  DtSegmentStruct
 Represents segments in the vector network, has special data and functions associated for DtVectorNetworkConverter in particular. More...
struct  DtSegmentNodeStruct
 Represents segments ends in the vector network, has special data and functions associated for DtVectorNetworkConverter in particular. More...
class  DtPathFeatureConverter
class  DtTerrainDatabaseImporter
 This interface imports TerrainDatabase (GDB) terrains into the format required by the Kynapse path generation Deprecated as of 4.1. More...
class  DtTerrainInputProducer
 Extension to Kynapse Input producer class copies all triangles in the terrain to the Kynapse compatible consumer for terrain generation. More...
class  DtTerrainInterfaceImporter
 This interface imports TerrainInterface terrains into the format required by the Kynapse path generation. More...
class  DtBhaveFactories
 This class contains all of the factories that are used in B-HAVE. More...
class  DtBhaveMoveDirectionController
 Subclass of DtGroundMoveDirectionController to support negative speed to move in reverse. More...
class  DtBhaveMovementChooserController
 This class controls the movement tasks for entities. More...
class  DtBhaveSpawnManager
 This class is an extension of the Kynapse spawn manager class that allows for bigger areas as well as spawning based on soil type. More...
class  DtBhaveSpawnQuery
class  DtDrivingEntityAttribute
 This attribute contains all of the features required of a driving object. More...
class  DtFleeTaskAgent
 This is a VRF Task that will control all Flee commands. More...
class  DtFollowTaskAgent
 This is a VRF Task that will control all follow commands. More...
class  DtGotoTaskAgent
 This is a VRF Task that will control all moveTo commands using BHAVE Movement. More...
class  DtGotoWaypointTaskAgent
 This is a VRF Task that will control all moveToWaypoint commands using BHAVE Movement. More...
class  DtHideTaskAgent
 This is a VRF Task that will control all hide commands. More...
class  DtKynapseController
 Controller for tasking entity using Kynapse behaviors. More...
class  DtKynapseGroundPlatformController
 Controller for B-HAVE supported vehicles. More...
class  DtKynapseLifeformController
 Controller for B-HAVE supported bipeds. More...
class  DtKynapseManager
 The main singleton class that connects Kynapse with VR-Forces. More...
class  DtKynapseObstacleManager
 This class includes a list of all VR-Forces objects that are considered obstacles Each object is converted to a format that Kynapse can understand. More...
class  DtKynapsePSR
 This stores any state associated with a Kynapse Controller for checkpointing of a scenario. More...
class  DtModifierGroundPlatformSteering
 Vehicles can't stop or turn on a dime, this modifier takes that into account. More...
class  DtPathTaskAgent
 This is a VRF Task that will control all moveToPath commands. More...
class  DtPatrolBetweenAgent
 This is a VRF Task that will control all moveToPath commands. More...
class  DtPieCollisionQuery
class  DtPieIntersector
class  DtPreferredTerrainTypeBodyAttribute
class  DtPreferredTerrainTypeConstraint
class  DtRestrictedWanderTraversal
class  PropagationBias_RestrictedWander
class  DtRestrictedWanderTraversalConfig
class  DtRwTrafficSinkListEntry
class  DtSimCreationManager
 This manager handles the multiple entity creation aspect of Kynapse. More...
class  DtSpawnController
 This controller is part of the traffic spawn system. More...
class  DtSpawnControllerPSR
 Process state repository used to store runtime state of the DtSpawnController. More...
class  DtSpawnSinkManager
class  DtVrfBodyManager
 Keeps a list of all non-Bot bodies in the simulation. More...
class  DtVrfCollisionBridge
 Kynapse bridge interface that allows logging directly into the VR-Link print functions. More...
class  DtVrfEntityBot
 Default entity class for entities known by Kynapse. More...
class  DtVrfGroundPlatformBot
class  DtVrfLifeformBot
class  DtVrfObstacle
 Default obstacle class for obstacles known by Kynapse. More...
class  DtVrfTaskAgent
 This is a VRF Task that will be connected to your Kynapse Agent at runtime in order to correctly think. More...
class  DtWanderTaskAgent
 This is a VRF Task that will control all Wander commands. More...
class  DtCoordinateConverter
class  DtDrawingViewerBridge
class  DtSoilTypeConverter
class  DtVrlLogBridge
 Kynapse bridge interface that allows logging directly into the VR-Link print functions. More...
class  DtPathDataConverter
 This class is used solely by the readerwriterpathdata class. More...
class  DtBhaveOsgGeometry
 Used to create a geometry of lines or triangles. More...
class  DtBhaveOsgGeode
 Used to create a geode which contains multiple DtBhaveOsgGeometries which in the end contain OSG geometry. More...
class  DtBhaveOsgLOD
 Used to create a LOD that would contain a geode. More...
class  DtVrfModifiedLifeformBot
class  DtSandConstraint

Typedefs

typedef std::vector
< SpawnTemplateListEntry
SpawnTemplateDescriptionList
 This is a map keyed by a template's name which corresponds to its description.
typedef void(* DtProcessBoundingPolygonCallbackFcn )(const std::deque< DtPoint > &points, unsigned int terrainType, void *usr)
typedef boost::function
< DtVrfTaskAgent
*(DtVrfEntityBot *, const char
*, const char *, const char
*, const char *, const char
*, const char *)> 
DtTaskAgentFactory
typedef DT_DLL_bhaveUtil
DtCoordinateConverter *(* 
DtCoordConvCreatorFunc )()

Enumerations

enum  DtSpawnsinkSubcategory { DtSpawnsinkSubcategorySpawnPt = 0, DtSpawnsinkSubcategorySinkPt = 1 }
enum  DtDebugDrawingsType { SHARED_MEMORY, DRAWING_LINES_ARRAY, DRAWING_UNKNOWN }
 Debug Drawings source type. More...
enum  DtBhavePdgDrawMode { DtDrawTriangles, DtDrawTransparentTriangles }

Functions

void DT_DLL_bhaveMsgs registerBhaveTasks (DtSimTaskFactory *taskFactory)
 Registers all the B-HAVE tasks with the specified task factory.
void DT_DLL_bhaveMsgs registerBhaveSets (DtSetDataRequestFactory *setFactory)
 Registers all the B-HAVE sets with the specified set factory.
void DT_DLL_bhaveMsgs registerBhaveInterfaceMessages (DtInterfaceContentFactory *interfaceContFact)
 Registers all the B-HAVE interface messages with the supplied interface content factory.
void DT_DLL_bhaveMsgs registerBhaveAdminContentMessages (DtAdminContentFactory *factory)
 Registers all the B-HAVE adminContent messages with the supplied admin content factory.
bool DT_DLL_bhaveSim SegmentVsPie2d (const Kaim::Vec3f &a, const Kaim::Vec3f &b, const Kaim::Vec3f &c, KyFloat32 radius, double startAngleInRadians, double endAngleInRadians)
 The following is a Function that takes a pie and calculates if we collide with that pie.
std::list< Kaim::Vec3f >
DT_DLL_bhaveSim 
DtGetPointsFromDisk (DtPoint center, double radius, double startAngleInRadians, double endAngleInRadians, double step)
 The following is a helper function that takes a circle and and angle and returns all the points in that area stepped through.
Kaim::Vec3f DT_DLL_bhaveSim DtGetPointFromDisk (DtPoint center, double radius, double angleInRadians)
 The following is a helper function that takes a circle and and angle and returns the point in that angle.
static void setLocationRequestCallack (DtSimMessage *msg, void *usrData)
 static callback used for "set location request" radio message
DT_DLL_bhaveSim const charComputeUserTaskId (const char *taskname, const char *arg1, const char *arg2, const char *arg3, const char *arg4)
bool DT_DLL_bhaveSim GetTaskNameAndArgs (const char *taskId, char *&taskname, char *&arg1, char *&arg2, char *&arg3, char *&arg4)
bool DT_DLL_bhaveSim IsKynapseTask (const char *taskname, const char *arg1, const char *arg2, const char *arg3, const char *arg4)
bool DT_DLL_bhaveSim IsKynapseFunctionTask (const char *taskname, const char *arg1, const char *arg2, const char *arg3, const char *arg4)
bool DT_DLL_bhaveSim IsKynapseScriptTask (const char *taskname, const char *arg1, const char *arg2, const char *arg3, const char *arg4)
bool DT_DLL_bhaveSim IsKynapseEventTask (const char *taskname, const char *arg1, const char *arg2, const char *arg3, const char *arg4)
template<class T >
DtVrfTaskAgentcreateDtVRFTaskAgent (DtVrfEntityBot *bot, const char *task, const char *arg1, const char *arg2, const char *arg3, const char *arg4, const char *command)
bool DT_DLL_bhaveUtil DrawingViewerInit (DrawingViewer::DtDataTransfer *viewer, unsigned int max_lines, const char *sharedpath)
 Initializes drawing lines storage.
DT_DLL_bhaveUtil bool DrawingViewerInit (DtDebugDrawingsType type, unsigned int nb_max_lines, const char *sharedpath)
 Initializes drawing lines storage.
DT_DLL_bhaveUtil void DrawingViewerLine (const Kaim::Vec3f &p1, const Kaim::Vec3f &p2, KyUInt32 r, KyUInt32 g, KyUInt32 b, KyUInt32 a)
 Drawing functions.
DT_DLL_bhaveUtil void DrawingViewerPoint (const Kaim::Vec3f &p, KyUInt32 r, KyUInt32 g, KyUInt32 b, KyUInt32 a)
DT_DLL_bhaveUtil void DrawingViewerReset ()
 Reset cursor position to beginning of storage, for beginning drawing again for a new frame.
DT_DLL_bhaveUtil void DrawingViewerEndFrame ()
 Signal that a complete frame has been drawn.
DT_DLL_bhaveUtil void DrawingViewerExit ()
 Close storage.
DT_DLL_bhaveUtil void DrawingViewerGetReadingInfo (DrawingViewer::DtLineInfo *&startingLine, unsigned int &lineCount)
 Get information necessary for reading from storage.
DtString DT_DLL_bhaveUtil separator ()
DtString DT_DLL_bhaveUtil getSimFileFromGuiFile (DtString filename)
 Find the correct Simulation terrain from the terrain loaded in the frontend.
DtString DT_DLL_bhaveUtil getPdgPathFromFile (DtString filename, bool createFolder=false)
 All of these functions get a specific file for pathdata generation or drawing and they help resolve the path of a file based on the terrain filename loaded alone.
DtString DT_DLL_bhaveUtil getPdgPathDataFile (DtString filename, DtString typeSuffix, DtString fileExt="PathData")
DtString DT_DLL_bhaveUtil getPdgPathDataIndexFile (DtString filename, DtString typeSuffix, DtString fileExt="PathDataIndex")
DtString DT_DLL_bhaveUtil getPdgPathDataRefPointFile (DtString filename, DtString fileExt="pdgrp")

Variables

const int DtBhaveBaseInterfaceMessageType = 800
 All B-HAVE message types start at these numbers and go up.
const int DtCreateMultipleEntitiesType = DtBhaveBaseInterfaceMessageType + 1
 Interface message defines.
const int DtSpawnListType = DtBhaveBaseInterfaceMessageType + 3
 Moved to base level VRF.
const int DtRequestSpawnListType = DtBhaveBaseInterfaceMessageType + 4
const int DtRequestSpawnDataType = DtBhaveBaseInterfaceMessageType + 5
const int DtCreateSpawnDataType = DtBhaveBaseInterfaceMessageType + 6
const int DtDeleteSpawnDataType = DtBhaveBaseInterfaceMessageType + 7
const int DtSpawnDataType = DtBhaveBaseInterfaceMessageType + 8
const int DtAddSinkPointType = DtBhaveBaseInterfaceMessageType + 9
const int DtUpdateSpawnTemplateType = DtBhaveBaseInterfaceMessageType + 10
const int DtBHAVEValidityRequest = DtBhaveBaseInterfaceMessageType + 11
const int DtBHAVEValidityResponse = DtBhaveBaseInterfaceMessageType + 12
const DtSimTaskMessageType DtBhaveTaskTypeString
 Radio message defines. (These can overlap with Interface messages types)
const DtSetMessageType DtSetBhaveMovementModeTypeString
const DtSetMessageType DtSetViewTargetTypeString
const DtAdminContentMessageType DtAdminSetTemplateNameTypeString
const DtAdminContentMessageType DtAdminUpdateSpawnInstanceTypeString
const DtAdminContentMessageType DtAdminRequestSpawnPtDataTypeString
const char BHAVE_TASK [] = "kynapse-task"
 Task name definitions:
const char BHAVE_MOVE_TO_LOCATION_TASK [] = "move-to-location"
const char BHAVE_MOVE_TO_WAYPOINT_TASK [] = "move-to-waypoint"
const char BHAVE_FLEE_TASK [] = "flee"
const char BHAVE_HIDE_TASK [] = "hide"
const char BHAVE_WANDER_TASK [] = "wander"
const char BHAVE_FOLLOW_TASK [] = "follow"
const char BHAVE_PATHWAY_TASK [] = "pathway"
const char BHAVE_PATROL_ROUTE_TASK [] = "patrol-route"
const char BHAVE_PATROL_BETWEEN_TASK [] = "patrol-between"
const char KynapseDescriptorType [] = "kynapse-descriptor"
 This is the string that is registered along with the creator function below.
const char DtBhaveMovementModeFree [] = "free"
const char DtBhaveMovementModePreferRoads [] = "prefer-roads"
const char DtBhaveMovementModeAvoidRoads [] = "avoid-roads"
const char DtSpawnControllerDescriptorType [] = "spawn-controller-descriptor"
const char BHAVE_BOT [] = "entity-bot"
const char BHAVE_LIFEFORM_BOT [] = "lifeform-bot"
const char BHAVE_GROUND_PLATFORM_BOT [] = "ground-platform-bot"
const char DtBhaveMoveDirectionControllerType [] = "bhave-move-direction-controller"
const char DtBhaveMovementChooserControllerType [] = "bhave-movement-chooser-controller"
const char DtKynapseControllerType [] = "kynapse-controller"
 String which uniquely identifies this controller.
const char DtKynapseGroundPlatformControllerType [] = "kynapse-ground-platform-controller"
 String which uniquely identifies this controller.
const char DtKynapseLifeformControllerType [] = "kynapse-lifeform-controller"
 String which uniquely identifies this controller.
const char DtKynapsePSRType [] = "kynapse-psr-type"
const char s_BRAIN_STATE_NO_TASK [] = "__No_TaSk__"
const char s_BRAIN_STATE_REFLEX_TASK [] = "__ReFlEx_TaSk__"
const char DtSpawnControllerType [] = "spawn-controller"
const char DtSpawnControllerPSRType [] = "spawn-controller-psr"
const DtPointObjectCategory DtPointObjectCategorySpawnsink
 Extending the defined object type enums here:
const char DtBhaveAllControlObjectsFilterId [] = "DtBhaveAllControlObjectsFilter"
const char DtSpawnPointsFilterId [] = "DtSpawnPointsFilter"
const char DtSinkPointsFilterId [] = "DtSinkPointsFilter"
class DT_DLL_bhaveUtil DtCoordinateConverter
 Forward declaration so the following typedef works.
static DtSoilTypeConvertertheConverter = 0

Detailed Description

Contains BHAVE::BHAVE3DGui::DtAddSpawnSinkPointDialog class.

This class creates a series of convenient OSG wrappers for common OSG constructs.

Kynapse.

Request/response for whether or not B-Have is valid.

This class defines a message for adding sink points (by name) to a given spawn template.

Adds filters for spawn and sink points.

The spawn sink manager handles this message.

This is exclusively used by this plugin to facilitate easier creation of OSG objects with lots of convenience functions

Typedef Documentation

This is a map keyed by a template's name which corresponds to its description.

typedef void(* BHAVE::DtProcessBoundingPolygonCallbackFcn)(const std::deque< DtPoint > &points, unsigned int terrainType, void *usr)
typedef boost::function< DtVrfTaskAgent* (DtVrfEntityBot*, const char*, const char*, const char*, const char*, const char*, const char*)> BHAVE::DtTaskAgentFactory
typedef DT_DLL_bhaveUtil DtCoordinateConverter*(* BHAVE::DtCoordConvCreatorFunc)()

Enumeration Type Documentation

Enumerator:
DtSpawnsinkSubcategorySpawnPt 
DtSpawnsinkSubcategorySinkPt 

Debug Drawings source type.

Enumerator:
SHARED_MEMORY 

NO_DRAWINGS = 0,.

shared memory system (currently windows only)

DRAWING_LINES_ARRAY 

basic memory block, available to the current process

DRAWING_UNKNOWN 

The drawing interface was assigned directly.

FILE_TRANSFER //!< debug solution only (performance)

Enumerator:
DtDrawTriangles 
DtDrawTransparentTriangles 

Function Documentation

void DT_DLL_bhaveMsgs BHAVE::registerBhaveTasks ( DtSimTaskFactory taskFactory)

Registers all the B-HAVE tasks with the specified task factory.

void DT_DLL_bhaveMsgs BHAVE::registerBhaveSets ( DtSetDataRequestFactory setFactory)

Registers all the B-HAVE sets with the specified set factory.

void DT_DLL_bhaveMsgs BHAVE::registerBhaveInterfaceMessages ( DtInterfaceContentFactory interfaceContFact)

Registers all the B-HAVE interface messages with the supplied interface content factory.

void DT_DLL_bhaveMsgs BHAVE::registerBhaveAdminContentMessages ( DtAdminContentFactory factory)

Registers all the B-HAVE adminContent messages with the supplied admin content factory.

bool DT_DLL_bhaveSim BHAVE::SegmentVsPie2d ( const Kaim::Vec3f &  a,
const Kaim::Vec3f &  b,
const Kaim::Vec3f &  c,
KyFloat32  radius,
double  startAngleInRadians,
double  endAngleInRadians 
)

The following is a Function that takes a pie and calculates if we collide with that pie.

It is used for road driving to determine if a vehicle with limited turning radius can actually turn.

Referenced by BHAVE::DtPieIntersector::DoesIntersectEdge().

std::list<Kaim::Vec3f> DT_DLL_bhaveSim BHAVE::DtGetPointsFromDisk ( DtPoint  center,
double  radius,
double  startAngleInRadians,
double  endAngleInRadians,
double  step 
)

The following is a helper function that takes a circle and and angle and returns all the points in that area stepped through.

Kaim::Vec3f DT_DLL_bhaveSim BHAVE::DtGetPointFromDisk ( DtPoint  center,
double  radius,
double  angleInRadians 
)

The following is a helper function that takes a circle and and angle and returns the point in that angle.

static void BHAVE::setLocationRequestCallack ( DtSimMessage msg,
void *  usrData 
)
static

static callback used for "set location request" radio message

DT_DLL_bhaveSim const char* BHAVE::ComputeUserTaskId ( const char taskname,
const char arg1,
const char arg2,
const char arg3,
const char arg4 
)

Computes a task id from a user task's name and arguments.

Returns
NULL-terminated string in which task id is stored. The buffer where it is stored will be overwritten at next call of ComputeUserTaskId()
bool DT_DLL_bhaveSim BHAVE::GetTaskNameAndArgs ( const char taskId,
char *&  taskname,
char *&  arg1,
char *&  arg2,
char *&  arg3,
char *&  arg4 
)

Computes a task id from a user task's name and arguments.

Parameters
taskIdNULL-terminated string indicating task id, such as generated by ComputeUserTaskId()
tasknamePointer to a memory zone that will be allocated by new[], in which task name will be copied.
arg1Pointer to a memory zone that will be allocated by malloc(), in which 1st argument will be copied.
arg2Pointer to a memory zone that will be allocated by malloc(), in which 2nd argument will be copied.
arg3Pointer to a memory zone that will be allocated by malloc(), in which 3rd argument will be copied.
arg4Pointer to a memory zone that will be allocated by malloc(), in which 4th argument will be copied.
Returns
true if task id is well-formed, and each output parameter could be assigned ; false otherwise.
bool DT_DLL_bhaveSim BHAVE::IsKynapseTask ( const char taskname,
const char arg1,
const char arg2,
const char arg3,
const char arg4 
)

Indicates whether a task is managed by Kynapse

bool DT_DLL_bhaveSim BHAVE::IsKynapseFunctionTask ( const char taskname,
const char arg1,
const char arg2,
const char arg3,
const char arg4 
)

Indicates whether a task is managed by Kynapse

bool DT_DLL_bhaveSim BHAVE::IsKynapseScriptTask ( const char taskname,
const char arg1,
const char arg2,
const char arg3,
const char arg4 
)

Indicates whether a task is managed by Kynapse

bool DT_DLL_bhaveSim BHAVE::IsKynapseEventTask ( const char taskname,
const char arg1,
const char arg2,
const char arg3,
const char arg4 
)

Indicates whether a task is managed by Kynapse

template<class T >
DtVrfTaskAgent* BHAVE::createDtVRFTaskAgent ( DtVrfEntityBot *  bot,
const char task,
const char arg1,
const char arg2,
const char arg3,
const char arg4,
const char command 
)
bool DT_DLL_bhaveUtil BHAVE::DrawingViewerInit ( DrawingViewer::DtDataTransfer *  viewer,
unsigned int  max_lines,
const char sharedpath 
)

Initializes drawing lines storage.

Returns KY_TRUE if successful.

DT_DLL_bhaveUtil bool BHAVE::DrawingViewerInit ( DtDebugDrawingsType  type,
unsigned int  nb_max_lines,
const char sharedpath 
)

Initializes drawing lines storage.

Returns KY_TRUE if successful. Deprecated.

DT_DLL_bhaveUtil void BHAVE::DrawingViewerLine ( const Kaim::Vec3f &  p1,
const Kaim::Vec3f &  p2,
KyUInt32  r,
KyUInt32  g,
KyUInt32  b,
KyUInt32  a 
)

Drawing functions.

DT_DLL_bhaveUtil void BHAVE::DrawingViewerPoint ( const Kaim::Vec3f &  p,
KyUInt32  r,
KyUInt32  g,
KyUInt32  b,
KyUInt32  a 
)
DT_DLL_bhaveUtil void BHAVE::DrawingViewerReset ( )

Reset cursor position to beginning of storage, for beginning drawing again for a new frame.

This should be called before a new Kynapse WorldUpdate, or before calling Kynapse graph drawing functions if they need to draw from scratch.

DT_DLL_bhaveUtil void BHAVE::DrawingViewerEndFrame ( )

Signal that a complete frame has been drawn.

DT_DLL_bhaveUtil void BHAVE::DrawingViewerExit ( )

Close storage.

DT_DLL_bhaveUtil void BHAVE::DrawingViewerGetReadingInfo ( DrawingViewer::DtLineInfo *&  startingLine,
unsigned int lineCount 
)

Get information necessary for reading from storage.

This only works with DRAWING_LINES_ARRAY types. otherwise this will always return 0.

DtString DT_DLL_bhaveUtil BHAVE::separator ( )
DtString DT_DLL_bhaveUtil BHAVE::getSimFileFromGuiFile ( DtString  filename)

Find the correct Simulation terrain from the terrain loaded in the frontend.

DtString DT_DLL_bhaveUtil BHAVE::getPdgPathFromFile ( DtString  filename,
bool  createFolder = false 
)

All of these functions get a specific file for pathdata generation or drawing and they help resolve the path of a file based on the terrain filename loaded alone.

DtString DT_DLL_bhaveUtil BHAVE::getPdgPathDataFile ( DtString  filename,
DtString  typeSuffix,
DtString  fileExt = "PathData" 
)
DtString DT_DLL_bhaveUtil BHAVE::getPdgPathDataIndexFile ( DtString  filename,
DtString  typeSuffix,
DtString  fileExt = "PathDataIndex" 
)
DtString DT_DLL_bhaveUtil BHAVE::getPdgPathDataRefPointFile ( DtString  filename,
DtString  fileExt = "pdgrp" 
)

Variable Documentation

const int BHAVE::DtBhaveBaseInterfaceMessageType = 800

All B-HAVE message types start at these numbers and go up.

const int BHAVE::DtCreateMultipleEntitiesType = DtBhaveBaseInterfaceMessageType + 1

Interface message defines.

const int BHAVE::DtSpawnListType = DtBhaveBaseInterfaceMessageType + 3

Moved to base level VRF.

const int BHAVE::DtRequestSpawnListType = DtBhaveBaseInterfaceMessageType + 4
const int BHAVE::DtRequestSpawnDataType = DtBhaveBaseInterfaceMessageType + 5
const int BHAVE::DtCreateSpawnDataType = DtBhaveBaseInterfaceMessageType + 6
const int BHAVE::DtDeleteSpawnDataType = DtBhaveBaseInterfaceMessageType + 7
const int BHAVE::DtSpawnDataType = DtBhaveBaseInterfaceMessageType + 8
const int BHAVE::DtAddSinkPointType = DtBhaveBaseInterfaceMessageType + 9
const int BHAVE::DtUpdateSpawnTemplateType = DtBhaveBaseInterfaceMessageType + 10
const int BHAVE::DtBHAVEValidityRequest = DtBhaveBaseInterfaceMessageType + 11
const int BHAVE::DtBHAVEValidityResponse = DtBhaveBaseInterfaceMessageType + 12
const DtSimTaskMessageType BHAVE::DtBhaveTaskTypeString
Initial value:
DtString("B-HAVE-Task")

Radio message defines. (These can overlap with Interface messages types)

const DtSetMessageType BHAVE::DtSetBhaveMovementModeTypeString
Initial value:
DtString("set-B-HAVE-movement-mode")
const DtSetMessageType BHAVE::DtSetViewTargetTypeString
Initial value:
DtString("set-view-target")
const DtAdminContentMessageType BHAVE::DtAdminSetTemplateNameTypeString
Initial value:
DtString("set-template-name")
const DtAdminContentMessageType BHAVE::DtAdminUpdateSpawnInstanceTypeString
Initial value:
DtString("update-spawn-instance")
const DtAdminContentMessageType BHAVE::DtAdminRequestSpawnPtDataTypeString
Initial value:
DtString("request-spawn-point-data")
const char BHAVE::BHAVE_TASK[] = "kynapse-task"

Task name definitions:

const char BHAVE::BHAVE_MOVE_TO_LOCATION_TASK[] = "move-to-location"
const char BHAVE::BHAVE_MOVE_TO_WAYPOINT_TASK[] = "move-to-waypoint"
const char BHAVE::BHAVE_FLEE_TASK[] = "flee"
const char BHAVE::BHAVE_HIDE_TASK[] = "hide"
const char BHAVE::BHAVE_WANDER_TASK[] = "wander"
const char BHAVE::BHAVE_FOLLOW_TASK[] = "follow"
const char BHAVE::BHAVE_PATHWAY_TASK[] = "pathway"
const char BHAVE::BHAVE_PATROL_ROUTE_TASK[] = "patrol-route"
const char BHAVE::BHAVE_PATROL_BETWEEN_TASK[] = "patrol-between"
const char BHAVE::KynapseDescriptorType[] = "kynapse-descriptor"

This is the string that is registered along with the creator function below.

It must match the component-descriptor-type string specified in the object parameter database when using this descriptor to specify a kynapse-controller

const char BHAVE::DtBhaveMovementModeFree[] = "free"
const char BHAVE::DtBhaveMovementModePreferRoads[] = "prefer-roads"
const char BHAVE::DtBhaveMovementModeAvoidRoads[] = "avoid-roads"
const char BHAVE::DtSpawnControllerDescriptorType[] = "spawn-controller-descriptor"
const char BHAVE::BHAVE_BOT[] = "entity-bot"
const char BHAVE::BHAVE_LIFEFORM_BOT[] = "lifeform-bot"
const char BHAVE::BHAVE_GROUND_PLATFORM_BOT[] = "ground-platform-bot"
const char BHAVE::DtBhaveMoveDirectionControllerType[] = "bhave-move-direction-controller"
const char BHAVE::DtBhaveMovementChooserControllerType[] = "bhave-movement-chooser-controller"
const char BHAVE::DtKynapseControllerType[] = "kynapse-controller"

String which uniquely identifies this controller.

const char BHAVE::DtKynapseGroundPlatformControllerType[] = "kynapse-ground-platform-controller"

String which uniquely identifies this controller.

const char BHAVE::DtKynapseLifeformControllerType[] = "kynapse-lifeform-controller"

String which uniquely identifies this controller.

const char BHAVE::DtKynapsePSRType[] = "kynapse-psr-type"
const char BHAVE::s_BRAIN_STATE_NO_TASK[] = "__No_TaSk__"

Special task id indicating there is no current task

const char BHAVE::s_BRAIN_STATE_REFLEX_TASK[] = "__ReFlEx_TaSk__"

Special task id indicating reflex task was run

const char BHAVE::DtSpawnControllerType[] = "spawn-controller"
const char BHAVE::DtSpawnControllerPSRType[] = "spawn-controller-psr"
const DtPointObjectCategory BHAVE::DtPointObjectCategorySpawnsink
Initial value:
DtPointObjectCategory(21)

Extending the defined object type enums here:

const char BHAVE::DtBhaveAllControlObjectsFilterId[] = "DtBhaveAllControlObjectsFilter"
const char BHAVE::DtSpawnPointsFilterId[] = "DtSpawnPointsFilter"
const char BHAVE::DtSinkPointsFilterId[] = "DtSinkPointsFilter"

Forward declaration so the following typedef works.

DtSoilTypeConverter* BHAVE::theConverter = 0
static

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)