Blender V2.61 - r43446
Defines | Functions | Variables

view3d_intern.h File Reference

#include "ED_view3d.h"

Go to the source code of this file.

Defines

#define BL_NEAR_CLIP   0.001
#define DRAW_PICKING   1
#define DRAW_CONSTCOLOR   2
#define DRAW_SCENESET   4
#define DRAW_DYNAMIC_PAINT_PREVIEW   1
#define DRAW_FACE_SELECT   2
#define V3D_CACHE_TEXT_ZBUF   (1<<0)
#define V3D_CACHE_TEXT_WORLDSPACE   (1<<1)
#define V3D_CACHE_TEXT_ASCII   (1<<2)
#define V3D_CACHE_TEXT_GLOBALSPACE   (1<<3)
#define VIEW3D_CAMERA_BORDER_HACK

Functions

void view3d_header_buttons (const struct bContext *C, struct ARegion *ar)
void VIEW3D_OT_layers (struct wmOperatorType *ot)
void view3d_operatortypes (void)
void VIEW3D_OT_zoom (struct wmOperatorType *ot)
void VIEW3D_OT_dolly (struct wmOperatorType *ot)
void VIEW3D_OT_zoom_camera_1_to_1 (struct wmOperatorType *ot)
void VIEW3D_OT_move (struct wmOperatorType *ot)
void VIEW3D_OT_rotate (struct wmOperatorType *ot)
void VIEW3D_OT_ndof_orbit (struct wmOperatorType *ot)
void VIEW3D_OT_ndof_pan (struct wmOperatorType *ot)
void VIEW3D_OT_view_all (struct wmOperatorType *ot)
void VIEW3D_OT_viewnumpad (struct wmOperatorType *ot)
void VIEW3D_OT_view_selected (struct wmOperatorType *ot)
void VIEW3D_OT_view_center_cursor (struct wmOperatorType *ot)
void VIEW3D_OT_view_center_camera (struct wmOperatorType *ot)
void VIEW3D_OT_view_pan (struct wmOperatorType *ot)
void VIEW3D_OT_view_persportho (struct wmOperatorType *ot)
void VIEW3D_OT_background_image_add (struct wmOperatorType *ot)
void VIEW3D_OT_background_image_remove (struct wmOperatorType *ot)
void VIEW3D_OT_view_orbit (struct wmOperatorType *ot)
void VIEW3D_OT_clip_border (struct wmOperatorType *ot)
void VIEW3D_OT_cursor3d (struct wmOperatorType *ot)
void VIEW3D_OT_manipulator (struct wmOperatorType *ot)
void VIEW3D_OT_enable_manipulator (struct wmOperatorType *ot)
void VIEW3D_OT_render_border (struct wmOperatorType *ot)
void VIEW3D_OT_zoom_border (struct wmOperatorType *ot)
void VIEW3D_OT_drawtype (struct wmOperatorType *ot)
void view3d_boxview_copy (ScrArea *sa, ARegion *ar)
void ndof_to_quat (struct wmNDOFMotionData *ndof, float q[4])
float ndof_to_axis_angle (struct wmNDOFMotionData *ndof, float axis[3])
void view3d_keymap (struct wmKeyConfig *keyconf)
void VIEW3D_OT_fly (struct wmOperatorType *ot)
void draw_motion_paths_init (View3D *v3d, struct ARegion *ar)
void draw_motion_path_instance (Scene *scene, struct Object *ob, struct bPoseChannel *pchan, struct bAnimVizSettings *avs, struct bMotionPath *mpath)
void draw_motion_paths_cleanup (View3D *v3d)
void draw_object (Scene *scene, struct ARegion *ar, View3D *v3d, Base *base, int flag)
int draw_glsl_material (Scene *scene, struct Object *ob, View3D *v3d, int dt)
void draw_object_instance (Scene *scene, View3D *v3d, RegionView3D *rv3d, struct Object *ob, int dt, int outline)
void draw_object_backbufsel (Scene *scene, View3D *v3d, RegionView3D *rv3d, struct Object *ob)
void drawaxes (float size, char drawtype)
void view3d_cached_text_draw_begin (void)
void view3d_cached_text_draw_add (const float co[3], const char *str, short xoffs, short flag, const unsigned char col[4])
void view3d_cached_text_draw_end (View3D *v3d, ARegion *ar, int depth_write, float mat[][4])
int draw_armature (Scene *scene, View3D *v3d, ARegion *ar, Base *base, int dt, int flag, const short is_outline)
void draw_mesh_textured (Scene *scene, View3D *v3d, RegionView3D *rv3d, struct Object *ob, struct DerivedMesh *dm, int faceselect)
void view3d_main_area_draw (const struct bContext *C, struct ARegion *ar)
void draw_depth (Scene *scene, struct ARegion *ar, View3D *v3d, int(*func)(void *))
void draw_depth_gpencil (Scene *scene, ARegion *ar, View3D *v3d)
void view3d_clr_clipping (void)
void view3d_set_clipping (RegionView3D *rv3d)
void add_view3d_after (ListBase *lb, Base *base, int flag)
void circf (float x, float y, float rad)
void circ (float x, float y, float rad)
void view3d_update_depths_rect (struct ARegion *ar, struct ViewDepths *d, struct rcti *rect)
float view3d_depth_near (struct ViewDepths *d)
void VIEW3D_OT_select (struct wmOperatorType *ot)
void VIEW3D_OT_select_extend (struct wmOperatorType *ot)
void VIEW3D_OT_select_circle (struct wmOperatorType *ot)
void VIEW3D_OT_select_border (struct wmOperatorType *ot)
void VIEW3D_OT_select_lasso (struct wmOperatorType *ot)
void VIEW3D_OT_select_menu (struct wmOperatorType *ot)
void VIEW3D_OT_smoothview (struct wmOperatorType *ot)
void VIEW3D_OT_camera_to_view (struct wmOperatorType *ot)
void VIEW3D_OT_camera_to_view_selected (struct wmOperatorType *ot)
void VIEW3D_OT_object_as_camera (struct wmOperatorType *ot)
void VIEW3D_OT_localview (struct wmOperatorType *ot)
void VIEW3D_OT_game_start (struct wmOperatorType *ot)
int ED_view3d_boundbox_clip (RegionView3D *rv3d, float obmat[][4], struct BoundBox *bb)
void smooth_view (struct bContext *C, struct View3D *v3d, struct ARegion *ar, struct Object *, struct Object *, float *ofs, float *quat, float *dist, float *lens)
void setwinmatrixview3d (ARegion *ar, View3D *v3d, rctf *rect)
void setviewmatrixview3d (Scene *scene, View3D *v3d, RegionView3D *rv3d)
void fly_modal_keymap (struct wmKeyConfig *keyconf)
void viewrotate_modal_keymap (struct wmKeyConfig *keyconf)
void viewmove_modal_keymap (struct wmKeyConfig *keyconf)
void viewzoom_modal_keymap (struct wmKeyConfig *keyconf)
void viewdolly_modal_keymap (struct wmKeyConfig *keyconf)
void VIEW3D_OT_properties (struct wmOperatorType *ot)
void view3d_buttons_register (struct ARegionType *art)
void VIEW3D_OT_toolshelf (struct wmOperatorType *ot)
void view3d_toolshelf_register (struct ARegionType *art)
void view3d_tool_props_register (struct ARegionType *art)
int minmax_verts (struct Object *obedit, float *min, float *max)
void VIEW3D_OT_snap_selected_to_grid (struct wmOperatorType *ot)
void VIEW3D_OT_snap_selected_to_cursor (struct wmOperatorType *ot)
void VIEW3D_OT_snap_cursor_to_grid (struct wmOperatorType *ot)
void VIEW3D_OT_snap_cursor_to_center (struct wmOperatorType *ot)
void VIEW3D_OT_snap_cursor_to_selected (struct wmOperatorType *ot)
void VIEW3D_OT_snap_cursor_to_active (struct wmOperatorType *ot)
ARegionview3d_has_buttons_region (ScrArea *sa)
ARegionview3d_has_tools_region (ScrArea *sa)
void draw_volume (struct ARegion *ar, struct GPUTexture *tex, float *min, float *max, int res[3], float dx, struct GPUTexture *tex_shadow)

