Blender V5.3
keyframes_general_intern.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2025 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "BLI_map.hh"
12#include "BLI_set.hh"
13#include "BLI_string_ref.hh"
14
15#include "ANIM_action.hh"
16
17#include <limits>
18#include <optional>
19#include <string>
20
21namespace blender {
22
23struct FCurve;
24struct ID;
25struct Main;
26
27namespace ed::animation {
28
45
52 static constexpr const char *SLOTLESS_SLOT_IDENTIFIER = "";
53
62
72
86
93
94 /* The first and last frames that got copied. */
95 float first_frame = std::numeric_limits<float>::infinity();
96 float last_frame = -std::numeric_limits<float>::infinity();
97
99 float current_frame = 0.0f;
100
104
105 bool is_empty() const;
106 bool is_single_fcurve() const;
107 bool is_bone(const FCurve &fcurve) const;
108 int num_slots() const;
109
111
115 void debug_print() const;
116};
117
119
126std::optional<std::string> flip_names(StringRefNull rna_path);
127
132 const FCurve &fcurve_to_match,
133 const FCurve &fcurve_in_copy_buffer,
134 blender::animrig::slot_handle_t slot_handle_in_copy_buffer,
135 bool from_single,
136 bool to_single,
137 bool flip);
138
145 Main *bmain,
146 const FCurve &fcurve_to_match,
147 const FCurve &fcurve_in_copy_buffer,
148 animrig::slot_handle_t slot_handle_in_copy_buffer,
149 bool from_single,
150 bool to_single,
151 bool flip);
152
161 const FCurve &fcurve_to_match,
162 const FCurve &fcurve_in_copy_buffer,
163 blender::animrig::slot_handle_t slot_handle_in_copy_buffer,
164 bool from_single,
165 bool to_single,
166 bool flip);
167
172 const FCurve &fcurve_to_match,
173 const FCurve &fcurve_in_copy_buffer,
174 blender::animrig::slot_handle_t slot_handle_in_copy_buffer,
175 bool from_single,
176 bool to_single,
177 bool flip);
178
179} // namespace ed::animation
180} // namespace blender
Functions and classes to work with Actions.
decltype(blender::ActionSlot::handle) slot_handle_t
std::optional< std::string > flip_names(const StringRefNull rna_path)
KeyframeCopyBuffer * keyframe_copy_buffer
bool pastebuf_match_index_only(Main *, const FCurve &fcurve_to_match, const FCurve &fcurve_in_copy_buffer, animrig::slot_handle_t, const bool from_single, const bool, const bool)
bool pastebuf_match_path_property_and_component_length(Main *bmain, const FCurve &fcurve_to_match, const FCurve &fcurve_in_copy_buffer, const animrig::slot_handle_t slot_handle_in_copy_buffer, const bool from_single, const bool to_single, const bool flip)
bool pastebuf_match_path_property(Main *, const FCurve &fcurve_to_match, const FCurve &fcurve_in_copy_buffer, animrig::slot_handle_t, const bool from_single, const bool, const bool)
bool pastebuf_match_path_full(Main *, const FCurve &fcurve_to_match, const FCurve &fcurve_in_copy_buffer, animrig::slot_handle_t, const bool from_single, const bool to_single, const bool flip)
BMesh Iterators.
bool is_bone(const FCurve &fcurve) const
Map< blender::animrig::slot_handle_t, ID * > slot_animated_ids
blender::animrig::StripKeyframeData keyframe_data
Map< blender::animrig::slot_handle_t, std::string > slot_identifiers
KeyframeCopyBuffer(const KeyframeCopyBuffer &other)=delete
static constexpr blender::animrig::slot_handle_t DEFAULT_LAST_USED_SLOT_HANDLE
blender::animrig::slot_handle_t last_used_slot_handle
blender::animrig::Channelbag * channelbag_for_slot(StringRef slot_identifier)