rwlogo

Rogue Wave Views
Manager Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

List of all members | Public Member Functions
IlvManagerLinearTransitionHandler Class Reference

Transition handler class. More...

#include <ilviews/manager/transition.h>

Inheritance diagram for IlvManagerLinearTransitionHandler:
IlvManagerTransitionHandler IlvTransitionHandler

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 &current, 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...
 

Detailed Description

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.

See Also
IlvManagerBitmapTransitionHandler, IlvManagerTransitionScheduler

Constructor & Destructor Documentation

IlvManagerLinearTransitionHandler::IlvManagerLinearTransitionHandler ( IlBoolean  partialRedraw = IlTrue)

Constructor.

Initializes a new instance of the IlvManagerLinearTransitionHandler class.

Parameters
partialRedrawA Boolean value specifying whether the transition handler is using partial redraws between transitions.
See Also
IlvManagerTransitionHandler::usePartialRedraw

Member Function Documentation

virtual void IlvManagerLinearTransitionHandler::computeTransformers ( IlDouble  oldRate,
IlDouble  newRate,
const IlvTransformer from,
const IlvTransformer to,
IlvTransformer oldT,
IlvTransformer curT 
) const
virtual

Called to compute the intermediate transformers.

This method fills the oldT and curT parameters using the given rates of completion of the transition.

Parameters
oldRateThe previous rate of completion of the transition.
newRateThe next rate of completion of the transition.
fromThe source transformer.
toThe destination transformer.
oldTThe computed transformer corresponding to oldRate.
curTThe computed transformer corresponding to newRate.
virtual void IlvManagerLinearTransitionHandler::doManagerTransition ( IlvManager manager,
IlvView view,
const IlvTransformer from,
const IlvTransformer to,
const IlvTransformer current,
const IlvTransformer next 
)
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.

Parameters
managerThe manager.
viewThe manager view.
fromThe source transformer of the transition.
toThe destination transformer of the transition.
currentThe current transformer of the manager view view.
nextThe transformer that will be set on the manager view view.

© Copyright 2014, 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.