VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtVreHumanCrosswalkController Class Reference

Detailed Description

DtVreHumanCrosswalkController models the behavior of human entities when approaching and crossing at crosswalks. It manages the human's awareness of traffic, decision-making for when to cross safely, and interactions with traffic signals. The controller modifies the entity's movement based on environmental conditions and perceived safety.

Uses Descriptor Type: DtVreHumanCrosswalkControllerDescriptor

#include <vreHumanCrosswalkController.h>

Inheritance diagram for makVre::DtVreHumanCrosswalkController:
[legend]

Public Member Functions

 DtVreHumanCrosswalkController (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 
virtual ~DtVreHumanCrosswalkController () override
 
virtual const char * type () const override
 
virtual void tick () override
 
- Public Member Functions inherited from makVre::DtVreSimComponent< DtHumanCrosswalkController >
 DtVreSimComponent (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 
virtual ~DtVreSimComponent ()
 
bool isPlayerControlled (const std::string &role="") const
 
DtString entitySystemName () const
 

Static Public Member Functions

static DtSimComponent * creator (const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
 

Private Member Functions

 DtVreHumanCrosswalkController ()
 
 DtVreHumanCrosswalkController (const DtVreHumanCrosswalkController &orig)
 
DtVreHumanCrosswalkControlleroperator= (const DtVreHumanCrosswalkController &orig)
 

Constructor & Destructor Documentation

◆ DtVreHumanCrosswalkController() [1/3]

makVre::DtVreHumanCrosswalkController::DtVreHumanCrosswalkController ( )
private

Default constructor (not implemented)

Default constructor is private and not implemented to prevent creation of instances without proper initialization.

Referenced by DtVreHumanCrosswalkController(), and operator=().

◆ DtVreHumanCrosswalkController() [2/3]

makVre::DtVreHumanCrosswalkController::DtVreHumanCrosswalkController ( const DtVreHumanCrosswalkController & orig)
private

Copy constructor (not implemented)

Copy constructor is private and not implemented to prevent copy construction.

References DtVreHumanCrosswalkController().

◆ DtVreHumanCrosswalkController() [3/3]

makVre::DtVreHumanCrosswalkController::DtVreHumanCrosswalkController ( const DtString & name,
DtLocalObject * owner,
DtSimulationServices * simManager,
DtComponentDescriptor * desc = 0,
DtReaderWriterRegistry * parentRegistry = 0 )

Constructor.

Parameters
nameThe name of this component
ownerThe local object that owns this component
simManagerThe simulation services manager
descComponent descriptor with configuration parameters
parentRegistryOptional parent registry for reader/writer functionality

Creates a new human crosswalk controller component with the specified parameters.

◆ ~DtVreHumanCrosswalkController()

virtual makVre::DtVreHumanCrosswalkController::~DtVreHumanCrosswalkController ( )
overridevirtual

Virtual destructor.

Cleans up resources used by the human crosswalk controller component.

Member Function Documentation

◆ operator=()

DtVreHumanCrosswalkController & makVre::DtVreHumanCrosswalkController::operator= ( const DtVreHumanCrosswalkController & orig)
private

Assignment operator (not implemented)

Returns
Reference to this object

Assignment operator is private and not implemented to prevent assignment.

References DtVreHumanCrosswalkController().

◆ type()

virtual const char * makVre::DtVreHumanCrosswalkController::type ( ) const
overridevirtual

Gets the type identifier for this component.

Returns
String identifying the component type (DtVreHumanCrosswalkControllerType)

Implements the DtSimComponent::type() method to return the type identifier for this component.

◆ tick()

virtual void makVre::DtVreHumanCrosswalkController::tick ( )
overridevirtual

Updates the controller state each simulation frame.

Processes the human entity's crosswalk behavior during each simulation frame. This includes detecting nearby crosswalks, checking for approaching vehicles, and making decisions about when to cross safely. The controller adjusts the entity's movement based on these assessments.

◆ creator()

static DtSimComponent * makVre::DtVreHumanCrosswalkController::creator ( const DtString & name,
DtLocalObject * owner,
DtSimulationServices * simManager,
DtComponentDescriptor * desc = 0,
DtReaderWriterRegistry * parentRegistry = 0 )
static

Factory method to create a new instance of this component.

Parameters
nameThe name for the new component
ownerThe local object that will own this component
simManagerThe simulation services manager
descOptional component descriptor
parentRegistryOptional parent registry for reader/writer functionality
Returns
Pointer to the newly created component

Static factory method used by the component creation system to instantiate new instances of this component type.


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