Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Bitmap transition class. More...
#include <ilviews/bitmaps/transition.h>
Public Types | |
enum | Transition { , WipeLeft, WipeRight, WipeDown, WipeUp , BoxIn, BoxOut, SplitHorizontalIn, SplitHorizontalOut, SplitVerticalIn, SplitVerticalOut , SnailIn , BandVerticalIn, BandHorizontalIn } |
This enumeration defines the various transitions that | |
Public Member Functions | |
IlvSimpleBitmapTransition (Transition type) | |
Constructor. | |
virtual void | computeTransitionBitmapData (IlDouble oldRate, IlDouble newRate, const IlvRGBBitmapData &src, const IlvRGBBitmapData &dst, IlvRGBBitmapData &bitmap, IlvRegion ®ion) const |
Computes a transition image between the specified bitmap data objects. |
Bitmap transition class.
Library: display
This class handles bitmap transitions using simple geometric algorithms.
This enumeration defines the various transitions that IlvSimpleBitmapTransition
objects can deal with.
IlvSimpleBitmapTransition::IlvSimpleBitmapTransition | ( | Transition | type | ) |
Constructor.
Initializes a new instance of the IlvSimpleBitmapTransition
class.
type | The type of transition. |
virtual void IlvSimpleBitmapTransition::computeTransitionBitmapData | ( | IlDouble | oldRate, | |
IlDouble | newRate, | |||
const IlvRGBBitmapData & | src, | |||
const IlvRGBBitmapData & | dst, | |||
IlvRGBBitmapData & | current, | |||
IlvRegion & | region | |||
) | const [virtual] |
Computes a transition image between the specified bitmap data objects.
This method is pure and must be defined in subclasses. It computes a transition image given a source bitmap data object, a destination bitmap data object, and a percentage of completion of the transition. src and dst must have the same size and color depth.
When calling this method, current must contain the transition image corresponding to the oldRate percentage of completion. After returning, current contains the transition image corresponding to the newRate percentage of completion.
oldRate | The previous percentage of completion of the transition. Valid values are double values in the interval 0-100. | |
newRate | The new percentage of completion of the transition. Valid values are double values in the interval 0-100. | |
src | The source bitmap data. | |
dst | The destination bitmap data. | |
current | The current bitmap data. | |
region | The region of the current bitmap that has changed between the transition from oldRate to newRate. |
Implements IlvBitmapTransition.
© 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.