Blender  V3.3
Functions | Variables
BPy_SShape.cpp File Reference
#include "BPy_SShape.h"
#include "BPy_BBox.h"
#include "BPy_Convert.h"
#include "BPy_Id.h"
#include "Interface0D/BPy_SVertex.h"
#include "Interface1D/BPy_FEdge.h"

Go to the source code of this file.

Functions

int SShape_Init (PyObject *module)
 
 PyDoc_STRVAR (SShape_doc, "Class to define a feature shape. It is the gathering of feature\n" "elements from an identified input shape.\n" "\n" ".. method:: __init__()\n" " __init__(brother)\n" "\n" " Creates a :class:`SShape` class using either a default constructor or copy constructor.\n" "\n" " :arg brother: An SShape object.\n" " :type brother: :class:`SShape`")
 
static int SShape_init (BPy_SShape *self, PyObject *args, PyObject *kwds)
 
static void SShape_dealloc (BPy_SShape *self)
 
static PyObject * SShape_repr (BPy_SShape *self)
 
static PyObject * SShape_add_edge (BPy_SShape *self, PyObject *args, PyObject *kwds)
 
 PyDoc_STRVAR (SShape_add_vertex_doc, ".. method:: add_vertex(vertex)\n" "\n" " Adds an SVertex to the list of SVertex of this Shape. The SShape\n" " attribute of the SVertex is also set to this SShape.\n" "\n" " :arg vertex: An SVertex object.\n" " :type vertex: :class:`SVertex`")
 
static PyObject * SShape_add_vertex (BPy_SShape *self, PyObject *args, PyObject *kwds)
 
 PyDoc_STRVAR (SShape_compute_bbox_doc, ".. method:: compute_bbox()\n" "\n" " Compute the bbox of the SShape.")
 
static PyObject * SShape_compute_bbox (BPy_SShape *self)
 
 PyDoc_STRVAR (SShape_id_doc, "The Id of this SShape.\n" "\n" ":type: :class:`Id`")
 
static PyObject * SShape_id_get (BPy_SShape *self, void *UNUSED(closure))
 
static int SShape_id_set (BPy_SShape *self, PyObject *value, void *UNUSED(closure))
 
 PyDoc_STRVAR (SShape_name_doc, "The name of the SShape.\n" "\n" ":type: str")
 
static PyObject * SShape_name_get (BPy_SShape *self, void *UNUSED(closure))
 
static int SShape_name_set (BPy_SShape *self, PyObject *value, void *UNUSED(closure))
 
 PyDoc_STRVAR (SShape_bbox_doc, "The bounding box of the SShape.\n" "\n" ":type: :class:`BBox`")
 
static PyObject * SShape_bbox_get (BPy_SShape *self, void *UNUSED(closure))
 
static int SShape_bbox_set (BPy_SShape *self, PyObject *value, void *UNUSED(closure))
 
 PyDoc_STRVAR (SShape_vertices_doc, "The list of vertices constituting this SShape.\n" "\n" ":type: List of :class:`SVertex` objects")
 
static PyObject * SShape_vertices_get (BPy_SShape *self, void *UNUSED(closure))
 
 PyDoc_STRVAR (SShape_edges_doc, "The list of edges constituting this SShape.\n" "\n" ":type: List of :class:`FEdge` objects")
 
static PyObject * SShape_edges_get (BPy_SShape *self, void *UNUSED(closure))
 

Variables

static char SShape_add_edge_doc []
 
static PyMethodDef BPy_SShape_methods []
 
static PyGetSetDef BPy_SShape_getseters []
 
PyTypeObject SShape_Type
 

Function Documentation

◆ PyDoc_STRVAR() [1/8]

PyDoc_STRVAR ( SShape_add_vertex_doc  ,
".. method:: add_vertex(vertex)\n" "\n" " Adds an SVertex to the list of SVertex of this Shape. The SShape\n" " attribute of the SVertex is also set to this SShape.\n" "\n" " :arg vertex: An SVertex object.\n" " :type vertex: :class:`SVertex`"   
)

◆ PyDoc_STRVAR() [2/8]

PyDoc_STRVAR ( SShape_bbox_doc  ,
"The bounding box of the SShape.\n" "\n" ":type: :class:`BBox`"   
)

