Blender V5.3
view3d_navigate_fly.cc File Reference
#include "DNA_object_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_listbase.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_rotation_c.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_rect.hh"
#include "BLI_time.hh"
#include "BKE_camera.h"
#include "BKE_constraint.h"
#include "BKE_context.hh"
#include "BKE_lib_id.hh"
#include "BKE_report.hh"
#include "BKE_screen.hh"
#include "BLT_translation.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "ED_screen.hh"
#include "ED_space_api.hh"
#include "ED_undo.hh"
#include "UI_resources.hh"
#include "GPU_immediate.hh"
#include "view3d_intern.hh"
#include "view3d_navigate.hh"
#include <fmt/format.h>
#include "BLI_strict_flags.hh"

Go to the source code of this file.

Classes

struct  blender::FlyInfo

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define FLY_ROTATE_FAC   10.0f
#define FLY_ZUP_CORRECT_FAC   0.1f
#define FLY_ZUP_CORRECT_ACCEL   0.05f
#define FLY_SMOOTH_FAC   20.0f

Functions

Internal Fly Drawing
static int blender::flyApply (bContext *C, FlyInfo *fly, bool is_confirm)
static void blender::drawFlyPixel (const bContext *, ARegion *, void *arg)
Fly Operator
static void blender::fly_draw_status (bContext *C, wmOperator *op)
static wmOperatorStatus blender::fly_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static void blender::fly_cancel (bContext *C, wmOperator *op)
static wmOperatorStatus blender::fly_modal (bContext *C, wmOperator *op, const wmEvent *event)
void blender::VIEW3D_OT_fly (wmOperatorType *ot)

Modal Key-map

enum  {
  blender::FLY_MODAL_CANCEL = 1 , blender::FLY_MODAL_CONFIRM , blender::FLY_MODAL_ACCELERATE , blender::FLY_MODAL_DECELERATE ,
  blender::FLY_MODAL_PAN_ENABLE , blender::FLY_MODAL_PAN_DISABLE , blender::FLY_MODAL_DIR_FORWARD , blender::FLY_MODAL_DIR_BACKWARD ,
  blender::FLY_MODAL_DIR_LEFT , blender::FLY_MODAL_DIR_RIGHT , blender::FLY_MODAL_DIR_UP , blender::FLY_MODAL_DIR_DOWN ,
  blender::FLY_MODAL_AXIS_LOCK_X , blender::FLY_MODAL_AXIS_LOCK_Z , blender::FLY_MODAL_PRECISION_ENABLE , blender::FLY_MODAL_PRECISION_DISABLE ,
  blender::FLY_MODAL_FREELOOK_ENABLE , blender::FLY_MODAL_FREELOOK_DISABLE , blender::FLY_MODAL_SPEED
}
enum  blender::eFlyPanState { blender::FLY_AXISLOCK_STATE_OFF = 0 , blender::FLY_AXISLOCK_STATE_IDLE = 1 , blender::FLY_AXISLOCK_STATE_ACTIVE = 2 }
void blender::fly_modal_keymap (wmKeyConfig *keyconf)

Internal Fly Logic

enum  { blender::FLY_RUNNING = 0 , blender::FLY_CANCEL = 1 , blender::FLY_CONFIRM = 2 }
static bool blender::initFlyInfo (bContext *C, FlyInfo *fly, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::flyEnd (bContext *C, FlyInfo *fly)
static void blender::flyEvent (FlyInfo *fly, const wmEvent *event)
static void blender::flyMoveCamera (bContext *C, FlyInfo *fly, const bool do_rotate, const bool do_translate, const bool is_confirm)

Detailed Description

Interactive fly navigation modal operator (flying around in space).

Defines #VIEW3D_OT_fly modal operator.

Note
Similar logic to view3d_navigate_walk.cc changes here may apply there too.

Definition in file view3d_navigate_fly.cc.

Macro Definition Documentation

◆ FLY_ROTATE_FAC

#define FLY_ROTATE_FAC   10.0f

Referenced by blender::flyApply().

◆ FLY_SMOOTH_FAC

#define FLY_SMOOTH_FAC   20.0f

Referenced by blender::flyApply().

◆ FLY_ZUP_CORRECT_ACCEL

#define FLY_ZUP_CORRECT_ACCEL   0.05f

Referenced by blender::flyApply().

◆ FLY_ZUP_CORRECT_FAC

#define FLY_ZUP_CORRECT_FAC   0.1f

Referenced by blender::flyApply().