Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CAnimEffect Class Referenceabstract

#include <VisibleEffect.h>

Inheritance diagram for CAnimEffect:
CFadeEffect CRotateEffect CSlideEffect CZoomEffect

Public Types

enum  EFFECT_TYPE {
  EFFECT_TYPE_NONE = 0 , EFFECT_TYPE_FADE , EFFECT_TYPE_FADE_DIFFUSE , EFFECT_TYPE_SLIDE ,
  EFFECT_TYPE_ROTATE_X , EFFECT_TYPE_ROTATE_Y , EFFECT_TYPE_ROTATE_Z , EFFECT_TYPE_ZOOM
}
 

Public Member Functions

 CAnimEffect (const TiXmlElement *node, EFFECT_TYPE effect)
 
 CAnimEffect (unsigned int delay, unsigned int length, EFFECT_TYPE effect)
 
 CAnimEffect (const CAnimEffect &src)
 
virtual ~CAnimEffect ()
 
CAnimEffectoperator= (const CAnimEffect &src)
 
void Calculate (unsigned int time, const CPoint &center)
 
void ApplyState (ANIMATION_STATE state, const CPoint &center)
 
unsigned int GetDelay () const
 
unsigned int GetLength () const
 
const TransformMatrixGetTransform () const
 
EFFECT_TYPE GetType () const
 

Static Public Member Functions

static std::shared_ptr< TweenerGetTweener (const TiXmlElement *pAnimationNode)
 

Protected Attributes

TransformMatrix m_matrix
 
EFFECT_TYPE m_effect
 

Member Enumeration Documentation

◆ EFFECT_TYPE

Enumerator
EFFECT_TYPE_NONE 
EFFECT_TYPE_FADE 
EFFECT_TYPE_FADE_DIFFUSE 
EFFECT_TYPE_SLIDE 
EFFECT_TYPE_ROTATE_X 
EFFECT_TYPE_ROTATE_Y 
EFFECT_TYPE_ROTATE_Z 
EFFECT_TYPE_ZOOM 

Constructor & Destructor Documentation

◆ CAnimEffect() [1/3]

CAnimEffect::CAnimEffect ( const TiXmlElement * node,
EFFECT_TYPE effect )

◆ CAnimEffect() [2/3]

CAnimEffect::CAnimEffect ( unsigned int delay,
unsigned int length,
EFFECT_TYPE effect )

◆ CAnimEffect() [3/3]

CAnimEffect::CAnimEffect ( const CAnimEffect & src)

◆ ~CAnimEffect()

CAnimEffect::~CAnimEffect ( )
virtualdefault

Member Function Documentation

◆ ApplyState()

void CAnimEffect::ApplyState ( ANIMATION_STATE state,
const CPoint & center )

◆ Calculate()

void CAnimEffect::Calculate ( unsigned int time,
const CPoint & center )

◆ GetDelay()

unsigned int CAnimEffect::GetDelay ( ) const
inline

◆ GetLength()

unsigned int CAnimEffect::GetLength ( ) const
inline

◆ GetTransform()

const TransformMatrix & CAnimEffect::GetTransform ( ) const
inline

◆ GetTweener()

std::shared_ptr< Tweener > CAnimEffect::GetTweener ( const TiXmlElement * pAnimationNode)
static

◆ GetType()

EFFECT_TYPE CAnimEffect::GetType ( ) const
inline

◆ operator=()

CAnimEffect & CAnimEffect::operator= ( const CAnimEffect & src)

Member Data Documentation

◆ m_effect

EFFECT_TYPE CAnimEffect::m_effect
protected

◆ m_matrix

TransformMatrix CAnimEffect::m_matrix
protected

The documentation for this class was generated from the following files: