// EMERGENT GAME TECHNOLOGIES PROPRIETARY INFORMATION
//
// This software is supplied under the terms of a license agreement or
// nondisclosure agreement with Emergent Game Technologies and may not
// be copied or disclosed except in accordance with the terms of that
// agreement.
//
//      Copyright (c) 1996-2007 Emergent Game Technologies.
//      All Rights Reserved.
//
// Emergent Game Technologies, Chapel Hill, North Carolina 27517
// http://www.emergent.net

#ifndef NIQUATERNIONINTERPCONTROLLER_H
#define NIQUATERNIONINTERPCONTROLLER_H

#include "NiSingleInterpController.h"
class NiQuaternion;

class NIANIMATION_ENTRY NiQuaternionInterpController :
    public NiSingleInterpController
{
    NiDeclareRTTI;
    NiDeclareAbstractClone(NiQuaternionInterpController);
    NiDeclareAbstractStream;
    NiDeclareViewerStrings;

public:
    // *** begin Emergent internal use only ***
    virtual NiInterpolator* CreatePoseInterpolator(unsigned short usIndex = 0);
    virtual void SynchronizePoseInterpolator(NiInterpolator* pkInterp, 
        unsigned short usIndex = 0);
    virtual NiBlendInterpolator* CreateBlendInterpolator(
        unsigned short usIndex = 0, bool bManagerControlled = false, 
        bool bAccumulateAnimations = false, float fWeightThreshold = 0.0f, 
        unsigned char ucArraySize = 2)
        const;
    // *** end Emergent internal use only ***

protected:
    NiQuaternionInterpController();
    
    // Virtual function overrides from base classes.
    virtual bool InterpolatorIsCorrectType(NiInterpolator* pkInterpolator,
        unsigned short usIndex) const;

    virtual void GetTargetQuaternionValue(NiQuaternion& kValue) = 0;
};

NiSmartPointer(NiQuaternionInterpController);

#endif  // #ifndef NIQUATERNIONINTERPCONTROLLER_H
