Blender V4.3
BPy_ViewShape.cpp File Reference

Go to the source code of this file.

Functions

int ViewShape_Init (PyObject *module)
 
 PyDoc_STRVAR (ViewShape_doc, "Class gathering the elements of the ViewMap (i.e., :class:`ViewVertex`\n" "and :class:`ViewEdge`) that are issued from the same input shape.\n" "\n" ".. method:: __init__()\n" " __init__(brother)\n" " __init__(sshape)\n" "\n" " Builds a :class:`ViewShape` using the default constructor,\n" " copy constructor, or from a :class:`SShape`.\n" "\n" " :arg brother: A ViewShape object.\n" " :type brother: :class:`ViewShape`\n" " :arg sshape: An SShape object.\n" " :type sshape: :class:`SShape`")
 
static int ViewShape_init (BPy_ViewShape *self, PyObject *args, PyObject *kwds)
 
static void ViewShape_dealloc (BPy_ViewShape *self)
 
static PyObject * ViewShape_repr (BPy_ViewShape *self)
 
 PyDoc_STRVAR (ViewShape_add_edge_doc, ".. method:: add_edge(edge)\n" "\n" " Adds a ViewEdge to the list of ViewEdge objects.\n" "\n" " :arg edge: A ViewEdge object.\n" " :type edge: :class:`ViewEdge`\n")
 
static PyObject * ViewShape_add_edge (BPy_ViewShape *self, PyObject *args, PyObject *kwds)
 
 PyDoc_STRVAR (ViewShape_add_vertex_doc, ".. method:: add_vertex(vertex)\n" "\n" " Adds a ViewVertex to the list of the ViewVertex objects.\n" "\n" " :arg vertex: A ViewVertex object.\n" " :type vertex: :class:`ViewVertex`")
 
static PyObject * ViewShape_add_vertex (BPy_ViewShape *self, PyObject *args, PyObject *kwds)
 
 PyDoc_STRVAR (ViewShape_sshape_doc, "The SShape on top of which this ViewShape is built.\n" "\n" ":type: :class:`SShape`")
 
static PyObject * ViewShape_sshape_get (BPy_ViewShape *self, void *)
 
static int ViewShape_sshape_set (BPy_ViewShape *self, PyObject *value, void *)
 
 PyDoc_STRVAR (ViewShape_vertices_doc, "The list of ViewVertex objects contained in this ViewShape.\n" "\n" ":type: List of :class:`ViewVertex`")
 
static PyObject * ViewShape_vertices_get (BPy_ViewShape *self, void *)
 
static int ViewShape_vertices_set (BPy_ViewShape *self, PyObject *value, void *)
 
 PyDoc_STRVAR (ViewShape_edges_doc, "The list of ViewEdge objects contained in this ViewShape.\n" "\n" ":type: List of :class:`ViewEdge`")
 
static PyObject * ViewShape_edges_get (BPy_ViewShape *self, void *)
 
static int ViewShape_edges_set (BPy_ViewShape *self, PyObject *value, void *)
 
 PyDoc_STRVAR (ViewShape_name_doc, "The name of the ViewShape.\n" "\n" ":type: str")
 
static PyObject * ViewShape_name_get (BPy_ViewShape *self, void *)
 
 PyDoc_STRVAR (ViewShape_library_path_doc, "The library path of the ViewShape.\n" "\n" ":type: str, or None if the ViewShape is not part of a library")
 
static PyObject * ViewShape_library_path_get (BPy_ViewShape *self, void *)
 
 PyDoc_STRVAR (ViewShape_id_doc, "The Id of this ViewShape.\n" "\n" ":type: :class:`Id`")
 
static PyObject * ViewShape_id_get (BPy_ViewShape *self, void *)
 

Variables

static PyMethodDef BPy_ViewShape_methods []
 
static PyGetSetDef BPy_ViewShape_getseters []
 
PyTypeObject ViewShape_Type
 

Function Documentation

◆ PyDoc_STRVAR() [1/9]

PyDoc_STRVAR ( ViewShape_add_edge_doc ,
".. method:: add_edge(edge)\n" "\n" " Adds a ViewEdge to the list of ViewEdge objects.\n" "\n" " :arg edge: A ViewEdge object.\n" " :type edge: :class:`ViewEdge`\n"  )

◆ PyDoc_STRVAR() [2/9]

