Blender V2.61 - r43446
Functions | Variables

space_view3d.c File Reference

#include <string.h>
#include <stdio.h>
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_rand.h"
#include "BLI_utildefines.h"
#include "BKE_object.h"
#include "BKE_context.h"
#include "BKE_screen.h"
#include "ED_space_api.h"
#include "ED_screen.h"
#include "ED_object.h"
#include "BIF_gl.h"
#include "WM_api.h"
#include "WM_types.h"
#include "RE_engine.h"
#include "RNA_access.h"
#include "UI_resources.h"
#include "view3d_intern.h"

Go to the source code of this file.

Functions

ARegionview3d_has_buttons_region (ScrArea *sa)
ARegionview3d_has_tools_region (ScrArea *sa)
RegionView3DED_view3d_context_rv3d (bContext *C)
int ED_view3d_context_user_region (bContext *C, View3D **v3d_r, ARegion **ar_r)
void ED_view3d_init_mats_rv3d (struct Object *ob, struct RegionView3D *rv3d)
void ED_view3d_init_mats_rv3d_gl (struct Object *ob, struct RegionView3D *rv3d)
static SpaceLinkview3d_new (const bContext *C)
static void view3d_free (SpaceLink *sl)
static void view3d_init (struct wmWindowManager *UNUSED(wm), ScrArea *UNUSED(sa))
static SpaceLinkview3d_duplicate (SpaceLink *sl)
static void view3d_main_area_init (wmWindowManager *wm, ARegion *ar)
static int view3d_ob_drop_poll (bContext *UNUSED(C), wmDrag *drag, wmEvent *UNUSED(event))
static int view3d_mat_drop_poll (bContext *UNUSED(C), wmDrag *drag, wmEvent *UNUSED(event))
static int view3d_ima_drop_poll (bContext *UNUSED(C), wmDrag *drag, wmEvent *UNUSED(event))
static int view3d_ima_bg_drop_poll (bContext *C, wmDrag *drag, wmEvent *event)
static int view3d_ima_ob_drop_poll (bContext *C, wmDrag *drag, wmEvent *event)
static void view3d_ob_drop_copy (wmDrag *drag, wmDropBox *drop)
static void view3d_id_drop_copy (wmDrag *drag, wmDropBox *drop)
static void view3d_id_path_drop_copy (wmDrag *drag, wmDropBox *drop)
static void view3d_dropboxes (void)
static void view3d_main_area_free (ARegion *ar)
static void * view3d_main_area_duplicate (void *poin)
static void view3d_recalc_used_layers (ARegion *ar, wmNotifier *wmn, Scene *scene)
static void view3d_main_area_listener (ARegion *ar, wmNotifier *wmn)
static void view3d_main_area_cursor (wmWindow *win, ScrArea *UNUSED(sa), ARegion *UNUSED(ar))
static void view3d_header_area_init (wmWindowManager *wm, ARegion *ar)
static void view3d_header_area_draw (const bContext *C, ARegion *ar)
static void view3d_header_area_listener (ARegion *ar, wmNotifier *wmn)
static void view3d_buttons_area_init (wmWindowManager *wm, ARegion *ar)
static void view3d_buttons_area_draw (const bContext *C, ARegion *ar)
static void view3d_buttons_area_listener (ARegion *ar, wmNotifier *wmn)
static void view3d_tools_area_init (wmWindowManager *wm, ARegion *ar)
static void view3d_tools_area_draw (const bContext *C, ARegion *ar)
static void view3d_props_area_listener (ARegion *ar, wmNotifier *wmn)
static void space_view3d_listener (struct ScrArea *sa, struct wmNotifier *wmn)
static int view3d_context (const bContext *C, const char *member, bContextDataResult *result)
void ED_spacetype_view3d (void)

Variables

const char * view3d_context_dir []

Detailed Description

Definition in file space_view3d.c.


Function Documentation

void ED_spacetype_view3d ( void  )

Definition at line 1145 of file space_view3d.c.

References BKE_spacetype_register(), BKE_ST_MAXNAME, BLI_addhead(), SpaceType::context, ARegionType::cursor, ARegionType::draw, SpaceType::dropboxes, ARegionType::duplicate, SpaceType::duplicate, ED_KEYMAP_FRAMES, ED_KEYMAP_GPENCIL, ED_KEYMAP_HEADER, ED_KEYMAP_UI, ED_KEYMAP_VIEW2D, ARegionType::free, SpaceType::free, HEADERY, ARegionType::init, SpaceType::init, SpaceType::keymap, ARegionType::keymapflag, ARegionType::listener, SpaceType::listener, ARegionType::lock, MEM_callocN(), SpaceType::name, SpaceType::new, SpaceType::operatortypes, ARegionType::prefsizex, ARegionType::prefsizey, ARegionType::regionid, SpaceType::regiontypes, RGN_TYPE_HEADER, RGN_TYPE_TOOL_PROPS, RGN_TYPE_TOOLS, RGN_TYPE_UI, RGN_TYPE_WINDOW, SPACE_VIEW3D, space_view3d_listener(), SpaceType::spaceid, view3d_buttons_area_draw(), view3d_buttons_area_init(), view3d_buttons_area_listener(), view3d_buttons_register(), view3d_context(), view3d_dropboxes(), view3d_duplicate(), view3d_free(), view3d_header_area_draw(), view3d_header_area_init(), view3d_header_area_listener(), view3d_init(), view3d_keymap(), view3d_main_area_cursor(), view3d_main_area_draw(), view3d_main_area_duplicate(), view3d_main_area_free(), view3d_main_area_init(), view3d_main_area_listener(), view3d_new(), view3d_operatortypes(), view3d_props_area_listener(), view3d_tool_props_register(), view3d_tools_area_draw(), view3d_tools_area_init(), and view3d_toolshelf_register().

