Changeset View
Changeset View
Standalone View
Standalone View
source/blender/freestyle/intern/python/BPy_StrokeAttribute.cpp
| Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | |||||
| //------------------------INSTANCE METHODS ---------------------------------- | //------------------------INSTANCE METHODS ---------------------------------- | ||||
| PyDoc_STRVAR(StrokeAttribute_doc, | PyDoc_STRVAR(StrokeAttribute_doc, | ||||
| "Class to define a set of attributes associated with a :class:`StrokeVertex`.\n" | "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" | "The attribute set stores the color, alpha and thickness values for a Stroke\n" | ||||
| "Vertex.\n" | "Vertex.\n" | ||||
| "\n" | "\n" | ||||
| ".. method:: __init__()\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,\n" | |||||
| " or and interpolation constructor to interpolate between two :class:`StrokeAttribute` objects.\n" | |||||
| "\n" | "\n" | ||||
| " Default constructor.\n" | " :arg brother: A StrokeAttribute object to be used as a copy constructor.\n" | ||||
| "\n" | |||||
| ".. method:: __init__(brother)\n" | |||||
| "\n" | |||||
| " Copy constructor.\n" | |||||
| "\n" | |||||
| " :arg brother: A StrokeAttribute object.\n" | |||||
| " :type brother: :class:`StrokeAttribute`\n" | " :type brother: :class:`StrokeAttribute`\n" | ||||
| "\n" | |||||
| ".. method:: __init__(red, green, blue, alpha, thickness_right, thickness_left)\n" | |||||
| "\n" | |||||
| " Build a stroke vertex attribute from a set of parameters.\n" | |||||
| "\n" | |||||
| " :arg red: Red component of a stroke color.\n" | " :arg red: Red component of a stroke color.\n" | ||||
| " :type red: float\n" | " :type red: float\n" | ||||
| " :arg green: Green component of a stroke color.\n" | " :arg green: Green component of a stroke color.\n" | ||||
| " :type green: float\n" | " :type green: float\n" | ||||
| " :arg blue: Blue component of a stroke color.\n" | " :arg blue: Blue component of a stroke color.\n" | ||||
| " :type blue: float\n" | " :type blue: float\n" | ||||
| " :arg alpha: Alpha component of a stroke color.\n" | " :arg alpha: Alpha component of a stroke color.\n" | ||||
| " :type alpha: float\n" | " :type alpha: float\n" | ||||
| " :arg thickness_right: Stroke thickness on the right.\n" | " :arg thickness_right: Stroke thickness on the right.\n" | ||||
| " :type thickness_right: float\n" | " :type thickness_right: float\n" | ||||
| " :arg thickness_left: Stroke thickness on the left.\n" | " :arg thickness_left: Stroke thickness on the left.\n" | ||||
| " :type thickness_left: float\n" | " :type thickness_left: float\n" | ||||
| "\n" | |||||
| ".. method:: __init__(attribute1, attribute2, t)\n" | |||||
| "\n" | |||||
| " Interpolation constructor. Build a StrokeAttribute from two\n" | |||||
| " StrokeAttribute objects and an interpolation parameter.\n" | |||||
| "\n" | |||||
| " :arg attribute1: The first StrokeAttribute object.\n" | " :arg attribute1: The first StrokeAttribute object.\n" | ||||
| " :type attribute1: :class:`StrokeAttribute`\n" | " :type attribute1: :class:`StrokeAttribute`\n" | ||||
| " :arg attribute2: The second StrokeAttribute object.\n" | " :arg attribute2: The second StrokeAttribute object.\n" | ||||
| " :type attribute2: :class:`StrokeAttribute`\n" | " :type attribute2: :class:`StrokeAttribute`\n" | ||||
| " :arg t: The interpolation parameter (0 <= t <= 1).\n" | " :arg t: The interpolation parameter (0 <= t <= 1).\n" | ||||
| " :type t: float\n"); | " :type t: float\n"); | ||||
| static int StrokeAttribute_init(BPy_StrokeAttribute *self, PyObject *args, PyObject *kwds) | static int StrokeAttribute_init(BPy_StrokeAttribute *self, PyObject *args, PyObject *kwds) | ||||
| ▲ Show 20 Lines • Show All 634 Lines • Show Last 20 Lines | |||||