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

Go to the source code of this file.

Classes

struct  ElemIndexRanges
struct  SELECTID_Context

Functions

bool DRW_select_buffer_elem_get (uint sel_id, uint &r_elem, uint &r_base_index, char &r_elem_type)
uint DRW_select_buffer_context_offset_for_object_elem (Depsgraph *depsgraph, Object *object, char elem_type)
uintDRW_select_buffer_read (Depsgraph *depsgraph, ARegion *region, View3D *v3d, const rcti *rect, uint *r_buf_len)
uintDRW_select_buffer_bitmap_from_rect (Depsgraph *depsgraph, ARegion *region, View3D *v3d, const rcti *rect, uint *r_bitmap_len)
uintDRW_select_buffer_bitmap_from_circle (Depsgraph *depsgraph, ARegion *region, View3D *v3d, const int center[2], int radius, uint *r_bitmap_len)
uintDRW_select_buffer_bitmap_from_poly (Depsgraph *depsgraph, ARegion *region, View3D *v3d, blender::Span< blender::int2 > poly, const rcti *rect, uint *r_bitmap_len)
uint DRW_select_buffer_sample_point (Depsgraph *depsgraph, ARegion *region, View3D *v3d, const int center[2])
uint 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)
void DRW_select_buffer_context_create (Depsgraph *depsgraph, blender::Span< Base * > bases, short select_mode)

Function Documentation

◆ DRW_select_buffer_bitmap_from_circle()

uint * DRW_select_buffer_bitmap_from_circle ( Depsgraph * depsgraph,
ARegion * region,
View3D * v3d,
const int center[2],
int radius,
uint * r_bitmap_len )
Parameters
centerCircle center.
radiusCircle radius.
r_bitmap_lenNumber of indices in the selection id buffer.
Returns
a BLI_bitmap the length of r_bitmap_len or NULL on failure.

Definition at line 177 of file draw_select_buffer.cc.

References BLI_assert, BLI_BITMAP_ENABLE, BLI_BITMAP_NEW, DRW_select_buffer_bitmap_from_circle(), DRW_select_buffer_read(), DRW_select_engine_context_get(), SELECTID_Context::max_index_drawn_len, MEM_freeN(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.

Referenced by DRW_select_buffer_bitmap_from_circle(), mesh_circle_select(), paint_facesel_circle_select(), and paint_vertsel_circle_select().

◆ DRW_select_buffer_bitmap_from_poly()

uint * DRW_select_buffer_bitmap_from_poly ( Depsgraph * depsgraph,
ARegion * region,
View3D * v3d,
blender::Span< blender::int2 > poly,
const rcti * rect,
uint * r_bitmap_len )

◆ DRW_select_buffer_bitmap_from_rect()

uint * DRW_select_buffer_bitmap_from_rect ( Depsgraph * depsgraph,
ARegion * region,
View3D * v3d,
const rcti * rect,
uint * r_bitmap_len )

◆ DRW_select_buffer_context_create()

◆ DRW_select_buffer_context_offset_for_object_elem()

◆ DRW_select_buffer_elem_get()

◆ DRW_select_buffer_find_nearest_to_point()

uint 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 )

◆ DRW_select_buffer_read()

◆ DRW_select_buffer_sample_point()

uint DRW_select_buffer_sample_point ( Depsgraph * depsgraph,
ARegion * region,
View3D * v3d,
const int center[2] )