Blender V5.0
blender::ed::uv::UVSyncSelectFromMesh Class Reference

#include <ED_uvedit.hh>

Inherits blender::NonCopyable.

Public Member Functions

 UVSyncSelectFromMesh (BMesh &bm, char uv_sticky)
 UVSyncSelectFromMesh (const UVSyncSelectFromMesh &)=delete
void apply ()
void vert_select_enable (BMVert *v)
void edge_select_enable (BMEdge *f)
void face_select_enable (BMFace *f)
void vert_select_disable (BMVert *v)
void edge_select_disable (BMEdge *f)
void face_select_disable (BMFace *f)
void vert_select_set (BMVert *v, bool value)
void edge_select_set (BMEdge *f, bool value)
void face_select_set (BMFace *f, bool value)

Static Public Member Functions

static std::unique_ptr< UVSyncSelectFromMeshcreate_if_needed (const ToolSettings &ts, BMesh &bm)

Detailed Description

Abstract away the details of syncing selection from the mesh (viewport) to a UV state which is "synchronized".

Where practical (see note below) this is a preferred alternative to clearing the UV selection state and re-initializing it from the mesh, because there may be UV's selected on one UV island and not another, even though the vertices are shared. Flushing and re-initializing will set both, losing the users selection.

Note that what is considered practical is open to interpretation, picking individual elements and basic selection actions should be supported. Selection actions such as random or by vertex group... isn't so practical.

Definition at line 104 of file ED_uvedit.hh.

Constructor & Destructor Documentation

◆ UVSyncSelectFromMesh() [1/2]

blender::ed::uv::UVSyncSelectFromMesh::UVSyncSelectFromMesh ( BMesh & bm,
char uv_sticky )
inline

Definition at line 118 of file ED_uvedit.hh.

References bm.

Referenced by UVSyncSelectFromMesh().

◆ UVSyncSelectFromMesh() [2/2]

blender::ed::uv::UVSyncSelectFromMesh::UVSyncSelectFromMesh ( const UVSyncSelectFromMesh & )
delete

References bm, UVSyncSelectFromMesh(), and v.

Member Function Documentation

◆ apply()

void blender::ed::uv::UVSyncSelectFromMesh::apply ( )

◆ create_if_needed()

std::unique_ptr< UVSyncSelectFromMesh > blender::ed::uv::UVSyncSelectFromMesh::create_if_needed ( const ToolSettings & ts,
BMesh & bm )
static

◆ edge_select_disable()

void blender::ed::uv::UVSyncSelectFromMesh::edge_select_disable ( BMEdge * f)

Definition at line 1880 of file uvedit_select.cc.

◆ edge_select_enable()

void blender::ed::uv::UVSyncSelectFromMesh::edge_select_enable ( BMEdge * f)

Definition at line 1865 of file uvedit_select.cc.

◆ edge_select_set()

void blender::ed::uv::UVSyncSelectFromMesh::edge_select_set ( BMEdge * f,
bool value )

Definition at line 1900 of file uvedit_select.cc.

Referenced by edbm_backbuf_check_and_select_edges().

◆ face_select_disable()

void blender::ed::uv::UVSyncSelectFromMesh::face_select_disable ( BMFace * f)

Definition at line 1884 of file uvedit_select.cc.

◆ face_select_enable()

void blender::ed::uv::UVSyncSelectFromMesh::face_select_enable ( BMFace * f)

Definition at line 1869 of file uvedit_select.cc.

◆ face_select_set()

void blender::ed::uv::UVSyncSelectFromMesh::face_select_set ( BMFace * f,
bool value )

Definition at line 1909 of file uvedit_select.cc.

Referenced by edbm_backbuf_check_and_select_faces().

◆ vert_select_disable()

void blender::ed::uv::UVSyncSelectFromMesh::vert_select_disable ( BMVert * v)

Definition at line 1876 of file uvedit_select.cc.

References v.

◆ vert_select_enable()

void blender::ed::uv::UVSyncSelectFromMesh::vert_select_enable ( BMVert * v)

Definition at line 1861 of file uvedit_select.cc.

References v.

◆ vert_select_set()

void blender::ed::uv::UVSyncSelectFromMesh::vert_select_set ( BMVert * v,
bool value )

Definition at line 1891 of file uvedit_select.cc.

References v.

Referenced by edbm_backbuf_check_and_select_verts().


The documentation for this class was generated from the following files: