godot/editor/animation_bezier_editor.cpp

/**************************************************************************/
/*  animation_bezier_editor.cpp                                           */
/**************************************************************************/
/*                         This file is part of:                          */
/*                             GODOT ENGINE                               */
/*                        https://godotengine.org                         */
/**************************************************************************/
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                  */
/*                                                                        */
/* Permission is hereby granted, free of charge, to any person obtaining  */
/* a copy of this software and associated documentation files (the        */
/* "Software"), to deal in the Software without restriction, including    */
/* without limitation the rights to use, copy, modify, merge, publish,    */
/* distribute, sublicense, and/or sell copies of the Software, and to     */
/* permit persons to whom the Software is furnished to do so, subject to  */
/* the following conditions:                                              */
/*                                                                        */
/* The above copyright notice and this permission notice shall be         */
/* included in all copies or substantial portions of the Software.        */
/*                                                                        */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,        */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF     */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY   */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,   */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE      */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                 */
/**************************************************************************/

#include "animation_bezier_editor.h"

#include "editor/editor_node.h"
#include "editor/editor_settings.h"
#include "editor/editor_string_names.h"
#include "editor/editor_undo_redo_manager.h"
#include "editor/gui/editor_spin_slider.h"
#include "editor/themes/editor_scale.h"
#include "scene/gui/view_panner.h"
#include "scene/resources/text_line.h"

#include <limits.h>

float AnimationBezierTrackEdit::_bezier_h_to_pixel(float p_h) {}

void AnimationBezierTrackEdit::_draw_track(int p_track, const Color &p_color) {}

void AnimationBezierTrackEdit::_draw_line_clipped(const Vector2 &p_from, const Vector2 &p_to, const Color &p_color, int p_clip_left, int p_clip_right) {}

void AnimationBezierTrackEdit::_notification(int p_what) {}

// Check if a track is displayed in the bezier editor (track type = bezier and track not filtered).
bool AnimationBezierTrackEdit::_is_track_displayed(int p_track_index) {}

// Check if the curves for a track are displayed in the editor (not hidden). Includes the check on the track visibility.
bool AnimationBezierTrackEdit::_is_track_curves_displayed(int p_track_index) {}

Ref<Animation> AnimationBezierTrackEdit::get_animation() const {}

void AnimationBezierTrackEdit::set_animation_and_track(const Ref<Animation> &p_animation, int p_track, bool p_read_only) {}

Size2 AnimationBezierTrackEdit::get_minimum_size() const {}

void AnimationBezierTrackEdit::set_timeline(AnimationTimelineEdit *p_timeline) {}

void AnimationBezierTrackEdit::set_editor(AnimationTrackEditor *p_editor) {}

void AnimationBezierTrackEdit::_play_position_draw() {}

void AnimationBezierTrackEdit::set_play_position(real_t p_pos) {}

void AnimationBezierTrackEdit::update_play_position() {}

void AnimationBezierTrackEdit::set_root(Node *p_root) {}

void AnimationBezierTrackEdit::set_filtered(bool p_filtered) {}

void AnimationBezierTrackEdit::auto_fit_vertically() {}

void AnimationBezierTrackEdit::_zoom_vertically(real_t p_minimum_value, real_t p_maximum_value) {}

void AnimationBezierTrackEdit::_zoom_changed() {}

void AnimationBezierTrackEdit::_update_locked_tracks_after(int p_track) {}

void AnimationBezierTrackEdit::_update_hidden_tracks_after(int p_track) {}

String AnimationBezierTrackEdit::get_tooltip(const Point2 &p_pos) const {}

void AnimationBezierTrackEdit::_clear_selection() {}

void AnimationBezierTrackEdit::_change_selected_keys_handle_mode(Animation::HandleMode p_mode, bool p_auto) {}

void AnimationBezierTrackEdit::_clear_selection_for_anim(const Ref<Animation> &p_anim) {}

void AnimationBezierTrackEdit::_select_at_anim(const Ref<Animation> &p_anim, int p_track, real_t p_pos, bool p_single) {}

void AnimationBezierTrackEdit::gui_input(const Ref<InputEvent> &p_event) {}

bool AnimationBezierTrackEdit::_try_select_at_ui_pos(const Point2 &p_pos, bool p_aggregate, bool p_deselectable) {}

void AnimationBezierTrackEdit::_pan_callback(Vector2 p_scroll_vec, Ref<InputEvent> p_event) {}

void AnimationBezierTrackEdit::_zoom_callback(float p_zoom_factor, Vector2 p_origin, Ref<InputEvent> p_event) {}

float AnimationBezierTrackEdit::get_bezier_key_value(Array p_bezier_key_array) {}

void AnimationBezierTrackEdit::_menu_selected(int p_index) {}

void AnimationBezierTrackEdit::duplicate_selected_keys(real_t p_ofs, bool p_ofs_valid) {}

void AnimationBezierTrackEdit::copy_selected_keys(bool p_cut) {}

void AnimationBezierTrackEdit::paste_keys(real_t p_ofs, bool p_ofs_valid) {}

void AnimationBezierTrackEdit::delete_selection() {}

void AnimationBezierTrackEdit::_bezier_track_insert_key_at_anim(const Ref<Animation> &p_anim, int p_track, double p_time, real_t p_value, const Vector2 &p_in_handle, const Vector2 &p_out_handle, const Animation::HandleMode p_handle_mode) {}

void AnimationBezierTrackEdit::_bind_methods() {}

AnimationBezierTrackEdit::AnimationBezierTrackEdit() {}