Blender  V2.93
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
 
eTConvertType data_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 *)
 
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_tweak
 
bool is_orient_default_overwrite
 
struct {
   short   type
 
   float   matrix [3][3]
 
orient [3]
 
enum TransInfo:: { ... }  orient_curr
 
short gizmo_flag
 
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
 
void * view
 
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
 
void * draw_handle_apply
 
void * draw_handle_view
 
void * draw_handle_pixel
 
void * draw_handle_cursor
 
struct RNGrng
 
TransCustomDataContainer custom
 

Detailed Description

Definition at line 504 of file transform.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
O_DEFAULT 
O_SCENE 
O_SET 

Definition at line 608 of file transform.h.

Member Data Documentation

◆ animtimer

struct wmTimer* TransInfo::animtimer

Definition at line 650 of file transform.h.

◆ area

struct ScrArea* TransInfo::area

Definition at line 644 of file transform.h.

◆ around

short TransInfo::around

Definition at line 577 of file transform.h.

◆ 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 555 of file transform.h.

◆ center2d

float TransInfo::center2d[2]

center in screen coordinates.

Definition at line 559 of file transform.h.

◆ center_global

float TransInfo::center_global[3]

center of transformation (in global-space)

Definition at line 557 of file transform.h.

◆ con

TransCon TransInfo::con

Constraint Data.

Definition at line 536 of file transform.h.

◆ context

struct bContext* TransInfo::context

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

Definition at line 642 of file transform.h.

◆ custom

TransCustomDataContainer TransInfo::custom

Typically for mode settings.

Definition at line 668 of file transform.h.

◆ data_container

TransDataContainer* TransInfo::data_container

Definition at line 505 of file transform.h.

◆ data_container_len

int TransInfo::data_container_len

Definition at line 506 of file transform.h.

◆ 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 510 of file transform.h.

◆ data_type

eTConvertType TransInfo::data_type

TODO: It should be a member of TransDataContainer.

Definition at line 513 of file transform.h.

◆ depsgraph

struct Depsgraph* TransInfo::depsgraph

Definition at line 646 of file transform.h.

◆ draw_handle_apply

void* TransInfo::draw_handle_apply

Definition at line 659 of file transform.h.

◆ draw_handle_cursor

void* TransInfo::draw_handle_cursor

Definition at line 662 of file transform.h.

◆ draw_handle_pixel

void* TransInfo::draw_handle_pixel

Definition at line 661 of file transform.h.

◆ draw_handle_view

void* TransInfo::draw_handle_view

Definition at line 660 of file transform.h.

◆ flag

eTFlag TransInfo::flag

Generic flags for special behaviors.

Definition at line 518 of file transform.h.

◆ frame_side

char TransInfo::frame_side

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

Definition at line 567 of file transform.h.

◆ gizmo_flag

short TransInfo::gizmo_flag

backup from view3d, to restore on end.

Definition at line 615 of file transform.h.

◆ handleEvent

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

Definition at line 533 of file transform.h.

◆ helpline

eTHelpline TransInfo::helpline

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

Definition at line 526 of file transform.h.

◆ idx_max

short TransInfo::idx_max

maximum index on the input vector.

Definition at line 561 of file transform.h.

◆ is_launch_event_tweak

bool TransInfo::is_launch_event_tweak

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

Definition at line 599 of file transform.h.

◆ is_orient_default_overwrite

bool TransInfo::is_orient_default_overwrite

Definition at line 601 of file transform.h.

◆ keymap

struct wmKeyMap* TransInfo::keymap

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

Definition at line 652 of file transform.h.

◆ launch_event

short TransInfo::launch_event

event type used to launch transform.

Definition at line 596 of file transform.h.

◆ mat

float TransInfo::mat[3][3]

Rotate/re-scale, to show for widget.

Definition at line 586 of file transform.h.

◆ matrix

float TransInfo::matrix[3][3]

Definition at line 605 of file transform.h.

◆ mbus

struct wmMsgBus* TransInfo::mbus

Definition at line 643 of file transform.h.

◆ mode

eTfmMode TransInfo::mode

Current mode.

Definition at line 528 of file transform.h.

◆ modifiers

eTModifier TransInfo::modifiers

Special modifiers, by function, not key.

Definition at line 520 of file transform.h.

◆ mouse

MouseInput TransInfo::mouse

Mouse input.

Definition at line 545 of file transform.h.

◆ mval

int TransInfo::mval[2]

current mouse position.

Definition at line 656 of file transform.h.

◆ num

NumInput TransInfo::num

Numerical input.

Definition at line 542 of file transform.h.

◆ obedit_type

short TransInfo::obedit_type

Type of active object being edited.

Definition at line 581 of file transform.h.

◆ options

eTContext TransInfo::options

Current context/options for transform.

Definition at line 516 of file transform.h.

◆ 

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

◆ orient_axis

int TransInfo::orient_axis

Primary axis, rotate only uses this.

Definition at line 633 of file transform.h.

◆ orient_axis_ortho

int TransInfo::orient_axis_ortho

Secondary axis, shear uses this.

Definition at line 635 of file transform.h.

◆ 

enum { ... } TransInfo::orient_curr

◆ persinv

float TransInfo::persinv[4][4]

Definition at line 575 of file transform.h.

◆ persmat

float TransInfo::persmat[4][4]

access G.vd from other space types.

Definition at line 574 of file transform.h.

◆ persp

short TransInfo::persp

Definition at line 576 of file transform.h.

◆ prop_mode

short TransInfo::prop_mode

Definition at line 617 of file transform.h.

◆ prop_size

float TransInfo::prop_size

proportional circle radius.

Definition at line 548 of file transform.h.

◆ proptext

char TransInfo::proptext[20]

proportional falloff text.

Definition at line 550 of file transform.h.

◆ redraw

eRedrawFlag TransInfo::redraw

Redraw flag.

Definition at line 524 of file transform.h.

◆ region

struct ARegion* TransInfo::region

Definition at line 645 of file transform.h.

◆ remove_on_cancel

bool TransInfo::remove_on_cancel

remove elements if operator is canceled.

Definition at line 638 of file transform.h.

◆ reports

struct ReportList* TransInfo::reports

assign from the operator, or can be NULL.

Definition at line 654 of file transform.h.

◆ rng

struct RNG* TransInfo::rng

Currently only used for random curve of proportional editing.

Definition at line 665 of file transform.h.

◆ scene

struct Scene* TransInfo::scene

Definition at line 647 of file transform.h.

◆ settings

struct ToolSettings* TransInfo::settings

Definition at line 649 of file transform.h.

◆ snap

float TransInfo::snap[2]

Snapping Gears.

Definition at line 563 of file transform.h.

◆ snap_spatial

float TransInfo::snap_spatial[2]

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

Definition at line 565 of file transform.h.

◆ spacemtx

float TransInfo::spacemtx[3][3]

orientation matrix of the current space.

Definition at line 589 of file transform.h.

◆ spacemtx_inv

float TransInfo::spacemtx_inv[3][3]

Definition at line 590 of file transform.h.

◆ spacename

char TransInfo::spacename[64]

name of the current space, MAX_NAME.

Definition at line 592 of file transform.h.

◆ spacetype

char TransInfo::spacetype

space-type where transforming is.

Definition at line 579 of file transform.h.

◆ state

eTState TransInfo::state

Current state (running, canceled.

Definition at line 522 of file transform.h.

◆ transform

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

Main transform mode function.

Definition at line 531 of file transform.h.

◆ tsnap

TransSnap TransInfo::tsnap

Snap Data.

Definition at line 539 of file transform.h.

◆ type

short TransInfo::type

Definition at line 604 of file transform.h.

◆ values

float TransInfo::values[4]

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

Definition at line 620 of file 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 628 of file transform.h.

◆ values_modal_offset

float TransInfo::values_modal_offset[4]

Offset applied on top of modal input.

Definition at line 623 of file transform.h.

◆ vec

float TransInfo::vec[3]

translation, to show for widget.

Definition at line 584 of file transform.h.

◆ view

void* TransInfo::view

Definition at line 640 of file transform.h.

◆ view_layer

struct ViewLayer* TransInfo::view_layer

Definition at line 648 of file transform.h.

◆ viewinv

float TransInfo::viewinv[4][4]

and to make sure we don't have to.

Definition at line 572 of file transform.h.

◆ viewmat

float TransInfo::viewmat[4][4]

copy from G.vd, prevents feedback.

Definition at line 570 of file transform.h.

◆ zfac

float TransInfo::zfac

use for 3d view.

Definition at line 658 of file transform.h.


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