Variables

const char * view3d_context_dir []
float view3d_camera_border_hack_col [4]
short view3d_camera_border_hack_test

Detailed Description

Definition in file view3d_intern.h.


Define Documentation

#define BL_NEAR_CLIP   0.001
#define DRAW_CONSTCOLOR   2
#define DRAW_DYNAMIC_PAINT_PREVIEW   1

Definition at line 62 of file view3d_intern.h.

Referenced by draw_mesh_fancy(), draw_mesh_textured(), and draw_mesh_textured_old().

#define DRAW_FACE_SELECT   2

Definition at line 63 of file view3d_intern.h.

Referenced by draw_mesh_fancy(), draw_mesh_textured(), and draw_mesh_textured_old().

#define DRAW_PICKING   1
#define DRAW_SCENESET   4
#define V3D_CACHE_TEXT_ASCII   (1<<2)
#define V3D_CACHE_TEXT_GLOBALSPACE   (1<<3)
#define V3D_CACHE_TEXT_WORLDSPACE   (1<<1)
#define V3D_CACHE_TEXT_ZBUF   (1<<0)

Definition at line 125 of file view3d_intern.h.

Referenced by view3d_cached_text_draw_end().

#define VIEW3D_CAMERA_BORDER_HACK

Definition at line 211 of file view3d_intern.h.


