Blender V5.3
BKE_anim_visualization.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4#pragma once
5
9
10namespace blender {
11
12struct BlendDataReader;
13struct BlendWriter;
14struct Object;
15struct ReportList;
16struct Scene;
17struct bAnimVizSettings;
18struct bMotionPath;
19struct bPoseChannel;
20
21namespace bke {
22
23/* ---------------------------------------------------- */
24/* Animation Visualization */
25
26namespace animviz {
27
31void settings_init(struct bAnimVizSettings *avs);
32
33} // namespace animviz
34
35/* ---------------------------------------------------- */
36/* Motion Path */
37
38namespace motionpath {
39
40struct Runtime {
41 /* Stores a world space point. This is used during transforming to give the
42 * user a notion of their transform delta. It is important to keep this on the motionpath because
43 * for pose bones it is also shown when a parent bone is transformed. */
45 bool show_preview = false;
46 gpu::Batch *batch_preview = nullptr;
48};
49
50/* The following functions have to use C-style float3 because the file is still a C header and the
51 * functions are added for fix. Once converted to C++ this can be updated. */
52
57void set_preview_location(bMotionPath &mpath, const float location[3]);
63
67struct bMotionPath *copy(const struct bMotionPath *mpath_src);
68
72void free_cache(struct bMotionPath *mpath);
77void free(struct bMotionPath *mpath);
78
88struct bMotionPath *ensure(struct ReportList *reports,
89 struct Scene *scene,
90 struct Object *ob,
91 struct bPoseChannel *pchan);
92
93void blend_write(struct BlendWriter *writer, struct bMotionPath *mpath);
94void blend_read_data(struct BlendDataReader *reader, struct bMotionPath *mpath);
95
96} // namespace motionpath
97
98} // namespace bke
99} // namespace blender
void settings_init(struct bAnimVizSettings *avs)
void blend_read_data(struct BlendDataReader *reader, struct bMotionPath *mpath)
void free_cache(struct bMotionPath *mpath)
struct bMotionPath * copy(const struct bMotionPath *mpath_src)
void clear_preview_location(bMotionPath &mpath)
void set_preview_location(bMotionPath &mpath, const float location[3])
void free(struct bMotionPath *mpath)
void blend_write(struct BlendWriter *writer, struct bMotionPath *mpath)
struct bMotionPath * ensure(struct ReportList *reports, struct Scene *scene, struct Object *ob, struct bPoseChannel *pchan)
BMesh Iterators.