Commit Graph

44 Commits

Author SHA1 Message Date
wmayer
2d35da4519 Gui: improve accessing active object of an MDI view
* if 2nd argument of getActiveObject() is False and the requested object doesn't exist then return (None, None, "")
* remove the exact same implementations from View3DInventorPy
2023-08-28 13:34:48 +02:00
Pieter Hijma
d07dd67ba1 Gui: Cleanup Python varargs
Various function existed that had no arguments but were still treated as
if they were vararg functions.  This has no been changed to
add_noargs_method declarations, cleaning up the code.
2023-08-16 15:07:09 +02:00
Pieter Hijma
292196a606 Gui: Expose the upDirection vector to Python 2023-08-08 13:53:50 -04:00
wmayer
6237a0e67b Gui: rename getPointOnScreen() to getPointOnViewport() 2023-04-08 13:51:32 +02:00
wmayer
2aef0cfa61 Gui: move class Camera to own source files 2023-03-22 16:13:38 +01:00
wmayer
ba8d5ab055 Gui: modernize C++: replace 'typedef' with 'using' 2022-08-29 14:09:18 +02:00
berniev
a909df7f39 Gui: Single arg ctors must be explicit (PR #7369) 2022-08-24 15:06:03 +02:00
berniev
0c70d45c83 Gui: Use override etc 2 2022-08-09 12:43:23 +02:00
Uwe
14288f9725 [Gui] View3D*: remove unused includes 2022-03-05 23:16:28 +01:00
Uwe
6bf4cf7b41 [Gui] more work to remove unused includes 2022-02-21 00:03:13 +01:00
wmayer
0bc96dfedd + code refactoring of View3DInventorPy::viewDefaultOrientation 2021-12-27 16:32:31 +01:00
wmayer
b6527a7098 Gui: add function View3DInventorViewer::projectPointToLine and expose to Python 2021-12-12 12:49:53 +01:00
wmayer
4dae213b45 Gui: harmonize classes View3DInventorViewer and View3DInventorPy 2021-12-12 11:33:04 +01:00
0penBrain
9d15df29d9 [Gui] Expose API for corner axis cross visibility/size to Python 2021-11-23 00:05:10 +01:00
wmayer
fad2fd9568 Gui: make View3DInventorPy acting as sub-class of MDIViewPy 2021-11-21 19:44:38 +01:00
wmayer
8eb099d4e1 Gui: add MDIViewPy.cast_to_base and implement in Python wrappers for sub-classes of MDIView 2021-11-19 15:44:23 +01:00
wmayer
9def811a3a Gui: [skip ci] expose function to Python to enable/disable context-menu of 3d view 2021-11-02 12:57:54 +01:00
wmayer
f98a4bbc47 Gui: [skip ci] add method to access the Inventor viewer as QGraphicsView 2020-10-01 13:54:12 +02:00
luz.paz
f11783a498 src/Gui: [skip ci] fix header uniformity
This PR fixes header uniformity across all `src/Gui` files
2019-12-25 11:39:17 +01:00
Zheng, Lei
4efbe3c5d0 Gui: add View3DPy.hasClippingPlane() 2019-08-30 15:00:42 +02:00
Zheng, Lei
00bcef0619 Gui: support in-place editing
The link support means that an object can now appear in more than one
places, and even inside a document different from its own. This patch
adds support for in-place editing, meaning that the object can be edited
at correct place regardless where it is.

See [here](https://git.io/fjPIk) for more info about the relavent APIs.

This patch includes two example of modifications to support in-place
editing. One is the ViewProviderDragger, which simply adds the dragger
node to editing root node by calling
View3DInventorViewer::setupEditingRoot(dragger). The other much more
complex one is ViewProviderSketch which calls setupEditingRoot(0) to
transfer all its children node into editing root. ViewProviderSketch
also includes various modifications to command invocation, because we
can no longer assume the active document is the owner of the editing
object.

This patch also includes necessary modification of the 'Show' module to
support in-place editing.
2019-08-17 15:08:32 +02:00
Yorik van Havre
03b4fe50ed Gui: Added viewer.setName() python method 2019-08-15 00:20:59 -03:00
wmayer
abe82e00f4 harmonize functions to set camera orientations 2019-01-12 22:59:44 +01:00
wmayer
29533320fc add method to get view providers of d view via Python 2018-01-11 16:14:53 +01:00
wmayer
22ed0bce51 code reduction w.r.t offscreen rendering 2018-01-07 17:12:50 +01:00
DeepSOIC
1137d5e6a8 Gui: expose ViewerPy.redraw() method 2017-05-08 11:44:41 -03:00
wmayer
ca3a243b8e expose boxZoom to Python 2016-09-23 10:28:11 +02:00
Stefan Tröger
d112c41eca improve active object handling 2016-04-12 18:12:03 +02:00
jriegel
16ab7f710b Active object manager for the Viewer 2016-04-12 18:12:03 +02:00
Mateusz Skowroński
43a4a5938c Fix files encoding. Go from ISO8859-1 to UTF-8. 2015-09-21 19:50:49 -03:00
wmayer
84a65a53ef + remove method View3DInventor::dumpSelection 2015-08-26 18:58:59 +02:00
wmayer
4319548f08 + fix typo in 'axonometric' 2015-07-25 16:54:18 +02:00
wmayer
9431d301d3 + for VRML and OpenInventor export only selection, fix whitespaces 2015-05-17 13:53:22 +02:00
wmayer
99caf6d015 + support of arbitrary background colors in snapshot function 2014-11-08 18:23:41 +01:00
Stefan Tröger
cf167ec60a add View3DInventorViewer python interface
As quarter is not wrapped by SWIG we need to expose our own python interface class.
This is a start with the most important functions to access the render and event
manager. Furthermore all extra functions available next to the swig wrapper functions
are exposed. Everything else can be added when needed.
2014-09-23 10:11:12 +02:00
wmayer
25d0242f97 + fixes #0001497: Implement getCameraOrientation similarly to getViewDirection 2014-04-02 11:40:36 +02:00
wmayer
63f930cb53 + Added coin add/remove DraggerCallback python functions (guilhemdesq) 2014-02-25 17:43:48 +01:00
wmayer
4fb000f0c8 + expose zoomIn/zoomOut to Python 2014-02-09 15:28:43 +01:00
wmayer
f5a4c28f3d + Expose method getPointOnScreen() to Python 2013-11-20 19:08:09 +01:00
jriegel
1ce212160b move AxisCross code to the Viewer and make a Python binding 2013-07-09 23:28:21 +02:00
wmayer
c6b02da648 Use framebuffer object as fallback for off-screen rendering 2013-06-19 17:42:28 +02:00
Yorik van Havre
54fa2f64ca added RFE526 - 90 degrees view rotation commands
+ added viewRotateLeft() and viewRotateRight() py methods to View3D
+ added ViewRotateLeft and ViewRotateRight FreeCAD commands
+ added them in View->Standard Views and Context->Standard Views menus
2012-01-13 13:33:35 -02:00
wmayer
a53559fe62 + implement command to view sketch perpendicular to sketch plane
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5046 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-21 11:24:55 +00:00
wmayer
120ca87015 + unify DLL export defines to namespace names
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00