Blender  V3.3
Functions | Variables
BPy_Chain.cpp File Reference
#include "BPy_Chain.h"
#include "../../BPy_Convert.h"
#include "../../BPy_Id.h"
#include "../BPy_ViewEdge.h"

Go to the source code of this file.

Functions

 PyDoc_STRVAR (Chain_doc, "Class hierarchy: :class:`Interface1D` > :class:`Curve` > :class:`Chain`\n" "\n" "Class to represent a 1D elements issued from the chaining process. A\n" "Chain is the last step before the :class:`Stroke` and is used in the\n" "Splitting and Creation processes.\n" "\n" ".. method:: __init__()\n" " __init__(brother)\n" " __init__(id)\n" "\n" " Builds a :class:`Chain` using the default constructor,\n" " copy constructor or from an :class:`Id`.\n" "\n" " :arg brother: A Chain object.\n" " :type brother: :class:`Chain`\n" " :arg id: An Id object.\n" " :type id: :class:`Id`")
 
static int Chain_init (BPy_Chain *self, PyObject *args, PyObject *kwds)
 
 PyDoc_STRVAR (Chain_push_viewedge_back_doc, ".. method:: push_viewedge_back(viewedge, orientation)\n" "\n" " Adds a ViewEdge at the end of the Chain.\n" "\n" " :arg viewedge: The ViewEdge that must be added.\n" " :type viewedge: :class:`ViewEdge`\n" " :arg orientation: The orientation with which the ViewEdge must be\n" " processed.\n" " :type orientation: bool")
 
static PyObject * Chain_push_viewedge_back (BPy_Chain *self, PyObject *args, PyObject *kwds)
 
 PyDoc_STRVAR (Chain_push_viewedge_front_doc, ".. method:: push_viewedge_front(viewedge, orientation)\n" "\n" " Adds a ViewEdge at the beginning of the Chain.\n" "\n" " :arg viewedge: The ViewEdge that must be added.\n" " :type viewedge: :class:`ViewEdge`\n" " :arg orientation: The orientation with which the ViewEdge must be\n" " processed.\n" " :type orientation: bool")
 
static PyObject * Chain_push_viewedge_front (BPy_Chain *self, PyObject *args, PyObject *kwds)
 

Variables

static PyMethodDef BPy_Chain_methods []
 
PyTypeObject Chain_Type
 

Function Documentation

◆ Chain_init()

static int Chain_init ( BPy_Chain self,
PyObject *  args,
PyObject *  kwds 
)
static

Definition at line 42 of file BPy_Chain.cpp.

References Freestyle::c, Chain_Type, and Id_Type.

◆ Chain_push_viewedge_back()

static PyObject* Chain_push_viewedge_back ( BPy_Chain self,
PyObject *  args,
PyObject *  kwds 
)
static

Definition at line 81 of file BPy_Chain.cpp.

References bool_from_PyBool(), and ViewEdge_Type.

◆ Chain_push_viewedge_front()

static PyObject* Chain_push_viewedge_front ( BPy_Chain self,
PyObject *  args,
PyObject *  kwds 
)
static

Definition at line 107 of file BPy_Chain.cpp.

References bool_from_PyBool(), and ViewEdge_Type.

◆ PyDoc_STRVAR() [1/3]

PyDoc_STRVAR ( Chain_doc  ,
"Class hierarchy: :class:`Interface1D ,
:class:`Curve ,
:class:`Chain`\n" "\n" "Class to represent a 1D elements issued from the chaining process. A\n" "Chain is the last step before the :class:`Stroke` and is used in the\n" "Splitting and Creation processes.\n" "\n" ".. method::__init__()\n" " __init__(brother)\n" " __init__(id)\n" "\n" " Builds a :class:`Chain` using the default  constructor,
\n" " copy constructor or from an :class:`Id`.\n" "\n" " :arg brother:A Chain object.\n" " :type brother::class:`Chain`\n" " :arg id:An Id object.\n" " :type id::class:`Id`"   
)

◆ PyDoc_STRVAR() [2/3]

PyDoc_STRVAR ( Chain_push_viewedge_back_doc  ,
".. method:: push_viewedge_back(viewedge, orientation)\n" "\n" " Adds a ViewEdge at the end of the Chain.\n" "\n" " :arg viewedge: The ViewEdge that must be added.\n" " :type viewedge: :class:`ViewEdge`\n" " :arg orientation: The orientation with which the ViewEdge must be\n" " processed.\n" " :type orientation: bool  
)

◆ PyDoc_STRVAR() [3/3]

PyDoc_STRVAR ( Chain_push_viewedge_front_doc  ,
".. method:: push_viewedge_front(viewedge, orientation)\n" "\n" " Adds a ViewEdge at the beginning of the Chain.\n" "\n" " :arg viewedge: The ViewEdge that must be added.\n" " :type viewedge: :class:`ViewEdge`\n" " :arg orientation: The orientation with which the ViewEdge must be\n" " processed.\n" " :type orientation: bool  
)

Variable Documentation

◆ BPy_Chain_methods

PyMethodDef BPy_Chain_methods[]
static
Initial value:
= {
{"push_viewedge_back",
METH_VARARGS | METH_KEYWORDS,
Chain_push_viewedge_back_doc},
{"push_viewedge_front",
METH_VARARGS | METH_KEYWORDS,
Chain_push_viewedge_front_doc},
{nullptr, nullptr, 0, nullptr},
}
static PyObject * Chain_push_viewedge_back(BPy_Chain *self, PyObject *args, PyObject *kwds)
Definition: BPy_Chain.cpp:81
static PyObject * Chain_push_viewedge_front(BPy_Chain *self, PyObject *args, PyObject *kwds)
Definition: BPy_Chain.cpp:107

Definition at line 122 of file BPy_Chain.cpp.

◆ Chain_Type

PyTypeObject Chain_Type

Definition at line 136 of file BPy_Chain.cpp.

Referenced by BPy_Chain_from_Chain(), Chain_init(), and Interface1D_Init().