|
Blender
V2.59
|
#include <string.h>#include <stdio.h>#include <stdlib.h>#include <math.h>#include <float.h>#include "DNA_anim_types.h"#include "DNA_screen_types.h"#include "DNA_space_types.h"#include "DNA_windowmanager_types.h"#include "BLI_blenlib.h"#include "BLI_math.h"#include "BLI_rand.h"#include "BLI_dlrbTree.h"#include "BLI_utildefines.h"#include "BKE_fcurve.h"#include "BKE_nla.h"#include "BKE_context.h"#include "BKE_screen.h"#include "ED_anim_api.h"#include "ED_keyframes_draw.h"#include "BIF_gl.h"#include "BIF_glutil.h"#include "WM_types.h"#include "UI_interface.h"#include "UI_interface_icons.h"#include "UI_resources.h"#include "UI_view2d.h"#include "nla_intern.h"Go to the source code of this file.
Functions | |
| static void | nla_action_get_color (AnimData *adt, bAction *act, float color[4]) |
| static void | nla_action_draw_keyframes (AnimData *adt, bAction *act, View2D *v2d, float y, float ymin, float ymax) |
| static void | nla_strip_get_color_inside (AnimData *adt, NlaStrip *strip, float color[3]) |
| static void | nla_draw_strip_curves (NlaStrip *strip, float yminc, float ymaxc) |
| static void | nla_draw_strip (SpaceNla *snla, AnimData *adt, NlaTrack *UNUSED(nlt), NlaStrip *strip, View2D *v2d, float yminc, float ymaxc) |
| static void | nla_draw_strip_text (NlaTrack *UNUSED(nlt), NlaStrip *strip, int UNUSED(index), View2D *v2d, float yminc, float ymaxc) |
| void | draw_nla_main_data (bAnimContext *ac, SpaceNla *snla, ARegion *ar) |
| static void | draw_nla_channel_list_gl (bAnimContext *ac, ListBase *anim_data, View2D *v2d, float y) |
| void | draw_nla_channel_list (bContext *C, bAnimContext *ac, ARegion *ar) |
Definition in file nla_draw.c.
| void draw_nla_channel_list | ( | bContext * | C, |
| bAnimContext * | ac, | ||
| ARegion * | ar | ||
| ) |
Definition at line 823 of file nla_draw.c.
References ANIM_animdata_filter(), ANIM_channel_draw_widgets(), ANIMFILTER_CHANNELS, ANIMFILTER_VISIBLE, BLI_freelistN(), View2D::cur, bAnimContext::data, bAnimContext::datatype, draw_nla_channel_list_gl(), filter(), ListBase::first, IN_RANGE, bAnimListElem::next, NLACHANNEL_HEIGHT, NLACHANNEL_HEIGHT_HALF, NLACHANNEL_STEP, NULL, bAnimContext::sa, View2D::tot, UI_EMBOSS, UI_view2d_sync(), uiBeginBlock(), uiDrawBlock(), uiEndBlock(), ARegion::v2d, V2D_LOCK_COPY, rctf::ymax, and rctf::ymin.
Referenced by nla_channel_area_draw().
| static void draw_nla_channel_list_gl | ( | bAnimContext * | ac, |
| ListBase * | anim_data, | ||
| View2D * | v2d, | ||
| float | y | ||
| ) | [static] |
Definition at line 579 of file nla_draw.c.
References bAnimListElem::adt, ADT_NLA_EDIT_NOMAP, ADT_NLA_EDIT_ON, ANIM_channel_draw(), ANIMTYPE_NLAACTION, ANIMTYPE_NLATRACK, View2D::cur, bAnimListElem::data, EDITABLE_NLT, ELEM, fdrawline(), ListBase::first, NlaTrack::flag, AnimData::flag, GS, bAnimListElem::id, bAction::id, ID_MA, ID_PA, if(), IN_RANGE, ID::name, NlaTrack::name, bAnimListElem::next, NLACHANNEL_HEIGHT_HALF, NLACHANNEL_SKIP, NLACHANNEL_STEP, NLATRACK_ACTIVE, NLATRACK_DISABLED, NLATRACK_MUTED, NLATRACK_SOLO, SEL_NLT, TH_HEADER, TH_TEXT, TH_TEXT_HI, bAnimListElem::type, UI_DrawString(), UI_icon_draw(), UI_ThemeColor(), UI_ThemeColorShade(), uiDrawBox(), uiSetRoundBox(), rctf::xmax, rctf::ymax, and rctf::ymin.
Referenced by draw_nla_channel_list().
| void draw_nla_main_data | ( | bAnimContext * | ac, |
| SpaceNla * | snla, | ||
| ARegion * | ar | ||
| ) |
Definition at line 465 of file nla_draw.c.
References bAnimListElem::adt, ANIM_animdata_filter(), ANIMFILTER_CHANNELS, ANIMFILTER_VISIBLE, ANIMTYPE_NLAACTION, ANIMTYPE_NLATRACK, BKE_nlastrip_within_bounds(), BLI_freelistN(), MakeCursor::color, View2D::cur, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, fdrawline(), filter(), ListBase::first, IN_RANGE, bAnimListElem::next, NlaStrip::next, nla_action_draw_keyframes(), nla_action_get_color(), nla_draw_strip(), nla_draw_strip_text(), NLACHANNEL_HEIGHT, NLACHANNEL_HEIGHT_HALF, NLACHANNEL_SKIP, NLACHANNEL_STEP, NULL, NlaTrack::strips, View2D::tot, bAnimListElem::type, ARegion::v2d, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by nla_main_area_draw().
| static void nla_action_draw_keyframes | ( | AnimData * | adt, |
| bAction * | act, | ||
| View2D * | v2d, | ||
| float | y, | ||
| float | ymin, | ||
| float | ymax | ||
| ) | [static] |
Definition at line 110 of file nla_draw.c.
References action_to_keylist(), BLI_dlrbTree_free(), BLI_dlrbTree_init(), BLI_dlrbTree_linkedlist_sync(), ActKeyColumn::cfra, MakeCursor::color, draw_keyframe_shape(), ELEM, DLRBT_Tree::first, ActKeyColumn::key_type, KEYFRAME_SHAPE_FRAME, DLRBT_Tree::last, ActKeyColumn::next, nla_action_get_color(), NULL, and UI_view2d_getscale().
Referenced by draw_nla_main_data().
Definition at line 81 of file nla_draw.c.
References ADT_NLA_EDIT_ON, and AnimData::flag.
Referenced by draw_nla_main_data(), and nla_action_draw_keyframes().
| static void nla_draw_strip | ( | SpaceNla * | snla, |
| AnimData * | adt, | ||
| NlaTrack * | UNUSEDnlt, | ||
| NlaStrip * | strip, | ||
| View2D * | v2d, | ||
| float | yminc, | ||
| float | ymaxc | ||
| ) | [static] |
Definition at line 288 of file nla_draw.c.
References NlaStrip::actend, NlaStrip::actstart, MakeCursor::color, View2D::cur, NlaStrip::end, NlaStrip::extendmode, fdrawline(), ListBase::first, SpaceNla::flag, NlaStrip::flag, i, IS_EQF, ListBase::last, NlaStrip::next, nla_draw_strip_curves(), nla_strip_get_color_inside(), NLASTRIP_EXTEND_HOLD, NLASTRIP_EXTEND_HOLD_FORWARD, NLASTRIP_EXTEND_NOTHING, NLASTRIP_FLAG_ACTIVE, NLASTRIP_FLAG_MUTED, NLASTRIP_TYPE_CLIP, NLASTRIP_TYPE_META, NULL, NlaStrip::prev, NlaStrip::repeat, NlaStrip::scale, setlinestyle(), SNLA_NOSTRIPCURVES, NlaStrip::start, NlaStrip::strips, NlaStrip::type, uiDrawBoxShade(), uiSetRoundBox(), rctf::xmax, and rctf::xmin.
Referenced by draw_nla_main_data().
| static void nla_draw_strip_curves | ( | NlaStrip * | strip, |
| float | yminc, | ||
| float | ymaxc | ||
| ) | [static] |
Definition at line 227 of file nla_draw.c.
References NlaStrip::blendin, NlaStrip::blendout, NlaStrip::end, evaluate_fcurve(), NlaStrip::fcurves, NlaStrip::flag, IS_EQF, list_find_fcurve(), NLASTRIP_FLAG_USR_INFLUENCE, and NlaStrip::start.
Referenced by nla_draw_strip().
| static void nla_draw_strip_text | ( | NlaTrack * | UNUSEDnlt, |
| NlaStrip * | strip, | ||
| int | UNUSEDindex, | ||
| View2D * | v2d, | ||
| float | yminc, | ||
| float | ymaxc | ||
| ) | [static] |
Definition at line 422 of file nla_draw.c.
References NlaStrip::end, NlaStrip::flag, NlaStrip::name, NLASTRIP_FLAG_ACTIVE, NLASTRIP_FLAG_REVERSE, NLASTRIP_FLAG_SELECT, NLASTRIP_FLAG_TEMP_META, NLASTRIP_FLAG_TWEAKUSER, NlaStrip::start, str, UI_view2d_text_cache_rectf(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by draw_nla_main_data().
| static void nla_strip_get_color_inside | ( | AnimData * | adt, |
| NlaStrip * | strip, | ||
| float | color[3] | ||
| ) | [static] |
Definition at line 158 of file nla_draw.c.
References ADT_NLA_EDIT_ON, NlaStrip::flag, AnimData::flag, NLASTRIP_FLAG_ACTIVE, NLASTRIP_FLAG_SELECT, NLASTRIP_FLAG_TWEAKUSER, NLASTRIP_TYPE_META, NLASTRIP_TYPE_TRANSITION, TH_STRIP, TH_STRIP_SELECT, NlaStrip::type, and UI_GetThemeColor3fv().
Referenced by nla_draw_strip().