{"ComputeSampling",(PyCFunction)Stroke_ComputeSampling,METH_VARARGS,"(int nVertices) Compute the sampling needed to get nVertices vertices. If the specified number of vertices is less than the actual number of vertices, the actual sampling value is returned."},
{"Resample",(PyCFunction)Stroke_Resample,METH_VARARGS,"(float f | int n) Resampling method. If the argument is a float, Resamples the curve with a given sampling; if this sampling is < to the actual sampling value, no resampling is done. If the argument is an integer, Resamples the curve so that it eventually has n. That means it is going to add n-vertices_size, if vertices_size is the number of points we already have. Is vertices_size >= n, no resampling is done."},
{"RemoveVertex",(PyCFunction)Stroke_RemoveVertex,METH_VARARGS,"(StrokeVertex sv) Removes the stroke vertex sv from the stroke. The length and curvilinear abscissa are updated consequently."},
{"getMediumType",(PyCFunction)Stroke_getMediumType,METH_NOARGS,"() Returns the MediumType used for this Stroke."},
{"getTextureId",(PyCFunction)Stroke_getTextureId,METH_NOARGS,"() Returns the id of the texture used to simulate th marks system for this Stroke."},
{"hasTips",(PyCFunction)Stroke_hasTips,METH_NOARGS,"() Returns true if this Stroke uses a texture with tips, false otherwise."},
{"setId",(PyCFunction)Stroke_setId,METH_VARARGS,"(Id id) Sets the Id of the Stroke."},
{"setLength",(PyCFunction)Stroke_setLength,METH_VARARGS,"(float l) Sets the 2D length of the Stroke."},
{"setMediumType",(PyCFunction)Stroke_setMediumType,METH_VARARGS,"(MediumType mt) Sets the medium type that must be used for this Stroke."},
{"setTextureId",(PyCFunction)Stroke_setTextureId,METH_VARARGS,"(unsigned int id) Sets the texture id to be used to simulate the marks system for this Stroke."},
{"setTips",(PyCFunction)Stroke_setTips,METH_VARARGS,"(bool b) Sets the flag telling whether this stroke is using a texture with tips or not."},
{"strokeVerticesSize",(PyCFunction)Stroke_strokeVerticesSize,METH_NOARGS,"() Returns the number of StrokeVertex constituing the Stroke."},
{"getStrokeVertices",(PyCFunction)Stroke_getStrokeVertices,METH_NOARGS,"() Returns the stroke vertices. The difference with vertices() is that here we can iterate over points of the 1D element at a any given sampling. Indeed, for each iteration, a virtual point is created."},
//{"InsertVertex", ( PyCFunction ) Stroke_InsertVertex, METH_NOARGS, "(StrokeVertex sv, int i) Inserts the stroke vertex iVertex in the stroke before i. The length, curvilinear abscissa are updated consequently."},
{NULL,NULL,0,NULL}
};
/*-----------------------BPy_Stroke type definition ------------------------------*/
PyTypeObjectStroke_Type={
PyObject_HEAD_INIT(NULL)
0,/* ob_size */
"Stroke",/* tp_name */
sizeof(BPy_Stroke),/* tp_basicsize */
0,/* tp_itemsize */
/* methods */
NULL,/* tp_dealloc */
NULL,/* printfunc tp_print; */
NULL,/* getattrfunc tp_getattr; */
NULL,/* setattrfunc tp_setattr; */
NULL,/* tp_compare */
NULL,/* tp_repr */
/* Method suites for standard classes */
NULL,/* PyNumberMethods *tp_as_number; */
NULL,/* PySequenceMethods *tp_as_sequence; */
NULL,/* PyMappingMethods *tp_as_mapping; */
/* More standard operations (here for binary compatibility) */
NULL,/* hashfunc tp_hash; */
NULL,/* ternaryfunc tp_call; */
NULL,/* reprfunc tp_str; */
NULL,/* getattrofunc tp_getattro; */
NULL,/* setattrofunc tp_setattro; */
/* Functions to access object as input/output buffer */
NULL,/* PyBufferProcs *tp_as_buffer; */
/*** Flags to define presence of optional/expanded features ***/
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE,/* long tp_flags; */
NULL,/* char *tp_doc; Documentation string */
/*** Assigned meaning in release 2.0 ***/
/* call function for all accessible objects */
NULL,/* traverseproc tp_traverse; */
/* delete references to contained objects */
NULL,/* inquiry tp_clear; */
/*** Assigned meaning in release 2.1 ***/
/*** rich comparisons ***/
NULL,/* richcmpfunc tp_richcompare; */
/*** weak reference enabler ***/
0,/* long tp_weaklistoffset; */
/*** Added in release 2.2 ***/
/* Iterators */
NULL,/* getiterfunc tp_iter; */
NULL,/* iternextfunc tp_iternext; */
/*** Attribute descriptor and subclassing stuff ***/