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