Blender V2.61 - r43446
Classes | Typedefs | Functions

object_lattice.c File Reference

#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "MEM_guardedalloc.h"
#include "BLI_listbase.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "DNA_curve_types.h"
#include "DNA_key_types.h"
#include "DNA_lattice_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "RNA_access.h"
#include "BKE_context.h"
#include "BKE_depsgraph.h"
#include "BKE_key.h"
#include "BKE_lattice.h"
#include "BKE_mesh.h"
#include "ED_lattice.h"
#include "ED_object.h"
#include "ED_screen.h"
#include "ED_view3d.h"
#include "ED_util.h"
#include "WM_api.h"
#include "WM_types.h"
#include "object_intern.h"

Go to the source code of this file.

Classes

struct  UndoLattice

Typedefs

typedef struct UndoLattice UndoLattice

Functions

void free_editLatt (Object *ob)
void make_editLatt (Object *obedit)
void load_editLatt (Object *obedit)
void ED_setflagsLatt (Object *obedit, int flag)
static int lattice_select_all_exec (bContext *C, wmOperator *op)
void LATTICE_OT_select_all (wmOperatorType *ot)
static int make_regular_poll (bContext *C)
static int make_regular_exec (bContext *C, wmOperator *UNUSED(op))
void LATTICE_OT_make_regular (wmOperatorType *ot)
static void findnearestLattvert__doClosest (void *userData, BPoint *bp, int x, int y)
static BPointfindnearestLattvert (ViewContext *vc, const int mval[2], int sel)
int mouse_lattice (bContext *C, const int mval[2], int extend)
static void undoLatt_to_editLatt (void *data, void *edata)
static void * editLatt_to_undoLatt (void *edata)
static void free_undoLatt (void *data)
static int validate_undoLatt (void *data, void *edata)
static void * get_editlatt (bContext *C)
void undo_push_lattice (bContext *C, const char *name)

Detailed Description

Definition in file object_lattice.c.


Typedef Documentation

typedef struct UndoLattice UndoLattice

Function Documentation

void ED_setflagsLatt ( Object obedit,
int  flag 
)
static void* editLatt_to_undoLatt ( void *  edata) [static]
static BPoint* findnearestLattvert ( ViewContext vc,
const int  mval[2],
int  sel 
) [static]
static void findnearestLattvert__doClosest ( void *  userData,
BPoint bp,
int  x,
int  y 
) [static]

Definition at line 305 of file object_lattice.c.

References abs(), data, BPoint::f1, and SELECT.

Referenced by findnearestLattvert().

void free_editLatt ( Object ob)
static void free_undoLatt ( void *  data) [static]

Definition at line 391 of file object_lattice.c.

References UndoLattice::def, and MEM_freeN().

Referenced by undo_push_lattice().

static void* get_editlatt ( bContext C) [static]
void LATTICE_OT_make_regular ( wmOperatorType ot)
void LATTICE_OT_select_all ( wmOperatorType ot)
static int lattice_select_all_exec ( bContext C,
wmOperator op 
) [static]
void load_editLatt ( Object obedit)
void make_editLatt ( Object obedit)
static int make_regular_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int make_regular_poll ( bContext C) [static]
int mouse_lattice ( bContext C,
const int  mval[2],
int  extend 
)
void undo_push_lattice ( bContext C,
const char *  name 
)
static void undoLatt_to_editLatt ( void *  data,
void *  edata 
) [static]
static int validate_undoLatt ( void *  data,
void *  edata 
) [static]