17#include <vrfobjcore/controllerComponent.h>
21#include <vrfobjcore/platformLocalObjectFacade.h>
23class DtBooleanInputPort;
24class DtStringInputPort;
25class DtAnalogInputPort;
26class DtInputPortGroup;
53 DtComponentDescriptor* desc, DtReaderWriterRegistry* parentRegistry = 0);
65 virtual const char*
type()
const override;
92 static DtSimComponent*
creator(
const DtString& name, DtLocalObject* owner, DtSimulationServices* simManager,
93 DtComponentDescriptor* desc = 0, DtReaderWriterRegistry* parentRegistry = 0);
DtLightStateController(const DtLightStateController &orig)
Copy constructor (not implemented)
virtual const char * type() const override
Gets the type identifier for this component.
DtPlatformLocalObjectFacade myPlatformLocalObjectFacade
Facade for platform local object access.
Definition lightStateController.h:147
virtual ~DtLightStateController() override
Virtual destructor.
DtLightStateController(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc, DtReaderWriterRegistry *parentRegistry=0)
Constructor.
virtual bool createPorts() override
Creates input and output ports for this component.
virtual bool createPortGroups() override
Creates port groups for this component.
DtBooleanInputPort * myHeadlightPort
Input port for headlight control.
Definition lightStateController.h:129
DtInputPortGroup * myStatePortGroup
Input port group for light state controls.
Definition lightStateController.h:124
DtAnalogInputPort * myThrottlePort
Input port for throttle state.
Definition lightStateController.h:135
DtAnalogInputPort * myBrakePort
Input port for brake state.
Definition lightStateController.h:141
DtLightStateController & operator=(const DtLightStateController &orig)
Assignment operator (not implemented)
DtLightStateController()
Default constructor (not implemented)
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Factory method to create a new instance of this component.
virtual void tick() override
Updates the light state each simulation frame.
Defines export macros for the vreVrfmodel library.
#define VREVRFMODEL_DLL
Definition export.h:22
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
const char DtLightStateControllerType[]
Type identifier for the light state controller component.
Definition lightStateController.h:32