Function Documentation

void add_view3d_after ( ListBase lb,
Base base,
int  flag 
)
void circ ( float  x,
float  y,
float  rad 
)

Definition at line 131 of file view3d_draw.c.

Referenced by drawcursor(), and drawlamp().

void circf ( float  x,
float  y,
float  rad 
)

Definition at line 114 of file view3d_draw.c.

int draw_armature ( Scene scene,
View3D v3d,
ARegion ar,
Base base,
int  dt,
int  flag,
const short  is_outline 
)
void draw_depth ( Scene scene,
struct ARegion ar,
View3D v3d,
int(*)(void *)  func 
)
void draw_depth_gpencil ( Scene scene,
ARegion ar,
View3D v3d 
)
int draw_glsl_material ( Scene scene,
struct Object ob,
View3D v3d,
int  dt 
)
void draw_mesh_textured ( Scene scene,
View3D v3d,
RegionView3D rv3d,
struct Object ob,
struct DerivedMesh dm,
int  faceselect 
)
void draw_motion_path_instance ( Scene scene,
struct Object ob,
struct bPoseChannel pchan,
struct bAnimVizSettings avs,
struct bMotionPath mpath 
)
void draw_motion_paths_cleanup ( View3D v3d)

Definition at line 310 of file drawanimviz.c.

References View3D::zbuf.

Referenced by draw_object(), and draw_pose_paths().

void draw_motion_paths_init ( View3D v3d,
struct ARegion ar 
)

Definition at line 71 of file drawanimviz.c.

References glLoadMatrixf, ARegion::regiondata, RegionView3D::viewmat, and View3D::zbuf.

Referenced by draw_object(), and draw_pose_paths().

void draw_object ( Scene scene,
struct ARegion ar,
View3D v3d,
Base base,
int  flag 
)

Definition at line 6186 of file drawobject.c.