Referenced by ED_spacetypes_init().

RegionView3D* ED_view3d_context_rv3d ( bContext C) [read]
int ED_view3d_context_user_region ( bContext C,
View3D **  v3d_r,
ARegion **  ar_r 
)
void ED_view3d_init_mats_rv3d ( struct Object ob,
struct RegionView3D rv3d 
)
void ED_view3d_init_mats_rv3d_gl ( struct Object ob,
struct RegionView3D rv3d 
)

Definition at line 232 of file space_view3d.c.

References ED_view3d_init_mats_rv3d(), glMultMatrixf, and Object::obmat.

Referenced by draw_object().

static void space_view3d_listener ( struct ScrArea sa,
struct wmNotifier wmn 
) [static]
static void view3d_buttons_area_draw ( const bContext C,
ARegion ar 
) [static]

Definition at line 871 of file space_view3d.c.

References ED_region_panels(), and NULL.

Referenced by ED_spacetype_view3d().

static void view3d_buttons_area_init ( wmWindowManager wm,
ARegion ar 
) [static]
static void view3d_buttons_area_listener ( ARegion ar,
wmNotifier wmn 
) [static]
static int view3d_context ( const bContext C,
const char *  member,
bContextDataResult result 
) [static]
static void view3d_dropboxes ( void  ) [static]
static SpaceLink* view3d_duplicate ( SpaceLink sl) [static]
static void view3d_free ( SpaceLink sl) [static]
ARegion* view3d_has_buttons_region ( ScrArea sa)
ARegion* view3d_has_tools_region ( ScrArea sa)
static void view3d_header_area_draw ( const bContext C,
ARegion ar 
) [static]

Definition at line 830 of file space_view3d.c.

References ED_region_header().

Referenced by ED_spacetype_view3d().

static void view3d_header_area_init ( wmWindowManager wm,
ARegion ar 
) [static]
static void view3d_header_area_listener ( ARegion ar,
wmNotifier wmn 
) [static]
static void view3d_id_drop_copy ( wmDrag drag,
wmDropBox drop 
) [static]

Definition at line 534 of file space_view3d.c.

References ID::name, wmDrag::poin, wmDropBox::ptr, and RNA_string_set().

Referenced by view3d_dropboxes().

static void view3d_id_path_drop_copy ( wmDrag drag,
wmDropBox drop 
) [static]

Definition at line 541 of file space_view3d.c.

References ID::name, wmDrag::path, wmDrag::poin, wmDropBox::ptr, and RNA_string_set().

Referenced by view3d_dropboxes().

static int view3d_ima_bg_drop_poll ( bContext C,
wmDrag drag,
wmEvent event 
) [static]
static int view3d_ima_drop_poll ( bContext UNUSEDC,
wmDrag drag,
wmEvent UNUSEDevent 
) [static]
static int view3d_ima_ob_drop_poll ( bContext C,
wmDrag drag,
wmEvent event 
) [static]
static void view3d_init ( struct wmWindowManager UNUSEDwm,
ScrArea UNUSEDsa 
) [static]

Definition at line 349 of file space_view3d.c.

Referenced by ED_spacetype_view3d().

static void view3d_main_area_cursor ( wmWindow win,
ScrArea UNUSEDsa,
ARegion UNUSEDar 
) [static]
static void* view3d_main_area_duplicate ( void *  poin) [static]

Definition at line 591 of file space_view3d.c.

References RegionView3D::clipbb, RegionView3D::localvd, MEM_dupallocN(), and NULL.

Referenced by ED_spacetype_view3d().

static void view3d_main_area_free ( ARegion ar) [static]
static void view3d_main_area_init ( wmWindowManager wm,
ARegion ar 
) [static]
static void view3d_main_area_listener ( ARegion ar,
wmNotifier wmn 
) [static]
static int view3d_mat_drop_poll ( bContext UNUSEDC,
wmDrag drag,
wmEvent UNUSEDevent 
) [static]

Definition at line 480 of file space_view3d.c.

References GS, ID_MA, ID::name, wmDrag::poin, wmDrag::type, and WM_DRAG_ID.

Referenced by view3d_dropboxes().

static SpaceLink* view3d_new ( const bContext C) [static]
static void view3d_ob_drop_copy ( wmDrag drag,
wmDropBox drop 
) [static]

Definition at line 521 of file space_view3d.c.

References ID::name, wmDrag::poin, wmDropBox::ptr, RNA_pointer_get(), and RNA_string_set().

Referenced by view3d_dropboxes().

static int view3d_ob_drop_poll ( bContext UNUSEDC,
wmDrag drag,
wmEvent UNUSEDevent 
) [static]

Definition at line 470 of file space_view3d.c.

References GS, ID_OB, ID::name, wmDrag::poin, wmDrag::type, and WM_DRAG_ID.

Referenced by view3d_dropboxes().

static void view3d_props_area_listener ( ARegion ar,
wmNotifier wmn 
) [static]
static void view3d_recalc_used_layers ( ARegion ar,
wmNotifier wmn,
Scene scene 
) [static]
static void view3d_tools_area_draw ( const bContext C,
ARegion ar 
) [static]

Definition at line 969 of file space_view3d.c.

References CTX_data_mode_string(), and ED_region_panels().

Referenced by ED_spacetype_view3d().

static void view3d_tools_area_init ( wmWindowManager wm,
ARegion ar 
) [static]

Variable Documentation

const char* view3d_context_dir[]
Initial value:
 {
    "selected_objects", "selected_bases", "selected_editable_objects",
    "selected_editable_bases", "visible_objects", "visible_bases", "selectable_objects", "selectable_bases",
    "active_base", "active_object", NULL}

Definition at line 1041 of file space_view3d.c.