Blender V2.61 - r43446

ED_particle.h

Go to the documentation of this file.
00001 /* 
00002  *
00003  * ***** BEGIN GPL LICENSE BLOCK *****
00004  *
00005  * This program is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * as published by the Free Software Foundation; either version 2
00008  * of the License, or (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software Foundation,
00017  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00018  *
00019  * The Original Code is Copyright (C) 2007 by Janne Karhu.
00020  * All rights reserved.
00021  *
00022  * The Original Code is: all of this file.
00023  *
00024  * Contributor(s): none yet.
00025  *
00026  * ***** END GPL LICENSE BLOCK *****
00027  */
00028 
00033 #ifndef ED_PARTICLE_H
00034 #define ED_PARTICLE_H
00035 
00036 struct bContext;
00037 struct Object;
00038 struct ParticleEditSettings;
00039 struct ParticleSystem;
00040 struct RadialControl;
00041 struct rcti;
00042 struct wmKeyConfig;
00043 struct PTCacheEdit;
00044 struct Scene;
00045 
00046 /* particle edit mode */
00047 void PE_free_ptcache_edit(struct PTCacheEdit *edit);
00048 int PE_start_edit(struct PTCacheEdit *edit);
00049 
00050 /* access */
00051 struct PTCacheEdit *PE_get_current(struct Scene *scene, struct Object *ob);
00052 struct PTCacheEdit *PE_create_current(struct Scene *scene, struct Object *ob);
00053 void PE_current_changed(struct Scene *scene, struct Object *ob);
00054 int PE_minmax(struct Scene *scene, float min[3], float max[3]);
00055 struct ParticleEditSettings *PE_settings(struct Scene *scene);
00056 
00057 /* update calls */
00058 void PE_hide_keys_time(struct Scene *scene, struct PTCacheEdit *edit, float cfra);
00059 void PE_update_object(struct Scene *scene, struct Object *ob, int useflag);
00060 
00061 /* selection tools */
00062 int PE_mouse_particles(struct bContext *C, const int mval[2], int extend);
00063 int PE_border_select(struct bContext *C, struct rcti *rect, int select, int extend);
00064 int PE_circle_select(struct bContext *C, int selecting, const int mval[2], float rad);
00065 int PE_lasso_select(struct bContext *C, int mcords[][2], short moves, short extend, short select);
00066 void PE_deselect_all_visible(struct PTCacheEdit *edit);
00067 
00068 /* undo */
00069 void PE_undo_push(struct Scene *scene, const char *str);
00070 void PE_undo_step(struct Scene *scene, int step);
00071 void PE_undo(struct Scene *scene);
00072 void PE_redo(struct Scene *scene);
00073 int PE_undo_valid(struct Scene *scene);
00074 void PE_undo_number(struct Scene *scene, int nr);
00075 const char *PE_undo_get_name(struct Scene *scene, int nr, int *active);
00076 
00077 #endif /* ED_PARTICLE_H */
00078