2002-10-12 11:37:38 +00:00
|
|
|
/**
|
|
|
|
* $Id$
|
|
|
|
*
|
2008-01-07 19:13:47 +00:00
|
|
|
* ***** BEGIN GPL LICENSE BLOCK *****
|
2002-10-12 11:37:38 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
2008-01-07 19:13:47 +00:00
|
|
|
* of the License, or (at your option) any later version.
|
2002-10-12 11:37:38 +00:00
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software Foundation,
|
|
|
|
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*
|
2009-05-22 01:16:26 +00:00
|
|
|
* The Original Code is Copyright (C) 2009 Blender Foundation, Joshua Leung
|
2002-10-12 11:37:38 +00:00
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* The Original Code is: all of this file.
|
|
|
|
*
|
2009-05-22 01:16:26 +00:00
|
|
|
* Contributor(s): Joshua Leung (full recode)
|
2002-10-12 11:37:38 +00:00
|
|
|
*
|
2008-01-07 19:13:47 +00:00
|
|
|
* ***** END GPL LICENSE BLOCK *****
|
2002-10-12 11:37:38 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef BKE_NLA_H
|
|
|
|
#define BKE_NLA_H
|
|
|
|
|
2009-05-22 01:16:26 +00:00
|
|
|
struct AnimData;
|
|
|
|
struct NlaStrip;
|
|
|
|
struct NlaTrack;
|
2009-05-22 11:19:35 +00:00
|
|
|
struct bAction;
|
2009-05-22 01:16:26 +00:00
|
|
|
|
|
|
|
/* ----------------------------- */
|
|
|
|
/* Data Management */
|
|
|
|
|
|
|
|
void free_nlastrip(ListBase *strips, struct NlaStrip *strip);
|
|
|
|
void free_nlatrack(ListBase *tracks, struct NlaTrack *nlt);
|
|
|
|
void free_nladata(ListBase *tracks);
|
|
|
|
|
2009-05-23 09:36:18 +00:00
|
|
|
struct NlaStrip *copy_nlastrip(struct NlaStrip *strip);
|
|
|
|
struct NlaTrack *copy_nlatrack(struct NlaTrack *nlt);
|
|
|
|
void copy_nladata(ListBase *dst, ListBase *src);
|
|
|
|
|
2009-05-22 11:19:35 +00:00
|
|
|
struct NlaStrip *add_nlastrip(struct NlaTrack *nlt, struct bAction *act);
|
2009-05-22 01:16:26 +00:00
|
|
|
struct NlaTrack *add_nlatrack(struct AnimData *adt);
|
|
|
|
|
|
|
|
/* ----------------------------- */
|
|
|
|
/* API */
|
|
|
|
|
|
|
|
struct NlaTrack *BKE_nlatrack_find_active(ListBase *tracks);
|
2009-05-23 09:36:18 +00:00
|
|
|
void BKE_nlatrack_set_active(ListBase *tracks, struct NlaTrack *nlt);
|
|
|
|
|
|
|
|
short BKE_nlatrack_has_space(struct NlaTrack *nlt, float start, float end);
|
|
|
|
void BKE_nlatrack_sort_strips(struct NlaTrack *nlt);
|
2009-05-22 01:16:26 +00:00
|
|
|
|
|
|
|
void BKE_nla_action_pushdown(struct AnimData *adt);
|
2002-10-12 11:37:38 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|