This commit sets up some of the groundwork necessary to extend the animation visualisation capabilities, previously only available for bones in PoseMode, to Objects as well. Also, some of the other goals of this refactor is to make future visualisation goodies (i.e. editable paths) more feasible... (There's really nothing to see here yet. The following log notes are really just for my own reference to keep track of things.) Currently, the following things have been done: * New datastructures + settings have been tidied up, ready for usage * Added these new types into the Object and PoseBone code as necessary, with freeing/adding/copying accounted for * File IO code for the new data, including version patching to convert the old system to the new one. * Set up the drawing system for motionpaths based on the old armature path drawing code. Armatures still draw using the old system, since the two systems use different storage systems. * Started setting up the motionpath 'baking' code, but the core of this still needs to be coded... Next Steps (after some semi-urgent Durian Driver changes): * Port the ghosting/onionskinning code over too * Finish motionpath baking code * RNA wrapping for the new types * Hooking up all the new code into the operators, etc.
71 lines
2.0 KiB
C++
71 lines
2.0 KiB
C++
/**
|
|
* blenlib/BKE_anim.h (mar-2001 nzc);
|
|
*
|
|
* $Id$
|
|
*
|
|
* ***** BEGIN GPL LICENSE BLOCK *****
|
|
*
|
|
* 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
|
|
* of the License, or (at your option) any later version.
|
|
*
|
|
* 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.
|
|
*
|
|
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
|
|
* All rights reserved.
|
|
*
|
|
* The Original Code is: all of this file.
|
|
*
|
|
* Contributor(s): none yet.
|
|
*
|
|
* ***** END GPL LICENSE BLOCK *****
|
|
*/
|
|
#ifndef BKE_ANIM_H
|
|
#define BKE_ANIM_H
|
|
|
|
#define MAX_DUPLI_RECUR 8
|
|
|
|
struct Path;
|
|
struct Object;
|
|
struct PartEff;
|
|
struct Scene;
|
|
struct ListBase;
|
|
struct bAnimVizSettings;
|
|
struct bMotionPath;
|
|
|
|
#include "DNA_object_types.h"
|
|
|
|
/* ---------------------------------------------------- */
|
|
/* Animation Visualisation */
|
|
|
|
void animviz_settings_init(struct bAnimVizSettings *avs);
|
|
|
|
void animviz_free_motionpath_cache(struct bMotionPath *mpath);
|
|
void animviz_free_motionpath(struct bMotionPath *mpath);
|
|
|
|
/* ---------------------------------------------------- */
|
|
/* Curve Paths */
|
|
|
|
void free_path(struct Path *path);
|
|
void calc_curvepath(struct Object *ob);
|
|
int interval_test(int min, int max, int p1, int cycl);
|
|
int where_on_path(struct Object *ob, float ctime, float *vec, float *dir, float *quat, float *radius);
|
|
|
|
/* ---------------------------------------------------- */
|
|
/* Dupli-Geometry */
|
|
|
|
struct ListBase *object_duplilist(struct Scene *sce, struct Object *ob);
|
|
void free_object_duplilist(struct ListBase *lb);
|
|
int count_duplilist(struct Object *ob);
|
|
|
|
#endif
|
|
|