15#include <vrvGlStudioShared/DtGlStudioAttributeUpdater.h>
26template <
typename UpdaterBase>
52 virtual void init(DtSmoother* smoother, makVrv::DtDe*
de)
57 UpdaterBase::init(smoother,
de);
65 virtual std::string
value(
double time)
118template <
typename VreGlstudioUpdater,
typename GlstudioUpdaterCreator>
127 : GlstudioUpdaterCreator()
139 : GlstudioUpdaterCreator()
152 virtual makVrv::DtGlStudioAttributeUpdater*
create()
const
154 VreGlstudioUpdater* updater =
new VreGlstudioUpdater;
std::string myStateAttribute
Definition vreGlstudioUpdater.h:159
virtual makVrv::DtGlStudioAttributeUpdater * create() const
Creates a new instance of the updater.
Definition vreGlstudioUpdater.h:152
virtual ~DtVreGlstudioUpdaterCreator()
Virtual destructor.
Definition vreGlstudioUpdater.h:146
DtVreGlstudioUpdaterCreator()
DtVreGlstudioUpdaterCreator(const std::string &stateAttribute, const std::string &name)
Constructor for creating a new updater with a custom name.
Definition vreGlstudioUpdater.h:138
DtVreGlstudioUpdaterCreator(const std::string &stateAttribute)
Constructor for replacing an existing updater.
Definition vreGlstudioUpdater.h:126
virtual void init(DtSmoother *smoother, makVrv::DtDe *de)
Initializes the updater.
Definition vreGlstudioUpdater.h:52
virtual DtVreMessageResult handleSimulationStateMessage(makVre::DtVreMessage *msg)
Handles simulation state change messages.
Definition vreGlstudioUpdater.h:81
DtVreGlstudioUpdater()
Default constructor.
Definition vreGlstudioUpdater.h:31
DtVreGlstudioUpdater(const DtVreGlstudioUpdater &other)
Copy constructor (not implemented)
virtual std::string value(double time)
Gets the current value as a string.
Definition vreGlstudioUpdater.h:65
bool myActive
Flag indicating if this instrument is currently active.
Definition vreGlstudioUpdater.h:107
std::string myStateAttribute
Name of the state attribute this updater is associated with.
Definition vreGlstudioUpdater.h:101
virtual ~DtVreGlstudioUpdater()
Virtual destructor.
Definition vreGlstudioUpdater.h:41
DtVreGlstudioUpdater & operator=(const DtVreGlstudioUpdater &other)
Assignment operator (not implemented)
std::string myLastValue
Last calculated value, cached to avoid unnecessary updates.
Definition vreGlstudioUpdater.h:104
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
static DtVreMessageManager & instance()
Gets the singleton instance of the message manager.
virtual void addHandler(const std::string &messageType, const DtVreMessageDelegate &handler, HandlerPosition handlerPos=HandlerPosition::BACK)=0
Registers a message handler for a specific message type.
virtual void removeHandler(const std::string &messageType, const DtVreMessageDelegate &handler)=0
Unregisters a message handler for a specific message type.
Definition simulationState.h:34
static const std::string & theType()
static message identity functions
virtual const std::vector< std::string > & getDisabledInstruments() const
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
DtDelegate< DtVreMessageResult, DtVreMessage * > DtVreMessageDelegate
Delegate type for message handler callbacks.
Definition vreMessage.h:212
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
@ HANDLED
The handler processed the message; continue processing.
Definition vreMessage.h:35
makVrv::DtDe * de()
Gets the display element pointer used by the plugin.
Defines the central message manager for the VREngage messaging system.