Blender V2.61 - r43446
Classes | Defines | Functions

view3d_buttons.c File Reference

#include <string.h>
#include <stdio.h>
#include <math.h>
#include <float.h>
#include "DNA_armature_types.h"
#include "DNA_curve_types.h"
#include "DNA_lattice_types.h"
#include "DNA_meta_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_math.h"
#include "BLI_blenlib.h"
#include "BLI_editVert.h"
#include "BLI_rand.h"
#include "BLI_utildefines.h"
#include "BKE_action.h"
#include "BKE_context.h"
#include "BKE_curve.h"
#include "BKE_customdata.h"
#include "BKE_depsgraph.h"
#include "BKE_main.h"
#include "BKE_mesh.h"
#include "BKE_screen.h"
#include "BKE_deform.h"
#include "BKE_object.h"
#include "WM_api.h"
#include "WM_types.h"
#include "RNA_access.h"
#include "ED_armature.h"
#include "ED_gpencil.h"
#include "ED_mesh.h"
#include "ED_screen.h"
#include "ED_transform.h"
#include "ED_curve.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "view3d_intern.h"

Go to the source code of this file.

Classes

struct  TransformProperties

Defines

#define B_NOP   1
#define B_REDR   2
#define B_OBJECTPANELROT   1007
#define B_OBJECTPANELMEDIAN   1008
#define B_ARMATUREPANEL1   1009
#define B_ARMATUREPANEL2   1010
#define B_OBJECTPANELPARENT   1011
#define B_OBJECTPANEL   1012
#define B_ARMATUREPANEL3   1013
#define B_OBJECTPANELSCALE   1014
#define B_OBJECTPANELDIMS   1015
#define B_TRANSFORMSPACEADD   1016
#define B_TRANSFORMSPACECLEAR   1017
#define B_SETPT_AUTO   2125
#define B_SETPT_VECTOR   2126
#define B_SETPT_ALIGN   2127
#define B_SETPT_FREE   2128
#define B_RECALCMBALL   2501
#define B_WEIGHT0_0   2840
#define B_WEIGHT1_4   2841
#define B_WEIGHT1_2   2842
#define B_WEIGHT3_4   2843
#define B_WEIGHT1_0   2844
#define B_OPA1_8   2845
#define B_OPA1_4   2846
#define B_OPA1_2   2847
#define B_OPA3_4   2848
#define B_OPA1_0   2849
#define B_CLR_WPAINT   2850
#define B_RV3D_LOCKED   2900
#define B_RV3D_BOXVIEW   2901
#define B_RV3D_BOXCLIP   2902
#define B_IDNAME   3000
#define B_VGRP_PNL_COPY   1
#define B_VGRP_PNL_NORMALIZE   2
#define B_VGRP_PNL_EDIT_SINGLE   8
#define B_VGRP_PNL_COPY_SINGLE   16384

Functions

static void v3d_editvertex_buts (uiLayout *layout, View3D *v3d, Object *ob, float lim)
static void act_vert_def (Object *ob, EditVert **eve, MDeformVert **dvert)
static void editvert_mirror_update (Object *ob, EditVert *eve, int def_nr, int index)
static void vgroup_adjust_active (Object *ob, int def_nr)
static void vgroup_copy_active_to_sel (Object *ob)
static void vgroup_copy_active_to_sel_single (Object *ob, const int def_nr)
static void vgroup_normalize_active (Object *ob)
static void do_view3d_vgroup_buttons (bContext *C, void *UNUSED(arg), int event)
static int view3d_panel_vgroup_poll (const bContext *C, PanelType *UNUSED(pt))
static void view3d_panel_vgroup (const bContext *C, Panel *pa)
static void v3d_transform_butsR (uiLayout *layout, PointerRNA *ptr)
static void v3d_posearmature_buts (uiLayout *layout, Object *ob)
static void v3d_editarmature_buts (uiLayout *layout, Object *ob)
static void v3d_editmetaball_buts (uiLayout *layout, Object *ob)
static void do_view3d_region_buttons (bContext *C, void *UNUSED(index), int event)
static void view3d_panel_object (const bContext *C, Panel *pa)
void view3d_buttons_register (ARegionType *art)
static int view3d_properties (bContext *C, wmOperator *UNUSED(op))
void VIEW3D_OT_properties (wmOperatorType *ot)

Detailed Description

Definition in file view3d_buttons.c.


Define Documentation

#define B_ARMATUREPANEL1   1009

Definition at line 87 of file view3d_buttons.c.

#define B_ARMATUREPANEL2   1010

