Blender  V3.3
Public Types | Public Attributes | List of all members
TransInfo Struct Reference

#include <transform.h>

Public Types

enum  { O_DEFAULT = 0 , O_SCENE , O_SET }
 

Public Attributes

TransDataContainerdata_container
 
int data_container_len
 
int data_len_all
 
struct TransConvertTypeInfodata_type
 
eTContext options
 
eTFlag flag
 
eTModifier modifiers
 
eTState state
 
eRedrawFlag redraw
 
eTHelpline helpline
 
eTfmMode mode
 
void(* transform )(struct TransInfo *, const int[2])
 
eRedrawFlag(* handleEvent )(struct TransInfo *, const struct wmEvent *)
 
void(* transform_matrix )(struct TransInfo *t, float mat_xform[4][4])
 
TransCon con
 
TransSnap tsnap
 
NumInput num
 
MouseInput mouse
 
float prop_size
 
char proptext [20]
 
float aspect [3]
 
float center_global [3]
 
float center2d [2]
 
short idx_max
 
float snap [2]
 
float snap_spatial [2]
 
char frame_side
 
float viewmat [4][4]
 
float viewinv [4][4]
 
float persmat [4][4]
 
float persinv [4][4]
 
short persp
 
short around
 
char spacetype
 
short obedit_type
 
float vec [3]
 
float mat [3][3]
 
float spacemtx [3][3]
 
float spacemtx_inv [3][3]
 
char spacename [64]
 
short launch_event
 
bool is_launch_event_drag
 
bool is_orient_default_overwrite
 
struct {
   short   type
 