References Curve::actbox, ACTIVE, add_view3d_after(), View3D::afterdraw_xray, Object::avs, BA_WAS_SEL, Scene::basact, Object::bb, Curve::bb, bglBegin(), bglEnd(), bglVertex3fv(), BKE_curframe(), BKE_font_getselection(), Object::boundtype, bObjectSolverConstraint::camera, bFollowTrackConstraint::camera, View3D::camera, Scene::camera, SmokeModifierData::coll, Object::collision_boundtype, MakeCursor::color, colortab, CONSTRAINT_DRAW_PIVOT, CONSTRAINT_EXPAND, constraint_get_typeinfo(), CONSTRAINT_OBTYPE_OBJECT, CONSTRAINT_TYPE_FOLLOWTRACK, CONSTRAINT_TYPE_OBJECTSOLVER, CONSTRAINT_TYPE_RIGIDBODYJOINT, Object::constraints, constraints_clear_evalob(), constraints_make_evalob(), copy_m3_m3(), copy_v3_v3(), cpack, CU_FAST, curve_editnurbs(), Object::data, data, bConstraint::data, DESELECT, Object::disp, SmokeModifierData::domain, draw_armature(), draw_bounding_volume(), DRAW_CONSTCOLOR, draw_empty_image(), draw_forcefield(), draw_hooks(), draw_mesh_object(), draw_motion_path_instance(), draw_motion_paths_cleanup(), draw_motion_paths_init(), draw_new_particle_system(), DRAW_PICKING, draw_ptcache_edit(), DRAW_SCENESET, draw_textcurs(), draw_update_ptcache_edit(), draw_volume(), drawaxes(), drawcamera(), drawcentercircle(), drawcircball(), drawDispList(), drawlamp(), drawlattice(), drawmball(), drawnurb(), drawObjectSelect(), drawRBpivot(), drawspeaker(), drawtexspace(), View3D::drawtype, drawWireExtra(), Object::dt, Object::dtx, SmokeDomainSettings::dx, SmokeDomainSettings::dx_wt, ED_view3d_boundbox_clip(), ED_view3d_init_mats_rv3d_gl(), MetaBall::editelems, Curve::editfont, Curve::editnurb, ELEM, ELEM3, eModifierType_Smoke, Object::empty_drawsize, Object::empty_drawtype, FALSE, ListBase::first, bConstraint::flag, Curve::flag, bRigidBodyJointConstraint::flag, Base::flag, View3D::flag, Object::flag, View3D::flag2, SmokeDomainSettings::fluid, bConstraintTypeInfo::flush_constraint_targets, PartDeflect::forcefield, free_old_images(), Curve::fsize, G, G_RENDER_OGL, G_TRANSFORM_OBJ, Object::gameflag, bConstraintTypeInfo::get_constraint_targets, bConstraintTypeInfo::get_target_matrix, glLoadMatrixf, glMultMatrixf, GPU_create_smoke(), GPU_disable_material(), GPU_enable_material(), GPU_free_smoke(), TextBox::h, SelBox::h, i, Object::id, Object::imat, Object::inertia, invert_m4_m4(), Object::lay, View3D::lay, SoftBody::lcom, ID::lib, Curve::linedist, Curve::lines, Curve::linewidth, SoftBody::lrot, SoftBody::lscale, makeDispListCurveTypes(), bConstraintTarget::matrix, MIN2, MOD_SMOKE_TYPE_COLL, MOD_SMOKE_VIEW_SHOWBIG, Object::mode, modifiers_findByType(), Object::mpath, mul_m3_m3m3(), ID::name, bConstraint::next, ParticleSystem::next, bConstraintTarget::next, NULL, OB_ARMATURE, OB_ARROWS, OB_AXIS, OB_BOUND_SPHERE, OB_BOUNDBOX, OB_BOUNDS, OB_CAMERA, OB_CURVE, ob_draw_RE_motion(), OB_DRAWNAME, OB_DRAWTRANSP, OB_DRAWWIRE, OB_DRAWXRAY, OB_DYNAMIC, OB_EMPTY, OB_EMPTY_IMAGE, OB_FONT, OB_FROMDUPLI, OB_FROMGROUP, OB_LAMP, OB_LATTICE, OB_MBALL, OB_MESH, OB_MODE_EDIT, OB_MODE_PARTICLE_EDIT, OB_MODE_TEXTURE_PAINT, OB_MODE_VERTEX_PAINT, OB_MODE_WEIGHT_PAINT, OB_PAINT, OB_RENDER, OB_RESTRICT_RENDER, OB_RESTRICT_VIEW, OB_SOLID, OB_SPEAKER, OB_SURF, OB_TEXSPACE, OB_WIRE, OBACT, UserDef::obcenter_dia, Scene::obedit, Base::object, Object::obmat, Object::orig, SmokeDomainSettings::p0, SmokeDomainSettings::p1, Object::parent, Object::particlesystem, Object::pd, PE_create_current(), RegionView3D::persp, project_short(), PTCacheEdit::psys, ARegion::regiondata, SmokeDomainSettings::res, SmokeDomainSettings::res_wt, Object::restrictflag, rgb_float_to_byte(), RV3D_CAMOB, SBSO_ESTIMATEIPO, Curve::selboxes, SELECT, set_inverted_drawing(), setlinestyle(), smoke_get_density(), smoke_get_index(), Object::soft, SoftBody::solverflags, Base::sx, Curve::tb, SmokeDomainSettings::tex, SmokeDomainSettings::tex_shadow, EditFont::textcurs, TH_ACTIVE, TH_GRID, TH_GROUP, TH_GROUP_ACTIVE, TH_LAMP, TH_SELECT, TH_SPEAKER, TH_TRANSFORM, TH_WIRE, Curve::totbox, View3D::transp, bConstraint::type, Object::type, SmokeModifierData::type, bConstraintTypeInfo::type, U, UI_GetThemeColor3ubv(), UI_make_axis_color(), UI_ThemeColor(), UI_ThemeColorShade(), unit_m4(), ID::us, V3D_DRAW_CENTERS, V3D_HIDE_HELPLINES, V3D_RENDER_OVERRIDE, V3D_SELECT_OUTLINE, view3d_cached_text_draw_add(), view3d_cached_text_draw_begin(), view3d_cached_text_draw_end(), RegionView3D::viewmat, RegionView3D::viewmatob, SmokeDomainSettings::viewsettings, SelBox::w, TextBox::w, SmokeDomainSettings::wt, TextBox::x, SelBox::x, Curve::xof, View3D::xray, TextBox::y, SelBox::y, Curve::yof, and View3D::zbuf.

