Blender V5.0
draw_manager_text.hh File Reference
#include "BLI_sys_types.h"

Go to the source code of this file.

Enumerations

enum  { DRW_TEXT_CACHE_GLOBALSPACE = (1 << 1) , DRW_TEXT_CACHE_LOCALCLIP = (1 << 2) , DRW_TEXT_CACHE_STRING_PTR = (1 << 3) }

Functions

DRWTextStoreDRW_text_cache_create ()
void DRW_text_cache_destroy (DRWTextStore *dt)
DRWTextStoreDRW_text_cache_ensure ()
void DRW_text_cache_add (DRWTextStore *dt, const float co[3], const char *str, int str_len, short xoffs, short yoffs, short flag, const uchar col[4], const bool shadow=false, const bool align_center=false)
void DRW_text_cache_draw (const DRWTextStore *dt, const ARegion *region, const View3D *v3d)
void DRW_text_edit_mesh_measure_stats (const ARegion *region, const View3D *v3d, const Object *ob, const UnitSettings &unit, DRWTextStore *dt=DRW_text_cache_ensure())

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
DRW_TEXT_CACHE_GLOBALSPACE 
DRW_TEXT_CACHE_LOCALCLIP 
DRW_TEXT_CACHE_STRING_PTR 

Definition at line 44 of file draw_manager_text.hh.

Function Documentation

◆ DRW_text_cache_add()

◆ DRW_text_cache_create()

◆ DRW_text_cache_destroy()

◆ DRW_text_cache_draw()

◆ DRW_text_cache_ensure()

DRWTextStore * DRW_text_cache_ensure ( )

◆ DRW_text_edit_mesh_measure_stats()

void DRW_text_edit_mesh_measure_stats ( const ARegion * region,
const View3D * v3d,
const Object * ob,
const UnitSettings & unit,
DRWTextStore * dt = DRW_text_cache_ensure() )

Definition at line 263 of file draw_manager_text.cc.

References angle(), angle_normalized_v3v3(), angle_v3v3v3(), area_tri_v3(), B_UNIT_AREA, B_UNIT_LENGTH, BKE_editmesh_eval_orig_map_available(), BKE_mesh_wrapper_face_normals(), BKE_mesh_wrapper_vert_coords(), BKE_object_get_editmesh_eval_cage(), BKE_object_get_pre_modified_mesh(), BKE_unit_value_as_string_scaled(), BLI_STR_UTF8_DEGREE_SIGN, BMEditMesh::bm, BM_edge_loop_pair(), BM_EDGES_OF_MESH, BM_elem_flag_test, BM_elem_flag_test_bool, BM_elem_index_get, BM_ELEM_SELECT, BM_FACE, BM_face_calc_center_bounds(), BM_face_calc_center_bounds_vcos(), BM_face_calc_center_median(), BM_face_calc_center_median_vcos(), BM_FACES_OF_MESH, BM_ITER_ELEM, BM_ITER_MESH, BM_ITER_MESH_INDEX, BM_LOOPS_OF_FACE, BM_mesh_elem_index_ensure(), BM_VERT, BM_VERTS_OF_MESH, clip_segment_v3_plane_n(), BMVert::co, col, DRW_text_cache_add(), DRW_TEXT_CACHE_GLOBALSPACE, ED_view3d_clipping_calc(), View3DOverlay::edit_flag, BMLoop::f, View3D::flag, float, G, G_TRANSFORM_EDIT, View3D::grid, i, blender::math::interpolate(), blender::Span< T >::is_empty(), l_b, BMFace::len, len_v3v3(), BMEditMesh::looptris, BMLoop::next, BMFace::no, blender::math::normalize(), View3D::overlay, BMLoop::prev, blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), RAD2DEGF, Mesh::runtime, UnitSettings::scale_length, SCE_SELECT_EDGE, SCE_SELECT_FACE, SCE_SELECT_VERTEX, BMEditMesh::selectmode, SNPRINTF_RLEN, UnitSettings::system, UnitSettings::system_rotation, TH_DRAWEXTRA_EDGEANG, TH_DRAWEXTRA_EDGELEN, TH_DRAWEXTRA_FACEANG, TH_DRAWEXTRA_FACEAREA, TH_TEXT_HI, blender::math::transform_point(), UI_GetThemeColor3ubv(), UI_GetThemeColor4ubv(), UI_SCALE_FAC, USER_UNIT_ROT_RADIANS, BMLoop::v, v, BMEdge::v1, BMEdge::v2, v2, V3D_GLOBAL_STATS, V3D_OVERLAY_EDIT_EDGE_ANG, V3D_OVERLAY_EDIT_EDGE_LEN, V3D_OVERLAY_EDIT_FACE_ANG, V3D_OVERLAY_EDIT_FACE_AREA, V3D_OVERLAY_EDIT_INDICES, ARegion::winx, and ARegion::winy.

Referenced by blender::draw::overlay::Meshes::edit_object_sync().