|
Blender V4.3
|
Go to the source code of this file.
Macros | |
| #define | MATHUTILS_SUBTYPE_COLOR 1 |
| #define | MATHUTILS_SUBTYPE_THICKNESS 2 |
Functions | |
| int | StrokeAttribute_Init (PyObject *module) |
| PyDoc_STRVAR (StrokeAttribute_doc, "Class to define a set of attributes associated with a :class:`StrokeVertex`.\n" "The attribute set stores the color, alpha and thickness values for a Stroke\n" "Vertex.\n" "\n" ".. method:: __init__()\n" " __init__(brother)\n" " __init__(red, green, blue, alpha, thickness_right, thickness_left)\n" " __init__(attribute1, attribute2, t)\n" "\n" " Creates a :class:`StrokeAttribute` object using either a default constructor,\n" " copy constructor, overloaded constructor, or and interpolation constructor\n" " to interpolate between two :class:`StrokeAttribute` objects.\n" "\n" " :arg brother: A StrokeAttribute object to be used as a copy constructor.\n" " :type brother: :class:`StrokeAttribute`\n" " :arg red: Red component of a stroke color.\n" " :type red: float\n" " :arg green: Green component of a stroke color.\n" " :type green: float\n" " :arg blue: Blue component of a stroke color.\n" " :type blue: float\n" " :arg alpha: Alpha component of a stroke color.\n" " :type alpha: float\n" " :arg thickness_right: Stroke thickness on the right.\n" " :type thickness_right: float\n" " :arg thickness_left: Stroke thickness on the left.\n" " :type thickness_left: float\n" " :arg attribute1: The first StrokeAttribute object.\n" " :type attribute1: :class:`StrokeAttribute`\n" " :arg attribute2: The second StrokeAttribute object.\n" " :type attribute2: :class:`StrokeAttribute`\n" " :arg t: The interpolation parameter (0 <= t <= 1).\n" " :type t: float\n") | |
| static int | StrokeAttribute_init (BPy_StrokeAttribute *self, PyObject *args, PyObject *kwds) |
| static void | StrokeAttribute_dealloc (BPy_StrokeAttribute *self) |
| static PyObject * | StrokeAttribute_repr (BPy_StrokeAttribute *self) |
| PyDoc_STRVAR (StrokeAttribute_get_attribute_real_doc, ".. method:: get_attribute_real(name)\n" "\n" " Returns an attribute of float type.\n" "\n" " :arg name: The name of the attribute.\n" " :type name: str\n" " :return: The attribute value.\n" " :rtype: float\n") | |
| static PyObject * | StrokeAttribute_get_attribute_real (BPy_StrokeAttribute *self, PyObject *args, PyObject *kwds) |
| PyDoc_STRVAR (StrokeAttribute_get_attribute_vec2_doc, ".. method:: get_attribute_vec2(name)\n" "\n" " Returns an attribute of two-dimensional vector type.\n" "\n" " :arg name: The name of the attribute.\n" " :type name: str\n" " :return: The attribute value.\n" " :rtype: :class:`mathutils.Vector`\n") | |
| static PyObject * | StrokeAttribute_get_attribute_vec2 (BPy_StrokeAttribute *self, PyObject *args, PyObject *kwds) |
| PyDoc_STRVAR (StrokeAttribute_get_attribute_vec3_doc, ".. method:: get_attribute_vec3(name)\n" "\n" " Returns an attribute of three-dimensional vector type.\n" "\n" " :arg name: The name of the attribute.\n" " :type name: str\n" " :return: The attribute value.\n" " :rtype: :class:`mathutils.Vector`\n") | |
| static PyObject * | StrokeAttribute_get_attribute_vec3 (BPy_StrokeAttribute *self, PyObject *args, PyObject *kwds) |
| PyDoc_STRVAR (StrokeAttribute_has_attribute_real_doc, ".. method:: has_attribute_real(name)\n" "\n" " Checks whether the attribute name of float type is available.\n" "\n" " :arg name: The name of the attribute.\n" " :type name: str\n" " :return: True if the attribute is available.\n" " :rtype: bool\n") | |
| static PyObject * | StrokeAttribute_has_attribute_real (BPy_StrokeAttribute *self, PyObject *args, PyObject *kwds) |
| PyDoc_STRVAR (StrokeAttribute_has_attribute_vec2_doc, ".. method:: has_attribute_vec2(name)\n" "\n" " Checks whether the attribute name of two-dimensional vector type\n" " is available.\n" "\n" " :arg name: The name of the attribute.\n" " :type name: str\n" " :return: True if the attribute is available.\n" " :rtype: bool\n") | |
| static PyObject * | StrokeAttribute_has_attribute_vec2 (BPy_StrokeAttribute *self, PyObject *args, PyObject *kwds) |
| PyDoc_STRVAR (StrokeAttribute_has_attribute_vec3_doc, ".. method:: has_attribute_vec3(name)\n" "\n" " Checks whether the attribute name of three-dimensional vector\n" " type is available.\n" "\n" " :arg name: The name of the attribute.\n" " :type name: str\n" " :return: True if the attribute is available.\n" " :rtype: bool\n") | |
| static PyObject * | StrokeAttribute_has_attribute_vec3 (BPy_StrokeAttribute *self, PyObject *args, PyObject *kwds) |
| PyDoc_STRVAR (StrokeAttribute_set_attribute_real_doc, ".. method:: set_attribute_real(name, value)\n" "\n" " Adds a user-defined attribute of float type. If there is no\n" " attribute of the given name, it is added. Otherwise, the new value\n" " replaces the old one.\n" "\n" " :arg name: The name of the attribute.\n" " :type name: str\n" " :arg value: The attribute value.\n" " :type value: float\n") | |
| static PyObject * | StrokeAttribute_set_attribute_real (BPy_StrokeAttribute *self, PyObject *args, PyObject *kwds) |
| PyDoc_STRVAR (StrokeAttribute_set_attribute_vec2_doc, ".. method:: set_attribute_vec2(name, value)\n" "\n" " Adds a user-defined attribute of two-dimensional vector type. If\n" " there is no attribute of the given name, it is added. Otherwise,\n" " the new value replaces the old one.\n" "\n" " :arg name: The name of the attribute.\n" " :type name: str\n" " :arg value: The attribute value.\n" " :type value: :class:`mathutils.Vector` | tuple[float, float, float] | list[float]\n") | |
| static PyObject * | StrokeAttribute_set_attribute_vec2 (BPy_StrokeAttribute *self, PyObject *args, PyObject *kwds) |
| PyDoc_STRVAR (StrokeAttribute_set_attribute_vec3_doc, ".. method:: set_attribute_vec3(name, value)\n" "\n" " Adds a user-defined attribute of three-dimensional vector type.\n" " If there is no attribute of the given name, it is added.\n" " Otherwise, the new value replaces the old one.\n" "\n" " :arg name: The name of the attribute.\n" " :type name: str\n" " :arg value: The attribute value as a 3D vector.\n" " :type value: :class:`mathutils.Vector` | tuple[float, float, float] | list[float]\n") | |
| static PyObject * | StrokeAttribute_set_attribute_vec3 (BPy_StrokeAttribute *self, PyObject *args, PyObject *kwds) |
| static int | StrokeAttribute_mathutils_check (BaseMathObject *bmo) |
| static int | StrokeAttribute_mathutils_get (BaseMathObject *bmo, int subtype) |
| static int | StrokeAttribute_mathutils_set (BaseMathObject *bmo, int subtype) |
| static int | StrokeAttribute_mathutils_get_index (BaseMathObject *bmo, int subtype, int index) |
| static int | StrokeAttribute_mathutils_set_index (BaseMathObject *bmo, int subtype, int index) |
| void | StrokeAttribute_mathutils_register_callback () |
| PyDoc_STRVAR (StrokeAttribute_alpha_doc, "Alpha component of the stroke color.\n" "\n" ":type: float") | |
| static PyObject * | StrokeAttribute_alpha_get (BPy_StrokeAttribute *self, void *) |
| static int | StrokeAttribute_alpha_set (BPy_StrokeAttribute *self, PyObject *value, void *) |
| PyDoc_STRVAR (StrokeAttribute_color_doc, "RGB components of the stroke color.\n" "\n" ":type: :class:`mathutils.Color`") | |
| static PyObject * | StrokeAttribute_color_get (BPy_StrokeAttribute *self, void *) |
| static int | StrokeAttribute_color_set (BPy_StrokeAttribute *self, PyObject *value, void *) |
| PyDoc_STRVAR (StrokeAttribute_thickness_doc, "Right and left components of the stroke thickness.\n" "The right (left) component is the thickness on the right (left) of the vertex\n" "when following the stroke.\n" "\n" ":type: :class:`mathutils.Vector`") | |
| static PyObject * | StrokeAttribute_thickness_get (BPy_StrokeAttribute *self, void *) |
| static int | StrokeAttribute_thickness_set (BPy_StrokeAttribute *self, PyObject *value, void *) |
| PyDoc_STRVAR (StrokeAttribute_visible_doc, "The visibility flag. True if the StrokeVertex is visible.\n" "\n" ":type: bool") | |
| static PyObject * | StrokeAttribute_visible_get (BPy_StrokeAttribute *self, void *) |
| static int | StrokeAttribute_visible_set (BPy_StrokeAttribute *self, PyObject *value, void *) |
Variables | |
| static PyMethodDef | BPy_StrokeAttribute_methods [] |
| static Mathutils_Callback | StrokeAttribute_mathutils_cb |
| static uchar | StrokeAttribute_mathutils_cb_index = -1 |
| static PyGetSetDef | BPy_StrokeAttribute_getseters [] |
| PyTypeObject | StrokeAttribute_Type |
| #define MATHUTILS_SUBTYPE_COLOR 1 |
Definition at line 446 of file BPy_StrokeAttribute.cpp.
Referenced by StrokeAttribute_color_get(), StrokeAttribute_mathutils_get(), StrokeAttribute_mathutils_get_index(), StrokeAttribute_mathutils_set(), and StrokeAttribute_mathutils_set_index().
| #define MATHUTILS_SUBTYPE_THICKNESS 2 |
Definition at line 447 of file BPy_StrokeAttribute.cpp.
Referenced by StrokeAttribute_mathutils_get(), StrokeAttribute_mathutils_get_index(), StrokeAttribute_mathutils_set(), StrokeAttribute_mathutils_set_index(), and StrokeAttribute_thickness_get().
| PyDoc_STRVAR | ( | StrokeAttribute_alpha_doc | , |
| "Alpha component of the stroke color.\n" "\n" ":type: float" | ) |
| PyDoc_STRVAR | ( | StrokeAttribute_color_doc | , |
| "RGB components of the stroke color.\n" "\n" ":type: :class:`mathutils.Color`" | ) |
| PyDoc_STRVAR | ( | StrokeAttribute_doc | , |
| "Class to define a set of attributes associated with a :class:`StrokeVertex`.\n" "The attribute set stores the | color, | ||
| alpha and thickness values for a Stroke\n" "Vertex.\n" "\n" ".. method::__init__()\n" " __init__(brother)\n" " __init__(red, green, blue, alpha, thickness_right, thickness_left)\n" " __init__(attribute1, attribute2, t)\n" "\n" " Creates a :class:`StrokeAttribute` object using either a default | constructor, | ||
| \n" " copy | constructor, | ||
| overloaded | constructor, | ||
| or and interpolation constructor\n" " to interpolate between two :class:`StrokeAttribute` objects.\n" "\n" " :arg brother:A StrokeAttribute object to be used as a copy constructor.\n" " :type brother::class:`StrokeAttribute`\n" " :arg red:Red component of a stroke color.\n" " :type red:float\n" " :arg green:Green component of a stroke color.\n" " :type green:float\n" " :arg blue:Blue component of a stroke color.\n" " :type blue:float\n" " :arg alpha:Alpha component of a stroke color.\n" " :type alpha:float\n" " :arg thickness_right:Stroke thickness on the right.\n" " :type thickness_right:float\n" " :arg thickness_left:Stroke thickness on the left.\n" " :type thickness_left:float\n" " :arg attribute1:The first StrokeAttribute object.\n" " :type attribute1::class:`StrokeAttribute`\n" " :arg attribute2:The second StrokeAttribute object.\n" " :type attribute2::class:`StrokeAttribute`\n" " :arg t:The interpolation parameter(0<=t<=1).\n" " :type t:float\n" | ) |
| PyDoc_STRVAR | ( | StrokeAttribute_get_attribute_real_doc | , |
| ".. method:: get_attribute_real(name)\n" "\n" " Returns an attribute of float type.\n" "\n" " :arg name: The name of the attribute.\n" " :type name: str\n" " :return: The attribute value.\n" " :rtype: float\n" | ) |
| PyDoc_STRVAR | ( | StrokeAttribute_get_attribute_vec2_doc | , |
| ".. method:: get_attribute_vec2(name)\n" "\n" " Returns an attribute of two-dimensional vector type.\n" "\n" " :arg name: The name of the attribute.\n" " :type name: str\n" " :return: The attribute value.\n" " :rtype: :class:`mathutils.Vector`\n" | ) |
| PyDoc_STRVAR | ( | StrokeAttribute_get_attribute_vec3_doc | , |
| ".. method:: get_attribute_vec3(name)\n" "\n" " Returns an attribute of three-dimensional vector type.\n" "\n" " :arg name: The name of the attribute.\n" " :type name: str\n" " :return: The attribute value.\n" " :rtype: :class:`mathutils.Vector`\n" | ) |
| PyDoc_STRVAR | ( | StrokeAttribute_has_attribute_real_doc | , |
| ".. method:: has_attribute_real(name)\n" "\n" " Checks whether the attribute name of float type is available.\n" "\n" " :arg name: The name of the attribute.\n" " :type name: str\n" " :return: True if the attribute is available.\n" " :rtype: bool\n" | ) |
| PyDoc_STRVAR | ( | StrokeAttribute_has_attribute_vec2_doc | , |
| ".. method:: has_attribute_vec2(name)\n" "\n" " Checks whether the attribute name of two-dimensional vector type\n" " is available.\n" "\n" " :arg name: The name of the attribute.\n" " :type name: str\n" " :return: True if the attribute is available.\n" " :rtype: bool\n" | ) |
| PyDoc_STRVAR | ( | StrokeAttribute_has_attribute_vec3_doc | , |
| ".. method:: has_attribute_vec3(name)\n" "\n" " Checks whether the attribute name of three-dimensional vector\n" " type is available.\n" "\n" " :arg name: The name of the attribute.\n" " :type name: str\n" " :return: True if the attribute is available.\n" " :rtype: bool\n" | ) |
| PyDoc_STRVAR | ( | StrokeAttribute_set_attribute_real_doc | , |
| ".. method:: set_attribute_real(name, value)\n" "\n" " Adds a user-defined attribute of float type. If there is no\n" " attribute of the given | name, | ||
| it is added. | Otherwise, | ||
| the new value\n" " replaces the old one.\n" "\n" " :arg name:The name of the attribute.\n" " :type name:str\n" " :arg value:The attribute value.\n" " :type value:float\n" | ) |
| PyDoc_STRVAR | ( | StrokeAttribute_set_attribute_vec2_doc | , |
| ".. method:: set_attribute_vec2(name, value)\n" "\n" " Adds a user-defined attribute of two-dimensional vector type. If\n" " there is no attribute of the given | name, | ||
| it is added. | Otherwise, | ||
| \n" " the new value replaces the old one.\n" "\n" " :arg name:The name of the attribute.\n" " :type name:str\n" " :arg value:The attribute value.\n" " :type value::class:`mathutils.Vector`|tuple|list\n" | [float, float, float][float] ) |
| PyDoc_STRVAR | ( | StrokeAttribute_set_attribute_vec3_doc | , |
| ".. method:: set_attribute_vec3(name, value)\n" "\n" " Adds a user-defined attribute of three-dimensional vector type.\n" " If there is no attribute of the given | name, | ||
| it is added.\n" " | Otherwise, | ||
| the new value replaces the old one.\n" "\n" " :arg name:The name of the attribute.\n" " :type name:str\n" " :arg value:The attribute value as a 3D vector.\n" " :type value::class:`mathutils.Vector`|tuple|list\n" | [float, float, float][float] ) |
| PyDoc_STRVAR | ( | StrokeAttribute_thickness_doc | , |
| "Right and left components of the stroke thickness.\n" "The right (left) component is the thickness on the right (left) of the vertex\n" "when following the stroke.\n" "\n" ":type: :class:`mathutils.Vector`" | ) |
| PyDoc_STRVAR | ( | StrokeAttribute_visible_doc | , |
| "The visibility flag. True if the StrokeVertex is visible.\n" "\n" ":type: bool" | ) |
|
static |
Definition at line 576 of file BPy_StrokeAttribute.cpp.
References self.
|
static |
Definition at line 581 of file BPy_StrokeAttribute.cpp.
References self.
|
static |
Definition at line 602 of file BPy_StrokeAttribute.cpp.
References Color_CreatePyObject_cb(), MATHUTILS_SUBTYPE_COLOR, self, and StrokeAttribute_mathutils_cb_index.
|
static |
Definition at line 608 of file BPy_StrokeAttribute.cpp.
References mathutils_array_parse(), self, and v.
|
static |
Definition at line 131 of file BPy_StrokeAttribute.cpp.
References self.
|
static |
Definition at line 161 of file BPy_StrokeAttribute.cpp.
References self.
|
static |
Definition at line 187 of file BPy_StrokeAttribute.cpp.
References self, and Vector_from_Vec2f().
|
static |
Definition at line 213 of file BPy_StrokeAttribute.cpp.
References self, and Vector_from_Vec3f().
|
static |
Definition at line 239 of file BPy_StrokeAttribute.cpp.
References PyBool_from_bool(), and self.
|
static |
Definition at line 265 of file BPy_StrokeAttribute.cpp.
References PyBool_from_bool(), and self.
|
static |
Definition at line 291 of file BPy_StrokeAttribute.cpp.
References PyBool_from_bool(), and self.
| int StrokeAttribute_Init | ( | PyObject * | module | ) |
Definition at line 22 of file BPy_StrokeAttribute.cpp.
References module, StrokeAttribute_mathutils_register_callback(), and StrokeAttribute_Type.
Referenced by Freestyle_Init().
|
static |
Definition at line 76 of file BPy_StrokeAttribute.cpp.
References green, red, self, and StrokeAttribute_Type.
|
static |
Definition at line 449 of file BPy_StrokeAttribute.cpp.
References BPy_StrokeAttribute_Check.
|
static |
Definition at line 457 of file BPy_StrokeAttribute.cpp.
References MATHUTILS_SUBTYPE_COLOR, MATHUTILS_SUBTYPE_THICKNESS, and self.
|
static |
Definition at line 492 of file BPy_StrokeAttribute.cpp.
References MATHUTILS_SUBTYPE_COLOR, MATHUTILS_SUBTYPE_THICKNESS, and self.
| void StrokeAttribute_mathutils_register_callback | ( | ) |
Definition at line 562 of file BPy_StrokeAttribute.cpp.
References Mathutils_RegisterCallback(), StrokeAttribute_mathutils_cb, and StrokeAttribute_mathutils_cb_index.
Referenced by StrokeAttribute_Init().
|
static |
Definition at line 476 of file BPy_StrokeAttribute.cpp.
References MATHUTILS_SUBTYPE_COLOR, MATHUTILS_SUBTYPE_THICKNESS, and self.
|
static |
Definition at line 529 of file BPy_StrokeAttribute.cpp.
References b, MATHUTILS_SUBTYPE_COLOR, MATHUTILS_SUBTYPE_THICKNESS, and self.
|
static |
Definition at line 139 of file BPy_StrokeAttribute.cpp.
References self.
|
static |
Definition at line 318 of file BPy_StrokeAttribute.cpp.
References self.
|
static |
Definition at line 347 of file BPy_StrokeAttribute.cpp.
References self, and Vec2f_ptr_from_PyObject().
|
static |
Definition at line 382 of file BPy_StrokeAttribute.cpp.
References self, and Vec3f_ptr_from_PyObject().
|
static |
Definition at line 629 of file BPy_StrokeAttribute.cpp.
References MATHUTILS_SUBTYPE_THICKNESS, self, StrokeAttribute_mathutils_cb_index, and Vector_CreatePyObject_cb().
|
static |
Definition at line 635 of file BPy_StrokeAttribute.cpp.
References mathutils_array_parse(), self, and v.
|
static |
Definition at line 654 of file BPy_StrokeAttribute.cpp.
References PyBool_from_bool(), and self.
|
static |
Definition at line 659 of file BPy_StrokeAttribute.cpp.
References bool_from_PyBool(), and self.
|
static |
Definition at line 671 of file BPy_StrokeAttribute.cpp.
|
static |
Definition at line 403 of file BPy_StrokeAttribute.cpp.
|
static |
Definition at line 552 of file BPy_StrokeAttribute.cpp.
Referenced by StrokeAttribute_mathutils_register_callback().
|
static |
Definition at line 560 of file BPy_StrokeAttribute.cpp.
Referenced by StrokeAttribute_color_get(), StrokeAttribute_mathutils_register_callback(), and StrokeAttribute_thickness_get().
| PyTypeObject StrokeAttribute_Type |
Definition at line 697 of file BPy_StrokeAttribute.cpp.
Referenced by BPy_StrokeAttribute_from_StrokeAttribute(), StrokeAttribute_Init(), StrokeAttribute_init(), and StrokeVertex_init().