◆ PyDoc_STRVAR() [3/8]

PyDoc_STRVAR ( SShape_compute_bbox_doc  ,
".. method:: compute_bbox()\n" "\n" " Compute the bbox of the SShape."   
)

◆ PyDoc_STRVAR() [4/8]

PyDoc_STRVAR ( SShape_doc  ,
"Class to define a feature shape. It is the gathering of feature\n" "elements from an identified input shape.\n" "\n" ".. method:: __init__()\n" " __init__(brother)\n" "\n" " Creates a :class:`SShape` class using either a default constructor or copy constructor.\n" "\n" " :arg brother: An SShape object.\n" " :type brother: :class:`SShape`"   
)

◆ PyDoc_STRVAR() [5/8]

PyDoc_STRVAR ( SShape_edges_doc  ,
"The list of edges constituting this SShape.\n" "\n" ":type: List of :class:`FEdge` objects"   
)

◆ PyDoc_STRVAR() [6/8]

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

◆ PyDoc_STRVAR() [7/8]

PyDoc_STRVAR ( SShape_name_doc  ,
"The name of the SShape.\n" "\n" ":type: str  
)

◆ PyDoc_STRVAR() [8/8]

PyDoc_STRVAR ( SShape_vertices_doc  ,
"The list of vertices constituting this SShape.\n" "\n" ":type: List of :class:`SVertex` objects"   
)

◆ SShape_add_edge()

static PyObject* SShape_add_edge ( BPy_SShape self,
PyObject *  args,
PyObject *  kwds 
)
static

Definition at line 93 of file BPy_SShape.cpp.

References FEdge_Type.

◆ SShape_add_vertex()

static PyObject* SShape_add_vertex ( BPy_SShape self,
PyObject *  args,
PyObject *  kwds 
)
static

Definition at line 114 of file BPy_SShape.cpp.

References SVertex_Type.

◆ SShape_bbox_get()

static PyObject* SShape_bbox_get ( BPy_SShape self,
void UNUSEDclosure 
)
static

Definition at line 200 of file BPy_SShape.cpp.

References BPy_BBox_from_BBox(), and self.

◆ SShape_bbox_set()

static int SShape_bbox_set ( BPy_SShape self,
PyObject *  value,
void UNUSEDclosure 
)
static

Definition at line 206 of file BPy_SShape.cpp.

References BPy_BBox_Check.

◆ SShape_compute_bbox()

static PyObject* SShape_compute_bbox ( BPy_SShape self)
static

Definition at line 131 of file BPy_SShape.cpp.

◆ SShape_dealloc()

static void SShape_dealloc ( BPy_SShape self)
static

Definition at line 72 of file BPy_SShape.cpp.

References self.

◆ SShape_edges_get()

static PyObject* SShape_edges_get ( BPy_SShape self,
void UNUSEDclosure 
)
static

Definition at line 241 of file BPy_SShape.cpp.

References Any_BPy_FEdge_from_FEdge().

◆ SShape_id_get()

static PyObject* SShape_id_get ( BPy_SShape self,
void UNUSEDclosure 
)
static

Definition at line 158 of file BPy_SShape.cpp.

References BPy_Id_from_Id(), id, and self.

◆ SShape_id_set()

static int SShape_id_set ( BPy_SShape self,
PyObject *  value,
void UNUSEDclosure 
)
static

Definition at line 164 of file BPy_SShape.cpp.

References BPy_Id_Check.

◆ SShape_init()

static int SShape_init ( BPy_SShape self,
PyObject *  args,
PyObject *  kwds 
)
static

Definition at line 54 of file BPy_SShape.cpp.

References SShape_Type.

◆ SShape_Init()

int SShape_Init ( PyObject *  module)

Definition at line 24 of file BPy_SShape.cpp.

References module, and SShape_Type.

Referenced by Freestyle_Init().

◆ SShape_name_get()

static PyObject* SShape_name_get ( BPy_SShape self,
void UNUSEDclosure 
)
static

Definition at line 179 of file BPy_SShape.cpp.

References self.

◆ SShape_name_set()

static int SShape_name_set ( BPy_SShape self,
PyObject *  value,
void UNUSEDclosure 
)
static

