Blender V4.3
TransModeInfo Struct Reference

#include <transform_mode.hh>

Public Attributes

int flags
 
void(* init_fn )(TransInfo *, wmOperator *)
 
void(* transform_fn )(TransInfo *)
 
void(* transform_matrix_fn )(TransInfo *, float[4][4])
 
enum eRedrawFlag(* handle_event_fn )(TransInfo *, const wmEvent *)
 
float(* snap_distance_fn )(TransInfo *t, const float p1[3], const float p2[3])
 
void(* snap_apply_fn )(TransInfo *, float *)
 
void(* draw_fn )(TransInfo *)
 

Detailed Description

Definition at line 21 of file transform_mode.hh.

Member Data Documentation

◆ draw_fn

void(* TransModeInfo::draw_fn) (TransInfo *)

Custom drawing.

Definition at line 49 of file transform_mode.hh.

Referenced by drawTransformView().

◆ flags

int TransModeInfo::flags

Definition at line 22 of file transform_mode.hh.

Referenced by transform_mode_init().

◆ handle_event_fn

enum eRedrawFlag(* TransModeInfo::handle_event_fn) (TransInfo *, const wmEvent *)

Definition at line 34 of file transform_mode.hh.

Referenced by transformEvent().

◆ init_fn

void(* TransModeInfo::init_fn) (TransInfo *, wmOperator *)

Definition at line 24 of file transform_mode.hh.

Referenced by transform_mode_init().

◆ snap_apply_fn

void(* TransModeInfo::snap_apply_fn) (TransInfo *, float *)

Definition at line 46 of file transform_mode.hh.

Referenced by transform_snap_mixed_apply().

◆ snap_distance_fn

float(* TransModeInfo::snap_distance_fn) (TransInfo *t, const float p1[3], const float p2[3])

Get the transform distance between two points (used by Closest snap)

Note
Return value can be anything, where the smallest absolute value defines what's closest.

Definition at line 45 of file transform_mode.hh.

Referenced by snap_source_closest_fn().

◆ transform_fn

void(* TransModeInfo::transform_fn) (TransInfo *)

Main transform mode function.

Definition at line 27 of file transform_mode.hh.

Referenced by transformApply().

◆ transform_matrix_fn

void(* TransModeInfo::transform_matrix_fn) (TransInfo *, float[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 34 of file transform_mode.hh.

Referenced by transform_apply_matrix().


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