28 #ifndef TRIALDISPLAY_ANIMATOR_H
29 #define TRIALDISPLAY_ANIMATOR_H
41 class WorldCanvasHolder;
412 virtual void reset();
virtual void setNextMode(Animator::NextMode mode)
Set the way the increments are done, ie.
virtual ~Animator()
Destrutor.
void computeNextCoord(casacore::Int addOrSubtract)
Compute, based on the UPDATE_MODE and NEXT_MODE, the Z coordinate of the new frame to display (ie...
Class which stores WorldCanvas refresh event information.
virtual void operator()(const WCRefreshEvent &ev)
original handler interface (still used for WCRefreshEvents)
virtual void removeWorldCanvasHolder(WorldCanvasHolder &holder)
Remove a WorldCanvasHolder from the list controlled by this Animator.
virtual void startMovie()
Stop and start movie.
Animator::NextMode nextMode
the NextMode
casacore::Double movieStep
Increment for computing currentCoord.
Do change the Z coordinate before each update.
std::list< void * > holderList
casacore::List of WorldCanvasHolders
virtual void setUpdateMode(Animator::UpdateMode mode)
Set whether an increment should be done before each update (UPDATE_DIRECT or UPDATE_BLINK) ...
casacore::Int movieDirection
In which direction the movie is currently going.
void increment(casacore::Int &number, casacore::Int addOrSubtract)
Helper routine for computeNewCoord().
virtual void gotoCoord(casacore::Double zCoord)
Go to Z coordinate zCoord.
virtual void setStep(casacore::uInt zIncrement)
Set increment in the Z coordinate for the movie.
casacore::Double coordTolerance
State variables Tolerance for coordinate Restriction.
MatchMode
Defines wheter the sequence is defined using the index in the sequence or by the world coordinate of ...
Do not change Z coordinate, but rely on the AttributeBuffers to change what is displayed.
NextMode
Defines the way the Animator calculates the Z coordinate of the next frame in the sequence...
casacore::Double maxCoord
WorldCanvas refresh event handler for Animator class.
casacore::Double updateInterval
and the interval of the timer
virtual casacore::uInt getMovieLength()
Return the length of the movie.
Base class for handling WorldCanvas refresh events.
virtual void setMinAndMaxCoord(casacore::Double zMin, casacore::Double zMax)
Set the minimum and maximum Z coordinate for the movie.
std::list< void * > * attBufList
casacore::List of the AttributeBuffers
virtual void setBlinkRestrictions(std::list< void * > *attBuffers)
Set the list of additional Attributes that the Animator places on the WorldCanvasHolders before each ...
void refresh()
Invoke refresh() on all the WorldCanvasHolders registered with the Animator.
AnimatorRefEH(Animator *animator)
virtual void prevCoord()
Go to previous Z coordinate in sequence.
Animator::MatchMode matchMode
the MatchMode
virtual void setUpdateInterval(casacore::Double interval)
Set update interval of movie in milliseconds.
casacore::Double currentCoord
Current Z coordiante.
Movie in backward direction.
casacore::Double minCoord
parameters of movies
void writeRestrictions()
Write the necessary Attributes to all the WorldCanvasHolders.
virtual void reset()
Reset the Animator.
virtual void setMatchMode(Animator::MatchMode match)
Set whether "zIndex", "zValue" or none of the two should be written additionally to the AttributeBuff...
virtual void addWorldCanvasHolder(WorldCanvasHolder *newHolder)
Add a WorldCanvasHolder to the list controlled by this Animator.
UpdateMode
Decides whether the Z coordinate should be changed according to the NextMode before each update or no...
Animation controller for WorldCanvasHolders.
casacore::Int listLen()
Return the number of AttributeBuffers in the casacore::List of AttributeBuffer.
casacore::Sequence is defined by writing Attribute "zIndex" with the value of the Z coordinate to Wor...
virtual void setTolerance(casacore::uInt tolerance)
Set the tolerance in the Z coordinate.
virtual casacore::Int getCurrentPosition()
Return the current position in the movie.
Movie in forward direction.
casacore::Sequence is defined by writing Attribute "zValue"with the value of the Z coordinate to Worl...
A holder to interface between DisplayDatas and a WorldCanvas.
Only the Attributes from the casacore::List of AttributeBuffers are written.
virtual void operator()(const WCRefreshEvent &ev)
Refresh event handler - just used to see if resetCoordinates was set.
void decrement(casacore::Int &number, casacore::Int addOrSubtract)
Helper routine for computeNewCoord().
virtual void nextCoord()
Go to next Z coordinate in sequence.
AnimatorRefEH * itsAnimatorRefEH
refresh event handler
Movie goes up and down the sequence.
casacore::Int numberInList
The number of the AttributeBuffer to use.
Animator::UpdateMode updateMode
The UpdateMode.
virtual void clearBlinkRestrictions()
Remove the casacore::List with AttributeBuffers.