Blender  V3.3
Classes | Macros | Typedefs | Enumerations
transform_data.h 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_AXIS_SHIFT   12
 
#define TD_MIRROR_EDGE_AXIS_SHIFT   12
 
#define T_PROP_SIZE_MIN   1e-6f
 
#define T_PROP_SIZE_MAX   1e12f
 

Typedefs

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

Enumerations

enum  {
  TD_SELECTED = 1 << 0 , TD_USEQUAT = 1 << 1 , TD_NOTCONNECTED = 1 << 2 , 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
}
 

Macro Definition Documentation

◆ T_PROP_SIZE_MAX

#define T_PROP_SIZE_MAX   1e12f

Definition at line 185 of file transform_data.h.

◆ T_PROP_SIZE_MIN

#define T_PROP_SIZE_MIN   1e-6f

Definition at line 184 of file transform_data.h.

◆ TD_MIRROR_AXIS_SHIFT

#define TD_MIRROR_AXIS_SHIFT   12

Definition at line 163 of file transform_data.h.

◆ TD_MIRROR_EDGE_AXIS_SHIFT

#define TD_MIRROR_EDGE_AXIS_SHIFT   12

Definition at line 168 of file transform_data.h.

◆ TRANSDATA_THREAD_LIMIT

#define TRANSDATA_THREAD_LIMIT   1024

Definition at line 137 of file transform_data.h.

◆ TRANSDATABASIC

#define TRANSDATABASIC
Value:
\
void *extra; \ \
float *loc; \ \
float iloc[3]; \ \
float center[3]; \ \
int flag
NSNotificationCenter * center

Definition at line 13 of file transform_data.h.

Typedef Documentation

◆ TransData

typedef struct TransData TransData

◆ TransData2D

typedef struct TransData2D TransData2D

◆ TransDataBasic

◆ TransDataCurveHandleFlags

Used to store 2 handles for each TransData in case the other handle wasn't selected. Also to unset temporary flags.

◆ TransDataExtension

◆ TransDataMirror

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

#TransData.flag

Enumerator
TD_SELECTED 
TD_USEQUAT 
TD_NOTCONNECTED 
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 bez 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 editmode mirror.

TD_MIRROR_Y 
TD_MIRROR_Z 
TD_MIRROR_EDGE_X 

For editmode mirror, clamp axis to 0

TD_MIRROR_EDGE_Y 
TD_MIRROR_EDGE_Z 
TD_MOVEHANDLE1 

For fcurve 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 above but for a child bone.

Definition at line 140 of file transform_data.h.