Blender V4.3
SnapObjectContext Struct Reference

#include <transform_snap_object.hh>

Classes

struct  SnapCache
 

Public Attributes

Scenescene
 
blender::Map< const ID *, std::unique_ptr< SnapCache > > editmesh_caches
 
struct { 
 
   struct { 
 
      bool(*   test_vert_fn )(BMVert *, void *user_data) 
 
      bool(*   test_edge_fn )(BMEdge *, void *user_data) 
 
      bool(*   test_face_fn )(BMFace *, void *user_data) 
 
      void *   user_data 
 
   }   edit_mesh 
 
callbacks 
 
struct { 
 
   blender::float4x4   persmat 
 
   blender::float4   planes [4] 
 
   float   size 
 
   bool   use_init_co 
 
grid 
 
struct { 
 
   Depsgraph *   depsgraph 
 
   const RegionView3D *   rv3d 
 
   const View3D *   v3d 
 
   eSnapMode   snap_to_flag 
 
   SnapObjectParams   params 
 
   blender::float3   ray_start 
 
   blender::float3   ray_dir 
 
   blender::float3   init_co 
 
   blender::float3   curr_co 
 
   blender::float2   win_size 
 
   blender::float2   mval 
 
   blender::Vector< blender::float4, MAX_CLIPPLANE_LEN >   clip_planes 
 
   blender::float4   occlusion_plane 
 
   blender::float4   occlusion_plane_in_front 
 
   uint   object_index 
 
   eSnapOcclusionTest   occlusion_test_edit 
 
   bool   has_occlusion_plane 
 
   bool   has_occlusion_plane_in_front 
 
runtime 
 
struct { 
 
   blender::float3   loc 
 
   blender::float3   no 
 
   int   index 
 
   blender::float4x4   obmat 
 
   ListBase *   hit_list 
 
   const Object *   ob 
 
   const ID *   data 
 
   float   ray_depth_max 
 
   float   ray_depth_max_in_front 
 
   union { 
 
      float   dist_px_sq 
 
      float   dist_nearest_sq 
 
   }  
 
ret 
 

Detailed Description

Definition at line 20 of file transform_snap_object.hh.

Member Data Documentation

◆ [struct]

struct { ... } SnapObjectContext::callbacks

◆ clip_planes

◆ curr_co

◆ data

◆ depsgraph

Depsgraph* SnapObjectContext::depsgraph

Definition at line 47 of file transform_snap_object.hh.

Referenced by iter_snap_objects(), and snap_object_context_runtime_init().

◆ dist_nearest_sq

float SnapObjectContext::dist_nearest_sq

Definition at line 97 of file transform_snap_object.hh.

Referenced by nearest_world_mesh().

◆ dist_px_sq

◆ [struct]

struct { ... } SnapObjectContext::edit_mesh

◆ editmesh_caches

blender::Map<const ID *, std::unique_ptr<SnapCache> > SnapObjectContext::editmesh_caches

◆ [struct]

struct { ... } SnapObjectContext::grid

◆ has_occlusion_plane

bool SnapObjectContext::has_occlusion_plane

◆ has_occlusion_plane_in_front

bool SnapObjectContext::has_occlusion_plane_in_front

◆ hit_list

ListBase* SnapObjectContext::hit_list

Definition at line 87 of file transform_snap_object.hh.

Referenced by raycastMesh(), and snap_object_context_runtime_init().

◆ index

◆ init_co

blender::float3 SnapObjectContext::init_co

◆ loc

◆ mval

blender::float2 SnapObjectContext::mval

◆ no

◆ ob

◆ object_index

uint SnapObjectContext::object_index

Definition at line 68 of file transform_snap_object.hh.

Referenced by snap_object_context_runtime_init(), and snap_object_mesh().

◆ obmat

◆ occlusion_plane

blender::float4 SnapObjectContext::occlusion_plane

◆ occlusion_plane_in_front

blender::float4 SnapObjectContext::occlusion_plane_in_front

◆ occlusion_test_edit

eSnapOcclusionTest SnapObjectContext::occlusion_test_edit

Definition at line 70 of file transform_snap_object.hh.

Referenced by raycast_obj_fn(), and snap_object_context_runtime_init().

◆ params

◆ persmat

blender::float4x4 SnapObjectContext::persmat

Definition at line 40 of file transform_snap_object.hh.

Referenced by snap_object_context_runtime_init().

◆ planes

blender::float4 SnapObjectContext::planes[4]

Definition at line 41 of file transform_snap_object.hh.

Referenced by snap_grid(), and snap_object_context_runtime_init().

◆ ray_depth_max

◆ ray_depth_max_in_front

float SnapObjectContext::ray_depth_max_in_front

◆ ray_dir

◆ ray_start

◆ [struct]

◆ [struct]

◆ rv3d

const RegionView3D* SnapObjectContext::rv3d

◆ scene

◆ size

float SnapObjectContext::size

Definition at line 42 of file transform_snap_object.hh.

Referenced by snap_grid(), and snap_object_context_runtime_init().

◆ snap_to_flag

◆ test_edge_fn

bool(* SnapObjectContext::test_edge_fn) (BMEdge *, void *user_data)

◆ test_face_fn

bool(* SnapObjectContext::test_face_fn) (BMFace *, void *user_data)

◆ test_vert_fn

bool(* SnapObjectContext::test_vert_fn) (BMVert *, void *user_data)

◆ use_init_co

bool SnapObjectContext::use_init_co

Definition at line 43 of file transform_snap_object.hh.

Referenced by snap_grid(), and snap_object_context_runtime_init().

◆ user_data

void* SnapObjectContext::user_data

◆ v3d

const View3D* SnapObjectContext::v3d

◆ win_size

blender::float2 SnapObjectContext::win_size

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