Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Swaney <sswaney@centurytel.net>2004-09-26 00:30:40 +0400
committerStephen Swaney <sswaney@centurytel.net>2004-09-26 00:30:40 +0400
commita509b8adc9b8952cdb395c69406e821f57a9a6c7 (patch)
tree7c0e3c7b81007acc6b3e268e59a6af5fcb4bd93f /source/blender/python/api2_2x/Lattice.h
parentbd371ddb9ff947d4e598ad04af9402d89fa80d5e (diff)
Another round in the Great BPy Cleanup:
Run everything thru indent to cleanup spaces vs tabs. Clean up some of the comments by hand. BGL.c was not touched due to all that macro wackyness. There are no functional changes to the code. Pre-indent versions of source are tagged with tag bpy-cleanup-20040925 , just in case.
Diffstat (limited to 'source/blender/python/api2_2x/Lattice.h')
-rw-r--r--source/blender/python/api2_2x/Lattice.h212
1 files changed, 103 insertions, 109 deletions
diff --git a/source/blender/python/api2_2x/Lattice.h b/source/blender/python/api2_2x/Lattice.h
index fed500de2c2..a7acc79515d 100644
--- a/source/blender/python/api2_2x/Lattice.h
+++ b/source/blender/python/api2_2x/Lattice.h
@@ -1,4 +1,5 @@
/*
+ * $Id$
*
* ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
*
@@ -51,170 +52,163 @@
#include "modules.h"
/*****************************************************************************/
-/* Python API function prototypes for the Lattice module. */
+/* Python API function prototypes for the Lattice module. */
/*****************************************************************************/
-static PyObject *M_Lattice_New (PyObject *self, PyObject *args);
-static PyObject *M_Lattice_Get(PyObject *self, PyObject *args);
+static PyObject *M_Lattice_New( PyObject * self, PyObject * args );
+static PyObject *M_Lattice_Get( PyObject * self, PyObject * args );
/*****************************************************************************/
-/* The following string definitions are used for documentation strings. */
-/* In Python these will be written to the console when doing a */
-/* Blender.Lattice.__doc__ Lattice Module strings */
+/* Lattice Module strings */
+/* The following string definitions are used for documentation strings. */
+/* In Python these will be written to the console when doing a */
+/* Blender.Lattice.__doc__ */
/*****************************************************************************/
-static char M_Lattice_doc[] =
-"The Blender Lattice module\n\n";
+static char M_Lattice_doc[] = "The Blender Lattice module\n\n";
-static char M_Lattice_New_doc[] =
-"() - return a new Lattice object";
+static char M_Lattice_New_doc[] = "() - return a new Lattice object";
-static char M_Lattice_Get_doc[] =
-"() - geta a Lattice from blender";
+static char M_Lattice_Get_doc[] = "() - geta a Lattice from blender";
/*****************************************************************************/
-/* Python method structure definition for Blender.Lattice module: */
+/* Python method structure definition for Blender.Lattice module: */
/*****************************************************************************/
struct PyMethodDef M_Lattice_methods[] = {
- {"New",(PyCFunction)M_Lattice_New, METH_VARARGS,
- M_Lattice_New_doc},
- {"Get",(PyCFunction)M_Lattice_Get, METH_VARARGS,
- M_Lattice_Get_doc},
+ {"New", ( PyCFunction ) M_Lattice_New, METH_VARARGS,
+ M_Lattice_New_doc},
+ {"Get", ( PyCFunction ) M_Lattice_Get, METH_VARARGS,
+ M_Lattice_Get_doc},
{NULL, NULL, 0, NULL}
};
/*****************************************************************************/
-/* Python BPy_Lattice structure definition: */
+/* Python BPy_Lattice structure definition: */
/*****************************************************************************/
typedef struct {
- PyObject_HEAD
- Lattice *Lattice;
+ PyObject_HEAD Lattice * Lattice;
} BPy_Lattice;
/*****************************************************************************/
-/* Python BPy_Lattice methods declarations: */
+/* Python BPy_Lattice methods declarations: */
/*****************************************************************************/
-static PyObject *Lattice_getName(BPy_Lattice *self);
-static PyObject *Lattice_setName(BPy_Lattice *self, PyObject *args);
-static PyObject *Lattice_setPartitions(BPy_Lattice *self, PyObject *args);
-static PyObject *Lattice_getPartitions(BPy_Lattice *self, PyObject *args);
-static PyObject *Lattice_setKeyTypes(BPy_Lattice *self, PyObject *args);
-static PyObject *Lattice_getKeyTypes(BPy_Lattice *self, PyObject *args);
-static PyObject *Lattice_setMode(BPy_Lattice *self, PyObject *args);
-static PyObject *Lattice_getMode(BPy_Lattice *self, PyObject *args);
-static PyObject *Lattice_setPoint(BPy_Lattice *self, PyObject *args);
-static PyObject *Lattice_getPoint(BPy_Lattice *self, PyObject *args);
-static PyObject *Lattice_applyDeform(BPy_Lattice *self);
-static PyObject *Lattice_insertKey(BPy_Lattice *self, PyObject *args);
+static PyObject *Lattice_getName( BPy_Lattice * self );
+static PyObject *Lattice_setName( BPy_Lattice * self, PyObject * args );
+static PyObject *Lattice_setPartitions( BPy_Lattice * self, PyObject * args );
+static PyObject *Lattice_getPartitions( BPy_Lattice * self, PyObject * args );
+static PyObject *Lattice_setKeyTypes( BPy_Lattice * self, PyObject * args );
+static PyObject *Lattice_getKeyTypes( BPy_Lattice * self, PyObject * args );
+static PyObject *Lattice_setMode( BPy_Lattice * self, PyObject * args );
+static PyObject *Lattice_getMode( BPy_Lattice * self, PyObject * args );
+static PyObject *Lattice_setPoint( BPy_Lattice * self, PyObject * args );
+static PyObject *Lattice_getPoint( BPy_Lattice * self, PyObject * args );
+static PyObject *Lattice_applyDeform( BPy_Lattice * self );
+static PyObject *Lattice_insertKey( BPy_Lattice * self, PyObject * args );
/*****************************************************************************/
-/* The following string definitions are used for documentation strings. */
-/* In Python these will be written to the console when doing a */
-/* Blender.Lattice.__doc__ Lattice Strings */
+/* Lattice Strings */
+/* The following string definitions are used for documentation strings. */
+/* In Python these will be written to the console when doing a */
+/* Blender.Lattice.__doc__ */
/*****************************************************************************/
-static char Lattice_getName_doc[] =
-"() - Return Lattice Object name";
+static char Lattice_getName_doc[] = "() - Return Lattice Object name";
-static char Lattice_setName_doc[] =
-"(str) - Change Lattice Object name";
+static char Lattice_setName_doc[] = "(str) - Change Lattice Object name";
static char Lattice_setPartitions_doc[] =
-"(str) - Set the number of Partitions in x,y,z";
+ "(str) - Set the number of Partitions in x,y,z";
static char Lattice_getPartitions_doc[] =
-"(str) - Get the number of Partitions in x,y,z";
+ "(str) - Get the number of Partitions in x,y,z";
static char Lattice_setKeyTypes_doc[] =
-"(str) - Set the key types for x,y,z dimensions";
+ "(str) - Set the key types for x,y,z dimensions";
static char Lattice_getKeyTypes_doc[] =
-"(str) - Get the key types for x,y,z dimensions";
+ "(str) - Get the key types for x,y,z dimensions";
-static char Lattice_setMode_doc[] =
-"(str) - Make an outside or grid lattice";
+static char Lattice_setMode_doc[] = "(str) - Make an outside or grid lattice";
-static char Lattice_getMode_doc[] =
-"(str) - Get lattice mode type";
+static char Lattice_getMode_doc[] = "(str) - Get lattice mode type";
static char Lattice_setPoint_doc[] =
-"(str) - Set the coordinates of a point on the lattice";
+ "(str) - Set the coordinates of a point on the lattice";
static char Lattice_getPoint_doc[] =
-"(str) - Get the coordinates of a point on the lattice";
+ "(str) - Get the coordinates of a point on the lattice";
static char Lattice_applyDeform_doc[] =
-"(str) - Apply the new lattice deformation to children";
+ "(str) - Apply the new lattice deformation to children";
static char Lattice_insertKey_doc[] =
-"(str) - Set a new key for the lattice at specified frame";
+ "(str) - Set a new key for the lattice at specified frame";
/*****************************************************************************/
-/* Python BPy_Lattice methods table: */
+/* Python BPy_Lattice methods table: */
/*****************************************************************************/
static PyMethodDef BPy_Lattice_methods[] = {
- /* name, method, flags, doc */
- {"getName", (PyCFunction)Lattice_getName, METH_NOARGS,
- Lattice_getName_doc},
- {"setName", (PyCFunction)Lattice_setName, METH_VARARGS,
- Lattice_setName_doc},
- {"setPartitions", (PyCFunction)Lattice_setPartitions, METH_VARARGS,
- Lattice_setPartitions_doc},
- {"getPartitions", (PyCFunction)Lattice_getPartitions, METH_NOARGS,
- Lattice_getPartitions_doc},
- {"setKeyTypes", (PyCFunction)Lattice_setKeyTypes, METH_VARARGS,
- Lattice_setKeyTypes_doc},
- {"getKeyTypes", (PyCFunction)Lattice_getKeyTypes, METH_NOARGS,
- Lattice_getKeyTypes_doc},
- {"setMode", (PyCFunction)Lattice_setMode, METH_VARARGS,
- Lattice_setMode_doc},
- {"getMode", (PyCFunction)Lattice_getMode, METH_NOARGS,
- Lattice_getMode_doc},
- {"setPoint", (PyCFunction)Lattice_setPoint, METH_VARARGS,
- Lattice_setPoint_doc},
- {"getPoint", (PyCFunction)Lattice_getPoint, METH_VARARGS,
- Lattice_getPoint_doc},
- {"applyDeform", (PyCFunction)Lattice_applyDeform, METH_NOARGS,
- Lattice_applyDeform_doc},
- {"insertKey", (PyCFunction)Lattice_insertKey, METH_VARARGS,
- Lattice_insertKey_doc},
+ /* name, method, flags, doc */
+ {"getName", ( PyCFunction ) Lattice_getName, METH_NOARGS,
+ Lattice_getName_doc},
+ {"setName", ( PyCFunction ) Lattice_setName, METH_VARARGS,
+ Lattice_setName_doc},
+ {"setPartitions", ( PyCFunction ) Lattice_setPartitions, METH_VARARGS,
+ Lattice_setPartitions_doc},
+ {"getPartitions", ( PyCFunction ) Lattice_getPartitions, METH_NOARGS,
+ Lattice_getPartitions_doc},
+ {"setKeyTypes", ( PyCFunction ) Lattice_setKeyTypes, METH_VARARGS,
+ Lattice_setKeyTypes_doc},
+ {"getKeyTypes", ( PyCFunction ) Lattice_getKeyTypes, METH_NOARGS,
+ Lattice_getKeyTypes_doc},
+ {"setMode", ( PyCFunction ) Lattice_setMode, METH_VARARGS,
+ Lattice_setMode_doc},
+ {"getMode", ( PyCFunction ) Lattice_getMode, METH_NOARGS,
+ Lattice_getMode_doc},
+ {"setPoint", ( PyCFunction ) Lattice_setPoint, METH_VARARGS,
+ Lattice_setPoint_doc},
+ {"getPoint", ( PyCFunction ) Lattice_getPoint, METH_VARARGS,
+ Lattice_getPoint_doc},
+ {"applyDeform", ( PyCFunction ) Lattice_applyDeform, METH_NOARGS,
+ Lattice_applyDeform_doc},
+ {"insertKey", ( PyCFunction ) Lattice_insertKey, METH_VARARGS,
+ Lattice_insertKey_doc},
{NULL, NULL, 0, NULL}
};
/*****************************************************************************/
-/* Python Lattice_Type callback function prototypes: */
+/* Python Lattice_Type callback function prototypes: */
/*****************************************************************************/
-static void Lattice_dealloc (BPy_Lattice *self);
-static int Lattice_setAttr (BPy_Lattice *self, char *name, PyObject *v);
-static PyObject *Lattice_getAttr (BPy_Lattice *self, char *name);
-static PyObject *Lattice_repr (BPy_Lattice *self);
+static void Lattice_dealloc( BPy_Lattice * self );
+static int Lattice_setAttr( BPy_Lattice * self, char *name, PyObject * v );
+static PyObject *Lattice_getAttr( BPy_Lattice * self, char *name );
+static PyObject *Lattice_repr( BPy_Lattice * self );
/*****************************************************************************/
-/* Python Lattice_Type structure definition: */
+/* Python Lattice_Type structure definition: */
/*****************************************************************************/
-PyTypeObject Lattice_Type =
-{
- PyObject_HEAD_INIT(NULL)
- 0, /* ob_size */
- "Blender Lattice", /* tp_name */
- sizeof (BPy_Lattice), /* tp_basicsize */
- 0, /* tp_itemsize */
+PyTypeObject Lattice_Type = {
+ PyObject_HEAD_INIT( NULL )
+ 0, /* ob_size */
+ "Blender Lattice", /* tp_name */
+ sizeof( BPy_Lattice ), /* tp_basicsize */
+ 0, /* tp_itemsize */
/* methods */
- (destructor)Lattice_dealloc, /* tp_dealloc */
- 0, /* tp_print */
- (getattrfunc)Lattice_getAttr, /* tp_getattr */
- (setattrfunc)Lattice_setAttr, /* tp_setattr */
- 0, /* tp_compare */
- (reprfunc)Lattice_repr, /* tp_repr */
- 0, /* tp_as_number */
- 0, /* tp_as_sequence */
- 0, /* tp_as_mapping */
- 0, /* tp_as_hash */
- 0,0,0,0,0,0,
- 0, /* tp_doc */
- 0,0,0,0,0,0,
- BPy_Lattice_methods, /* tp_methods */
- 0, /* tp_members */
+ ( destructor ) Lattice_dealloc, /* tp_dealloc */
+ 0, /* tp_print */
+ ( getattrfunc ) Lattice_getAttr, /* tp_getattr */
+ ( setattrfunc ) Lattice_setAttr, /* tp_setattr */
+ 0, /* tp_compare */
+ ( reprfunc ) Lattice_repr, /* tp_repr */
+ 0, /* tp_as_number */
+ 0, /* tp_as_sequence */
+ 0, /* tp_as_mapping */
+ 0, /* tp_as_hash */
+ 0, 0, 0, 0, 0, 0,
+ 0, /* tp_doc */
+ 0, 0, 0, 0, 0, 0,
+ BPy_Lattice_methods, /* tp_methods */
+ 0, /* tp_members */
};
-static int Lattice_InLatList(BPy_Lattice *self);
-static int Lattice_IsLinkedToObject(BPy_Lattice *self);
+static int Lattice_InLatList( BPy_Lattice * self );
+static int Lattice_IsLinkedToObject( BPy_Lattice * self );
-#endif /* EXPP_LATTICE_H */
+#endif /* EXPP_LATTICE_H */