Blender V2.61 - r43446

BKE_anim.h

Go to the documentation of this file.
00001 /*
00002  * ***** BEGIN GPL LICENSE BLOCK *****
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software Foundation,
00016  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00017  *
00018  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
00019  * All rights reserved.
00020  *
00021  * The Original Code is: all of this file.
00022  *
00023  * Contributor(s): none yet.
00024  *
00025  * ***** END GPL LICENSE BLOCK *****
00026  */
00027 #ifndef BKE_ANIM_H
00028 #define BKE_ANIM_H
00029 
00035 struct Path;
00036 struct Object;
00037 struct PartEff;
00038 struct Scene;
00039 struct ListBase;
00040 struct bAnimVizSettings;
00041 struct bMotionPath;
00042 struct bPoseChannel;
00043 struct ReportList;
00044 
00045 /* ---------------------------------------------------- */
00046 /* Animation Visualisation */
00047 
00048 void animviz_settings_init(struct bAnimVizSettings *avs);
00049 
00050 void animviz_free_motionpath_cache(struct bMotionPath *mpath);
00051 void animviz_free_motionpath(struct bMotionPath *mpath);
00052 
00053 struct bMotionPath *animviz_verify_motionpaths(struct ReportList *reports, struct Scene *scene, struct Object *ob, struct bPoseChannel *pchan);
00054 
00055 void animviz_get_object_motionpaths(struct Object *ob, ListBase *targets);
00056 void animviz_calc_motionpaths(struct Scene *scene, ListBase *targets);
00057 
00058 /* ---------------------------------------------------- */
00059 /* Curve Paths */
00060 
00061 void free_path(struct Path *path);
00062 void calc_curvepath(struct Object *ob);
00063 int interval_test(int min, int max, int p1, int cycl);
00064 int where_on_path(struct Object *ob, float ctime, float *vec, float *dir, float *quat, float *radius, float *weight);
00065 
00066 /* ---------------------------------------------------- */
00067 /* Dupli-Geometry */
00068 
00069 struct ListBase *object_duplilist(struct Scene *sce, struct Object *ob);
00070 void free_object_duplilist(struct ListBase *lb);
00071 int count_duplilist(struct Object *ob);
00072 
00073 #endif
00074