PyDoc_STRVAR ( ViewShape_add_vertex_doc ,
".. method:: add_vertex(vertex)\n" "\n" " Adds a ViewVertex to the list of the ViewVertex objects.\n" "\n" " :arg vertex: A ViewVertex object.\n" " :type vertex: :class:`ViewVertex`"  )

◆ PyDoc_STRVAR() [3/9]

PyDoc_STRVAR ( ViewShape_doc ,
"Class gathering the elements of the ViewMap (i.e., :class:`ViewVertex`\n" "and :class:`ViewEdge`) that are issued from the same input shape.\n" "\n" ".. method:: __init__()\n" " __init__(brother)\n" " __init__(sshape)\n" "\n" " Builds a :class:`ViewShape` using the default constructor,
\n" " copy constructor,
or from a :class:`SShape`.\n" "\n" " :arg brother:A ViewShape object.\n" " :type brother::class:`ViewShape`\n" " :arg sshape:An SShape object.\n" " :type sshape::class:`SShape`"  )

◆ PyDoc_STRVAR() [4/9]

PyDoc_STRVAR ( ViewShape_edges_doc ,
"The list of ViewEdge objects contained in this ViewShape.\n" "\n" ":type: List of :class:`ViewEdge`"  )

◆ PyDoc_STRVAR() [5/9]

PyDoc_STRVAR ( ViewShape_id_doc ,
"The Id of this ViewShape.\n" "\n" ":type: :class:`Id`"  )

◆ PyDoc_STRVAR() [6/9]

PyDoc_STRVAR ( ViewShape_library_path_doc ,
"The library path of the ViewShape.\n" "\n" ":type: str,
or None if the ViewShape is not part of a library"  )

◆ PyDoc_STRVAR() [7/9]

PyDoc_STRVAR ( ViewShape_name_doc ,
"The name of the ViewShape.\n" "\n" ":type: str"  )

◆ PyDoc_STRVAR() [8/9]

PyDoc_STRVAR ( ViewShape_sshape_doc ,
"The SShape on top of which this ViewShape is built.\n" "\n" ":type: :class:`SShape`"  )

◆ PyDoc_STRVAR() [9/9]

PyDoc_STRVAR ( ViewShape_vertices_doc ,
"The list of ViewVertex objects contained in this ViewShape.\n" "\n" ":type: List of :class:`ViewVertex`"  )

◆ ViewShape_add_edge()

static PyObject * ViewShape_add_edge ( BPy_ViewShape * self,
PyObject * args,
PyObject * kwds )
static

Definition at line 121 of file BPy_ViewShape.cpp.

References self, and ViewEdge_Type.

◆ ViewShape_add_vertex()

static PyObject * ViewShape_add_vertex ( BPy_ViewShape * self,
PyObject * args,
PyObject * kwds )
static

Definition at line 143 of file BPy_ViewShape.cpp.

References self, and ViewVertex_Type.

◆ ViewShape_dealloc()

static void ViewShape_dealloc ( BPy_ViewShape * self)
static

Definition at line 94 of file BPy_ViewShape.cpp.

References self.

◆ ViewShape_edges_get()

static PyObject * ViewShape_edges_get ( BPy_ViewShape * self,
void *  )
static

Definition at line 257 of file BPy_ViewShape.cpp.

References BPy_ViewEdge_from_ViewEdge(), and self.

◆ ViewShape_edges_set()

static int ViewShape_edges_set ( BPy_ViewShape * self,
PyObject * value,
void *  )
static

Definition at line 270 of file BPy_ViewShape.cpp.

References BPy_ViewEdge_Check, self, and v.

◆ ViewShape_id_get()

static PyObject * ViewShape_id_get ( BPy_ViewShape * self,
void *  )
static

Definition at line 326 of file BPy_ViewShape.cpp.

References BPy_Id_from_Id(), and self.

◆ ViewShape_Init()

int ViewShape_Init ( PyObject * module)

Definition at line 28 of file BPy_ViewShape.cpp.

References module, and ViewShape_Type.

Referenced by Freestyle_Init().

◆ ViewShape_init()

static int ViewShape_init ( BPy_ViewShape * self,
PyObject * args,
PyObject * kwds )
static

Definition at line 62 of file BPy_ViewShape.cpp.

References BPy_SShape::borrowed, self, BPy_SShape::ss, SShape_Type, and ViewShape_Type.

◆ ViewShape_library_path_get()

static PyObject * ViewShape_library_path_get ( BPy_ViewShape * self,
void *  )
static

Definition at line 314 of file BPy_ViewShape.cpp.

References self.

◆ ViewShape_name_get()

static PyObject * ViewShape_name_get ( BPy_ViewShape * self,
void *  )
static

Definition at line 302 of file BPy_ViewShape.cpp.

References self.

◆ ViewShape_repr()

static PyObject * ViewShape_repr ( BPy_ViewShape * self)
static

Definition at line 106 of file BPy_ViewShape.cpp.

References self.

◆ ViewShape_sshape_get()

static PyObject * ViewShape_sshape_get ( BPy_ViewShape * self,
void *  )
static

Definition at line 178 of file BPy_ViewShape.cpp.

References BPy_SShape_from_SShape(), and self.

◆ ViewShape_sshape_set()

static int ViewShape_sshape_set ( BPy_ViewShape * self,
PyObject * value,
void *  )
static

Definition at line 187 of file BPy_ViewShape.cpp.

References BPy_SShape::borrowed, BPy_SShape_Check, self, and BPy_SShape::ss.

◆ ViewShape_vertices_get()

static PyObject * ViewShape_vertices_get ( BPy_ViewShape * self,
void *  )
static

Definition at line 212 of file BPy_ViewShape.cpp.

References Any_BPy_ViewVertex_from_ViewVertex(), and self.

◆ ViewShape_vertices_set()

static int ViewShape_vertices_set ( BPy_ViewShape * self,
PyObject * value,
void *  )
static

Definition at line 225 of file BPy_ViewShape.cpp.

References BPy_ViewVertex_Check, self, and v.

Variable Documentation

◆ BPy_ViewShape_getseters

PyGetSetDef BPy_ViewShape_getseters[]
static
Initial value:
= {
{"sshape",
ViewShape_sshape_doc,
nullptr},
{"vertices",
ViewShape_vertices_doc,
nullptr},
{"edges",
ViewShape_edges_doc,
nullptr},
{"name", (getter)ViewShape_name_get, (setter) nullptr, ViewShape_name_doc, nullptr},
{"library_path",
(setter) nullptr,
ViewShape_library_path_doc,
nullptr},
{"id", (getter)ViewShape_id_get, (setter) nullptr, ViewShape_id_doc, nullptr},
{nullptr, nullptr, nullptr, nullptr, nullptr}
}
static PyObject * ViewShape_sshape_get(BPy_ViewShape *self, void *)
static PyObject * ViewShape_edges_get(BPy_ViewShape *self, void *)
static PyObject * ViewShape_id_get(BPy_ViewShape *self, void *)
static PyObject * ViewShape_library_path_get(BPy_ViewShape *self, void *)
static int ViewShape_vertices_set(BPy_ViewShape *self, PyObject *value, void *)
static PyObject * ViewShape_vertices_get(BPy_ViewShape *self, void *)
static int ViewShape_edges_set(BPy_ViewShape *self, PyObject *value, void *)
static PyObject * ViewShape_name_get(BPy_ViewShape *self, void *)
static int ViewShape_sshape_set(BPy_ViewShape *self, PyObject *value, void *)

Definition at line 332 of file BPy_ViewShape.cpp.

◆ BPy_ViewShape_methods

PyMethodDef BPy_ViewShape_methods[]
static
Initial value:
= {
{"add_edge",
(PyCFunction)ViewShape_add_edge,
METH_VARARGS | METH_KEYWORDS,
ViewShape_add_edge_doc},
{"add_vertex",
(PyCFunction)ViewShape_add_vertex,
METH_VARARGS | METH_KEYWORDS,
ViewShape_add_vertex_doc},
{nullptr, nullptr, 0, nullptr},
}
static PyObject * ViewShape_add_edge(BPy_ViewShape *self, PyObject *args, PyObject *kwds)
static PyObject * ViewShape_add_vertex(BPy_ViewShape *self, PyObject *args, PyObject *kwds)

Definition at line 157 of file BPy_ViewShape.cpp.

◆ ViewShape_Type

PyTypeObject ViewShape_Type

Definition at line 360 of file BPy_ViewShape.cpp.

Referenced by BPy_ViewShape_from_ViewShape(), ViewShape_Init(), and ViewShape_init().