Commit Graph

44 Commits

Author SHA1 Message Date
wmayer
b35e83609a 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
2c5a4b71eb 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
c765d64891 Gui: Expose the upDirection vector to Python 2023-08-08 13:53:50 -04:00
wmayer
e9a9413c71 Gui: rename getPointOnScreen() to getPointOnViewport() 2023-04-08 13:51:32 +02:00
wmayer
4d6b2c4a14 Gui: move class Camera to own source files 2023-03-22 16:13:38 +01:00
wmayer
23961706be Gui: modernize C++: replace 'typedef' with 'using' 2022-08-29 14:09:18 +02:00
berniev
3877fc62c3 Gui: Single arg ctors must be explicit (PR #7369) 2022-08-24 15:06:03 +02:00
berniev
75fa455c5d Gui: Use override etc 2 2022-08-09 12:43:23 +02:00
Uwe
d6b7b91ab4 [Gui] View3D*: remove unused includes 2022-03-05 23:16:28 +01:00
Uwe
6a0a6e006c [Gui] more work to remove unused includes 2022-02-21 00:03:13 +01:00
wmayer
d883850f90 + code refactoring of View3DInventorPy::viewDefaultOrientation 2021-12-27 16:32:31 +01:00
wmayer
c111009ea6 Gui: add function View3DInventorViewer::projectPointToLine and expose to Python 2021-12-12 12:49:53 +01:00
wmayer
94a881f829 Gui: harmonize classes View3DInventorViewer and View3DInventorPy 2021-12-12 11:33:04 +01:00
0penBrain
abba933757 [Gui] Expose API for corner axis cross visibility/size to Python 2021-11-23 00:05:10 +01:00
wmayer
5746a486df Gui: make View3DInventorPy acting as sub-class of MDIViewPy 2021-11-21 19:44:38 +01:00
wmayer
67cc5c9047 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
61ecfd3639 Gui: [skip ci] expose function to Python to enable/disable context-menu of 3d view 2021-11-02 12:57:54 +01:00
wmayer
abcaef8601 Gui: [skip ci] add method to access the Inventor viewer as QGraphicsView 2020-10-01 13:54:12 +02:00
luz.paz
04ba2872f0 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
0bc6722943 Gui: add View3DPy.hasClippingPlane() 2019-08-30 15:00:42 +02:00
Zheng, Lei
d4ac072306 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
89ce5416b6 Gui: Added viewer.setName() python method 2019-08-15 00:20:59 -03:00
wmayer
11c0c9adde harmonize functions to set camera orientations 2019-01-12 22:59:44 +01:00
wmayer
86eb72d071 add method to get view providers of d view via Python 2018-01-11 16:14:53 +01:00
wmayer
a9b1356bc7 code reduction w.r.t offscreen rendering 2018-01-07 17:12:50 +01:00
DeepSOIC
775563baae Gui: expose ViewerPy.redraw() method 2017-05-08 11:44:41 -03:00
wmayer
6880024693 expose boxZoom to Python 2016-09-23 10:28:11 +02:00
Stefan Tröger
547b1e0191 improve active object handling 2016-04-12 18:12:03 +02:00
jriegel
8cd51ade8b Active object manager for the Viewer 2016-04-12 18:12:03 +02:00
Mateusz Skowroński
05f95c0506 Fix files encoding. Go from ISO8859-1 to UTF-8. 2015-09-21 19:50:49 -03:00
wmayer
9fbe818ad0 + remove method View3DInventor::dumpSelection 2015-08-26 18:58:59 +02:00
wmayer
319ea4fbcc + fix typo in 'axonometric' 2015-07-25 16:54:18 +02:00
wmayer
7c83638b40 + for VRML and OpenInventor export only selection, fix whitespaces 2015-05-17 13:53:22 +02:00
wmayer
303f00a06d + support of arbitrary background colors in snapshot function 2014-11-08 18:23:41 +01:00
Stefan Tröger
6b629aed56 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
6112c1917b + fixes #0001497: Implement getCameraOrientation similarly to getViewDirection 2014-04-02 11:40:36 +02:00
wmayer
bb976efd79 + Added coin add/remove DraggerCallback python functions (guilhemdesq) 2014-02-25 17:43:48 +01:00
wmayer
9ee73174f4 + expose zoomIn/zoomOut to Python 2014-02-09 15:28:43 +01:00
wmayer
961a3a9e04 + Expose method getPointOnScreen() to Python 2013-11-20 19:08:09 +01:00
jriegel
746cfd62d0 move AxisCross code to the Viewer and make a Python binding 2013-07-09 23:28:21 +02:00
wmayer
561c117f2d Use framebuffer object as fallback for off-screen rendering 2013-06-19 17:42:28 +02:00
Yorik van Havre
e0abd24281 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