Commit Graph

78 Commits

Author SHA1 Message Date
wmayer
f98a4bbc47 Gui: [skip ci] add method to access the Inventor viewer as QGraphicsView 2020-10-01 13:54:12 +02:00
DeepSOIC
68848ea9f8 Gui: implement SoMouseWheelEvent
and sythesize it instead of fake buttons 4 and 5
2020-08-22 17:15:02 +02:00
Adrian
9e116801ed Change Std Bottom orientation (x ->right; y ->down)
Camera::rotation(Camera::Bottom) was upside-down compared to industry standards and other FreeCAD bottom views
2020-05-06 11:04:08 +02:00
wmayer
e6b3fad6e1 Gui: allow to dump only the visible part of the scene graph
Gui.ActiveDocument.ActiveView.dump("scene.iv", True)
The second parameter is optional and by default False
2020-01-16 13:28:01 +01:00
wmayer
9e4710d679 Gui: [skip ci] allow to pass multi-sampling in Python wrapper 2019-12-27 15:19:19 +01: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
DeepSOIC
ba8e964171 Gui: add preference to set 3d view scale for new documents
+ change default view orientation to Trimetric.
2019-09-11 21:39:08 +02:00
luz.paz
a1984aeece Fix typos, grammar, and some whitespace issues
Found via `codespell -q 2 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,currenty,dof,doubleclick,dum,eiter,elemente,feld,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml`
2019-09-07 11:58:38 -04:00
Zheng, Lei
4efbe3c5d0 Gui: add View3DPy.hasClippingPlane() 2019-08-30 15:00:42 +02:00
luz.paz
0f67e8ddfa Fix typos in src/Gio 2019-08-17 15:32:49 +02:00
Zheng, Lei
a9b866caa5 Gui: ActiveObjectList API changes
Support sub-object in ActiveObjectList. This means that it can now
distinguish the same object being activated under different parent,
which may be in a different document through external linking.
2019-08-17 15:08:34 +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
15b854b2a0 allow to set user-defined standard orientation 2019-01-13 02:21:54 +01:00
wmayer
abe82e00f4 harmonize functions to set camera orientations 2019-01-12 22:59:44 +01:00
wmayer
840c9e8b3c prepare for PyCXX 7.0 2018-04-18 19:20:50 +02:00
wmayer
5ca83dda4f Gui: Fixed regression in getObjectsInfo 2018-03-03 23:36:58 +01:00
Yorik van Havre
9ea89f5b50 Gui: Fixed regression in getObjectInfo 2018-03-02 17:04:41 -03:00
wmayer
b2963382d3 fixes #0003350: Draft Snapping does not recognize App::Part container 2018-02-20 11:19:49 +01:00
wmayer
e09a276fe5 further simplification when to use which rendering method when saving an image 2018-01-14 22:19:32 +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
wmayer
8eaee314ac simplify to define when to use which offscreen rendering method 2018-01-07 15:00:40 +01:00
wmayer
3b957a12b5 various minor changes:
+ whitespace improvement
+ code cleanup
2017-11-21 17:51:22 +01:00
wmayer
d04fd16263 make retrieving view direction numerically more stable, change orientation of bottom view 2017-11-13 21:53:10 +01:00
DeepSOIC
1137d5e6a8 Gui: expose ViewerPy.redraw() method 2017-05-08 11:44:41 -03:00
DeepSOIC
b4b882fb5b Gui: PickRadius support for View3DPy.getObjectInfo()
requested by Chris_G in forum thread "ActiveView.getObjectInfo ignores
pickRadius ?"
https://forum.freecadweb.org/viewtopic.php?f=22&t=22196
2017-05-03 16:51:36 +03:00
wmayer
3ac834c734 Qt5OpenGL: use OpenGL debug logger to locate problems, fix a couple of errors 2017-03-21 20:37:03 +01:00
wmayer
2c6f1fd56a Qt5OpenGL: fix transparency issue with framebuffer objects with old OpenGL API 2017-03-21 20:37:03 +01:00
wmayer
ed33adc35d Qt5OpenGL: make off-screen renderer working 2017-03-21 20:37:03 +01:00
wmayer
5bf326c1fb Qt5OpenGL: fix creating thumbnals, pdf, print preview and snapshot 2017-03-21 20:37:03 +01:00
wmayer
6638ff90d9 Qt5OpenGL: do not use pixel buffer for the moment 2017-03-21 20:37:03 +01:00
wmayer
a1dd462de9 move QuarterWidget to QOpenGLWidget 2017-03-21 20:37:03 +01:00
wmayer
ae8db048b6 support of unicode strings in saveImage function 2016-11-05 18:04:22 +01:00
wmayer
ca3a243b8e expose boxZoom to Python 2016-09-23 10:28:11 +02:00
wmayer
f944ab3846 replace deprecated auto_ptr with unique_ptr 2016-09-22 13:01:20 +02:00
Stefan Tröger
d112c41eca improve active object handling 2016-04-12 18:12:03 +02:00
jriegel
45f7c99c1c Changing active object handling in PartDesign 2016-04-12 18:12:03 +02:00
jriegel
775744c1ac some fixes in Active object handling on Viewer 2016-04-12 18:12:03 +02:00
jriegel
16ab7f710b Active object manager for the Viewer 2016-04-12 18:12:03 +02:00
jriegel
8537926edc Finally fixing the highlight code 2016-04-12 18:11:44 +02:00
wmayer
fadf2dbc3b + when using QGLFramebufferObject check if a GL context is active 2016-03-14 10:35:13 +01: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
a7a1edbc64 + restore old axonometric behaviour 2015-08-26 13:44:01 +02:00
wmayer
7c517e7620 + change axonometric view 2015-07-25 17:51:18 +02:00
wmayer
4319548f08 + fix typo in 'axonometric' 2015-07-25 16:54:18 +02:00
wmayer
27863408c9 + remove references to SoFCSelection where not needed 2015-05-20 19:24:12 +02:00
wmayer
9431d301d3 + for VRML and OpenInventor export only selection, fix whitespaces 2015-05-17 13:53:22 +02:00
wmayer
1719f4269a + check if directory exists when trying to save image 2015-03-22 12:12:42 +01:00