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

Abstract class for continuous content transition. More...

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

Public Member Functions

float GetProgress ()
 Gets the progress of the animation.
 
override void Initialize (Viewer viewer, int frameIndex)
 Initializes the module with a given Viewer instance and frame index.
 
virtual void ResetProgress ()
 Resets the progress of the animation.
 
virtual void SetProgress (float value)
 Sets the progress of the animation.
 

Public Attributes

float duration = 0.3f
 The duration of the animation.
 
AnimationCurve curve = AnimationCurve.EaseInOut(0, 0, 1, 1)
 The animation curve.
 

Protected Member Functions

override void Finish ()
 Finalizes the animation process.
 
override void OnDestroy ()
 Handles the destruction of the module.
 
override void Prepare ()
 Prepares the content for the animation process.
 
virtual void PrepareAnimation ()
 Prepares the animation process.
 
override void Process ()
 Processes the animation of the content.
 
virtual void Process (float value)
 Processes the animation of the content.
 
void Update ()
 Updates the state of the animation each frame. This method is called once per frame and is responsible for updating the progress of the animation, processing the animation, and finalizing the animation when it's complete.
 

Protected Attributes

int animatedTargetFrameIndex
 The index of the target frame.
 
bool isPlaying
 Indicates whether the animation is playing.
 
Content newContent
 The new content.
 
Content oldContent
 The old content.
 
float progress
 The progress of the animation.
 

Additional Inherited Members

Detailed Description

Abstract class for continuous content transition.

Member Function Documentation

◆ GetProgress()

float GetProgress ( )

Gets the progress of the animation.

Returns
The progress of the animation.

◆ Initialize()

override 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 from Transition.

◆ Process()

virtual void Process ( float value)
protectedvirtual

Processes the animation of the content.

Parameters
valueThe value of the animation curve.

Reimplemented in Fade, HorizontalFlip, HorizontalSlide, HorizontalSlideAndFade, VerticalFlip, VerticalSlide, and VerticalSlideAndFade.

◆ SetProgress()

virtual void SetProgress ( float value)
virtual

Sets the progress of the animation.

Parameters
valueThe progress of the animation.

Reimplemented in Fade, HorizontalFlip, HorizontalSlide, HorizontalSlideAndFade, VerticalFlip, VerticalSlide, and VerticalSlideAndFade.