Changeset [2d9c7ab84b7126d4d5a56beef4792c7cc9b47a07] by Christopher Stawarz

August 23rd, 2011 @ 12:50 PM

More reworking of dynamic stimuli

  • Eliminated the previously-added "finalize" pass for actions. Stimulus group references that depend on global variables cannot be fully resolved at parse time, so the dynamic stimulus actions must validate their target at execution time.
  • Dynamic stimuli once again do not play by default. Instead, StandardDynamicStimulus now supports an "autoplay" parameter. A non-playing SDS subclass with autoplay set to true will automatically start playing the first time it draws (i.e. during the first stimulus display update after it's queued).
  • Subclasses of DynamicStimulusDriver that need to perform additional actions when they start or stop should now override startPlaying() or stopPlaying(), respectively (being sure to call the base implementation from the override)
  • Subclasses of StandardDynamicStimulus should once again implement drawFrame(). However, the function now takes only one argument (the StimulusDisplay pointer).
  • Added some code to ensure that StimulusDisplay::getCurrentOutputTimeUS() always returns a valid time when the state system is running https://github.com/mworks-project/mw_core/commit/2d9c7ab84b7126d4d5...

Committed by Christopher Stawarz

  • M Core/Stimuli/DynamicStimuli/DynamicStimulusActions.cpp
  • M Core/Stimuli/DynamicStimuli/DynamicStimulusActions.h
  • M Core/Stimuli/DynamicStimuli/DynamicStimulusDriver.cpp
  • M Core/Stimuli/DynamicStimuli/DynamicStimulusDriver.h
  • M Core/Stimuli/DynamicStimuli/StandardDynamicStimulus.cpp
  • M Core/Stimuli/DynamicStimuli/StandardDynamicStimulus.h
  • M Core/Stimuli/StimulusDisplay.cpp
  • M Core/XMLParser/MWParserTransformation.xsl
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The core framework and supporting libraries for the MWorks Suite