rwlogo
Rogue Wave Views 5.5.1

Rogue Wave Views
Manager Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvManagerLinearTransitionHandler Class Reference

Transition handler class. More...

#include <ilviews/manager/transition.h>

Inheritance diagram for IlvManagerLinearTransitionHandler:
IlvManagerTransitionHandler IlvTransitionHandler

List of all members.

Public Member Functions

 IlvManagerLinearTransitionHandler (IlBoolean partialRedraw=IlTrue)
 Constructor.
virtual void computeTransformers (IlDouble oldRate, IlDouble newRate, const IlvTransformer &from, const IlvTransformer &to, IlvTransformer &oldT, IlvTransformer &curT) const
 Called to compute the intermediate transformers.
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.

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:
partialRedraw A 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:
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 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:
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 2012, 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.