Blender  V3.3
Functions
view3d_edit.c File Reference
#include "DNA_armature_types.h"
#include "DNA_camera_types.h"
#include "DNA_world_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BKE_action.h"
#include "BKE_armature.h"
#include "BKE_camera.h"
#include "BKE_lib_id.h"
#include "BKE_main.h"
#include "BKE_object.h"
#include "BKE_report.h"
#include "BKE_scene.h"
#include "BKE_screen.h"
#include "DEG_depsgraph_query.h"
#include "WM_api.h"
#include "WM_message.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "ED_screen.h"
#include "ED_transform.h"
#include "ED_transform_snap_object_context.h"
#include "view3d_intern.h"

Go to the source code of this file.

Functions

static bool view3d_camera_user_poll (bContext *C)
 
static bool view3d_lock_poll (bContext *C)
 
View Lock Clear Operator
static int view_lock_clear_exec (bContext *C, wmOperator *UNUSED(op))
 
void VIEW3D_OT_view_lock_clear (wmOperatorType *ot)
 
View Lock to Active Operator
static int view_lock_to_active_exec (bContext *C, wmOperator *UNUSED(op))
 
void VIEW3D_OT_view_lock_to_active (wmOperatorType *ot)
 
Frame Camera Bounds Operator
static int view3d_center_camera_exec (bContext *C, wmOperator *UNUSED(op))
 
void VIEW3D_OT_view_center_camera (wmOperatorType *ot)
 
View Lock Center Operator
static int view3d_center_lock_exec (bContext *C, wmOperator *UNUSED(op))
 
void VIEW3D_OT_view_center_lock (wmOperatorType *ot)
 
Set Render Border Operator
static int render_border_exec (bContext *C, wmOperator *op)
 
void VIEW3D_OT_render_border (wmOperatorType *ot)
 
Clear Render Border Operator
static int clear_render_border_exec (bContext *C, wmOperator *UNUSED(op))
 
void VIEW3D_OT_clear_render_border (wmOperatorType *ot)
 
Set Camera Zoom 1:1 Operator

Sets the view to 1:1 camera/render-pixel.

static void view3d_set_1_to_1_viewborder (Scene *scene, Depsgraph *depsgraph, ARegion *region, View3D *v3d)
 
static int view3d_zoom_1_to_1_camera_exec (bContext *C, wmOperator *UNUSED(op))
 
void VIEW3D_OT_zoom_camera_1_to_1 (wmOperatorType *ot)
 
View Toggle Perspective/Orthographic Operator
static int viewpersportho_exec (bContext *C, wmOperator *UNUSED(op))
 
void VIEW3D_OT_view_persportho (wmOperatorType *ot)
 
View Navigate Operator

Wraps walk/fly modes.

static int view3d_navigate_invoke (bContext *C, wmOperator *UNUSED(op), const wmEvent *event)
 
void VIEW3D_OT_navigate (wmOperatorType *ot)
 
Background Image Add Operator
static Camerabackground_image_camera_from_context (bContext *C)
 
static int background_image_add_exec (bContext *C, wmOperator *UNUSED(op))
 
static int background_image_add_invoke (bContext *C, wmOperator *op, const wmEvent *UNUSED(event))
 
static bool background_image_add_poll (bContext *C)
 
void VIEW3D_OT_background_image_add (wmOperatorType *ot)
 
Background Image Remove Operator
static int background_image_remove_exec (bContext *C, wmOperator *op)
 
void VIEW3D_OT_background_image_remove (wmOperatorType *ot)
 
Drop World Operator
static int drop_world_exec (bContext *C, wmOperator *op)
 
static bool drop_world_poll (bContext *C)
 
void VIEW3D_OT_drop_world (wmOperatorType *ot)
 
View Clipping Planes Operator

Draw border or toggle off.

static void calc_local_clipping (float clip_local[6][4], const BoundBox *clipbb, const float mat[4][4])
 
void ED_view3d_clipping_local (RegionView3D *rv3d, const float mat[4][4])
 
