|
Blender V4.3
|
#include "DRW_render.hh"#include "UI_resources.hh"#include "BLI_math_color.h"#include "BLI_math_matrix.hh"#include "BLI_math_rotation.h"#include "BLI_math_rotation.hh"#include "BLI_math_vector.hh"#include "BKE_anim_path.h"#include "BKE_camera.h"#include "BKE_constraint.h"#include "BKE_curve.hh"#include "BKE_global.hh"#include "BKE_mball.hh"#include "BKE_mesh.hh"#include "BKE_modifier.hh"#include "BKE_movieclip.h"#include "BKE_object.hh"#include "BKE_object_types.hh"#include "BKE_tracking.h"#include "BLI_listbase.h"#include "DNA_camera_types.h"#include "DNA_constraint_types.h"#include "DNA_curve_types.h"#include "DNA_fluid_types.h"#include "DNA_gpencil_modifier_types.h"#include "DNA_lightprobe_types.h"#include "DNA_mesh_types.h"#include "DNA_meta_types.h"#include "DNA_modifier_types.h"#include "DNA_pointcache_types.h"#include "DNA_rigidbody_types.h"#include "DEG_depsgraph_query.hh"#include "ED_view3d.hh"#include "overlay_private.hh"#include "draw_common_c.hh"#include "draw_manager_text.hh"Go to the source code of this file.
Classes | |
| union | OVERLAY_CameraInstanceData |
Macros | |
| #define | BUF_INSTANCE DRW_shgroup_call_buffer_instance |
| #define | BUF_POINT(grp, format) DRW_shgroup_call_buffer(grp, format, GPU_PRIM_POINTS) |
| #define | BUF_LINE(grp, format) DRW_shgroup_call_buffer(grp, format, GPU_PRIM_LINES) |
| #define BUF_INSTANCE DRW_shgroup_call_buffer_instance |
Referenced by OVERLAY_extra_cache_init().
| #define BUF_LINE | ( | grp, | |
| format ) DRW_shgroup_call_buffer(grp, format, GPU_PRIM_LINES) |
Referenced by OVERLAY_extra_cache_init().
| #define BUF_POINT | ( | grp, | |
| format ) DRW_shgroup_call_buffer(grp, format, GPU_PRIM_POINTS) |
Referenced by OVERLAY_extra_cache_init().
|
static |
Definition at line 1021 of file overlay_extra.cc.
References BKE_camera_multiview_shift_x(), CAM_S3D_OFFAXIS, CameraStereoSettings::convergence_mode, OVERLAY_CameraInstanceData::corner_x, Object::data, Camera::shiftx, Camera::stereo, STEREO_LEFT_NAME, and STEREO_RIGHT_NAME.
Referenced by camera_stereoscopy_extra(), blender::draw::overlay::Cameras::object_sync(), and OVERLAY_camera_cache_populate().
|
static |
Draw the stereo 3d support elements (cameras, plane, volume). They are only visible when not looking through the camera:
Definition at line 1041 of file overlay_extra.cc.
References add_v3_v3(), BKE_camera_multiview_model_matrix(), BKE_camera_multiview_model_matrix_scaled(), BKE_camera_multiview_render(), DRW_Global::block, CAM_S3D_OFFAXIS, CAM_S3D_PARALLEL, CAM_S3D_TOE, OVERLAY_ExtraCallBuffers::camera_frame, camera_offaxis_shiftx_get(), OVERLAY_ExtraCallBuffers::camera_volume, OVERLAY_ExtraCallBuffers::camera_volume_frame, OVERLAY_CameraInstanceData::center_x, OVERLAY_CameraInstanceData::center_y, Camera::clip_end, Camera::clip_start, OVERLAY_CameraInstanceData::color, GlobalsUboStorage::color_wire, CameraStereoSettings::convergence_distance, CameraStereoSettings::convergence_mode, copy_v2_fl2(), copy_v3_v3(), OVERLAY_CameraInstanceData::corner_x, OVERLAY_CameraInstanceData::corner_y, cross_v3_v3v3(), Object::data, OVERLAY_CameraInstanceData::depth, DRW_buffer_add_entry_struct(), DRW_state_is_select(), G_draw, madd_v3_v3fl(), OVERLAY_CameraInstanceData::mat, normalize_v3(), OVERLAY_extra_line_dashed(), OVERLAY_CameraInstanceData::pos, Camera::stereo, View3D::stereo3d_convergence_alpha, View3D::stereo3d_flag, View3D::stereo3d_volume_alpha, STEREO_LEFT_NAME, STEREO_RIGHT_NAME, V3D_S3D_DISPCAMERAS, V3D_S3D_DISPPLANE, V3D_S3D_DISPVOLUME, OVERLAY_CameraInstanceData::volume_end, OVERLAY_CameraInstanceData::volume_sta, and zero_v3().
Referenced by OVERLAY_camera_cache_populate().
|
static |
Definition at line 882 of file overlay_extra.cc.
References BKE_movieclip_remap_scene_to_clip_frame(), BKE_object_movieclip_get(), BKE_tracking_camera_get_reconstructed_interpolate(), BKE_tracking_get_camera_object_matrix(), DRW_Global::block, View3D::bundle_drawtype, View3D::bundle_size, color, GlobalsUboStorage::color_bundle_solid, GlobalsUboStorage::color_wire, copy_m4_m4(), copy_v3_v3(), DEG_get_ctime(), DRWContextState::depsgraph, DRW_buffer_add_entry, DRW_context_state_get(), DRW_select_load_id(), DRW_state_is_select(), DRW_text_cache_add(), DRW_text_cache_ensure(), DRW_TEXT_CACHE_GLOBALSPACE, DRW_TEXT_CACHE_STRING_PTR, OVERLAY_ExtraCallBuffers::empty_sphere_solid, View3D::flag2, G_draw, invert_m4_m4(), LISTBASE_FOREACH, mul_m4_m4m4(), mul_m4_v3(), OB_EMPTY_SPHERE, OB_SOLID, OVERLAY_empty_shape(), OVERLAY_extra_line(), reconstruction, Object::runtime, View3D::shading, srgb_to_linearrgb_v3_v3(), TH_CAMERA_PATH, TH_SELECT, TH_TEXT, TRACK_CUSTOMCOLOR, TRACK_HAS_BUNDLE, TRACK_SELECTED, TRACKING_OBJECT_CAMERA, translate_m4(), View3DShading::type, UI_GetThemeColor4ubv(), V3D_SHOW_BUNDLENAME, V3D_SHOW_CAMERAPATH, and XRAY_FLAG_ENABLED.
Referenced by OVERLAY_camera_cache_populate().
|
static |
Definition at line 356 of file overlay_extra.cc.
References BKE_mball_is_basis(), BKE_object_boundbox_get(), bounds(), copy_v2_v2(), copy_v3_v3(), DRW_buffer_add_entry, OVERLAY_ExtraCallBuffers::empty_capsule_body, OVERLAY_ExtraCallBuffers::empty_capsule_cap, OVERLAY_ExtraCallBuffers::empty_cone, OVERLAY_ExtraCallBuffers::empty_cube, OVERLAY_ExtraCallBuffers::empty_cylinder, OVERLAY_ExtraCallBuffers::empty_sphere, max_ff(), max_fff(), blender::math::midpoint(), mul_m4_m4m4(), negate_v3(), OB_BOUND_BOX, OB_BOUND_CAPSULE, OB_BOUND_CONE, OB_BOUND_CYLINDER, OB_BOUND_SPHERE, OB_MBALL, scale_m4_fl(), size_to_mat4(), swap_v3_v3(), and Object::type.
Referenced by OVERLAY_collision(), and OVERLAY_extra_cache_populate().
| void OVERLAY_camera_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 1141 of file overlay_extra.cc.
References Camera::bg_images, BKE_camera_multiview_model_matrix(), BKE_camera_object_dof_distance(), BKE_camera_view_frame_ex(), BLI_listbase_is_empty(), CAM_SHOW_BG_IMAGE, CAM_SHOWLIMITS, CAM_SHOWMIST, View3D::camera, OVERLAY_ExtraCallBuffers::camera_distances, OVERLAY_ExtraCallBuffers::camera_frame, camera_offaxis_shiftx_get(), camera_stereoscopy_extra(), OVERLAY_ExtraCallBuffers::camera_tria, camera_view3d_reconstruction(), OVERLAY_CameraInstanceData::center_x, OVERLAY_CameraInstanceData::center_y, Camera::clip_end, OVERLAY_CameraInstanceData::clip_end, OVERLAY_CameraInstanceData::clip_sta, Camera::clip_start, OVERLAY_CameraInstanceData::color, copy_v3_fl(), copy_v3_fl3(), copy_v3_v3(), copy_v4_v4(), OVERLAY_CameraInstanceData::corner_x, OVERLAY_CameraInstanceData::corner_y, Object::data, DEG_get_evaluated_object(), DRWContextState::depsgraph, OVERLAY_CameraInstanceData::depth, OVERLAY_CameraInstanceData::dist_color_id, Camera::drawsize, DRW_buffer_add_entry_struct(), DRW_context_state_get(), DRW_object_wire_theme_get(), DRW_state_is_image_render(), DRW_state_is_select(), ELEM, fabsf, Camera::flag, View3D::flag2, OVERLAY_CameraInstanceData::focus, invert_v3(), len_v3(), OVERLAY_CameraInstanceData::mat, mid_v2_v2v2(), OVERLAY_CameraInstanceData::mist_end, OVERLAY_CameraInstanceData::mist_sta, mul_v2_fl(), mul_v3_fl(), mul_v3_v3(), View3D::multiview_eye, normalize_m4_m4(), OVERLAY_extra_call_buffer_get(), OVERLAY_image_camera_cache_populate(), RegionView3D::persp, R_MULTIVIEW, DRWContextState::rv3d, RV3D_CAMOB, SCE_VIEWS_FORMAT_STEREO_3D, DRWContextState::scene, View3D::stereo3d_flag, STEREO_LEFT_NAME, STEREO_RIGHT_ID, STEREO_RIGHT_NAME, sub_v2_v2v2(), DRWContextState::v3d, V3D_SHOW_RECONSTRUCTION, and DRWContextState::view_layer.
Referenced by OVERLAY_cache_populate().
|
static |
Definition at line 428 of file overlay_extra.cc.
References OB_BOUND_BOX, OB_BOUND_CAPSULE, OB_BOUND_CONE, OB_BOUND_CYLINDER, OB_BOUND_SPHERE, OVERLAY_bounds(), RB_SHAPE_BOX, RB_SHAPE_CAPSULE, RB_SHAPE_CONE, RB_SHAPE_CYLINDER, RB_SHAPE_SPHERE, Object::rigidbody_object, and RigidBodyOb::shape.
Referenced by OVERLAY_extra_cache_populate().
| void OVERLAY_empty_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 325 of file overlay_extra.cc.
References Object::base_flag, BASE_FROM_DUPLI, color, DRW_context_state_get(), DRW_object_wire_theme_get(), Object::empty_drawsize, Object::empty_drawtype, Object::instance_collection, OB_ARROWS, OB_CIRCLE, OB_CUBE, OB_DUPLICOLLECTION, OB_EMPTY_CONE, OB_EMPTY_IMAGE, OB_EMPTY_SPHERE, OB_PLAINAXES, OB_SINGLE_ARROW, OVERLAY_empty_shape(), OVERLAY_extra_call_buffer_get(), OVERLAY_image_empty_cache_populate(), Object::transflag, and DRWContextState::view_layer.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_empty_shape | ( | OVERLAY_ExtraCallBuffers * | cb, |
| const float | mat[4][4], | ||
| const float | draw_size, | ||
| const char | draw_type, | ||
| const float | color[4] ) |
Definition at line 287 of file overlay_extra.cc.
References DRW_buffer_add_entry, OVERLAY_ExtraCallBuffers::empty_axes, OVERLAY_ExtraCallBuffers::empty_circle, OVERLAY_ExtraCallBuffers::empty_cone, OVERLAY_ExtraCallBuffers::empty_cube, OVERLAY_ExtraCallBuffers::empty_image_frame, OVERLAY_ExtraCallBuffers::empty_plain_axes, OVERLAY_ExtraCallBuffers::empty_single_arrow, OVERLAY_ExtraCallBuffers::empty_sphere, OB_ARROWS, OB_CIRCLE, OB_CUBE, OB_EMPTY_CONE, OB_EMPTY_IMAGE, OB_EMPTY_SPHERE, OB_PLAINAXES, OB_SINGLE_ARROW, and pack_fl_in_mat4().
Referenced by camera_view3d_reconstruction(), drw_shgroup_bone_axes(), drw_shgroup_bone_custom_empty(), OVERLAY_empty_cache_populate(), OVERLAY_image_empty_cache_populate(), and OVERLAY_lightprobe_cache_populate().
| void OVERLAY_extra_blend_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 1661 of file overlay_extra.cc.
References DRW_draw_pass(), OVERLAY_PassList::extra_blend_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_extra_cache_init | ( | OVERLAY_Data * | vedata | ) |
Definition at line 55 of file overlay_extra.cc.
References DRW_Global::block, DRW_Global::block_ubo, BUF_INSTANCE, BUF_LINE, BUF_POINT, OVERLAY_ExtraCallBuffers::camera_distances, OVERLAY_ExtraCallBuffers::camera_frame, OVERLAY_ExtraCallBuffers::camera_tria, OVERLAY_ExtraCallBuffers::camera_volume, OVERLAY_ExtraCallBuffers::camera_volume_frame, OVERLAY_ExtraCallBuffers::center_active, OVERLAY_ExtraCallBuffers::center_deselected, OVERLAY_ExtraCallBuffers::center_deselected_lib, OVERLAY_ExtraCallBuffers::center_selected, OVERLAY_ExtraCallBuffers::center_selected_lib, OVERLAY_PrivateData::clipping_state, GlobalsUboStorage::color_active, GlobalsUboStorage::color_deselect, GlobalsUboStorage::color_library, GlobalsUboStorage::color_library_select, GlobalsUboStorage::color_select, DefaultTextureList::depth, DRW_cache_bone_arrows_get(), DRW_cache_camera_distances_get(), DRW_cache_camera_frame_get(), DRW_cache_camera_tria_get(), DRW_cache_camera_tria_wire_get(), DRW_cache_camera_volume_get(), DRW_cache_camera_volume_wire_get(), DRW_cache_circle_get(), DRW_cache_empty_capsule_body_get(), DRW_cache_empty_capsule_cap_get(), DRW_cache_empty_cone_get(), DRW_cache_empty_cube_get(), DRW_cache_empty_cylinder_get(), DRW_cache_empty_sphere_get(), DRW_cache_field_cone_limit_get(), DRW_cache_field_curve_get(), DRW_cache_field_force_get(), DRW_cache_field_sphere_limit_get(), DRW_cache_field_tube_limit_get(), DRW_cache_field_vortex_get(), DRW_cache_field_wind_get(), DRW_cache_groundline_get(), DRW_cache_light_area_disk_lines_get(), DRW_cache_light_area_square_lines_get(), DRW_cache_light_icon_inner_lines_get(), DRW_cache_light_icon_outer_lines_get(), DRW_cache_light_icon_sun_rays_get(), DRW_cache_light_point_lines_get(), DRW_cache_light_spot_lines_get(), DRW_cache_light_spot_volume_get(), DRW_cache_light_sun_lines_get(), DRW_cache_lightprobe_cube_get(), DRW_cache_lightprobe_grid_get(), DRW_cache_lightprobe_planar_get(), DRW_cache_plain_axes_get(), DRW_cache_quad_get(), DRW_cache_quad_wires_get(), DRW_cache_single_arrow_get(), DRW_cache_speaker_get(), DRW_cache_sphere_get(), DRW_LOD_LOW, DRW_PASS_CREATE, DRW_shgroup_create(), DRW_shgroup_create_sub(), DRW_shgroup_state_disable(), DRW_shgroup_state_enable(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_bool_copy(), DRW_shgroup_uniform_texture(), DRW_shgroup_uniform_vec4_copy(), DRW_STATE_BLEND_ALPHA, DRW_STATE_CULL_BACK, DRW_STATE_CULL_FRONT, DRW_STATE_DEPTH_ALWAYS, DRW_STATE_DEPTH_LESS_EQUAL, DRW_STATE_IN_FRONT_SELECT, DRW_state_is_fbo(), DRW_state_is_select(), DRW_STATE_WRITE_COLOR, DRW_STATE_WRITE_DEPTH, DRW_viewport_texture_list_get(), OVERLAY_TextureList::dummy_depth_tx, OVERLAY_ExtraCallBuffers::empty_axes, OVERLAY_ExtraCallBuffers::empty_capsule_body, OVERLAY_ExtraCallBuffers::empty_capsule_cap, OVERLAY_ExtraCallBuffers::empty_circle, OVERLAY_ExtraCallBuffers::empty_cone, OVERLAY_ExtraCallBuffers::empty_cube, OVERLAY_ExtraCallBuffers::empty_cylinder, OVERLAY_ExtraCallBuffers::empty_image_frame, OVERLAY_ExtraCallBuffers::empty_plain_axes, OVERLAY_ExtraCallBuffers::empty_single_arrow, OVERLAY_ExtraCallBuffers::empty_sphere, OVERLAY_ExtraCallBuffers::empty_sphere_solid, OVERLAY_PassList::extra_blend_ps, OVERLAY_PrivateData::extra_call_buffers, OVERLAY_PassList::extra_centers_ps, OVERLAY_ExtraCallBuffers::extra_dashed_lines, OVERLAY_PrivateData::extra_grid_grp, OVERLAY_PassList::extra_grid_ps, OVERLAY_ExtraCallBuffers::extra_lines, OVERLAY_ExtraCallBuffers::extra_loose_points, OVERLAY_ExtraCallBuffers::extra_points, OVERLAY_PassList::extra_ps, OVERLAY_ExtraCallBuffers::extra_wire, OVERLAY_ExtraCallBuffers::field_cone_limit, OVERLAY_ExtraCallBuffers::field_curve, OVERLAY_ExtraCallBuffers::field_force, OVERLAY_ExtraCallBuffers::field_sphere_limit, OVERLAY_ExtraCallBuffers::field_tube_limit, OVERLAY_ExtraCallBuffers::field_vortex, OVERLAY_ExtraCallBuffers::field_wind, G, G_draw, G_TRANSFORM_OBJ, OVERLAY_ExtraCallBuffers::groundline, OVERLAY_InstanceFormats::instance_extra, OVERLAY_InstanceFormats::instance_pos, OVERLAY_ExtraCallBuffers::light_area, OVERLAY_ExtraCallBuffers::light_icon_inner, OVERLAY_ExtraCallBuffers::light_icon_outer, OVERLAY_ExtraCallBuffers::light_icon_sun_rays, OVERLAY_ExtraCallBuffers::light_point, OVERLAY_ExtraCallBuffers::light_spot, OVERLAY_ExtraCallBuffers::light_spot_cone_back, OVERLAY_ExtraCallBuffers::light_spot_cone_front, OVERLAY_ExtraCallBuffers::light_sun, OVERLAY_ExtraCallBuffers::origin_xform, OVERLAY_shader_extra(), OVERLAY_shader_extra_grid(), OVERLAY_shader_extra_groundline(), OVERLAY_shader_extra_loose_point(), OVERLAY_shader_extra_point(), OVERLAY_shader_extra_wire(), OVERLAY_shader_instance_formats_get(), OVERLAY_StorageList::pd, OVERLAY_InstanceFormats::point_extra, OVERLAY_InstanceFormats::pos, OVERLAY_InstanceFormats::pos_color, OVERLAY_ExtraCallBuffers::probe_cube, OVERLAY_ExtraCallBuffers::probe_grid, OVERLAY_ExtraCallBuffers::probe_planar, OVERLAY_Data::psl, OVERLAY_ExtraCallBuffers::solid_quad, OVERLAY_ExtraCallBuffers::speaker, state, OVERLAY_Data::stl, tex, OVERLAY_Data::txl, and OVERLAY_InstanceFormats::wire_extra.
Referenced by OVERLAY_cache_init().
| void OVERLAY_extra_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 1583 of file overlay_extra.cc.
References Object::base_flag, BASE_FROM_DUPLI, BASE_FROM_SET, BASE_SELECTED, BKE_modifier_is_enabled(), BKE_modifiers_findby_type(), Object::boundtype, color, DRWContextState::depsgraph, DRW_buffer_add_entry, DRW_context_state_get(), DRW_object_wire_theme_get(), DRW_state_is_select(), DRW_state_show_text(), Object::dt, Object::dtx, ELEM, eModifierMode_Realtime, eModifierType_Fluid, OVERLAY_ExtraCallBuffers::empty_axes, View3DOverlay::flag, PartDeflect::forcefield, OB_ARMATURE, OB_AXIS, OB_BOUNDBOX, OB_CAMERA, OB_DRAWBOUNDOX, OB_DRAWNAME, OB_EMPTY, OB_GPENCIL_LEGACY, OB_LAMP, OB_LATTICE, OB_LIGHTPROBE, OB_MODE_ALL_PAINT, OB_MODE_ALL_PAINT_GPENCIL, OB_MODE_OBJECT, OB_MODE_SCULPT_CURVES, OB_SPEAKER, OB_TEXSPACE, DRWContextState::object_mode, OVERLAY_ExtraCallBuffers::origin_xform, OVERLAY_PrivateData::overlay, OVERLAY_bounds(), OVERLAY_collision(), OVERLAY_extra_call_buffer_get(), OVERLAY_forcefield(), OVERLAY_object_center(), OVERLAY_object_name(), OVERLAY_relationship_lines(), OVERLAY_texture_space(), OVERLAY_volume_extra(), Object::pd, OVERLAY_StorageList::pd, Object::rigidbody_object, SCE_XFORM_DATA_ORIGIN, DRWContextState::scene, OVERLAY_Data::stl, Object::type, OVERLAY_PrivateData::v3d_flag, V3D_HIDE_HELPLINES, V3D_OVERLAY_HIDE_OBJECT_ORIGINS, and DRWContextState::view_layer.
Referenced by OVERLAY_cache_populate().
| OVERLAY_ExtraCallBuffers * OVERLAY_extra_call_buffer_get | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 255 of file overlay_extra.cc.
References Object::dtx, OVERLAY_PrivateData::extra_call_buffers, OB_DRAW_IN_FRONT, OVERLAY_StorageList::pd, and OVERLAY_Data::stl.
Referenced by edit_text_cache_populate_boxes(), OVERLAY_camera_cache_populate(), OVERLAY_empty_cache_populate(), OVERLAY_extra_cache_populate(), OVERLAY_image_empty_cache_populate(), OVERLAY_lattice_cache_populate(), OVERLAY_light_cache_populate(), OVERLAY_lightprobe_cache_populate(), OVERLAY_speaker_cache_populate(), and OVERLAY_wireframe_cache_populate().
| void OVERLAY_extra_centers_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 1676 of file overlay_extra.cc.
References DRW_draw_pass(), OVERLAY_PassList::extra_centers_ps, OVERLAY_PassList::extra_grid_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_extra_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 1666 of file overlay_extra.cc.
References DRW_draw_pass(), OVERLAY_PassList::extra_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_extra_in_front_draw | ( | OVERLAY_Data * | vedata | ) |
Definition at line 1671 of file overlay_extra.cc.
References DRW_draw_pass(), OVERLAY_PassList::extra_ps, and OVERLAY_Data::psl.
Referenced by OVERLAY_draw_scene().
| void OVERLAY_extra_line | ( | OVERLAY_ExtraCallBuffers * | cb, |
| const float | start[3], | ||
| const float | end[3], | ||
| const int | color_id ) |
Definition at line 246 of file overlay_extra.cc.
References DRW_buffer_add_entry, and OVERLAY_ExtraCallBuffers::extra_lines.
Referenced by camera_view3d_reconstruction().
| void OVERLAY_extra_line_dashed | ( | OVERLAY_ExtraCallBuffers * | cb, |
| const float | start[3], | ||
| const float | end[3], | ||
| const float | color[4] ) |
Definition at line 237 of file overlay_extra.cc.
References DRW_buffer_add_entry, and OVERLAY_ExtraCallBuffers::extra_dashed_lines.
Referenced by camera_stereoscopy_extra(), drw_shgroup_bone_relationship_lines_ex(), edit_text_cache_populate_boxes(), and OVERLAY_relationship_lines().
| void OVERLAY_extra_loose_points | ( | OVERLAY_ExtraCallBuffers * | cb, |
| blender::gpu::Batch * | geom, | ||
| const float | mat[4][4], | ||
| const float | color[4] ) |
Definition at line 262 of file overlay_extra.cc.
References DRW_shgroup_call_obmat, OVERLAY_ExtraCallBuffers::extra_loose_points, and pack_v4_in_mat4().
Referenced by OVERLAY_wireframe_cache_populate().
| void OVERLAY_extra_point | ( | OVERLAY_ExtraCallBuffers * | cb, |
| const float | point[3], | ||
| const float | color[4] ) |
Definition at line 232 of file overlay_extra.cc.
References DRW_buffer_add_entry, and OVERLAY_ExtraCallBuffers::extra_points.
Referenced by OVERLAY_relationship_lines().
| void OVERLAY_extra_wire | ( | OVERLAY_ExtraCallBuffers * | cb, |
| blender::gpu::Batch * | geom, | ||
| const float | mat[4][4], | ||
| const float | color[4] ) |
Definition at line 272 of file overlay_extra.cc.
References col, DRW_shgroup_call_obmat, OVERLAY_ExtraCallBuffers::extra_wire, pack_v4_in_mat4(), and UNPACK3.
Referenced by OVERLAY_lattice_cache_populate(), and OVERLAY_wireframe_cache_populate().
|
static |
Definition at line 501 of file overlay_extra.cc.
References BKE_where_on_path(), copy_m4_m4(), copy_v3_v3(), cosf, CU_PATH, Object::data, DEG2RADF, DRW_buffer_add_entry, DRW_color_background_blend_get(), DRW_object_wire_theme_get(), Object::empty_drawsize, PartDeflect::f_strength, PartDeflect::falloff, OVERLAY_ExtraCallBuffers::field_cone_limit, OVERLAY_ExtraCallBuffers::field_curve, OVERLAY_ExtraCallBuffers::field_force, OVERLAY_ExtraCallBuffers::field_sphere_limit, OVERLAY_ExtraCallBuffers::field_tube_limit, OVERLAY_ExtraCallBuffers::field_vortex, OVERLAY_ExtraCallBuffers::field_wind, Curve::flag, PartDeflect::flag, PartDeflect::forcefield, PartDeflect::maxdist, PartDeflect::maxrad, PartDeflect::mindist, PartDeflect::minrad, OB_CURVES_LEGACY, Object::pd, PFIELD_FALL_CONE, PFIELD_FALL_SPHERE, PFIELD_FALL_TUBE, PFIELD_FORCE, PFIELD_GUIDE, PFIELD_USEMAX, PFIELD_USEMAXR, PFIELD_USEMIN, PFIELD_USEMINR, PFIELD_VORTEX, PFIELD_WIND, pos, Object::runtime, sinf, translate_m4(), and Object::type.
Referenced by OVERLAY_extra_cache_populate().
| void OVERLAY_light_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 602 of file overlay_extra.cc.
References Light::area_shape, Light::area_size, Light::area_sizey, Light::att_dist, b, Light::clipsta, copy_m4_m4(), copy_v3_v3(), cosf, Object::data, DRW_buffer_add_entry, DRW_context_state_get(), DRW_object_wire_theme_get(), DRW_state_is_select(), ELEM, View3DOverlay::flag, OVERLAY_ExtraCallBuffers::groundline, LA_AREA, LA_AREA_ELLIPSE, LA_AREA_RECT, LA_AREA_SQUARE, LA_LOCAL, LA_SHOW_CONE, LA_SPOT, LA_SUN, OVERLAY_ExtraCallBuffers::light_area, OVERLAY_ExtraCallBuffers::light_icon_inner, OVERLAY_ExtraCallBuffers::light_icon_outer, OVERLAY_ExtraCallBuffers::light_icon_sun_rays, OVERLAY_ExtraCallBuffers::light_point, OVERLAY_ExtraCallBuffers::light_spot, OVERLAY_ExtraCallBuffers::light_spot_cone_back, OVERLAY_ExtraCallBuffers::light_spot_cone_front, OVERLAY_ExtraCallBuffers::light_sun, max_ff(), Light::mode, OVERLAY_PrivateData::overlay, OVERLAY_extra_call_buffer_get(), OVERLAY_StorageList::pd, pos, Light::r, Light::radius, rescale_m4(), Light::spotblend, Light::spotsize, sqr(), sqrtf, OVERLAY_Data::stl, Light::type, UNPACK3, V3D_OVERLAY_SHOW_LIGHT_COLORS, and DRWContextState::view_layer.
Referenced by OVERLAY_cache_populate().
| void OVERLAY_lightprobe_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 709 of file overlay_extra.cc.
References LightProbe::attenuation_type, Object::base_flag, BASE_SELECTED, LightProbe::clipend, LightProbe::clipsta, copy_m4_m4(), Object::data, LightProbe::distinf, LightProbe::distpar, DRW_buffer_add_entry, DRW_context_state_get(), DRW_object_wire_theme_get(), DRW_shgroup_call_procedural_points(), DRW_shgroup_create_sub(), DRW_shgroup_uniform_mat4_copy(), DRW_state_is_select(), OVERLAY_ExtraCallBuffers::empty_cube, Object::empty_drawsize, OVERLAY_PrivateData::extra_grid_grp, LightProbe::falloff, LightProbe::flag, LightProbe::grid_resolution_x, LightProbe::grid_resolution_y, LightProbe::grid_resolution_z, LightProbe::grid_surfel_density, OVERLAY_ExtraCallBuffers::groundline, LIGHTPROBE_FLAG_CUSTOM_PARALLAX, LIGHTPROBE_FLAG_SHOW_CLIP_DIST, LIGHTPROBE_FLAG_SHOW_DATA, LIGHTPROBE_FLAG_SHOW_INFLUENCE, LIGHTPROBE_FLAG_SHOW_PARALLAX, LIGHTPROBE_SHAPE_BOX, LIGHTPROBE_TYPE_PLANE, LIGHTPROBE_TYPE_SPHERE, LIGHTPROBE_TYPE_VOLUME, mul_v3_fl(), normalize_m4_m4(), normalize_v3_length(), OB_CUBE, OB_EMPTY_SPHERE, OB_SINGLE_ARROW, OVERLAY_empty_shape(), OVERLAY_extra_call_buffer_get(), LightProbe::parallax_type, OVERLAY_StorageList::pd, pos, OVERLAY_ExtraCallBuffers::probe_cube, OVERLAY_ExtraCallBuffers::probe_grid, OVERLAY_ExtraCallBuffers::probe_planar, blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), reduce_max(), OVERLAY_ExtraCallBuffers::solid_quad, OVERLAY_Data::stl, TH_ACTIVE, LightProbe::type, DRWContextState::view_layer, and zero_v3().
Referenced by OVERLAY_cache_populate().
|
static |
Definition at line 1545 of file overlay_extra.cc.
References Object::base_flag, BASE_SELECTED, BKE_view_layer_active_object_get(), BKE_view_layer_synced_ensure(), OVERLAY_ExtraCallBuffers::center_active, OVERLAY_ExtraCallBuffers::center_deselected, OVERLAY_ExtraCallBuffers::center_deselected_lib, OVERLAY_ExtraCallBuffers::center_selected, OVERLAY_ExtraCallBuffers::center_selected_lib, DRW_buffer_add_entry, Object::id, ID_IS_LINKED, ID_REAL_USERS, V3D_DRAW_CENTERS, and OVERLAY_PrivateData::v3d_flag.
Referenced by OVERLAY_extra_cache_populate().
Definition at line 1566 of file overlay_extra.cc.
References DRW_text_cache_add(), DRW_text_cache_ensure(), DRW_TEXT_CACHE_GLOBALSPACE, DRW_TEXT_CACHE_STRING_PTR, Object::id, ID::name, and UI_GetThemeColor4ubv().
Referenced by OVERLAY_extra_cache_populate().
|
static |
Definition at line 1287 of file overlay_extra.cc.
References BKE_constraint_custom_object_space_init(), BKE_constraint_targets_flush(), BKE_constraint_targets_get(), BKE_constraint_typeinfo_get(), BKE_constraints_make_evalob(), BLI_listbase_is_empty(), DRW_Global::block, HookGpencilModifierData::cent, HookModifierData::cent, GlobalsUboStorage::color_grid_axis_z, GlobalsUboStorage::color_wire, CONSTRAINT_OBTYPE_OBJECT, CONSTRAINT_TAR_CUSTOM_SPACE, CONSTRAINT_TYPE_FOLLOWTRACK, CONSTRAINT_TYPE_OBJECTSOLVER, Object::constraints, copy_m4_m4(), DEG_get_ctime(), depsgraph, DRW_object_visibility_in_active_context(), eGpencilModifierType_Hook, ELEM, eModifierType_Hook, G_draw, bConstraintTypeInfo::get_target_matrix, Object::greasepencil_modifiers, LISTBASE_FOREACH, MEM_freeN(), Object::modifiers, mul_v3_m4v3(), RigidBodyCon::ob1, RigidBodyCon::ob2, OB_VISIBLE_SELF, HookGpencilModifierData::object, HookModifierData::object, OVERLAY_extra_line_dashed(), OVERLAY_extra_point(), Object::parent, Object::rigidbody_constraint, Object::runtime, bConstraintOb::space_obj_world_matrix, and unit_m4().
Referenced by OVERLAY_extra_cache_populate().
| void OVERLAY_speaker_cache_populate | ( | OVERLAY_Data * | vedata, |
| Object * | ob ) |
Definition at line 827 of file overlay_extra.cc.
References DRW_buffer_add_entry, DRW_context_state_get(), DRW_object_wire_theme_get(), OVERLAY_extra_call_buffer_get(), OVERLAY_ExtraCallBuffers::speaker, and DRWContextState::view_layer.
Referenced by OVERLAY_cache_populate().
|
static |
Definition at line 449 of file overlay_extra.cc.
References BKE_curve_texspace_ensure(), BKE_mesh_texspace_get_reference(), BLI_assert, copy_v3_v3(), Object::data, DRW_buffer_add_entry, OVERLAY_ExtraCallBuffers::empty_cube, GS, ID_CU_LEGACY, ID_CV, ID_MB, ID_ME, ID_PT, ID_VO, mul_m4_m4m4(), ID::name, size_to_mat4(), Curve::texspace_location, MetaBall::texspace_location, Curve::texspace_size, MetaBall::texspace_size, and unit_m4().
Referenced by OVERLAY_extra_cache_populate().
|
static |
Definition at line 1409 of file overlay_extra.cc.
References axis_dominant_v3_single(), FluidDomainSettings::axis_slice_method, AXIS_SLICE_SINGLE, FluidDomainSettings::cell_size, FluidDomainSettings::coba_field, copy_v3_v3(), FluidModifierData::domain, FluidDomainSettings::draw_velocity, DRW_buffer_add_entry, DRW_fluid_ensure_flags(), DRW_fluid_ensure_range_field(), DRW_shgroup_call_procedural_lines(), DRW_shgroup_create(), DRW_shgroup_uniform_bool_copy(), DRW_shgroup_uniform_float_copy(), DRW_shgroup_uniform_int_copy(), DRW_shgroup_uniform_ivec3_copy(), DRW_shgroup_uniform_texture(), DRW_shgroup_uniform_vec3_copy(), DRW_shgroup_uniform_vec4_copy(), DRW_smoke_ensure_velocity(), DRW_view_viewmat_get(), OVERLAY_ExtraCallBuffers::empty_cube, FluidDomainSettings::fluid, FLUID_DISPLAY_INTERP_CLOSEST, FLUID_DOMAIN_FIELD_FLAGS, FLUID_DOMAIN_VECTOR_FIELD_FORCE, FLUID_GRIDLINE_COLOR_TYPE_FLAGS, FLUID_GRIDLINE_COLOR_TYPE_RANGE, FluidDomainSettings::gridlines_cell_filter, FluidDomainSettings::gridlines_color_field, FluidDomainSettings::gridlines_lower_bound, FluidDomainSettings::gridlines_range_color, FluidDomainSettings::gridlines_upper_bound, FluidDomainSettings::interp_method, madd_v3fl_v3fl_v3fl_v3i(), min, mul_m4_m4m4(), OVERLAY_shader_volume_gridlines(), OVERLAY_shader_volume_velocity(), FluidDomainSettings::p0, FluidDomainSettings::point_cache, FluidDomainSettings::res, FluidDomainSettings::res_min, FluidDomainSettings::show_gridlines, FluidDomainSettings::slice_axis, SLICE_AXIS_AUTO, FluidDomainSettings::slice_depth, PointCache::startframe, FluidDomainSettings::tex_flags, FluidDomainSettings::tex_range_field, FluidDomainSettings::tex_velocity_x, FluidDomainSettings::tex_velocity_y, FluidDomainSettings::tex_velocity_z, translate_m4(), FluidDomainSettings::use_coba, VECTOR_DRAW_MAC, FluidDomainSettings::vector_draw_mac_components, VECTOR_DRAW_MAC_X, VECTOR_DRAW_MAC_Y, VECTOR_DRAW_MAC_Z, VECTOR_DRAW_NEEDLE, FluidDomainSettings::vector_draw_type, FluidDomainSettings::vector_field, FluidDomainSettings::vector_scale, and FluidDomainSettings::vector_scale_with_magnitude.
Referenced by OVERLAY_extra_cache_populate().