Blender V2.61 - r43446

BKE_group.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_GROUP_H
00028 #define BKE_GROUP_H
00029 
00036 struct Base;
00037 struct Group;
00038 struct GroupObject;
00039 struct Object;
00040 struct bAction;
00041 struct Scene;
00042 
00043 void        free_group_objects(struct Group *group);
00044 void        unlink_group(struct Group *group);
00045 struct Group *add_group(const char *name);
00046 struct Group *copy_group(struct Group *group);
00047 int         add_to_group(struct Group *group, struct Object *ob, struct Scene *scene, struct Base *base);
00048 int         rem_from_group(struct Group *group, struct Object *ob, struct Scene *scene, struct Base *base);
00049 struct Group *find_group(struct Object *ob, struct Group *group);
00050 int         object_in_group(struct Object *ob, struct Group *group);
00051 int         group_is_animated(struct Object *parent, struct Group *group);
00052 
00053 void        group_tag_recalc(struct Group *group);
00054 void        group_handle_recalc_and_update(struct Scene *scene, struct Object *parent, struct Group *group);
00055 #if 0 /* UNUSED */
00056 struct Object *group_get_member_with_action(struct Group *group, struct bAction *act);
00057 void        group_relink_nla_objects(struct Object *ob);
00058 #endif
00059 
00060 #endif
00061