Blender V4.3
transform_data.hh File Reference

Go to the source code of this file.

Classes

struct  TransDataBasic
 
struct  TransDataMirror
 
struct  TransDataExtension
 
struct  TransData2D
 
struct  TransDataCurveHandleFlags
 
struct  TransData
 

Macros

#define TRANSDATABASIC
 
#define TRANSDATA_THREAD_LIMIT   1024
 
#define TD_MIRROR_EDGE_AXIS_SHIFT   12
 
#define T_PROP_SIZE_MIN   1e-6f
 
#define T_PROP_SIZE_MAX   1e12f
 

Enumerations

enum  {
  TD_SELECTED = 1 << 0 , TD_USEQUAT = 1 << 1 , TD_SINGLESIZE = 1 << 3 , TD_INDIVIDUAL_SCALE = 1 << 4 ,
  TD_NOCENTER = 1 << 5 , TD_NO_EXT = 1 << 6 , TD_SKIP = 1 << 7 , TD_BEZTRIPLE = 1 << 8 ,
  TD_NO_LOC = 1 << 9 , TD_NOTIMESNAP = 1 << 10 , TD_INTVALUES = 1 << 11 , TD_MIRROR_X = 1 << 12 ,
  TD_MIRROR_Y = 1 << 13 , TD_MIRROR_Z = 1 << 14 , TD_MIRROR_EDGE_X = 1 << 12 , TD_MIRROR_EDGE_Y = 1 << 13 ,
  TD_MIRROR_EDGE_Z = 1 << 14 , TD_MOVEHANDLE1 = 1 << 15 , TD_MOVEHANDLE2 = 1 << 16 , TD_PBONE_LOCAL_MTX_P = 1 << 17 ,
  TD_PBONE_LOCAL_MTX_C = 1 << 18 , TD_GREASE_PENCIL_FRAME = 1 << 19
}
 

Macro Definition Documentation

◆ T_PROP_SIZE_MAX

#define T_PROP_SIZE_MAX   1e12f

Definition at line 197 of file transform_data.hh.

Referenced by Transform_Properties(), and transformEvent().

◆ T_PROP_SIZE_MIN

#define T_PROP_SIZE_MIN   1e-6f

Definition at line 196 of file transform_data.hh.

Referenced by Transform_Properties(), and transformEvent().

◆ TD_MIRROR_EDGE_AXIS_SHIFT

#define TD_MIRROR_EDGE_AXIS_SHIFT   12

Definition at line 176 of file transform_data.hh.

Referenced by mesh_partial_ensure().

◆ TRANSDATA_THREAD_LIMIT

◆ TRANSDATABASIC

#define TRANSDATABASIC
Value:
\
void *extra; \
\
float *loc; \
\
float iloc[3]; \
\
float center[3]; \
\
float *val; \
\
float ival; \
\
int flag
uint8_t flag
Definition wm_window.cc:138

Definition at line 14 of file transform_data.hh.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

#TransData.flag

Enumerator
TD_SELECTED 
TD_USEQUAT 
TD_SINGLESIZE 

Used for scaling of MetaElem.rad.

TD_INDIVIDUAL_SCALE 

Scale relative to individual element center.

TD_NOCENTER 
TD_NO_EXT 

TransData.ext abused for particle key timing.

TD_SKIP 

Don't transform this data.

TD_BEZTRIPLE 

If this is a bezier triple, we need to restore the handles, if this is set TransData.hdata needs freeing.

TD_NO_LOC 

When this is set, don't apply translation changes to this element.

TD_NOTIMESNAP 

For Graph Editor auto-snap, indicates that point should not undergo auto-snapping.

TD_INTVALUES 

For Graph Editor - curves that can only have int-values need their keyframes tagged with this.

TD_MIRROR_X 

For edit-mode mirror.

TD_MIRROR_Y 
TD_MIRROR_Z 
TD_MIRROR_EDGE_X 

For edit-mode mirror, clamp axis to 0.

TD_MIRROR_EDGE_Y 
TD_MIRROR_EDGE_Z 
TD_MOVEHANDLE1 

For F-curve handles, move them along with their keyframes.

TD_MOVEHANDLE2 
TD_PBONE_LOCAL_MTX_P 

Exceptional case with pose bone rotating when a parent bone has 'Local Location' option enabled and rotating also transforms it.

TD_PBONE_LOCAL_MTX_C 

Same as TD_PBONE_LOCAL_MTX_P but for a child bone.

TD_GREASE_PENCIL_FRAME 

Definition at line 145 of file transform_data.hh.