@ -19,6 +19,9 @@
# include "nel/ligo/primitive.h"
# include "nel/ligo/primitive.h"
# include <string>
# include <string>
# include <vector>
# include "camera_animation_manager/camera_animation_modifier_factory.h"
/************************************************************************/
/************************************************************************/
/* Interface for camera animation steps.
/* Interface for camera animation steps.
@ -31,6 +34,12 @@ class ICameraAnimationStep
public :
public :
/// This function is called when it's time to parse the primitive to load the camera animation step
/// This function is called when it's time to parse the primitive to load the camera animation step
virtual bool parseStep ( const NLLIGO : : IPrimitive * prim , const std : : string & filename ) = 0 ;
virtual bool parseStep ( const NLLIGO : : IPrimitive * prim , const std : : string & filename ) = 0 ;
// Function that adds a camera animation modifier to this step
void addModifier ( ICameraAnimationModifier * modifier ) ;
protected :
// The list of modifiers
std : : vector < ICameraAnimationModifier * > Modifiers ;
} ;
} ;
/************************************************************************/
/************************************************************************/
@ -51,6 +60,9 @@ protected:
static void init ( ) ;
static void init ( ) ;
virtual ICameraAnimationStep * instanciate ( ) = 0 ;
virtual ICameraAnimationStep * instanciate ( ) = 0 ;
static std : : vector < std : : pair < std : : string , ICameraAnimationStepFactory * > > * Entries ;
static std : : vector < std : : pair < std : : string , ICameraAnimationStepFactory * > > * Entries ;
// The list of modifiers
std : : vector < ICameraAnimationModifier * > Modifiers ;
} ;
} ;
// Define used to register the different types of camera animation steps
// Define used to register the different types of camera animation steps