Blender V5.3
DRW_select_buffer.hh File Reference
#include "DNA_ID.h"
#include "BLI_array.hh"
#include "BLI_map.hh"
#include "BLI_math_matrix_types.hh"
#include "BLI_math_vector_types.hh"
#include "BLI_set.hh"
#include "BLI_sys_types.hh"

Go to the source code of this file.

Classes

struct  blender::ElemIndexRanges
struct  blender::SELECTID_Context

Namespaces

namespace  blender
 BMesh Iterators.

Functions

void blender::DRW_select_buffer_context_create (Depsgraph *depsgraph, Span< Base * > bases, short select_mode)
Object Utils
bool blender::DRW_select_buffer_elem_get (uint sel_id, uint &r_elem, uint &r_base_index, char &r_elem_type)
uint blender::DRW_select_buffer_context_offset_for_object_elem (Depsgraph *depsgraph, Object *object, char elem_type)
Buffer of select ID's
uint * blender::DRW_select_buffer_read (Depsgraph *depsgraph, ARegion *region, View3D *v3d, const rcti *rect, uint *r_buf_len)
Select Bitmap from ID's

Given a buffer of select ID's, fill in a booleans (true/false) per index. BLI_bitmap is used for memory efficiency.

uint * blender::DRW_select_buffer_bitmap_from_rect (Depsgraph *depsgraph, ARegion *region, View3D *v3d, const rcti *rect, uint *r_bitmap_len)
uint * blender::DRW_select_buffer_bitmap_from_circle (Depsgraph *depsgraph, ARegion *region, View3D *v3d, const int center[2], int radius, uint *r_bitmap_len)
uint * blender::DRW_select_buffer_bitmap_from_poly (Depsgraph *depsgraph, ARegion *region, View3D *v3d, Span< int2 > poly, const rcti *rect, uint *r_bitmap_len)
Find Single Select ID's

Given a buffer of select ID's, find the a single select id.

uint blender::DRW_select_buffer_sample_point (Depsgraph *depsgraph, ARegion *region, View3D *v3d, const int center[2])
uint blender::DRW_select_buffer_find_nearest_to_point (Depsgraph *depsgraph, ARegion *region, View3D *v3d, const int center[2], uint id_min, uint id_max, uint *dist)