Blender V4.3
transform_mode_customdata.cc File Reference
#include <cstdlib>
#include "BLI_math_vector.h"
#include "BLI_string.h"
#include "BLI_task.h"
#include "BKE_unit.hh"
#include "ED_screen.hh"
#include "UI_interface.hh"
#include "BLT_translation.hh"
#include "transform.hh"
#include "transform_convert.hh"
#include "transform_snap.hh"
#include "transform_mode.hh"

Go to the source code of this file.

Classes

struct  TransDataArgs_Value
 

Functions

Transform Element
static void transdata_elem_value (const TransInfo *, const TransDataContainer *, TransData *td, const float value)
 
static void transdata_elem_value_fn (void *__restrict iter_data_v, const int iter, const TaskParallelTLS *__restrict)
 
Transform Value
static void apply_value_impl (TransInfo *t, const char *value_name)
 
static void applyCrease (TransInfo *t)
 
static void applyBevelWeight (TransInfo *t)
 
static void init_mode_impl (TransInfo *t)
 
static void initEgdeCrease (TransInfo *t, wmOperator *)
 
static void initVertCrease (TransInfo *t, wmOperator *)
 
static void initBevelWeight (TransInfo *t, wmOperator *)
 

Variables

TransModeInfo TransMode_edgecrease
 
TransModeInfo TransMode_vertcrease
 
TransModeInfo TransMode_bevelweight
 

Function Documentation

◆ apply_value_impl()

◆ applyBevelWeight()

static void applyBevelWeight ( TransInfo * t)
static

Definition at line 143 of file transform_mode_customdata.cc.

References apply_value_impl(), and IFACE_.

◆ applyCrease()

static void applyCrease ( TransInfo * t)
static

Definition at line 138 of file transform_mode_customdata.cc.

References apply_value_impl(), and IFACE_.

◆ init_mode_impl()

◆ initBevelWeight()

static void initBevelWeight ( TransInfo * t,
wmOperator *  )
static

Definition at line 174 of file transform_mode_customdata.cc.

References init_mode_impl(), TransInfo::mode, and TFM_BWEIGHT.

◆ initEgdeCrease()

static void initEgdeCrease ( TransInfo * t,
wmOperator *  )
static

Definition at line 162 of file transform_mode_customdata.cc.

References init_mode_impl(), TransInfo::mode, and TFM_EDGE_CREASE.

◆ initVertCrease()

static void initVertCrease ( TransInfo * t,
wmOperator *  )
static

Definition at line 168 of file transform_mode_customdata.cc.

References init_mode_impl(), TransInfo::mode, and TFM_VERT_CREASE.

◆ transdata_elem_value()

static void transdata_elem_value ( const TransInfo * ,
const TransDataContainer * ,
TransData * td,
const float value )
static

Definition at line 42 of file transform_mode_customdata.cc.

References CLAMP, and TransData::factor.

Referenced by apply_value_impl(), and transdata_elem_value_fn().

◆ transdata_elem_value_fn()

static void transdata_elem_value_fn ( void *__restrict iter_data_v,
const int iter,
const TaskParallelTLS * __restrict )
static

Definition at line 55 of file transform_mode_customdata.cc.

References TD_SKIP, and transdata_elem_value().

Referenced by apply_value_impl().

Variable Documentation

◆ TransMode_bevelweight

TransModeInfo TransMode_bevelweight
Initial value:
= {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr,
}
@ T_NO_PROJECT
Definition transform.hh:121
@ T_NO_CONSTRAINT
Definition transform.hh:95
static void initBevelWeight(TransInfo *t, wmOperator *)
static void applyBevelWeight(TransInfo *t)

Definition at line 204 of file transform_mode_customdata.cc.

Referenced by mode_info_get().

◆ TransMode_edgecrease

TransModeInfo TransMode_edgecrease
Initial value:
= {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr,
}
static void applyCrease(TransInfo *t)
static void initEgdeCrease(TransInfo *t, wmOperator *)

Definition at line 182 of file transform_mode_customdata.cc.

Referenced by mode_info_get().

◆ TransMode_vertcrease

TransModeInfo TransMode_vertcrease
Initial value:
= {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr,
}
static void initVertCrease(TransInfo *t, wmOperator *)

Definition at line 193 of file transform_mode_customdata.cc.

Referenced by mode_info_get().