Rogue Wave Views Manager Package API Reference Guide |
Rogue Wave Views Documentation Home |
Transition handler class. More...
#include <ilviews/manager/transition.h>
Public Member Functions | |
IlvManagerLinearTransitionHandler (IlBoolean partialRedraw=IlTrue) | |
Constructor. More... | |
virtual void | computeTransformers (IlDouble oldRate, IlDouble newRate, const IlvTransformer &from, const IlvTransformer &to, IlvTransformer &oldT, IlvTransformer &curT) const |
Called to compute the intermediate transformers. More... | |
virtual void | doManagerTransition (IlvManager &manager, IlvView &view, const IlvTransformer &from, const IlvTransformer &to, const IlvTransformer ¤t, const IlvTransformer &next) |
Called to do the transition from current to next transformers. More... | |
Public Member Functions inherited from IlvManagerTransitionHandler | |
IlBoolean | isUsingPartialRedraw () const |
Returns IlTrue if this transition handler is using partial redraw. More... | |
void | usePartialRedraw (IlBoolean redraw) |
Specifies to the transition handler whether to use partial redraw. More... | |
Transition handler class.
Library: ilvmgr
This class handles linear transitions between two transformers. During the transition, it computes intermediate transformers by calling the IlvManagerLinearTransitionHandler::computeTransformers
method.
This class can used to give an animation effect when changing the transformer of a view connected to a manager. Instead of using directly manager methods such as IlvManager::setTransformer
, you can create an IlvManagerTransitionScheduler
with an IlvManagerLinearTransitionHandler
. The result will be the same, except that you will see the transitions between the current transformer of the view and the new transformer.
IlvManagerLinearTransitionHandler::IlvManagerLinearTransitionHandler | ( | IlBoolean | partialRedraw = IlTrue | ) |
Constructor.
Initializes a new instance of the IlvManagerLinearTransitionHandler
class.
partialRedraw | A Boolean value specifying whether the transition handler is using partial redraws between transitions. |
|
virtual |
Called to compute the intermediate transformers.
This method fills the oldT and curT parameters using the given rates of completion of the transition.
oldRate | The previous rate of completion of the transition. |
newRate | The next rate of completion of the transition. |
from | The source transformer. |
to | The destination transformer. |
oldT | The computed transformer corresponding to oldRate. |
curT | The computed transformer corresponding to newRate. |
|
virtual |
Called to do the transition from current to next transformers.
This method sets the next transformer on the view view, which is connected to the manager manager.
manager | The manager. |
view | The manager view. |
from | The source transformer of the transition. |
to | The destination transformer of the transition. |
current | The current transformer of the manager view view. |
next | The transformer that will be set on the manager view view. |
© Copyright 2018, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.