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/Metaball.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/Metaball.h')
-rw-r--r--source/blender/python/api2_2x/Metaball.h206
1 files changed, 104 insertions, 102 deletions
diff --git a/source/blender/python/api2_2x/Metaball.h b/source/blender/python/api2_2x/Metaball.h
index 65b33a96a68..2d91cdc2dd7 100644
--- a/source/blender/python/api2_2x/Metaball.h
+++ b/source/blender/python/api2_2x/Metaball.h
@@ -1,4 +1,5 @@
/*
+ * $Id$
*
* ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
*
@@ -48,169 +49,170 @@
/*****************************************************************************/
-/* Python API function prototypes for the Metaball module. */
+/* Python API function prototypes for the Metaball module. */
/*****************************************************************************/
-static PyObject *M_Metaball_New (PyObject *self, PyObject *args);
-static PyObject *M_Metaball_Get (PyObject *self, PyObject *args);
+static PyObject *M_Metaball_New( PyObject * self, PyObject * args );
+static PyObject *M_Metaball_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.Metaball.__doc__ */
+/* Blender.Metaball.__doc__ */
/*****************************************************************************/
static char M_Metaball_doc[] =
-"The Blender Metaball module\n\n\nMetaballs are spheres\
+ "The Blender Metaball module\n\n\nMetaballs are spheres\
that can join each other to create smooth,\
organic volumes\n. The spheres themseves are called\
'Metaelements' and can be accessed from the Metaball module.";
-static char M_Metaball_New_doc[] ="Creates a new metaball";
+static char M_Metaball_New_doc[] = "Creates a new metaball";
-static char M_Metaball_Get_doc[] ="Retreives an existing metaball";
+static char M_Metaball_Get_doc[] = "Retreives an existing metaball";
/*****************************************************************************/
-/* Python method structure definition for Blender.Metaball module: */
+/* Python method structure definition for Blender.Metaball module: */
/*****************************************************************************/
struct PyMethodDef M_Metaball_methods[] = {
- {"New",M_Metaball_New, METH_VARARGS,M_Metaball_New_doc},
- {"Get", M_Metaball_Get, METH_VARARGS, M_Metaball_Get_doc},
- {"get", M_Metaball_Get, METH_VARARGS, M_Metaball_Get_doc},
- {NULL, NULL, 0, NULL}
+ {"New", M_Metaball_New, METH_VARARGS, M_Metaball_New_doc},
+ {"Get", M_Metaball_Get, METH_VARARGS, M_Metaball_Get_doc},
+ {"get", M_Metaball_Get, METH_VARARGS, M_Metaball_Get_doc},
+ {NULL, NULL, 0, NULL}
};
/*****************************************************************************/
-/* Python BPy_Metaball methods declarations: */
-/*****************************************************************************/
-static PyObject *Metaball_getMetaElemList(BPy_Metaball *self);
-static PyObject *Metaball_addMetaelem(BPy_Metaball *self,PyObject*args);
-static PyObject *Metaball_getBbox(BPy_Metaball *self);
-static PyObject *Metaball_getName(BPy_Metaball *self);
-static PyObject *Metaball_setName(BPy_Metaball *self,PyObject*args);
-static PyObject *Metaball_getWiresize(BPy_Metaball *self);
-static PyObject *Metaball_setWiresize(BPy_Metaball *self,PyObject*args);
-static PyObject *Metaball_getRendersize(BPy_Metaball *self);
-static PyObject *Metaball_setRendersize(BPy_Metaball *self,PyObject*args);
-static PyObject *Metaball_getThresh(BPy_Metaball *self);
-static PyObject *Metaball_setThresh(BPy_Metaball *self,PyObject*args);
-static PyObject *Metaball_getNMetaElems(BPy_Metaball *self);
-static PyObject *Metaball_getMetatype(BPy_Metaball *self,PyObject*args);
-static PyObject *Metaball_setMetatype(BPy_Metaball *self,PyObject*args);
-static PyObject *Metaball_getMetadata(BPy_Metaball *self,PyObject*args);
-static PyObject *Metaball_setMetadata(BPy_Metaball *self,PyObject*args);
-static PyObject *Metaball_getMetax(BPy_Metaball *self,PyObject*args);
-static PyObject *Metaball_setMetax(BPy_Metaball *self,PyObject*args);
-static PyObject *Metaball_getMetay(BPy_Metaball *self,PyObject*args);
-static PyObject *Metaball_setMetay(BPy_Metaball *self,PyObject*args);
-static PyObject *Metaball_getMetaz(BPy_Metaball *self,PyObject*args);
-static PyObject *Metaball_setMetaz(BPy_Metaball *self,PyObject*args);
-static PyObject *Metaball_getMetas(BPy_Metaball *self,PyObject*args);
-static PyObject *Metaball_setMetas(BPy_Metaball *self,PyObject*args);
-static PyObject *Metaball_getMetalen(BPy_Metaball *self,PyObject*args);
-static PyObject *Metaball_setMetalen(BPy_Metaball *self,PyObject*args);
-static PyObject *Metaball_getloc(BPy_Metaball *self);
-static PyObject *Metaball_setloc(BPy_Metaball *self,PyObject*args);
-static PyObject *Metaball_getrot(BPy_Metaball *self);
-static PyObject *Metaball_setrot(BPy_Metaball *self,PyObject*args);
-static PyObject *Metaball_getsize(BPy_Metaball *self);
-static PyObject *Metaball_setsize(BPy_Metaball *self,PyObject*args);
-
-/*****************************************************************************/
-/* Python BPy_Metaball methods table: */
+/* Python BPy_Metaball methods declarations: */
+/*****************************************************************************/
+static PyObject *Metaball_getMetaElemList( BPy_Metaball * self );
+static PyObject *Metaball_addMetaelem( BPy_Metaball * self, PyObject * args );
+static PyObject *Metaball_getBbox( BPy_Metaball * self );
+static PyObject *Metaball_getName( BPy_Metaball * self );
+static PyObject *Metaball_setName( BPy_Metaball * self, PyObject * args );
+static PyObject *Metaball_getWiresize( BPy_Metaball * self );
+static PyObject *Metaball_setWiresize( BPy_Metaball * self, PyObject * args );
+static PyObject *Metaball_getRendersize( BPy_Metaball * self );
+static PyObject *Metaball_setRendersize( BPy_Metaball * self,
+ PyObject * args );
+static PyObject *Metaball_getThresh( BPy_Metaball * self );
+static PyObject *Metaball_setThresh( BPy_Metaball * self, PyObject * args );
+static PyObject *Metaball_getNMetaElems( BPy_Metaball * self );
+static PyObject *Metaball_getMetatype( BPy_Metaball * self, PyObject * args );
+static PyObject *Metaball_setMetatype( BPy_Metaball * self, PyObject * args );
+static PyObject *Metaball_getMetadata( BPy_Metaball * self, PyObject * args );
+static PyObject *Metaball_setMetadata( BPy_Metaball * self, PyObject * args );
+static PyObject *Metaball_getMetax( BPy_Metaball * self, PyObject * args );
+static PyObject *Metaball_setMetax( BPy_Metaball * self, PyObject * args );
+static PyObject *Metaball_getMetay( BPy_Metaball * self, PyObject * args );
+static PyObject *Metaball_setMetay( BPy_Metaball * self, PyObject * args );
+static PyObject *Metaball_getMetaz( BPy_Metaball * self, PyObject * args );
+static PyObject *Metaball_setMetaz( BPy_Metaball * self, PyObject * args );
+static PyObject *Metaball_getMetas( BPy_Metaball * self, PyObject * args );
+static PyObject *Metaball_setMetas( BPy_Metaball * self, PyObject * args );
+static PyObject *Metaball_getMetalen( BPy_Metaball * self, PyObject * args );
+static PyObject *Metaball_setMetalen( BPy_Metaball * self, PyObject * args );
+static PyObject *Metaball_getloc( BPy_Metaball * self );
+static PyObject *Metaball_setloc( BPy_Metaball * self, PyObject * args );
+static PyObject *Metaball_getrot( BPy_Metaball * self );
+static PyObject *Metaball_setrot( BPy_Metaball * self, PyObject * args );
+static PyObject *Metaball_getsize( BPy_Metaball * self );
+static PyObject *Metaball_setsize( BPy_Metaball * self, PyObject * args );
+
+/*****************************************************************************/
+/* Python BPy_Metaball methods table: */
/*****************************************************************************/
static PyMethodDef BPy_Metaball_methods[] = {
/* name, method, flags, doc */
- {"getName", (PyCFunction)Metaball_getName,\
- METH_NOARGS, "() - Return Metaball name"},
+ {"getName", ( PyCFunction ) Metaball_getName,
+ METH_NOARGS, "() - Return Metaball name"},
- {"getMetaElemList", (PyCFunction)Metaball_getMetaElemList,\
- METH_NOARGS, "() - Return Metaelems list"},
+ {"getMetaElemList", ( PyCFunction ) Metaball_getMetaElemList,
+ METH_NOARGS, "() - Return Metaelems list"},
- {"addMetaelem", (PyCFunction)Metaball_addMetaelem,\
- METH_VARARGS, "() -Adds a metaelem to the metaball"},
- {"setName", (PyCFunction)Metaball_setName,\
+ {"addMetaelem", ( PyCFunction ) Metaball_addMetaelem,
+ METH_VARARGS, "() -Adds a metaelem to the metaball"},
+ {"setName", ( PyCFunction ) Metaball_setName,
METH_VARARGS, "() - Sets Metaball name"},
- {"getWiresize", (PyCFunction)Metaball_getWiresize,\
- METH_NOARGS, "() - Return Metaball wire size"},
- {"setWiresize", (PyCFunction)Metaball_setWiresize,\
+ {"getWiresize", ( PyCFunction ) Metaball_getWiresize,
+ METH_NOARGS, "() - Return Metaball wire size"},
+ {"setWiresize", ( PyCFunction ) Metaball_setWiresize,
METH_VARARGS, "() - Sets Metaball wire size"},
- {"getRendersize", (PyCFunction)Metaball_getRendersize,\
- METH_NOARGS, "() - Return Metaball render size"},
- {"setRendersize", (PyCFunction)Metaball_setRendersize,\
+ {"getRendersize", ( PyCFunction ) Metaball_getRendersize,
+ METH_NOARGS, "() - Return Metaball render size"},
+ {"setRendersize", ( PyCFunction ) Metaball_setRendersize,
METH_VARARGS, "() - Sets Metaball render size"},
- {"getThresh", (PyCFunction)Metaball_getThresh,\
- METH_NOARGS, "() - Return Metaball threshold"},
- {"setThresh", (PyCFunction)Metaball_setThresh,\
- METH_VARARGS, "() - Sets Metaball threshold"},
- {"getBbox", (PyCFunction)Metaball_getBbox,\
- METH_NOARGS, "() - Return Metaball bounding box"},
- {"getNMetaElems",(PyCFunction)Metaball_getNMetaElems,\
+ {"getThresh", ( PyCFunction ) Metaball_getThresh,
+ METH_NOARGS, "() - Return Metaball threshold"},
+ {"setThresh", ( PyCFunction ) Metaball_setThresh,
+ METH_VARARGS, "() - Sets Metaball threshold"},
+ {"getBbox", ( PyCFunction ) Metaball_getBbox,
+ METH_NOARGS, "() - Return Metaball bounding box"},
+ {"getNMetaElems", ( PyCFunction ) Metaball_getNMetaElems,
METH_NOARGS, "() Returns the number of Spheres "},
- {"getMetatype", (PyCFunction)Metaball_getMetatype , \
+ {"getMetatype", ( PyCFunction ) Metaball_getMetatype,
METH_VARARGS, "() - "},
- {"setMetatype", (PyCFunction)Metaball_setMetatype , \
+ {"setMetatype", ( PyCFunction ) Metaball_setMetatype,
METH_VARARGS, "() - "},
- {"getMetadata", (PyCFunction)Metaball_getMetadata , \
+ {"getMetadata", ( PyCFunction ) Metaball_getMetadata,
METH_VARARGS, "() - Gets Metaball MetaData "},
- {"setMetadata", (PyCFunction)Metaball_setMetadata , \
+ {"setMetadata", ( PyCFunction ) Metaball_setMetadata,
METH_VARARGS, "() - "},
- {"getMetax", (PyCFunction)Metaball_getMetax , \
+ {"getMetax", ( PyCFunction ) Metaball_getMetax,
METH_VARARGS, "() - gets the x coordinate of the metaelement "},
- {"setMetax", (PyCFunction)Metaball_setMetax , \
+ {"setMetax", ( PyCFunction ) Metaball_setMetax,
METH_VARARGS, "() -sets the x coordinate of the metaelement "},
- {"getMetay", (PyCFunction)Metaball_getMetay , \
+ {"getMetay", ( PyCFunction ) Metaball_getMetay,
METH_VARARGS, "() - gets the y coordinate of the metaelement"},
- {"setMetay", (PyCFunction)Metaball_setMetay , \
+ {"setMetay", ( PyCFunction ) Metaball_setMetay,
METH_VARARGS, "() - sets the y coordinate of the metaelement"},
- {"getMetaz", (PyCFunction)Metaball_getMetaz , \
+ {"getMetaz", ( PyCFunction ) Metaball_getMetaz,
METH_VARARGS, "() - gets the z coordinate of the metaelement"},
- {"setMetaz", (PyCFunction)Metaball_setMetaz , \
- METH_VARARGS, "() - sets the z coordinate of the metaelement"},
- {"getMetas", (PyCFunction)Metaball_getMetas , \
+ {"setMetaz", ( PyCFunction ) Metaball_setMetaz,
+ METH_VARARGS, "() - sets the z coordinate of the metaelement"},
+ {"getMetas", ( PyCFunction ) Metaball_getMetas,
METH_VARARGS, "() - gets the s coordinate of the metaelement"},
- {"setMetas", (PyCFunction)Metaball_setMetas , \
+ {"setMetas", ( PyCFunction ) Metaball_setMetas,
METH_VARARGS, "() - sets the s coordinate of the metaelement"},
- {"getMetalen", (PyCFunction)Metaball_getMetalen , \
+ {"getMetalen", ( PyCFunction ) Metaball_getMetalen,
METH_VARARGS, "() - gets the length of the metaelement."},
- {"setMetalen", (PyCFunction)Metaball_setMetalen , \
+ {"setMetalen", ( PyCFunction ) Metaball_setMetalen,
METH_VARARGS, "() - sets the length of the metaelement."},
- {"getloc", (PyCFunction)Metaball_getloc , \
+ {"getloc", ( PyCFunction ) Metaball_getloc,
METH_NOARGS, "() - Gets Metaball loc values"},
- {"setloc", (PyCFunction)Metaball_setloc , \
+ {"setloc", ( PyCFunction ) Metaball_setloc,
METH_VARARGS, "(f f f) - Sets Metaball loc values"},
- {"getrot", (PyCFunction)Metaball_getrot , \
+ {"getrot", ( PyCFunction ) Metaball_getrot,
METH_NOARGS, "() - Gets Metaball rot values"},
- {"setrot", (PyCFunction)Metaball_setrot , \
+ {"setrot", ( PyCFunction ) Metaball_setrot,
METH_VARARGS, "(f f f) - Sets Metaball rot values"},
- {"getsize", (PyCFunction)Metaball_getsize , \
+ {"getsize", ( PyCFunction ) Metaball_getsize,
METH_NOARGS, "() - Gets Metaball size values"},
- {"setsize", (PyCFunction)Metaball_setsize , \
+ {"setsize", ( PyCFunction ) Metaball_setsize,
METH_VARARGS, "(f f f) - Sets Metaball size values"},
{NULL, NULL, 0, NULL}
};
/*****************************************************************************/
-/* Python BPy_Metaelem methods table: */
+/* Python BPy_Metaelem methods table: */
/*****************************************************************************/
static PyMethodDef BPy_Metaelem_methods[] = {
{NULL, NULL, 0, NULL}
};
/*****************************************************************************/
-/* Python Metaball_Type callback function prototypes: */
+/* Python Metaball_Type callback function prototypes: */
/*****************************************************************************/
-static void MetaballDeAlloc (BPy_Metaball *self);
-static int MetaballSetAttr (BPy_Metaball *self, char *name, PyObject *v);
-static PyObject *MetaballGetAttr (BPy_Metaball *self, char *name);
-static PyObject *MetaballRepr (BPy_Metaball *self);
+static void MetaballDeAlloc( BPy_Metaball * self );
+static int MetaballSetAttr( BPy_Metaball * self, char *name, PyObject * v );
+static PyObject *MetaballGetAttr( BPy_Metaball * self, char *name );
+static PyObject *MetaballRepr( BPy_Metaball * self );
/*****************************************************************************/
-/* Python Metaelem_Type callback function prototypes: */
+/* Python Metaelem_Type callback function prototypes: */
/*****************************************************************************/
-static void MetaelemDeAlloc (BPy_Metaelem *self);
-static int MetaelemSetAttr (BPy_Metaelem *self, char *name, PyObject *v);
-static PyObject *MetaelemGetAttr (BPy_Metaelem *self, char *name);
-static PyObject *MetaelemRepr (BPy_Metaelem *self);
+static void MetaelemDeAlloc( BPy_Metaelem * self );
+static int MetaelemSetAttr( BPy_Metaelem * self, char *name, PyObject * v );
+static PyObject *MetaelemGetAttr( BPy_Metaelem * self, char *name );
+static PyObject *MetaelemRepr( BPy_Metaelem * self );
-#endif /* EXPP_METABALL_H */
+#endif /* EXPP_METABALL_H */