|
Blender V4.3
|
#include <Python.h>#include "BLI_listbase.h"#include "BLI_utildefines.h"#include "bmesh.hh"#include "bmesh_py_types.hh"#include "bmesh_py_types_select.hh"#include "../generic/python_utildefines.hh"Go to the source code of this file.
Functions | |
| PyDoc_STRVAR (bpy_bmeditselseq_active_doc, "The last selected element or None (read-only).\n" "\n" ":type: :class:`BMVert`, " ":class:`BMEdge` or :class:`BMFace`") | |
| static PyObject * | bpy_bmeditselseq_active_get (BPy_BMEditSelSeq *self, void *) |
| PyDoc_STRVAR (bpy_bmeditselseq_validate_doc, ".. method:: validate()\n" "\n" " Ensures all elements in the selection history are selected.\n") | |
| static PyObject * | bpy_bmeditselseq_validate (BPy_BMEditSelSeq *self) |
| PyDoc_STRVAR (bpy_bmeditselseq_clear_doc, ".. method:: clear()\n" "\n" " Empties the selection history.\n") | |
| static PyObject * | bpy_bmeditselseq_clear (BPy_BMEditSelSeq *self) |
| PyDoc_STRVAR (bpy_bmeditselseq_add_doc, ".. method:: add(element)\n" "\n" " Add an element to the selection history (no action taken if its already added).\n") | |
| static PyObject * | bpy_bmeditselseq_add (BPy_BMEditSelSeq *self, BPy_BMElem *value) |
| PyDoc_STRVAR (bpy_bmeditselseq_remove_doc, ".. method:: remove(element)\n" "\n" " Remove an element from the selection history.\n") | |
| static PyObject * | bpy_bmeditselseq_remove (BPy_BMEditSelSeq *self, BPy_BMElem *value) |
| PyDoc_STRVAR (bpy_bmeditselseq_discard_doc, ".. method:: discard(element)\n" "\n" " Discard an element from the selection history.\n" "\n" " Like remove but doesn't raise an error when the elements not in the selection list.\n") | |
| static PyObject * | bpy_bmeditselseq_discard (BPy_BMEditSelSeq *self, BPy_BMElem *value) |
| static Py_ssize_t | bpy_bmeditselseq_length (BPy_BMEditSelSeq *self) |
| static PyObject * | bpy_bmeditselseq_subscript_int (BPy_BMEditSelSeq *self, Py_ssize_t keynum) |
| static PyObject * | bpy_bmeditselseq_subscript_slice (BPy_BMEditSelSeq *self, Py_ssize_t start, Py_ssize_t stop) |
| static PyObject * | bpy_bmeditselseq_subscript (BPy_BMEditSelSeq *self, PyObject *key) |
| static int | bpy_bmeditselseq_contains (BPy_BMEditSelSeq *self, PyObject *value) |
| static PyObject * | bpy_bmeditselseq_iter (BPy_BMEditSelSeq *self) |
| static PyObject * | bpy_bmeditseliter_next (BPy_BMEditSelIter *self) |
| PyObject * | BPy_BMEditSel_CreatePyObject (BMesh *bm) |
| PyObject * | BPy_BMEditSelIter_CreatePyObject (BMesh *bm) |
| void | BPy_BM_init_types_select () |
| int | BPy_BMEditSel_Assign (BPy_BMesh *self, PyObject *value) |
Variables | |
| static PyGetSetDef | bpy_bmeditselseq_getseters [] |
| static PyMethodDef | bpy_bmeditselseq_methods [] |
| static PySequenceMethods | bpy_bmeditselseq_as_sequence |
| static PyMappingMethods | bpy_bmeditselseq_as_mapping |
| PyTypeObject | BPy_BMEditSelSeq_Type |
| PyTypeObject | BPy_BMEditSelIter_Type |
This file defines the types for 'BMesh.select_history' sequence and iterator.
select_history is very loosely based on pythons set() type, since items can only exist once. however they do have an order.
Definition in file bmesh_py_types_select.cc.
| void BPy_BM_init_types_select | ( | ) |
Definition at line 378 of file bmesh_py_types_select.cc.
References bpy_bmeditseliter_next(), BPy_BMEditSelIter_Type, bpy_bmeditselseq_as_mapping, bpy_bmeditselseq_as_sequence, bpy_bmeditselseq_getseters, bpy_bmeditselseq_iter(), bpy_bmeditselseq_methods, and BPy_BMEditSelSeq_Type.
Referenced by BPyInit_bmesh().
Definition at line 419 of file bmesh_py_types_select.cc.
References bm, BM_EDGE, BM_FACE, BM_select_history_clear(), BM_select_history_store_notest, BM_VERT, BPY_BM_CHECK_INT, BPy_BMElem_PySeq_As_Array(), and self.
Referenced by bpy_bmesh_select_history_set().
| PyObject * BPy_BMEditSel_CreatePyObject | ( | BMesh * | bm | ) |
Definition at line 362 of file bmesh_py_types_select.cc.
References bm, BPy_BMEditSelSeq_Type, and self.
Referenced by bpy_bmesh_select_history_get().
| PyObject * BPy_BMEditSelIter_CreatePyObject | ( | BMesh * | bm | ) |
Definition at line 370 of file bmesh_py_types_select.cc.
References bm, BPy_BMEditSelIter_Type, and self.
Referenced by bpy_bmeditselseq_iter().
|
static |
Definition at line 347 of file bmesh_py_types_select.cc.
References BPy_BMElem_CreatePyObject(), BMEditSelection::ele, BMElem::head, BMEditSelection::next, and self.
Referenced by BPy_BM_init_types_select().
|
static |
Definition at line 34 of file bmesh_py_types_select.cc.
References BPY_BM_CHECK_OBJ, BPy_BMElem_CreatePyObject(), BMEditSelection::ele, BMElem::head, and self.
|
static |
Definition at line 87 of file bmesh_py_types_select.cc.
References BM_select_history_store, BPY_BM_CHECK_OBJ, BPY_BM_CHECK_SOURCE_OBJ, BPy_BMEdge_Check, BPy_BMFace_Check, BPy_BMVert_Check, and self.
|
static |
Definition at line 74 of file bmesh_py_types_select.cc.
References BM_select_history_clear(), BPY_BM_CHECK_OBJ, and self.
|
static |
Definition at line 300 of file bmesh_py_types_select.cc.
References BPy_BMElem::bm, BM_select_history_check, BPY_BM_CHECK_INT, BPy_BMElem::ele, and self.
|
static |
Definition at line 138 of file bmesh_py_types_select.cc.
References BM_select_history_remove, BPY_BM_CHECK_OBJ, BPY_BM_CHECK_SOURCE_OBJ, BPy_BMEdge_Check, BPy_BMFace_Check, BPy_BMVert_Check, and self.
|
static |
Definition at line 337 of file bmesh_py_types_select.cc.
References BPY_BM_CHECK_OBJ, BPy_BMEditSelIter_CreatePyObject(), BPy_BMEditSelIter::ese, and self.
Referenced by BPy_BM_init_types_select().
|
static |
Definition at line 180 of file bmesh_py_types_select.cc.
References BLI_listbase_count(), BPY_BM_CHECK_INT, and self.
Referenced by bpy_bmeditselseq_subscript().
|
static |
Definition at line 110 of file bmesh_py_types_select.cc.
References BM_select_history_remove, BPY_BM_CHECK_OBJ, BPY_BM_CHECK_SOURCE_OBJ, BPy_BMEdge_Check, BPy_BMFace_Check, BPy_BMVert_Check, and self.
|
static |
Definition at line 241 of file bmesh_py_types_select.cc.
References bpy_bmeditselseq_length(), bpy_bmeditselseq_subscript_int(), bpy_bmeditselseq_subscript_slice(), CLAMP_MIN, len, and self.
|
static |
Definition at line 187 of file bmesh_py_types_select.cc.
References BLI_findlink(), BLI_rfindlink(), BPY_BM_CHECK_OBJ, BPy_BMElem_CreatePyObject(), BMEditSelection::ele, BMElem::head, and self.
Referenced by bpy_bmeditselseq_subscript().
|
static |
Definition at line 208 of file bmesh_py_types_select.cc.
References BPY_BM_CHECK_OBJ, BPy_BMElem_CreatePyObject(), count, BMEditSelection::ele, BMElem::head, BMEditSelection::next, and self.
Referenced by bpy_bmeditselseq_subscript().
|
static |
Definition at line 61 of file bmesh_py_types_select.cc.
References BM_select_history_validate(), BPY_BM_CHECK_OBJ, and self.
| PyDoc_STRVAR | ( | bpy_bmeditselseq_active_doc | , |
| "The last selected element or None (read-only).\n" "\n" ":type: :class:`BMVert` | , | ||
| " ":class:`BMEdge` or :class:`BMFace`" | ) |
| PyDoc_STRVAR | ( | bpy_bmeditselseq_add_doc | , |
| ".. method:: add(element)\n" "\n" " Add an element to the selection history (no action taken if its already added).\n" | ) |
| PyDoc_STRVAR | ( | bpy_bmeditselseq_clear_doc | , |
| ".. method:: clear()\n" "\n" " Empties the selection history.\n" | ) |
| PyDoc_STRVAR | ( | bpy_bmeditselseq_discard_doc | , |
| ".. method:: discard(element)\n" "\n" " Discard an element from the selection history.\n" "\n" " Like remove but doesn't raise an error when the elements not in the selection list.\n" | ) |
| PyDoc_STRVAR | ( | bpy_bmeditselseq_remove_doc | , |
| ".. method:: remove(element)\n" "\n" " Remove an element from the selection history.\n" | ) |
| PyDoc_STRVAR | ( | bpy_bmeditselseq_validate_doc | , |
| ".. method:: validate()\n" "\n" " Ensures all elements in the selection history are selected.\n" | ) |
| PyTypeObject BPy_BMEditSelIter_Type |
Definition at line 360 of file bmesh_py_types_select.cc.
Referenced by BPy_BM_init_types_select(), BPy_BMEditSelIter_CreatePyObject(), and BPyInit_bmesh_types().
|
static |
Definition at line 328 of file bmesh_py_types_select.cc.
Referenced by BPy_BM_init_types_select().
|
static |
Definition at line 314 of file bmesh_py_types_select.cc.
Referenced by BPy_BM_init_types_select().
|
static |
Definition at line 46 of file bmesh_py_types_select.cc.
Referenced by BPy_BM_init_types_select().
|
static |
Definition at line 160 of file bmesh_py_types_select.cc.
Referenced by BPy_BM_init_types_select().
| PyTypeObject BPy_BMEditSelSeq_Type |
Definition at line 359 of file bmesh_py_types_select.cc.
Referenced by BPy_BM_init_types_select(), BPy_BMEditSel_CreatePyObject(), and BPyInit_bmesh_types().