   float   matrix [3][3]
 
orient [3]
 
enum TransInfo:: { ... }  orient_curr
 
int orient_type_mask
 
short prop_mode
 
float values [4]
 
float values_modal_offset [4]
 
float values_final [4]
 
int orient_axis
 
int orient_axis_ortho
 
bool remove_on_cancel
 
voidview
 
struct bContextcontext
 
struct wmMsgBusmbus
 
struct ScrAreaarea
 
struct ARegionregion
 
struct Depsgraphdepsgraph
 
struct Scenescene
 
struct ViewLayerview_layer
 
struct ToolSettingssettings
 
struct wmTimeranimtimer
 
struct wmKeyMapkeymap
 
struct ReportListreports
 
int mval [2]
 
float zfac
 
voiddraw_handle_view
 
voiddraw_handle_pixel
 
voiddraw_handle_cursor
 
struct RNGrng
 
TransCustomDataContainer custom
 

Detailed Description

Definition at line 485 of file source/blender/editors/transform/transform.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
O_DEFAULT 
O_SCENE 
O_SET 

Definition at line 598 of file source/blender/editors/transform/transform.h.

Member Data Documentation

◆ animtimer

struct wmTimer* TransInfo::animtimer

◆ area

struct ScrArea* TransInfo::area

◆ around

short TransInfo::around

◆ aspect

float TransInfo::aspect[3]

Spaces using non 1:1 aspect, (uv's, f-curve, movie-clip... etc) use for conversion and snapping.

Definition at line 543 of file source/blender/editors/transform/transform.h.

◆ center2d

float TransInfo::center2d[2]

center in screen coordinates.

Definition at line 547 of file source/blender/editors/transform/transform.h.

◆ center_global

float TransInfo::center_global[3]

center of transformation (in global-space)

Definition at line 545 of file source/blender/editors/transform/transform.h.

◆ con

TransCon TransInfo::con

Constraint Data.

Definition at line 524 of file source/blender/editors/transform/transform.h.

◆ context

struct bContext* TransInfo::context

Only valid (non null) during an operator called function.

Definition at line 635 of file source/blender/editors/transform/transform.h.

◆ custom

TransCustomDataContainer TransInfo::custom

Typically for mode settings.

Definition at line 660 of file source/blender/editors/transform/transform.h.

◆ data_container

TransDataContainer* TransInfo::data_container

◆ data_container_len

int TransInfo::data_container_len

◆ data_len_all

int TransInfo::data_len_all

Combine length of all TransDataContainer.data_len Use to check if nothing is selected or if we have a single selection.

Definition at line 491 of file source/blender/editors/transform/transform.h.

◆ data_type

struct TransConvertTypeInfo* TransInfo::data_type

TODO: It should be a member of TransDataContainer.

Definition at line 494 of file source/blender/editors/transform/transform.h.

◆ depsgraph

struct Depsgraph* TransInfo::depsgraph

◆ draw_handle_cursor

void* TransInfo::draw_handle_cursor

◆ draw_handle_pixel

void* TransInfo::draw_handle_pixel

◆ draw_handle_view

void* TransInfo::draw_handle_view

◆ flag

eTFlag TransInfo::flag

Generic flags for special behaviors.

Definition at line 499 of file source/blender/editors/transform/transform.h.

◆ frame_side

char TransInfo::frame_side

Mouse side of the current frame, 'L', 'R' or 'B'

Definition at line 555 of file source/blender/editors/transform/transform.h.

◆ handleEvent

eRedrawFlag(* TransInfo::handleEvent) (struct TransInfo *, const struct wmEvent *)

◆ helpline

eTHelpline TransInfo::helpline

Choice of custom cursor with or without a help line from the gizmo to the mouse position.

Definition at line 507 of file source/blender/editors/transform/transform.h.

◆ idx_max

short TransInfo::idx_max

maximum index on the input vector.

Definition at line 549 of file source/blender/editors/transform/transform.h.

◆ is_launch_event_drag

bool TransInfo::is_launch_event_drag

Is the actual launch event a drag event? (launch_event is set to the corresponding mouse button then.)

Definition at line 589 of file source/blender/editors/transform/transform.h.

◆ is_orient_default_overwrite

bool TransInfo::is_orient_default_overwrite

◆ keymap

struct wmKeyMap* TransInfo::keymap

Needed so we can perform a look up for header text.

Definition at line 645 of file source/blender/editors/transform/transform.h.

◆ launch_event

short TransInfo::launch_event

event type used to launch transform.

Definition at line 584 of file source/blender/editors/transform/transform.h.

◆ mat

float TransInfo::mat[3][3]

Rotate/re-scale, to show for widget.

Definition at line 574 of file source/blender/editors/transform/transform.h.

◆ matrix

float TransInfo::matrix[3][3]

◆ mbus

struct wmMsgBus* TransInfo::mbus

◆ mode

eTfmMode TransInfo::mode

Current mode.

Definition at line 509 of file source/blender/editors/transform/transform.h.

◆ modifiers

eTModifier TransInfo::modifiers

Special modifiers, by function, not key.

Definition at line 501 of file source/blender/editors/transform/transform.h.

◆ mouse

MouseInput TransInfo::mouse

Mouse input.

Definition at line 533 of file source/blender/editors/transform/transform.h.

◆ mval

int TransInfo::mval[2]

current mouse position.

Definition at line 649 of file source/blender/editors/transform/transform.h.

◆ num

NumInput TransInfo::num

Numerical input.

Definition at line 530 of file source/blender/editors/transform/transform.h.

◆ obedit_type

short TransInfo::obedit_type

Type of active object being edited.

Definition at line 569 of file source/blender/editors/transform/transform.h.

◆ options

eTContext TransInfo::options

Current context/options for transform.

Definition at line 497 of file source/blender/editors/transform/transform.h.

◆ 

struct { ... } TransInfo::orient[3]

◆ orient_axis

int TransInfo::orient_axis

Primary axis, rotate only uses this.

Definition at line 626 of file source/blender/editors/transform/transform.h.

◆ orient_axis_ortho

int TransInfo::orient_axis_ortho

Secondary axis, shear uses this.

Definition at line 628 of file source/blender/editors/transform/transform.h.

◆ 

enum { ... } TransInfo::orient_curr

◆ orient_type_mask

int TransInfo::orient_type_mask

All values from TransInfo.orient[].type converted into a flag to allow quickly checking which orientation types are used.

Definition at line 608 of file source/blender/editors/transform/transform.h.

◆ persinv

float TransInfo::persinv[4][4]

◆ persmat

float TransInfo::persmat[4][4]

Access RegionView3D from other space types.

Definition at line 562 of file source/blender/editors/transform/transform.h.

◆ persp

short TransInfo::persp

◆ prop_mode

short TransInfo::prop_mode

◆ prop_size

float TransInfo::prop_size

proportional circle radius.

Definition at line 536 of file source/blender/editors/transform/transform.h.

◆ proptext

char TransInfo::proptext[20]

proportional falloff text.

Definition at line 538 of file source/blender/editors/transform/transform.h.

◆ redraw

eRedrawFlag TransInfo::redraw

Redraw flag.

Definition at line 505 of file source/blender/editors/transform/transform.h.

◆ region

struct ARegion* TransInfo::region

◆ remove_on_cancel

bool TransInfo::remove_on_cancel

remove elements if operator is canceled.

Definition at line 631 of file source/blender/editors/transform/transform.h.

◆ reports

struct ReportList* TransInfo::reports

assign from the operator, or can be NULL.

Definition at line 647 of file source/blender/editors/transform/transform.h.

◆ rng

struct RNG* TransInfo::rng

Currently only used for random curve of proportional editing.

Definition at line 657 of file source/blender/editors/transform/transform.h.

◆ scene

struct Scene* TransInfo::scene

◆ settings

struct ToolSettings* TransInfo::settings

◆ snap

float TransInfo::snap[2]

Snapping Gears.

Definition at line 551 of file source/blender/editors/transform/transform.h.

◆ snap_spatial

float TransInfo::snap_spatial[2]

Spatial snapping gears(even when rotating, scaling... etc).

Definition at line 553 of file source/blender/editors/transform/transform.h.

◆ spacemtx

float TransInfo::spacemtx[3][3]

orientation matrix of the current space.

Definition at line 577 of file source/blender/editors/transform/transform.h.

◆ spacemtx_inv

float TransInfo::spacemtx_inv[3][3]

◆ spacename

char TransInfo::spacename[64]

name of the current space, MAX_NAME.

Definition at line 580 of file source/blender/editors/transform/transform.h.

◆ spacetype

char TransInfo::spacetype

space-type where transforming is.

Definition at line 567 of file source/blender/editors/transform/transform.h.

◆ state

eTState TransInfo::state

Current state (running, canceled.

Definition at line 503 of file source/blender/editors/transform/transform.h.

◆ transform

void(* TransInfo::transform) (struct TransInfo *, const int[2])

Main transform mode function.

Definition at line 512 of file source/blender/editors/transform/transform.h.

◆ transform_matrix

void(* TransInfo::transform_matrix) (struct TransInfo *t, float mat_xform[4][4])

Optional callback to transform a single matrix.

Note
used by the gizmo to transform the matrix used to position it.

Definition at line 521 of file source/blender/editors/transform/transform.h.

◆ tsnap

TransSnap TransInfo::tsnap

Snap Data.

Definition at line 527 of file source/blender/editors/transform/transform.h.

◆ type

short TransInfo::type

◆ values

float TransInfo::values[4]

Value taken as input, either through mouse coordinates or entered as a parameter.

Definition at line 613 of file source/blender/editors/transform/transform.h.

◆ values_final

float TransInfo::values_final[4]

Final value of the transformation (displayed in the redo panel). If the operator is executed directly (not modal), this value is usually the value of the input parameter, except when a constrain is entered.

Definition at line 621 of file source/blender/editors/transform/transform.h.

◆ values_modal_offset

float TransInfo::values_modal_offset[4]

Offset applied on top of modal input.

Definition at line 616 of file source/blender/editors/transform/transform.h.

◆ vec

float TransInfo::vec[3]

translation, to show for widget.

Definition at line 572 of file source/blender/editors/transform/transform.h.

◆ view

void* TransInfo::view

◆ view_layer

struct ViewLayer* TransInfo::view_layer

◆ viewinv

float TransInfo::viewinv[4][4]

and to make sure we don't have to.

Definition at line 560 of file source/blender/editors/transform/transform.h.

◆ viewmat

float TransInfo::viewmat[4][4]

copy from RegionView3D, prevents feedback.

Definition at line 558 of file source/blender/editors/transform/transform.h.

◆ zfac

float TransInfo::zfac

use for 3d view.

Definition at line 651 of file source/blender/editors/transform/transform.h.


The documentation for this struct was generated from the following file: