Blender V2.61 - r43446
Functions

mball_edit.c File Reference

#include <math.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_rand.h"
#include "BLI_utildefines.h"
#include "DNA_defs.h"
#include "DNA_meta_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "RNA_define.h"
#include "RNA_access.h"
#include "RNA_enum_types.h"
#include "BKE_depsgraph.h"
#include "BKE_context.h"
#include "BKE_mball.h"
#include "ED_mball.h"
#include "ED_screen.h"
#include "ED_view3d.h"
#include "ED_transform.h"
#include "ED_util.h"
#include "WM_api.h"
#include "WM_types.h"
#include "mball_intern.h"

Go to the source code of this file.

Functions

void free_editMball (Object *obedit)
void make_editMball (Object *obedit)
void load_editMball (Object *UNUSED(obedit))
MetaElemadd_metaball_primitive (bContext *C, float mat[4][4], int type, int UNUSED(newname))
static int mball_select_all_exec (bContext *C, wmOperator *op)
void MBALL_OT_select_all (wmOperatorType *ot)
static int select_random_metaelems_exec (bContext *C, wmOperator *op)
void MBALL_OT_select_random_metaelems (struct wmOperatorType *ot)
static int duplicate_metaelems_exec (bContext *C, wmOperator *UNUSED(op))
static int duplicate_metaelems_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void MBALL_OT_duplicate_metaelems (wmOperatorType *ot)
static int delete_metaelems_exec (bContext *C, wmOperator *UNUSED(op))
void MBALL_OT_delete_metaelems (wmOperatorType *ot)
static int hide_metaelems_exec (bContext *C, wmOperator *op)
void MBALL_OT_hide_metaelems (wmOperatorType *ot)
static int reveal_metaelems_exec (bContext *C, wmOperator *UNUSED(op))
void MBALL_OT_reveal_metaelems (wmOperatorType *ot)
int mouse_mball (bContext *C, const int mval[2], int extend)
static void freeMetaElemlist (ListBase *lb)
static void undoMball_to_editMball (void *lbu, void *lbe)
static void * editMball_to_undoMball (void *lbe)
static void free_undoMball (void *lbv)
static ListBasemetaball_get_editelems (Object *ob)
static void * get_data (bContext *C)
void undo_push_mball (bContext *C, const char *name)

Detailed Description

Definition in file mball_edit.c.


Function Documentation

MetaElem* add_metaball_primitive ( bContext C,
float  mat[4][4],
int  type,
int   UNUSEDnewname 
)
static int delete_metaelems_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int duplicate_metaelems_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int duplicate_metaelems_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
static void* editMball_to_undoMball ( void *  lbe) [static]
void free_editMball ( Object obedit)

Definition at line 68 of file mball_edit.c.

References Object::data, MetaBall::editelems, MetaBall::lastelem, and NULL.

Referenced by ED_object_exit_editmode().

static void free_undoMball ( void *  lbv) [static]

Definition at line 559 of file mball_edit.c.

References freeMetaElemlist(), and MEM_freeN().

Referenced by undo_push_mball().

static void freeMetaElemlist ( ListBase lb) [static]
static void* get_data ( bContext C) [static]

Definition at line 577 of file mball_edit.c.

References CTX_data_edit_object(), and metaball_get_editelems().

Referenced by undo_push_mball().

static int hide_metaelems_exec ( bContext C,
wmOperator op 
) [static]
void load_editMball ( Object UNUSEDobedit)

Definition at line 96 of file mball_edit.c.

void make_editMball ( Object obedit)
void MBALL_OT_delete_metaelems ( wmOperatorType ot)
void MBALL_OT_duplicate_metaelems ( wmOperatorType ot)
void MBALL_OT_hide_metaelems ( wmOperatorType ot)
void MBALL_OT_reveal_metaelems ( wmOperatorType ot)
void MBALL_OT_select_all ( wmOperatorType ot)
void MBALL_OT_select_random_metaelems ( struct wmOperatorType ot)
static int mball_select_all_exec ( bContext C,
wmOperator op 
) [static]
static ListBase* metaball_get_editelems ( Object ob) [static]

Definition at line 567 of file mball_edit.c.

References Object::data, MetaBall::editelems, NULL, OB_MBALL, and Object::type.

Referenced by get_data().

int mouse_mball ( bContext C,
const int  mval[2],
int  extend 
)
static int reveal_metaelems_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int select_random_metaelems_exec ( bContext C,
wmOperator op 
) [static]
void undo_push_mball ( bContext C,
const char *  name 
)
static void undoMball_to_editMball ( void *  lbu,
void *  lbe 
) [static]