Definition at line 88 of file view3d_buttons.c.

Referenced by do_view3d_region_buttons(), and v3d_posearmature_buts().

#define B_ARMATUREPANEL3   1013

Definition at line 91 of file view3d_buttons.c.

Referenced by do_view3d_region_buttons(), and v3d_posearmature_buts().

#define B_CLR_WPAINT   2850

Definition at line 114 of file view3d_buttons.c.

Referenced by do_view3d_region_buttons().

#define B_IDNAME   3000

Definition at line 120 of file view3d_buttons.c.

#define B_NOP   1

Definition at line 83 of file view3d_buttons.c.

#define B_OBJECTPANEL   1012

Definition at line 90 of file view3d_buttons.c.

Referenced by do_view3d_region_buttons().

#define B_OBJECTPANELDIMS   1015

Definition at line 93 of file view3d_buttons.c.

#define B_OBJECTPANELMEDIAN   1008

Definition at line 86 of file view3d_buttons.c.

Referenced by do_view3d_region_buttons(), and v3d_editvertex_buts().

#define B_OBJECTPANELPARENT   1011

Definition at line 89 of file view3d_buttons.c.

Referenced by do_view3d_region_buttons().

#define B_OBJECTPANELROT   1007

Definition at line 85 of file view3d_buttons.c.

#define B_OBJECTPANELSCALE   1014

Definition at line 92 of file view3d_buttons.c.

#define B_OPA1_0   2849

Definition at line 112 of file view3d_buttons.c.

Referenced by do_view3d_region_buttons().

#define B_OPA1_2   2847

Definition at line 110 of file view3d_buttons.c.

Referenced by do_view3d_region_buttons().

#define B_OPA1_4   2846

Definition at line 109 of file view3d_buttons.c.

Referenced by do_view3d_region_buttons().

#define B_OPA1_8   2845

Definition at line 108 of file view3d_buttons.c.

Referenced by do_view3d_region_buttons().

#define B_OPA3_4   2848

Definition at line 111 of file view3d_buttons.c.

Referenced by do_view3d_region_buttons().

#define B_RECALCMBALL   2501

Definition at line 100 of file view3d_buttons.c.

#define B_REDR   2

Definition at line 84 of file view3d_buttons.c.

#define B_RV3D_BOXCLIP   2902

Definition at line 118 of file view3d_buttons.c.

Referenced by do_view3d_region_buttons().

#define B_RV3D_BOXVIEW   2901

Definition at line 117 of file view3d_buttons.c.

Referenced by do_view3d_region_buttons().

#define B_RV3D_LOCKED   2900

Definition at line 116 of file view3d_buttons.c.

Referenced by do_view3d_region_buttons().

#define B_SETPT_ALIGN   2127

Definition at line 98 of file view3d_buttons.c.

#define B_SETPT_AUTO   2125

Definition at line 96 of file view3d_buttons.c.

#define B_SETPT_FREE   2128

Definition at line 99 of file view3d_buttons.c.

#define B_SETPT_VECTOR   2126

Definition at line 97 of file view3d_buttons.c.

#define B_TRANSFORMSPACEADD   1016

Definition at line 94 of file view3d_buttons.c.

Referenced by do_view3d_region_buttons().

#define B_TRANSFORMSPACECLEAR   1017

Definition at line 95 of file view3d_buttons.c.

Referenced by do_view3d_region_buttons().

#define B_VGRP_PNL_COPY   1

Definition at line 592 of file view3d_buttons.c.

Referenced by do_view3d_vgroup_buttons(), and view3d_panel_vgroup().

#define B_VGRP_PNL_COPY_SINGLE   16384

Definition at line 595 of file view3d_buttons.c.

Referenced by do_view3d_vgroup_buttons(), and view3d_panel_vgroup().

#define B_VGRP_PNL_EDIT_SINGLE   8

Definition at line 594 of file view3d_buttons.c.

Referenced by do_view3d_vgroup_buttons(), and view3d_panel_vgroup().

#define B_VGRP_PNL_NORMALIZE   2

Definition at line 593 of file view3d_buttons.c.

Referenced by do_view3d_vgroup_buttons(), and view3d_panel_vgroup().

#define B_WEIGHT0_0   2840

Definition at line 102 of file view3d_buttons.c.

Referenced by do_view3d_region_buttons().

#define B_WEIGHT1_0   2844

Definition at line 106 of file view3d_buttons.c.

Referenced by do_view3d_region_buttons().

#define B_WEIGHT1_2   2842