Definition at line 184 of file BPy_SShape.cpp.

◆ SShape_repr()

static PyObject* SShape_repr ( BPy_SShape self)
static

Definition at line 80 of file BPy_SShape.cpp.

References self.

◆ SShape_vertices_get()

static PyObject* SShape_vertices_get ( BPy_SShape self,
void UNUSEDclosure 
)
static

Definition at line 221 of file BPy_SShape.cpp.

References BPy_SVertex_from_SVertex().

Variable Documentation

◆ BPy_SShape_getseters

PyGetSetDef BPy_SShape_getseters[]
static
Initial value:
= {
{"id", (getter)SShape_id_get, (setter)SShape_id_set, SShape_id_doc, nullptr},
{"name", (getter)SShape_name_get, (setter)SShape_name_set, SShape_name_doc, nullptr},
{"bbox", (getter)SShape_bbox_get, (setter)SShape_bbox_set, SShape_bbox_doc, nullptr},
{"edges", (getter)SShape_edges_get, (setter) nullptr, SShape_edges_doc, nullptr},
{"vertices", (getter)SShape_vertices_get, (setter) nullptr, SShape_vertices_doc, nullptr},
{nullptr, nullptr, nullptr, nullptr, nullptr}
}
static PyObject * SShape_id_get(BPy_SShape *self, void *UNUSED(closure))
Definition: BPy_SShape.cpp:158
static int SShape_name_set(BPy_SShape *self, PyObject *value, void *UNUSED(closure))
Definition: BPy_SShape.cpp:184
static PyObject * SShape_bbox_get(BPy_SShape *self, void *UNUSED(closure))
Definition: BPy_SShape.cpp:200
static int SShape_bbox_set(BPy_SShape *self, PyObject *value, void *UNUSED(closure))
Definition: BPy_SShape.cpp:206
static PyObject * SShape_edges_get(BPy_SShape *self, void *UNUSED(closure))
Definition: BPy_SShape.cpp:241
static int SShape_id_set(BPy_SShape *self, PyObject *value, void *UNUSED(closure))
Definition: BPy_SShape.cpp:164
static PyObject * SShape_vertices_get(BPy_SShape *self, void *UNUSED(closure))
Definition: BPy_SShape.cpp:221
static PyObject * SShape_name_get(BPy_SShape *self, void *UNUSED(closure))
Definition: BPy_SShape.cpp:179

Definition at line 256 of file BPy_SShape.cpp.

◆ BPy_SShape_methods

PyMethodDef BPy_SShape_methods[]
static
Initial value:
= {
{"add_edge", (PyCFunction)SShape_add_edge, METH_VARARGS | METH_KEYWORDS, SShape_add_edge_doc},
{"add_vertex",
(PyCFunction)SShape_add_vertex,
METH_VARARGS | METH_KEYWORDS,
SShape_add_vertex_doc},
{"compute_bbox", (PyCFunction)SShape_compute_bbox, METH_NOARGS, SShape_compute_bbox_doc},
{nullptr, nullptr, 0, nullptr},
}
static char SShape_add_edge_doc[]
Definition: BPy_SShape.cpp:85
static PyObject * SShape_compute_bbox(BPy_SShape *self)
Definition: BPy_SShape.cpp:131
static PyObject * SShape_add_edge(BPy_SShape *self, PyObject *args, PyObject *kwds)
Definition: BPy_SShape.cpp:93
static PyObject * SShape_add_vertex(BPy_SShape *self, PyObject *args, PyObject *kwds)
Definition: BPy_SShape.cpp:114

Definition at line 141 of file BPy_SShape.cpp.

◆ SShape_add_edge_doc

char SShape_add_edge_doc[]
static
Initial value:
=
".. method:: add_edge(edge)\n"
"\n"
" Adds an FEdge to the list of FEdges.\n"
"\n"
" :arg edge: An FEdge object.\n"
" :type edge: :class:`FEdge`\n"

Definition at line 85 of file BPy_SShape.cpp.

◆ SShape_Type

PyTypeObject SShape_Type

Definition at line 267 of file BPy_SShape.cpp.

Referenced by BPy_SShape_from_SShape(), SShape_init(), SShape_Init(), and ViewShape_init().