19#include <vrfobjcore/controllerComponent.h>
70 DtComponentDescriptor* desc = 0, DtReaderWriterRegistry* parentRegistry = 0);
82 virtual const char*
type()
const override;
89 virtual bool init()
override;
101 static DtSimComponent*
creator(
const DtString& name, DtLocalObject* owner, DtSimulationServices* simManager,
102 DtComponentDescriptor* desc = 0, DtReaderWriterRegistry* parentRegistry = 0);
Bullseye process state repository for VREngage.
void processSimObjectAdded(const DtLocalObject *obj)
Handles simulation object addition events.
DtBullseyeController(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Constructor.
bool myBullseyeIsValid
Flag indicating if the bullseye reference is currently valid.
Definition bullseyeController.h:185
virtual bool init() override
Initializes the component.
void processSetLocationComplete(const DtLocalObject *obj)
Updates bullseye status when the target entity's location changes.
virtual DtVreMessageResult handleSetBullseyeId(DtVreMessage *msg)
Handles bullseye target selection messages.
virtual void sendBullseyeStatusUpdate()
Sends bullseye status update to interested components.
DtBullseyePSR * myProcessState
Pointer to the bullseye process state repository.
Definition bullseyeController.h:191
const DtBullseyeController & operator=(const DtBullseyeController &orig)
Assignment operator (not implemented)
DtBullseyeController(const DtBullseyeController &orig)
Copy constructor (not implemented)
virtual void setNewBullseye(DtSimObjectReference obj)
Sets a new bullseye target.
DtBullseyeController()
Default constructor (not implemented)
virtual const char * type() const override
Gets the type identifier for this component.
virtual void preFirstTickInit() override
Performs initialization before the first tick.
virtual void tick() override
Updates the controller state each simulation frame.
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 ~DtBullseyeController() override
Virtual destructor.
const char * defaultPSRType() const
Gets the default process state repository type.
DtVector myLastBullseyeWorldPosition
Last known geocentric position of the bullseye target.
Definition bullseyeController.h:188
virtual DtVreMessageResult handleBullseyeStatusRequest(DtVreMessage *msg)
Handles bullseye status request messages.
virtual DtBullseyePSR * createPSR()
Creates the process state repository for this component.
void processSimObjectToBeRemoved(const DtLocalObject *obj)
Handles simulation object removal events.
Process state repository for the bullseye controller component.
Definition bullseyePSR.h:37
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
DtVreSimComponent(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Definition vreSimComponent.h:54
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 DtBullseyeControllerType[]
Type identifier for the bullseye controller component.
Definition bullseyeController.h:31
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
Defines the base class for all VREngage messages.
Base template class for VR-Engage simulation components.