Smart Gallery v1.1
 
Loading...
Searching...
No Matches
Transition Class Referenceabstract

Abstract class for animating content when switching between frames. More...

Inheritance diagram for Transition:
ContentModule Module ContinuousTransition Immediate Fade HorizontalFlip HorizontalSlide VerticalFlip VerticalSlide HorizontalSlideAndFade VerticalSlideAndFade

Public Member Functions

override void Initialize (Viewer viewer)
 Initializes the module with a given Viewer instance.
 
virtual void Initialize (Viewer viewer, int frameIndex)
 Initializes the module with a given Viewer instance and frame index.
 

Protected Member Functions

virtual void Finish ()
 Finalizes the transition process.
 
override void OnDestroy ()
 Handles the destruction of the module.
 
override void OnViewerInitialized ()
 Handles the initialization of the viewer.
 
virtual void Prepare ()
 Prepares the content for the animation process.
 
virtual void Process ()
 Processes the animation of the content.
 

Protected Attributes

int targetFrameIndex
 The index of the target frame.
 

Properties

int currentFrameIndex [get, protected set]
 The index of the current frame.
 

Detailed Description

Abstract class for animating content when switching between frames.

Member Function Documentation

◆ Initialize() [1/2]

override void Initialize ( Viewer viewer)
virtual

Initializes the module with a given Viewer instance.

Parameters
viewerThe Viewer instance.

Reimplemented from ContentModule.

◆ Initialize() [2/2]

virtual void Initialize ( Viewer viewer,
int frameIndex )
virtual

Initializes the module with a given Viewer instance and frame index.

Parameters
viewerThe Viewer instance.
frameIndexThe index of the frame.

Reimplemented in ContinuousTransition.