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:
authorCampbell Barton <ideasman42@gmail.com>2012-11-28 04:16:06 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-11-28 04:16:06 +0400
commit8ecce451ab928fd2ab9d2844e8f337c18c6f1269 (patch)
tree2a6c689c4cc90adb99dafaba0e4e493b898cfc48 /source/blender/bmesh/intern/bmesh_operator_api.h
parent69948150ad417e20ed29d818ba5a271d653ef2ff (diff)
bmesh operator naming - use clearer names for args eg: (mat -> matrix, use_singleedge -> use_single_edge)
also remove duplicate docs for operator arg formatting.
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_operator_api.h')
-rw-r--r--source/blender/bmesh/intern/bmesh_operator_api.h45
1 files changed, 6 insertions, 39 deletions
diff --git a/source/blender/bmesh/intern/bmesh_operator_api.h b/source/blender/bmesh/intern/bmesh_operator_api.h
index bebd3215d93..df67f459a34 100644
--- a/source/blender/bmesh/intern/bmesh_operator_api.h
+++ b/source/blender/bmesh/intern/bmesh_operator_api.h
@@ -240,43 +240,6 @@ int BMO_mesh_enabled_flag_count(BMesh *bm, const char htype, const short oflag);
int BMO_mesh_disabled_flag_count(BMesh *bm, const char htype, const short oflag);
/*---------formatted operator initialization/execution-----------*/
-/*
- * this system is used to execute or initialize an operator,
- * using a formatted-string system.
- *
- * for example, BMO_op_callf(bm, BMO_FLAG_DEFAULTS, "delete geom=%hf context=%i", BM_ELEM_SELECT, DEL_FACES);
- * . . .will execute the delete operator, feeding in selected faces, deleting them.
- *
- * the basic format for the format string is:
- * [operatorname] [slot_name]=%[code] [slot_name]=%[code]
- *
- * as in printf, you pass in one additional argument to the function
- * for every code.
- *
- * the formatting codes are:
- * %d - put int in slot
- * %f - put float in slot
- * %p - put pointer in slot
- * %h[f/e/v] - put elements with a header flag in slot.
- * the letters after %h define which element types to use,
- * so e.g. %hf will do faces, %hfe will do faces and edges,
- * %hv will do verts, etc. must pass in at least one
- * element type letter.
- * %H[f/e/v] - same as %h, but tests if the flag is disabled
- * %f[f/e/v] - same as %h, except it deals with tool flags instead of
- * header flags.
- * %F[f/e/v] - same as %f, but tests if the flag is disabled
- * %a[f/e/v] - pass all elements (of types specified by f/e/v) to the
- * slot.
- * %e - pass in a single element.
- * %v - pointer to a float vector of length 3.
- * %m[3/4] - matrix, 3/4 refers to the matrix size, 3 or 4. the
- * corresponding argument must be a pointer to
- * a float matrix.
- * %s - copy a slot from another op, instead of mapping to one
- * argument, it maps to two, a pointer to an operator and
- * a slot name.
- */
void BMO_push(BMesh *bm, BMOperator *op);
void BMO_pop(BMesh *bm);
@@ -443,15 +406,18 @@ void *BMO_slot_buffer_alloc(BMOperator *op, BMOpSlot slot_args[BMO_OP_MAX_SLOTS]
void BMO_slot_buffer_from_all(BMesh *bm, BMOperator *op, BMOpSlot slot_args[BMO_OP_MAX_SLOTS],
const char *slot_name, const char htype);
-/* this part of the API is used to iterate over element buffer or
+/**
+ * This part of the API is used to iterate over element buffer or
* mapping slots.
*
* for example, iterating over the faces in a slot is:
*
+ * \code{.c}
+ *
* BMOIter oiter;
* BMFace *f;
*
- * f = BMO_iter_new(&oiter, bm, some_operator, "slot_name", BM_FACE);
+ * f = BMO_iter_new(&oiter, some_operator, "slot_name", BM_FACE);
* for (; f; f = BMO_iter_step(&oiter)) {
* /do something with the face
* }
@@ -472,6 +438,7 @@ void BMO_slot_buffer_from_all(BMesh *bm, BMOperator *op, BMOpSlot slot_args[BMO_
* // *((void**)BMO_iter_map_value(&oiter));
* //or something like that.
* }
+ * \endcode
*/
/* contents of this structure are private,