Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/ED_particle.h
| Show All 32 Lines | |||||
| #define __ED_PARTICLE_H__ | #define __ED_PARTICLE_H__ | ||||
| struct bContext; | struct bContext; | ||||
| struct Object; | struct Object; | ||||
| struct ParticleEditSettings; | struct ParticleEditSettings; | ||||
| struct rcti; | struct rcti; | ||||
| struct PTCacheEdit; | struct PTCacheEdit; | ||||
| struct Scene; | struct Scene; | ||||
| struct SceneLayer; | struct ViewLayer; | ||||
| /* particle edit mode */ | /* particle edit mode */ | ||||
| void PE_free_ptcache_edit(struct PTCacheEdit *edit); | void PE_free_ptcache_edit(struct PTCacheEdit *edit); | ||||
| int PE_start_edit(struct PTCacheEdit *edit); | int PE_start_edit(struct PTCacheEdit *edit); | ||||
| /* access */ | /* access */ | ||||
| struct PTCacheEdit *PE_get_current(struct Scene *scene, struct SceneLayer *sl, struct Object *ob); | struct PTCacheEdit *PE_get_current(struct Scene *scene, struct ViewLayer *sl, struct Object *ob); | ||||
| struct PTCacheEdit *PE_create_current(const struct EvaluationContext *eval_ctx, struct Scene *scene, struct Object *ob); | struct PTCacheEdit *PE_create_current(const struct EvaluationContext *eval_ctx, struct Scene *scene, struct Object *ob); | ||||
| void PE_current_changed(const struct EvaluationContext *eval_ctx, struct Scene *scene, struct Object *ob); | void PE_current_changed(const struct EvaluationContext *eval_ctx, struct Scene *scene, struct Object *ob); | ||||
| int PE_minmax(struct Scene *scene, struct SceneLayer *sl, float min[3], float max[3]); | int PE_minmax(struct Scene *scene, struct ViewLayer *sl, float min[3], float max[3]); | ||||
| struct ParticleEditSettings *PE_settings(struct Scene *scene); | struct ParticleEditSettings *PE_settings(struct Scene *scene); | ||||
| /* update calls */ | /* update calls */ | ||||
| void PE_hide_keys_time(struct Scene *scene, struct PTCacheEdit *edit, float cfra); | void PE_hide_keys_time(struct Scene *scene, struct PTCacheEdit *edit, float cfra); | ||||
| void PE_update_object( | void PE_update_object( | ||||
| const struct EvaluationContext *eval_ctx, struct Scene *scene, | const struct EvaluationContext *eval_ctx, struct Scene *scene, | ||||
| struct SceneLayer *sl, struct Object *ob, int useflag); | struct ViewLayer *sl, struct Object *ob, int useflag); | ||||
| /* selection tools */ | /* selection tools */ | ||||
| int PE_mouse_particles(struct bContext *C, const int mval[2], bool extend, bool deselect, bool toggle); | int PE_mouse_particles(struct bContext *C, const int mval[2], bool extend, bool deselect, bool toggle); | ||||
| int PE_border_select(struct bContext *C, struct rcti *rect, bool select, bool extend); | int PE_border_select(struct bContext *C, struct rcti *rect, bool select, bool extend); | ||||
| int PE_circle_select(struct bContext *C, int selecting, const int mval[2], float rad); | int PE_circle_select(struct bContext *C, int selecting, const int mval[2], float rad); | ||||
| int PE_lasso_select(struct bContext *C, const int mcords[][2], const short moves, bool extend, bool select); | int PE_lasso_select(struct bContext *C, const int mcords[][2], const short moves, bool extend, bool select); | ||||
| void PE_deselect_all_visible(struct PTCacheEdit *edit); | void PE_deselect_all_visible(struct PTCacheEdit *edit); | ||||
| /* undo */ | /* undo */ | ||||
| void PE_undo_push(struct Scene *scene, struct SceneLayer *sl, const char *str); | void PE_undo_push(struct Scene *scene, struct ViewLayer *sl, const char *str); | ||||
| void PE_undo_step(struct Scene *scene, struct SceneLayer *sl, int step); | void PE_undo_step(struct Scene *scene, struct ViewLayer *sl, int step); | ||||
| void PE_undo(struct Scene *scene, struct SceneLayer *sl); | void PE_undo(struct Scene *scene, struct ViewLayer *sl); | ||||
| void PE_redo(struct Scene *scene, struct SceneLayer *sl); | void PE_redo(struct Scene *scene, struct ViewLayer *sl); | ||||
| bool PE_undo_is_valid(struct Scene *scene, struct SceneLayer *sl); | bool PE_undo_is_valid(struct Scene *scene, struct ViewLayer *sl); | ||||
| void PE_undo_number(struct Scene *scene, struct SceneLayer *sl, int nr); | void PE_undo_number(struct Scene *scene, struct ViewLayer *sl, int nr); | ||||
| const char *PE_undo_get_name(struct Scene *scene, struct SceneLayer *sl, int nr, bool *r_active); | const char *PE_undo_get_name(struct Scene *scene, struct ViewLayer *sl, int nr, bool *r_active); | ||||
| #endif /* __ED_PARTICLE_H__ */ | #endif /* __ED_PARTICLE_H__ */ | ||||