Definition at line 104 of file view3d_buttons.c.

Referenced by do_view3d_region_buttons().

#define B_WEIGHT1_4   2841

Definition at line 103 of file view3d_buttons.c.

Referenced by do_view3d_region_buttons().

#define B_WEIGHT3_4   2843

Definition at line 105 of file view3d_buttons.c.

Referenced by do_view3d_region_buttons().


Function Documentation

static void act_vert_def ( Object ob,
EditVert **  eve,
MDeformVert **  dvert 
) [static]
static void do_view3d_region_buttons ( bContext C,
void *  UNUSEDindex,
int  event 
) [static]
static void do_view3d_vgroup_buttons ( bContext C,
void *  UNUSEDarg,
int  event 
) [static]
static void editvert_mirror_update ( Object ob,
EditVert eve,
int  def_nr,
int  index 
) [static]
static void v3d_editarmature_buts ( uiLayout layout,
Object ob 
) [static]
static void v3d_editmetaball_buts ( uiLayout layout,
Object ob 
) [static]
static void v3d_editvertex_buts ( uiLayout layout,
View3D v3d,
Object ob,
float  lim 
) [static]

Definition at line 135 of file view3d_buttons.c.

References add_v3_v3(), B_OBJECTPANELMEDIAN, B_REDR, Nurb::bezt, BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), BLI_findlink(), BLI_snprintf(), Nurb::bp, EditEdge::bweight, CD_MDEFORMVERT, CLAMP(), EditVert::co, EditEdge::crease, CU_BEZIER, TransformProperties::curdef, curve_editnurbs(), CustomData_em_get(), EditVert::data, Object::data, Lattice::def, MDeformWeight::def_nr, Object::defbase, TransformProperties::defweightp, MDeformVert::dw, EditMesh::edges, Lattice::editlatt, EditEdge::f, EditVert::f, BPoint::f1, BezTriple::f1, BezTriple::f2, BezTriple::f3, ListBase::first, View3D::flag, FLT_MAX, i, Curve::id, Object::imat, init(), invert_m4_m4(), LABEL, EditLatt::latt, len_v3(), max, MEM_callocN(), mul_m4_v3(), bDeformGroup::name, Nurb::next, EditEdge::next, EditVert::next, NULL, NUM, OB_CURVE, OB_LATTICE, OB_MESH, OB_SURF, Object::obmat, Lattice::pntsu, Nurb::pntsu, Lattice::pntsv, Nurb::pntsv, Lattice::pntsw, PROP_UNIT_LENGTH, View3D::properties_storage, BPoint::radius, BezTriple::radius, recalc_editnormals(), RNA_BezierSplinePoint, RNA_pointer_create(), RNA_SplinePoint, SELECT, str, sub_v3_v3v3(), test2DNurb(), testhandlesNurb(), TOG, TOGN, MDeformVert::totweight, Nurb::type, Object::type, uiBlockBeginAlign(), uiBlockEndAlign(), uiButSetUnitType(), uiDefBut(), uiDefButBitS(), uiDefButF(), uiDefButR(), uiLayoutAbsoluteBlock(), V3D_GLOBAL_STATS, EditMesh::vdata, TransformProperties::ve_median, BPoint::vec, BezTriple::vec, EditMesh::verts, BPoint::weight, BezTriple::weight, and MDeformWeight::weight.

Referenced by do_view3d_region_buttons(), and view3d_panel_object().

static void v3d_posearmature_buts ( uiLayout layout,
Object ob 
) [static]
static void v3d_transform_butsR ( uiLayout layout,
PointerRNA ptr 
) [static]
static void vgroup_adjust_active ( Object ob,
int  def_nr 
) [static]
static void vgroup_copy_active_to_sel ( Object ob) [static]
static void vgroup_copy_active_to_sel_single ( Object ob,
const int  def_nr 
) [static]
static void vgroup_normalize_active ( Object ob) [static]
void view3d_buttons_register ( ARegionType art)
void VIEW3D_OT_properties ( wmOperatorType ot)
static void view3d_panel_object ( const bContext C,
Panel pa 
) [static]
static void view3d_panel_vgroup ( const bContext C,
Panel pa 
) [static]
static int view3d_panel_vgroup_poll ( const bContext C,
PanelType UNUSEDpt 
) [static]

Definition at line 786 of file view3d_buttons.c.

References act_vert_def(), CTX_data_scene(), OBACT, and MDeformVert::totweight.

Referenced by view3d_buttons_register().

static int view3d_properties ( bContext C,
wmOperator UNUSEDop 
) [static]