static int view3d_clipping_exec (bContext *C, wmOperator *op)
 
static int view3d_clipping_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
void VIEW3D_OT_clip_border (wmOperatorType *ot)
 
Set Cursor Operator
void ED_view3d_cursor3d_position (bContext *C, const int mval[2], const bool use_depth, float cursor_co[3])
 
void ED_view3d_cursor3d_position_rotation (bContext *C, const int mval[2], const bool use_depth, enum eV3DCursorOrient orientation, float cursor_co[3], float cursor_quat[4])
 
void ED_view3d_cursor3d_update (bContext *C, const int mval[2], const bool use_depth, enum eV3DCursorOrient orientation)
 
static int view3d_cursor3d_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
void VIEW3D_OT_cursor3d (wmOperatorType *ot)
 
Toggle XRay
static int toggle_xray_exec (bContext *C, wmOperator *op)
 
void VIEW3D_OT_toggle_xray (wmOperatorType *ot)
 

Toggle Shading Operator

static const EnumPropertyItem prop_shading_type_items []
 
static int toggle_shading_exec (bContext *C, wmOperator *op)
 
void VIEW3D_OT_toggle_shading (wmOperatorType *ot)
 

Detailed Description

3D view manipulation/operators.

Definition in file view3d_edit.c.

Function Documentation

◆ background_image_add_exec()

static int background_image_add_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ background_image_add_invoke()

static int background_image_add_invoke ( bContext C,
wmOperator op,
const wmEvent UNUSEDevent 
)
static

◆ background_image_add_poll()

static bool background_image_add_poll ( bContext C)
static

Definition at line 590 of file view3d_edit.c.

References background_image_camera_from_context(), C, and NULL.

Referenced by VIEW3D_OT_background_image_add().

◆ background_image_camera_from_context()

static Camera* background_image_camera_from_context ( bContext C)
static

◆ background_image_remove_exec()

static int background_image_remove_exec ( bContext C,
wmOperator op 
)
static

◆ calc_local_clipping()

static void calc_local_clipping ( float  clip_local[6][4],
const BoundBox clipbb,
const float  mat[4][4] 
)
static

◆ clear_render_border_exec()

static int clear_render_border_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ drop_world_exec()

static int drop_world_exec ( bContext C,
wmOperator op 
)
static

◆ drop_world_poll()

static bool drop_world_poll ( bContext C)
static

Definition at line 708 of file view3d_edit.c.

References C, and ED_operator_scene_editable().

Referenced by VIEW3D_OT_drop_world().

◆ ED_view3d_clipping_local()

void ED_view3d_clipping_local ( RegionView3D rv3d,
const float  mat[4][4] 
)

◆ ED_view3d_cursor3d_position()

void ED_view3d_cursor3d_position ( struct bContext C,
const int  mval[2],
bool  use_depth,
float  r_cursor_co[3] 
)

◆ ED_view3d_cursor3d_position_rotation()

void ED_view3d_cursor3d_position_rotation ( bContext C,
const int  mval[2],
const bool  use_depth,
enum eV3DCursorOrient  orientation,
float  cursor_co[3],
float  cursor_quat[4] 
)

◆ ED_view3d_cursor3d_update()

void ED_view3d_cursor3d_update ( bContext C,
const int  mval[2],
const bool  use_depth,
enum eV3DCursorOrient  orientation 
)

◆ render_border_exec()

static int render_border_exec ( bContext C,
wmOperator op 
)
static

◆ toggle_shading_exec()

static int toggle_shading_exec ( bContext C,
wmOperator op 
)
static

◆ toggle_xray_exec()

static int toggle_xray_exec ( bContext C,
wmOperator op 
)
static

◆ view3d_camera_user_poll()

static bool view3d_camera_user_poll ( bContext C)
static

◆ view3d_center_camera_exec()

static int view3d_center_camera_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ view3d_center_lock_exec()

static int view3d_center_lock_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ view3d_clipping_exec()

static int view3d_clipping_exec ( bContext C,
wmOperator op 
)
static

