Blender
V3.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`, list or tuple of 2 real numbers\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.\n" " :type value: :class:`mathutils.Vector`, list or tuple of 3 real numbers\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 *UNUSED(closure)) |
static int | StrokeAttribute_alpha_set (BPy_StrokeAttribute *self, PyObject *value, void *UNUSED(closure)) |
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 *UNUSED(closure)) |
static int | StrokeAttribute_color_set (BPy_StrokeAttribute *self, PyObject *value, void *UNUSED(closure)) |
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 *UNUSED(closure)) |
static int | StrokeAttribute_thickness_set (BPy_StrokeAttribute *self, PyObject *value, void *UNUSED(closure)) |
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 *UNUSED(closure)) |
static int | StrokeAttribute_visible_set (BPy_StrokeAttribute *self, PyObject *value, void *UNUSED(closure)) |
Variables | |
static PyMethodDef | BPy_StrokeAttribute_methods [] |
static Mathutils_Callback | StrokeAttribute_mathutils_cb |
static unsigned char | StrokeAttribute_mathutils_cb_index = -1 |
static PyGetSetDef | BPy_StrokeAttribute_getseters [] |
PyTypeObject | StrokeAttribute_Type |
#define MATHUTILS_SUBTYPE_COLOR 1 |
Definition at line 422 of file BPy_StrokeAttribute.cpp.
#define MATHUTILS_SUBTYPE_THICKNESS 2 |
Definition at line 423 of file BPy_StrokeAttribute.cpp.
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` | , | ||
list or tuple of 2 real numbers\n" | |||
) |
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.\n" " :type value::class:`mathutils.Vector` | , | ||
list or tuple of 3 real numbers\n" | |||
) |
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 548 of file BPy_StrokeAttribute.cpp.
References self.
|
static |
Definition at line 553 of file BPy_StrokeAttribute.cpp.
|
static |
Definition at line 572 of file BPy_StrokeAttribute.cpp.
References Color_CreatePyObject_cb(), MATHUTILS_SUBTYPE_COLOR, and StrokeAttribute_mathutils_cb_index.
|
static |
Definition at line 578 of file BPy_StrokeAttribute.cpp.
References mathutils_array_parse(), and v.
|
static |
Definition at line 125 of file BPy_StrokeAttribute.cpp.
References self.
|
static |
Definition at line 153 of file BPy_StrokeAttribute.cpp.
References Freestyle::a.
|
static |
Definition at line 177 of file BPy_StrokeAttribute.cpp.
References Freestyle::a, and Vector_from_Vec2f().
|
static |
Definition at line 201 of file BPy_StrokeAttribute.cpp.
References Freestyle::a, and Vector_from_Vec3f().
|
static |
Definition at line 225 of file BPy_StrokeAttribute.cpp.
References PyBool_from_bool(), and self.
|
static |
Definition at line 249 of file BPy_StrokeAttribute.cpp.
References PyBool_from_bool(), and self.
|
static |
Definition at line 273 of file BPy_StrokeAttribute.cpp.
References PyBool_from_bool(), and self.
|
static |
Definition at line 73 of file BPy_StrokeAttribute.cpp.
References blue, green, red, StrokeAttribute_Type, and t.
int StrokeAttribute_Init | ( | PyObject * | module | ) |
Definition at line 20 of file BPy_StrokeAttribute.cpp.
References module, StrokeAttribute_mathutils_register_callback(), and StrokeAttribute_Type.
Referenced by Freestyle_Init().
|
static |
Definition at line 425 of file BPy_StrokeAttribute.cpp.
References BPy_StrokeAttribute_Check.
|
static |
Definition at line 433 of file BPy_StrokeAttribute.cpp.
References MATHUTILS_SUBTYPE_COLOR, and MATHUTILS_SUBTYPE_THICKNESS.
|
static |
Definition at line 468 of file BPy_StrokeAttribute.cpp.
References MATHUTILS_SUBTYPE_COLOR, and MATHUTILS_SUBTYPE_THICKNESS.
void StrokeAttribute_mathutils_register_callback | ( | ) |
Definition at line 536 of file BPy_StrokeAttribute.cpp.
References Mathutils_RegisterCallback(), StrokeAttribute_mathutils_cb, and StrokeAttribute_mathutils_cb_index.
Referenced by StrokeAttribute_Init().
|
static |
Definition at line 452 of file BPy_StrokeAttribute.cpp.
References MATHUTILS_SUBTYPE_COLOR, and MATHUTILS_SUBTYPE_THICKNESS.
|
static |
Definition at line 505 of file BPy_StrokeAttribute.cpp.
References usdtokens::b(), usdtokens::g(), MATHUTILS_SUBTYPE_COLOR, MATHUTILS_SUBTYPE_THICKNESS, r, and self.
|
static |
Definition at line 133 of file BPy_StrokeAttribute.cpp.
|
static |
Definition at line 298 of file BPy_StrokeAttribute.cpp.
|
static |
Definition at line 325 of file BPy_StrokeAttribute.cpp.
References Vec2f_ptr_from_PyObject().
|
static |
Definition at line 358 of file BPy_StrokeAttribute.cpp.
References Vec3f_ptr_from_PyObject().
|
static |
Definition at line 597 of file BPy_StrokeAttribute.cpp.
References MATHUTILS_SUBTYPE_THICKNESS, StrokeAttribute_mathutils_cb_index, and Vector_CreatePyObject_cb().
|
static |
Definition at line 603 of file BPy_StrokeAttribute.cpp.
References mathutils_array_parse(), and v.
|
static |
Definition at line 620 of file BPy_StrokeAttribute.cpp.
References PyBool_from_bool(), and self.
|
static |
Definition at line 625 of file BPy_StrokeAttribute.cpp.
References bool_from_PyBool().
|
static |
Definition at line 637 of file BPy_StrokeAttribute.cpp.
|
static |
Definition at line 379 of file BPy_StrokeAttribute.cpp.
|
static |
Definition at line 526 of file BPy_StrokeAttribute.cpp.
Referenced by StrokeAttribute_mathutils_register_callback().
|
static |
Definition at line 534 of file BPy_StrokeAttribute.cpp.
Referenced by StrokeAttribute_color_get(), StrokeAttribute_mathutils_register_callback(), and StrokeAttribute_thickness_get().
PyTypeObject StrokeAttribute_Type |
Definition at line 663 of file BPy_StrokeAttribute.cpp.
Referenced by BPy_StrokeAttribute_from_StrokeAttribute(), StrokeAttribute_init(), StrokeAttribute_Init(), and StrokeVertex_init().