|
Blender V4.3
|
#include "BPy_Stroke.h"#include "../BPy_Convert.h"#include "../BPy_Id.h"#include "../BPy_MediumType.h"#include "../Interface0D/BPy_SVertex.h"#include "../Interface0D/CurvePoint/BPy_StrokeVertex.h"#include "../Iterator/BPy_StrokeVertexIterator.h"#include "BLI_sys_types.h"Go to the source code of this file.
Functions | |
| PyDoc_STRVAR (Stroke_doc, "Class hierarchy: :class:`Interface1D` > :class:`Stroke`\n" "\n" "Class to define a stroke. A stroke is made of a set of 2D vertices\n" "(:class:`StrokeVertex`), regularly spaced out. This set of vertices\n" "defines the stroke's backbone geometry. Each of these stroke vertices\n" "defines the stroke's shape and appearance at this vertex position.\n" "\n" ".. method:: Stroke()\n" " Stroke(brother)\n" "\n" " Creates a :class:`Stroke` using the default constructor or copy constructor\n") | |
| static int | Stroke_init (BPy_Stroke *self, PyObject *args, PyObject *kwds) |
| static PyObject * | Stroke_iter (PyObject *self) |
| static Py_ssize_t | Stroke_sq_length (BPy_Stroke *self) |
| static PyObject * | Stroke_sq_item (BPy_Stroke *self, Py_ssize_t keynum) |
| PyDoc_STRVAR (Stroke_compute_sampling_doc, ".. method:: compute_sampling(n)\n" "\n" " Compute the sampling needed to get N vertices. If the\n" " specified number of vertices is less than the actual number of\n" " vertices, the actual sampling value is returned. (To remove Vertices,\n" " use the RemoveVertex() method of this class.)\n" "\n" " :arg n: The number of stroke vertices we eventually want\n" " in our Stroke.\n" " :type n: int\n" " :return: The sampling that must be used in the Resample(float)\n" " method.\n" " :rtype: float") | |
| static PyObject * | Stroke_compute_sampling (BPy_Stroke *self, PyObject *args, PyObject *kwds) |
| PyDoc_STRVAR (Stroke_resample_doc, ".. method:: resample(n)\n" " resample(sampling)\n" "\n" " Resamples the stroke so using one of two methods with the goal\n" " of creating a stroke with fewer points and the same shape.\n" "\n" " :arg n: Resamples the stroke so that it eventually has N points. That means\n" " it is going to add N-vertices_size, where vertices_size is the\n" " number of points we already have. If vertices_size >= N, no\n" " resampling is done.\n" " :type n: int\n" " :arg sampling: Resamples the stroke with a given sampling value. If the\n" " sampling is smaller than the actual sampling value, no resampling is done.\n" " :type sampling: float") | |
| static PyObject * | Stroke_resample (BPy_Stroke *self, PyObject *args, PyObject *kwds) |
| PyDoc_STRVAR (Stroke_insert_vertex_doc, ".. method:: insert_vertex(vertex, next)\n" "\n" " Inserts the StrokeVertex given as argument into the Stroke before the\n" " point specified by next. The length and curvilinear abscissa are\n" " updated consequently.\n" "\n" " :arg vertex: The StrokeVertex to insert in the Stroke.\n" " :type vertex: :class:`StrokeVertex`\n" " :arg next: A StrokeVertexIterator pointing to the StrokeVertex\n" " before which vertex must be inserted.\n" " :type next: :class:`StrokeVertexIterator`") | |
| static PyObject * | Stroke_insert_vertex (BPy_Stroke *self, PyObject *args, PyObject *kwds) |
| PyDoc_STRVAR (Stroke_remove_vertex_doc, ".. method:: remove_vertex(vertex)\n" "\n" " Removes the StrokeVertex given as argument from the Stroke. The length\n" " and curvilinear abscissa are updated consequently.\n" "\n" " :arg vertex: the StrokeVertex to remove from the Stroke.\n" " :type vertex: :class:`StrokeVertex`") | |
| static PyObject * | Stroke_remove_vertex (BPy_Stroke *self, PyObject *args, PyObject *kwds) |
| PyDoc_STRVAR (Stroke_remove_all_vertices_doc, ".. method:: remove_all_vertices()\n" "\n" " Removes all vertices from the Stroke.") | |
| static PyObject * | Stroke_remove_all_vertices (BPy_Stroke *self) |
| PyDoc_STRVAR (Stroke_update_length_doc, ".. method:: update_length()\n" "\n" " Updates the 2D length of the Stroke.") | |
| static PyObject * | Stroke_update_length (BPy_Stroke *self) |
| PyDoc_STRVAR (Stroke_stroke_vertices_begin_doc, ".. method:: stroke_vertices_begin(t=0.0)\n" "\n" " Returns a StrokeVertexIterator pointing on the first StrokeVertex of\n" " the Stroke. One can specify a sampling value to re-sample the Stroke\n" " on the fly if needed.\n" "\n" " :arg t: The resampling value with which we want our Stroke to be\n" " resampled. If 0 is specified, no resampling is done.\n" " :type t: float\n" " :return: A StrokeVertexIterator pointing on the first StrokeVertex.\n" " :rtype: :class:`StrokeVertexIterator`") | |
| static PyObject * | Stroke_stroke_vertices_begin (BPy_Stroke *self, PyObject *args, PyObject *kwds) |
| PyDoc_STRVAR (Stroke_stroke_vertices_end_doc, ".. method:: stroke_vertices_end()\n" "\n" " Returns a StrokeVertexIterator pointing after the last StrokeVertex\n" " of the Stroke.\n" "\n" " :return: A StrokeVertexIterator pointing after the last StrokeVertex.\n" " :rtype: :class:`StrokeVertexIterator`") | |
| static PyObject * | Stroke_stroke_vertices_end (BPy_Stroke *self) |
| PyDoc_STRVAR (Stroke_reversed_doc, ".. method:: __reversed__()\n" "\n" " Returns a StrokeVertexIterator iterating over the vertices of the Stroke\n" " in the reversed order (from the last to the first).\n" "\n" " :return: A StrokeVertexIterator pointing after the last StrokeVertex.\n" " :rtype: :class:`StrokeVertexIterator`") | |
| static PyObject * | Stroke_reversed (BPy_Stroke *self) |
| PyDoc_STRVAR (Stroke_stroke_vertices_size_doc, ".. method:: stroke_vertices_size()\n" "\n" " Returns the number of StrokeVertex constituting the Stroke.\n" "\n" " :return: The number of stroke vertices.\n" " :rtype: int") | |
| static PyObject * | Stroke_stroke_vertices_size (BPy_Stroke *self) |
| PyDoc_STRVAR (Stroke_medium_type_doc, "The MediumType used for this Stroke.\n" "\n" ":type: :class:`MediumType`") | |
| static PyObject * | Stroke_medium_type_get (BPy_Stroke *self, void *) |
| static int | Stroke_medium_type_set (BPy_Stroke *self, PyObject *value, void *) |
| PyDoc_STRVAR (Stroke_texture_id_doc, "The ID of the texture used to simulate th marks system for this Stroke.\n" "\n" ":type: int") | |
| static PyObject * | Stroke_texture_id_get (BPy_Stroke *self, void *) |
| static int | Stroke_texture_id_set (BPy_Stroke *self, PyObject *value, void *) |
| PyDoc_STRVAR (Stroke_tips_doc, "True if this Stroke uses a texture with tips, and false otherwise.\n" "\n" ":type: bool") | |
| static PyObject * | Stroke_tips_get (BPy_Stroke *self, void *) |
| static int | Stroke_tips_set (BPy_Stroke *self, PyObject *value, void *) |
| PyDoc_STRVAR (Stroke_length_2d_doc, "The 2D length of the Stroke.\n" "\n" ":type: float") | |
| static PyObject * | Stroke_length_2d_get (BPy_Stroke *self, void *) |
| static int | Stroke_length_2d_set (BPy_Stroke *self, PyObject *value, void *) |
| PyDoc_STRVAR (Stroke_id_doc, "The Id of this Stroke.\n" "\n" ":type: :class:`Id`") | |
| static PyObject * | Stroke_id_get (BPy_Stroke *self, void *) |
| static int | Stroke_id_set (BPy_Stroke *self, PyObject *value, void *) |
Variables | |
| static PyMethodDef | BPy_Stroke_methods [] |
| static PyGetSetDef | BPy_Stroke_getseters [] |
| static PySequenceMethods | BPy_Stroke_as_sequence |
| PyTypeObject | Stroke_Type |
| PyDoc_STRVAR | ( | Stroke_compute_sampling_doc | , |
| ".. method:: compute_sampling(n)\n" "\n" " Compute the sampling needed to get N vertices. If the\n" " specified number of vertices is less than the actual number of\n" " | vertices, | ||
| the actual sampling value is returned.(To remove Vertices,\n" " use the RemoveVertex() method of this class.)\n" "\n" " :arg n:The number of stroke vertices we eventually want\n" " in our Stroke.\n" " :type n:int\n" " :return:The sampling that must be used in the Resample(float)\n" " method.\n" " :rtype:float" | ) |
| PyDoc_STRVAR | ( | Stroke_doc | , |
| "Class hierarchy: :class:`Interface1D` | , | ||
| :class:`Stroke`\n" "\n" "Class to define a stroke. A stroke is made of a set of 2D vertices\n" " | :class:`StrokeVertex`, | ||
| regularly spaced out. This set of vertices\n" "defines the stroke 's backbone geometry. Each of these stroke vertices\n" "defines the stroke 's shape and appearance at this vertex position.\n" "\n" ".. method::Stroke()\n" " Stroke(brother)\n" "\n" " Creates a :class:`Stroke` using the default constructor or copy constructor\n" | ) |
| PyDoc_STRVAR | ( | Stroke_insert_vertex_doc | , |
| ".. method:: insert_vertex(vertex, next)\n" "\n" " Inserts the StrokeVertex given as argument into the Stroke before the\n" " point specified by next. The length and curvilinear abscissa are\n" " updated consequently.\n" "\n" " :arg vertex: The StrokeVertex to insert in the Stroke.\n" " :type vertex: :class:`StrokeVertex`\n" " :arg next: A StrokeVertexIterator pointing to the StrokeVertex\n" " before which vertex must be inserted.\n" " :type next: :class:`StrokeVertexIterator`" | ) |
| PyDoc_STRVAR | ( | Stroke_length_2d_doc | , |
| "The 2D length of the Stroke.\n" "\n" ":type: float" | ) |
| PyDoc_STRVAR | ( | Stroke_medium_type_doc | , |
| "The MediumType used for this Stroke.\n" "\n" ":type: :class:`MediumType`" | ) |
| PyDoc_STRVAR | ( | Stroke_remove_all_vertices_doc | , |
| ".. method:: remove_all_vertices()\n" "\n" " Removes all vertices from the Stroke." | ) |
| PyDoc_STRVAR | ( | Stroke_remove_vertex_doc | , |
| ".. method:: remove_vertex(vertex)\n" "\n" " Removes the StrokeVertex given as argument from the Stroke. The length\n" " and curvilinear abscissa are updated consequently.\n" "\n" " :arg vertex: the StrokeVertex to remove from the Stroke.\n" " :type vertex: :class:`StrokeVertex`" | ) |
| PyDoc_STRVAR | ( | Stroke_resample_doc | , |
| ".. method:: resample(n)\n" " resample(sampling)\n" "\n" " Resamples the stroke so using one of two methods with the goal\n" " of creating a stroke with fewer points and the same shape.\n" "\n" " :arg n: Resamples the stroke so that it eventually has N points. That means\n" " it is going to add N- | vertices_size, | ||
| where vertices_size is the\n" " number of points we already have. If vertices_size >= | N, | ||
| no\n" " resampling is done.\n" " :type n:int\n" " :arg sampling:Resamples the stroke with a given sampling value. If the\n" " sampling is smaller than the actual sampling | value, | ||
| no resampling is done.\n" " :type sampling:float" | ) |
| PyDoc_STRVAR | ( | Stroke_reversed_doc | , |
| ".. method:: __reversed__()\n" "\n" " Returns a StrokeVertexIterator iterating over the vertices of the Stroke\n" " in the reversed order (from the last to the first).\n" "\n" " :return: A StrokeVertexIterator pointing after the last StrokeVertex.\n" " :rtype: :class:`StrokeVertexIterator`" | ) |
| PyDoc_STRVAR | ( | Stroke_stroke_vertices_begin_doc | , |
| ".. method:: stroke_vertices_begin(t=0.0)\n" "\n" " Returns a StrokeVertexIterator pointing on the first StrokeVertex of\n" " the Stroke. One can specify a sampling value to re-sample the Stroke\n" " on the fly if needed.\n" "\n" " :arg t: The resampling value with which we want our Stroke to be\n" " resampled. If 0 is | specified, | ||
| no resampling is done.\n" " :type t:float\n" " :return:A StrokeVertexIterator pointing on the first StrokeVertex.\n" " :rtype::class:`StrokeVertexIterator`" | ) |
| PyDoc_STRVAR | ( | Stroke_stroke_vertices_end_doc | , |
| ".. method:: stroke_vertices_end()\n" "\n" " Returns a StrokeVertexIterator pointing after the last StrokeVertex\n" " of the Stroke.\n" "\n" " :return: A StrokeVertexIterator pointing after the last StrokeVertex.\n" " :rtype: :class:`StrokeVertexIterator`" | ) |
| PyDoc_STRVAR | ( | Stroke_stroke_vertices_size_doc | , |
| ".. method:: stroke_vertices_size()\n" "\n" " Returns the number of StrokeVertex constituting the Stroke.\n" "\n" " :return: The number of stroke vertices.\n" " :rtype: int" | ) |
| PyDoc_STRVAR | ( | Stroke_texture_id_doc | , |
| "The ID of the texture used to simulate th marks system for this Stroke.\n" "\n" ":type: int" | ) |
| PyDoc_STRVAR | ( | Stroke_tips_doc | , |
| "True if this Stroke uses a texture with | tips, | ||
| and false otherwise.\n" "\n" ":type:bool" | ) |
| PyDoc_STRVAR | ( | Stroke_update_length_doc | , |
| ".. method:: update_length()\n" "\n" " Updates the 2D length of the Stroke." | ) |
|
static |
Definition at line 110 of file BPy_Stroke.cpp.
References self.
|
static |
Definition at line 473 of file BPy_Stroke.cpp.
References BPy_Id_from_Id(), and self.
|
static |
Definition at line 479 of file BPy_Stroke.cpp.
References BPy_Id_Check, and self.
|
static |
Definition at line 51 of file BPy_Stroke.cpp.
References self, and Stroke_Type.
|
static |
Definition at line 182 of file BPy_Stroke.cpp.
References self, StrokeVertex_Type, and StrokeVertexIterator_Type.
|
static |
Definition at line 70 of file BPy_Stroke.cpp.
References BPy_StrokeVertexIterator_from_StrokeVertexIterator(), and self.
|
static |
Definition at line 449 of file BPy_Stroke.cpp.
References self.
|
static |
Definition at line 454 of file BPy_Stroke.cpp.
References self.
|
static |
Definition at line 384 of file BPy_Stroke.cpp.
References BPy_MediumType_from_MediumType(), and self.
|
static |
Definition at line 389 of file BPy_Stroke.cpp.
References BPy_MediumType_Check, MediumType_from_BPy_MediumType(), and self.
|
static |
Definition at line 245 of file BPy_Stroke.cpp.
References self.
|
static |
Definition at line 219 of file BPy_Stroke.cpp.
References self, and StrokeVertex_Type.
|
static |
Definition at line 139 of file BPy_Stroke.cpp.
References self.
|
static |
Definition at line 319 of file BPy_Stroke.cpp.
References BPy_StrokeVertexIterator_from_StrokeVertexIterator(), and self.
|
static |
Definition at line 81 of file BPy_Stroke.cpp.
References BPy_StrokeVertex_from_StrokeVertex(), self, and Stroke_sq_length().
|
static |
|
static |
Definition at line 279 of file BPy_Stroke.cpp.
References BPy_StrokeVertexIterator_from_StrokeVertexIterator(), and self.
|
static |
Definition at line 302 of file BPy_Stroke.cpp.
References BPy_StrokeVertexIterator_from_StrokeVertexIterator(), and self.
|
static |
Definition at line 335 of file BPy_Stroke.cpp.
References self.
|
static |
Definition at line 406 of file BPy_Stroke.cpp.
References self.
|
static |
Definition at line 411 of file BPy_Stroke.cpp.
References self.
|
static |
Definition at line 428 of file BPy_Stroke.cpp.
References PyBool_from_bool(), and self.
|
static |
Definition at line 433 of file BPy_Stroke.cpp.
References bool_from_PyBool(), and self.
|
static |
Definition at line 258 of file BPy_Stroke.cpp.
References self.
|
static |
Definition at line 512 of file BPy_Stroke.cpp.
|
static |
Definition at line 489 of file BPy_Stroke.cpp.
|
static |
Definition at line 340 of file BPy_Stroke.cpp.
| PyTypeObject Stroke_Type |
Definition at line 525 of file BPy_Stroke.cpp.
Referenced by BPy_Stroke_from_Stroke(), Interface1D_Init(), Stroke_init(), StrokeShader_shade(), and StrokeVertexIterator_init().