Referenced by draw_depth(), draw_dupli_objects_color(), ED_view3d_draw_offscreen(), view3d_draw_transp(), view3d_draw_xray(), view3d_draw_xraytransp(), view3d_main_area_draw_objects(), and view3d_opengl_select().

void draw_object_backbufsel ( Scene scene,
View3D v3d,
RegionView3D rv3d,
struct Object ob 
)
void draw_object_instance ( Scene scene,
View3D v3d,
RegionView3D rv3d,
struct Object ob,
int  dt,
int  outline 
)
void draw_volume ( struct ARegion ar,
struct GPUTexture tex,
float *  min,
float *  max,
int  res[3],
float  dx,
struct GPUTexture tex_shadow 
)
void drawaxes ( float  size,
char  drawtype 
)
int ED_view3d_boundbox_clip ( RegionView3D rv3d,
float  obmat[][4],
struct BoundBox bb 
)
void fly_modal_keymap ( struct wmKeyConfig keyconf)
int minmax_verts ( struct Object obedit,
float *  min,
float *  max 
)
float ndof_to_axis_angle ( struct wmNDOFMotionData ndof,
float  axis[3] 
)
void ndof_to_quat ( struct wmNDOFMotionData ndof,
float  q[4] 
)

Definition at line 972 of file view3d_edit.c.

References angle(), axis_angle_to_quat(), and ndof_to_axis_angle().

void setviewmatrixview3d ( Scene scene,
View3D v3d,
RegionView3D rv3d 
)
void setwinmatrixview3d ( ARegion ar,
View3D v3d,
rctf rect 
)
void smooth_view ( struct bContext C,
struct View3D v3d,
struct ARegion ar,
struct Object ,
struct Object ,
float *  ofs,
float *  quat,
float *  dist,
float *  lens 
)
void view3d_boxview_copy ( ScrArea sa,
ARegion ar 
)
void view3d_buttons_register ( struct ARegionType art)
void view3d_cached_text_draw_add ( const float  co[3],
const char *  str,
short  xoffs,
short  flag,
const unsigned char  col[4] 
)
void view3d_cached_text_draw_begin ( void  )

Definition at line 789 of file drawobject.c.

References CachedTextLevel, ListBase::first, ListBase::last, NULL, and strings.

Referenced by draw_object().

