Skip to content

Latest commit

 

History

History
52 lines (28 loc) · 1.78 KB

Adding_a_new_mouse_navigation_option_to_FreeCAD.md

File metadata and controls

52 lines (28 loc) · 1.78 KB
Error in user YAML: (<unknown>): mapping values are not allowed in this context at line 3 column 8
---
- TutorialInfo:   Topic:Adding new navigation option to FreeCAD
   Level:Advanced
   Time:
   Author:Kunda1
   FCVersion:0.19.x and above
   Files:
---

Adding a new mouse navigation option to FreeCAD

This tutorial is still a WIP. Feel free to help improve it

Introduction

This tutorial attempts to help developers understand how to add their own custom 'mouse' models to FreeCAD. There are currently several options within FreeCAD to customize navigation, they are listed in the Mouse navigation page. Some of the options include: Revit, OpenCascade, Inventor, Touchpad etc...

Prerequisite

  • Familiarity with C++ syntax
  • Ability to compile FreeCAD from source

Relevant source files

At the time of writing this documentation the relevant source code files are located at:

  • {{FileName|src/Gui/NavigationStyle.(h,cpp)}}

  • {{FileName|src/Gui/(Foo)NavigationStyle.cpp}}Foo is a placeholder for the different mouse/navigation modes, for example: Revit, Inventor, OpenCascade, Touchpad, CAD etc...

  • {{FileName|src/Gui/CMakeLists.txt}}- Add your new mouse/navigation mode here so it's picked up by the compiler

  • {{FileName|src/Gui/SoFCDB.cpp}}

Historical code commits

We can refer to previous code commits that added different mouse modes for orientation. Here are a few:

Source code


documentation index > Tutorials > [Developer Documentation](Category_Developer Documentation.md) > Adding a new mouse navigation option to FreeCAD