mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 09:47:58 -06:00

Implemented using hidapi library (https://github.com/libusb/hidapi) and https://github.com/koenieee/CrossplatformSpacemouseDriver/tree/master/SpaceMouseDriver as reference Unsolved issues: - When manipulating the SpaceNavigator wxWidgets generates a mouse wheel event that needs to be filtered out - wxWidgets does not detect devices being connected/disconnected to the pc - Current state forces a continuous rendering - Current state misses dependence on camera zoom - Non intuitive movement limits - Translation and rotation speed factors are hardcoded - Number of device buttons hardcoded
44 lines
1.4 KiB
C++
44 lines
1.4 KiB
C++
#ifndef _technologies_h_
|
|
#define _technologies_h_
|
|
|
|
//============
|
|
// debug techs
|
|
//============
|
|
|
|
// Shows camera target in the 3D scene
|
|
#define ENABLE_SHOW_CAMERA_TARGET 0
|
|
// Log debug messages to console when changing selection
|
|
#define ENABLE_SELECTION_DEBUG_OUTPUT 0
|
|
// Renders a small sphere in the center of the bounding box of the current selection when no gizmo is active
|
|
#define ENABLE_RENDER_SELECTION_CENTER 0
|
|
// Shows an imgui dialog with render related data
|
|
#define ENABLE_RENDER_STATISTICS 0
|
|
// Shows an imgui dialog with camera related data
|
|
#define ENABLE_CAMERA_STATISTICS 0
|
|
// Render the picking pass instead of the main scene (use [T] key to toggle between regular rendering and picking pass only rendering)
|
|
#define ENABLE_RENDER_PICKING_PASS 0
|
|
|
|
|
|
//====================
|
|
// 1.42.0.alpha1 techs
|
|
//====================
|
|
#define ENABLE_1_42_0_ALPHA1 1
|
|
|
|
// Disable synchronization of unselected instances
|
|
#define DISABLE_INSTANCES_SYNCH (0 && ENABLE_1_42_0_ALPHA1)
|
|
// Disable imgui dialog for move, rotate and scale gizmos
|
|
#define DISABLE_MOVE_ROTATE_SCALE_GIZMOS_IMGUI (1 && ENABLE_1_42_0_ALPHA1)
|
|
// Use wxDataViewRender instead of wxDataViewCustomRenderer
|
|
#define ENABLE_NONCUSTOM_DATA_VIEW_RENDERING (0 && ENABLE_1_42_0_ALPHA1)
|
|
|
|
|
|
//====================
|
|
// 2.0.0.alpha1 techs
|
|
//====================
|
|
#define ENABLE_2_0_0_ALPHA1 1
|
|
|
|
// Enabled 3Dconnexion devices
|
|
#define ENABLE_3DCONNEXION_DEVICES (1 && ENABLE_2_0_0_ALPHA1)
|
|
|
|
|
|
#endif // _technologies_h_
|