◆ view3d_clipping_invoke()

static int view3d_clipping_invoke ( bContext C,
wmOperator op,
const wmEvent event 
)
static

◆ view3d_cursor3d_invoke()

static int view3d_cursor3d_invoke ( bContext C,
wmOperator op,
const wmEvent event 
)
static

◆ view3d_lock_poll()

static bool view3d_lock_poll ( bContext C)
static

◆ view3d_navigate_invoke()

static int view3d_navigate_invoke ( bContext C,
wmOperator UNUSEDop,
const wmEvent event 
)
static

◆ VIEW3D_OT_background_image_add()

void VIEW3D_OT_background_image_add ( wmOperatorType ot)

◆ VIEW3D_OT_background_image_remove()

void VIEW3D_OT_background_image_remove ( wmOperatorType ot)

◆ VIEW3D_OT_clear_render_border()

void VIEW3D_OT_clear_render_border ( wmOperatorType ot)

◆ VIEW3D_OT_clip_border()

void VIEW3D_OT_clip_border ( wmOperatorType ot)

◆ VIEW3D_OT_cursor3d()

void VIEW3D_OT_cursor3d ( wmOperatorType ot)

◆ VIEW3D_OT_drop_world()

void VIEW3D_OT_drop_world ( wmOperatorType ot)

◆ VIEW3D_OT_navigate()

void VIEW3D_OT_navigate ( wmOperatorType ot)

◆ VIEW3D_OT_render_border()

void VIEW3D_OT_render_border ( wmOperatorType ot)

◆ VIEW3D_OT_toggle_shading()

void VIEW3D_OT_toggle_shading ( wmOperatorType ot)

◆ VIEW3D_OT_toggle_xray()

void VIEW3D_OT_toggle_xray ( wmOperatorType ot)

◆ VIEW3D_OT_view_center_camera()

void VIEW3D_OT_view_center_camera ( wmOperatorType ot)

◆ VIEW3D_OT_view_center_lock()

void VIEW3D_OT_view_center_lock ( wmOperatorType ot)

◆ VIEW3D_OT_view_lock_clear()

void VIEW3D_OT_view_lock_clear ( wmOperatorType ot)

◆ VIEW3D_OT_view_lock_to_active()

void VIEW3D_OT_view_lock_to_active ( wmOperatorType ot)

◆ VIEW3D_OT_view_persportho()

void VIEW3D_OT_view_persportho ( wmOperatorType ot)

◆ VIEW3D_OT_zoom_camera_1_to_1()

void VIEW3D_OT_zoom_camera_1_to_1 ( wmOperatorType ot)

◆ view3d_set_1_to_1_viewborder()

static void view3d_set_1_to_1_viewborder ( Scene scene,
Depsgraph depsgraph,
ARegion region,
View3D v3d 
)
static

◆ view3d_zoom_1_to_1_camera_exec()

static int view3d_zoom_1_to_1_camera_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ view_lock_clear_exec()

static int view_lock_clear_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ view_lock_to_active_exec()

static int view_lock_to_active_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ viewpersportho_exec()

static int viewpersportho_exec ( bContext C,
wmOperator UNUSEDop 
)
static

Variable Documentation

◆ prop_shading_type_items

const EnumPropertyItem prop_shading_type_items[]
static
Initial value:
= {
{OB_WIRE, "WIREFRAME", 0, "Wireframe", "Toggle wireframe shading"},
{OB_SOLID, "SOLID", 0, "Solid", "Toggle solid shading"},
{OB_MATERIAL, "MATERIAL", 0, "Material Preview", "Toggle material preview shading"},
{OB_RENDER, "RENDERED", 0, "Rendered", "Toggle rendered shading"},
{0, NULL, 0, NULL, NULL},
}
@ OB_WIRE
@ OB_SOLID
@ OB_RENDER
@ OB_MATERIAL

Definition at line 1124 of file view3d_edit.c.

Referenced by VIEW3D_OT_toggle_shading().