Blender V5.3
bmesh_py_types_select.cc File Reference
#include <Python.h>
#include "BLI_listbase.hh"
#include "BLI_utildefines.hh"
#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.

Namespaces

namespace  blender
 BMesh Iterators.

Functions

 blender::PyDoc_STRVAR (bpy_bmeditselseq_active_doc, "The last selected element or None (read-only).\n" "\n" ":type: :class:`bmesh.types.BMVert` | " ":class:`bmesh.types.BMEdge` | :class:`bmesh.types.BMFace` | None\n")
static PyObject * blender::bpy_bmeditselseq_active_get (BPy_BMEditSelSeq *self, void *)
 blender::PyDoc_STRVAR (bpy_bmeditselseq_validate_doc, ".. method:: validate()\n" "\n" " Ensures all elements in the selection history are selected.\n")
static PyObject * blender::bpy_bmeditselseq_validate (BPy_BMEditSelSeq *self)
 blender::PyDoc_STRVAR (bpy_bmeditselseq_clear_doc, ".. method:: clear()\n" "\n" " Empties the selection history.\n")
static PyObject * blender::bpy_bmeditselseq_clear (BPy_BMEditSelSeq *self)
 blender::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" "\n" " :param element: The element to add.\n" " :type element: :class:`BMVert` | :class:`BMEdge` | :class:`BMFace`\n")
static PyObject * blender::bpy_bmeditselseq_add (BPy_BMEditSelSeq *self, BPy_BMElem *value)
 blender::PyDoc_STRVAR (bpy_bmeditselseq_remove_doc, ".. method:: remove(element)\n" "\n" " Remove an element from the selection history.\n" "\n" " :param element: The element to remove.\n" " :type element: :class:`BMVert` | :class:`BMEdge` | :class:`BMFace`\n")
static PyObject * blender::bpy_bmeditselseq_remove (BPy_BMEditSelSeq *self, BPy_BMElem *value)
 blender::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 element is not in the selection list.\n" "\n" " :param element: The element to discard.\n" " :type element: :class:`BMVert` | :class:`BMEdge` | :class:`BMFace`\n")
static PyObject * blender::bpy_bmeditselseq_discard (BPy_BMEditSelSeq *self, BPy_BMElem *value)
static Py_ssize_t blender::bpy_bmeditselseq_length (BPy_BMEditSelSeq *self)
static PyObject * blender::bpy_bmeditselseq_subscript_int (BPy_BMEditSelSeq *self, Py_ssize_t keynum)
static PyObject * blender::bpy_bmeditselseq_subscript_slice (BPy_BMEditSelSeq *self, Py_ssize_t start, Py_ssize_t stop)
static PyObject * blender::bpy_bmeditselseq_subscript (BPy_BMEditSelSeq *self, PyObject *key)
static int blender::bpy_bmeditselseq_contains (BPy_BMEditSelSeq *self, PyObject *value)
static PyObject * blender::bpy_bmeditselseq_iter (BPy_BMEditSelSeq *self)
static PyObject * blender::bpy_bmeditseliter_next (BPy_BMEditSelIter *self)
PyObject * blender::BPy_BMEditSel_CreatePyObject (BMesh *bm)
PyObject * blender::BPy_BMEditSelIter_CreatePyObject (BMesh *bm)
void blender::BPy_BM_init_types_select ()
int blender::BPy_BMEditSel_Assign (BPy_BMesh *self, PyObject *value)

Variables

static PyGetSetDef blender::bpy_bmeditselseq_getseters []
static PyMethodDef blender::bpy_bmeditselseq_methods []
static PySequenceMethods blender::bpy_bmeditselseq_as_sequence
static PyMappingMethods blender::bpy_bmeditselseq_as_mapping
PyTypeObject blender::BPy_BMEditSelSeq_Type
PyTypeObject blender::BPy_BMEditSelIter_Type

Detailed Description

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.