void view3d_cached_text_draw_end ( View3D v3d,
ARegion ar,
int  depth_write,
float  mat[][4] 
)
void view3d_clr_clipping ( void  )
float view3d_depth_near ( struct ViewDepths d)
ARegion* view3d_has_buttons_region ( ScrArea sa)
ARegion* view3d_has_tools_region ( ScrArea sa)
void view3d_header_buttons ( const struct bContext C,
struct ARegion ar 
)
void view3d_keymap ( struct wmKeyConfig keyconf)
void view3d_main_area_draw ( const struct bContext C,
struct ARegion ar 
)
void view3d_operatortypes ( void  )
void VIEW3D_OT_background_image_add ( struct wmOperatorType ot)
void VIEW3D_OT_background_image_remove ( struct wmOperatorType ot)
void VIEW3D_OT_camera_to_view ( struct wmOperatorType ot)
void VIEW3D_OT_camera_to_view_selected ( struct wmOperatorType ot)
void VIEW3D_OT_clip_border ( struct wmOperatorType ot)
void VIEW3D_OT_cursor3d ( struct wmOperatorType ot)
void VIEW3D_OT_dolly ( struct wmOperatorType ot)
void VIEW3D_OT_drawtype ( struct wmOperatorType ot)
void VIEW3D_OT_enable_manipulator ( struct wmOperatorType ot)
void VIEW3D_OT_fly ( struct wmOperatorType ot)
void VIEW3D_OT_game_start ( struct wmOperatorType ot)
void VIEW3D_OT_layers ( struct wmOperatorType ot)
void VIEW3D_OT_localview ( struct wmOperatorType ot)
void VIEW3D_OT_manipulator ( struct wmOperatorType ot)
void VIEW3D_OT_move ( struct wmOperatorType ot)
void VIEW3D_OT_ndof_orbit ( struct wmOperatorType ot)
void VIEW3D_OT_ndof_pan ( struct wmOperatorType ot)
void VIEW3D_OT_object_as_camera ( struct wmOperatorType ot)
void VIEW3D_OT_properties ( struct wmOperatorType ot)
void VIEW3D_OT_render_border ( struct wmOperatorType ot)
void VIEW3D_OT_rotate ( struct wmOperatorType ot)
void VIEW3D_OT_select ( struct wmOperatorType ot)
void VIEW3D_OT_select_border ( struct wmOperatorType ot)
void VIEW3D_OT_select_circle ( struct wmOperatorType ot)
void VIEW3D_OT_select_extend ( struct wmOperatorType ot)
void VIEW3D_OT_select_lasso ( struct wmOperatorType ot)
void VIEW3D_OT_select_menu ( struct wmOperatorType ot)
void VIEW3D_OT_smoothview ( struct wmOperatorType ot)
void VIEW3D_OT_snap_cursor_to_active ( struct wmOperatorType ot)
void VIEW3D_OT_snap_cursor_to_center ( struct wmOperatorType ot)
void VIEW3D_OT_snap_cursor_to_grid ( struct wmOperatorType ot)
void VIEW3D_OT_snap_cursor_to_selected ( struct wmOperatorType ot)
void VIEW3D_OT_snap_selected_to_cursor ( struct wmOperatorType ot)
void VIEW3D_OT_snap_selected_to_grid ( struct wmOperatorType ot)
void VIEW3D_OT_toolshelf ( struct wmOperatorType ot)
void VIEW3D_OT_view_all ( struct wmOperatorType ot)
void VIEW3D_OT_view_center_camera ( struct wmOperatorType ot)
void VIEW3D_OT_view_center_cursor ( struct wmOperatorType ot)
void VIEW3D_OT_view_orbit ( struct wmOperatorType ot)
void VIEW3D_OT_view_pan ( struct wmOperatorType ot)
void VIEW3D_OT_view_persportho ( struct wmOperatorType ot)
void VIEW3D_OT_view_selected ( struct wmOperatorType ot)
void VIEW3D_OT_viewnumpad ( struct wmOperatorType ot)
void VIEW3D_OT_zoom ( struct wmOperatorType ot)
void VIEW3D_OT_zoom_border ( struct wmOperatorType ot)
void VIEW3D_OT_zoom_camera_1_to_1 ( struct wmOperatorType ot)
void view3d_set_clipping ( RegionView3D rv3d)
void view3d_tool_props_register ( struct ARegionType art)
void view3d_toolshelf_register ( struct ARegionType art)
void view3d_update_depths_rect ( struct ARegion ar,
struct ViewDepths d,
struct rcti rect 
)
void viewdolly_modal_keymap ( struct wmKeyConfig keyconf)
void viewmove_modal_keymap ( struct wmKeyConfig keyconf)
void viewrotate_modal_keymap ( struct wmKeyConfig keyconf)
void viewzoom_modal_keymap ( struct wmKeyConfig keyconf)

Variable Documentation

Definition at line 1474 of file drawobject.c.

Referenced by drawcamera(), and drawviewborder().

Definition at line 1475 of file drawobject.c.

Referenced by drawcamera(), and drawviewborder().

const char* view3d_context_dir[]

Definition at line 1041 of file space_view3d.c.