Commit Graph

153 Commits

Author SHA1 Message Date
Abdullah Tahiri
167b0d6d99 Thumbnail generation
====================

Dynamically check whether to apply the fix for thumbnail generation.

Some QT5 version seem to be affected. This problem appears in some linux distributions with some window managers.

You may check/activate this fix:

>>> hgrp = App.ParamGet("User parameter:BaseApp/Preferences/Document")
>>> hgrp.GetBool("SaveThumbnailFix")
False
>>> hgrp.SetBool("SaveThumbnailFix",True)
>>> hgrp.GetBool("SaveThumbnailFix")
True
2018-12-10 09:14:36 -03:00
DeepSOIC
82fd0a8db6 Gui: Gesture: add option to disable tilt
On Qt5, using pinch will inevitably cause tilt. It's annoying, so it is disabled by default.

In the future, it's best to introduce some kind of threshold to overcome for the tilt to be triggered.
2018-11-29 15:29:27 -03:00
wmayer
36124965d1 add PS action to dumpToFile 2018-11-05 19:22:52 +01:00
luz.paz
f976a4f734 Misc. typos and whitespace fixes
Found via `codespell -q 3 --skip="*.po,*.ts,./.git,./src/3rdParty,./src/CXX,./src/zipios++,./src/Mod/Assembly/App/opendcm" -I ../fc-word-whitelist.txt` and `grep`
2018-10-25 11:06:28 -03:00
wmayer
8678f74dc6 allow to access NaviCube of 3d viewer 2018-10-23 12:47:11 +02:00
wmayer
e79a19828e avoid to degenerate the view frustum if there is only a single point in the scene 2018-10-15 14:08:46 +02:00
wmayer
ff6ed27ba9 replace boolean to check for inside/outside cutting with enum values 2018-09-18 18:25:51 +02:00
wmayer
8f3a53c24c move check for grabbed node and releasing it from ViewProviderDragger::unsetEditViewer to View3DInventorViewer::resetEditingViewProvider 2018-09-11 17:27:17 +02:00
wmayer
3c999f563e fix several reference counting bugs 2018-08-18 16:01:55 +02:00
wmayer
271cdcb19e clear selection node when destroying viewer 2018-08-18 11:32:32 +02:00
luz.paz
baa6d89328 Typos and whitespace fixes 2018-08-07 11:13:31 -04:00
wmayer
7c010ab9a4 implement option to change corner of navi cube 2018-05-26 18:51:53 +02:00
wmayer
d15c7d0673 + option to disable navi cube
+ handle destruction of GL context in 3d viewer class
+ fix for OpenGL error message: 'Texture is not valid in the current context. Texture has not been destroyed'
2018-05-26 15:33:45 +02:00
wmayer
ba99fff1d9 fix Qt5 build failure 2018-05-26 15:33:45 +02:00
Kustaa Nyholm
13a4f84145 First Qt5 compatible NaviCube attempt 2018-05-26 15:33:45 +02:00
wmayer
e09a276fe5 further simplification when to use which rendering method when saving an image 2018-01-14 22:19:32 +01:00
wmayer
77318ba6eb make workaround with transparent background more reliable 2018-01-12 15:47:40 +01:00
wmayer
497b41d6d8 workaround to create images with transparent background 2018-01-12 14:36:25 +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
1ef069292c notify selection node about cleared pre-selection 2017-12-25 01:19:02 +01:00
wmayer
15b72d2b22 enable anti-aliasing for Coin's offscreen renderer 2017-12-23 18:59:27 +01:00
Unknown
a8ecffb652 Misc. typo fixes
Various workbenches
2017-12-23 14:30:30 +01:00
wmayer
868d9cc6c2 improve whitespaces 2017-11-24 15:43:28 +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
wmayer
676b17969e make the fps counter more stable 2017-10-13 00:13:19 +02:00
wmayer
39e4020bdf Various fixes:
+ disable VBO rendering in split views
+ activate multi-sampling in split view for manual alignment
+ share GL widget in case a document has multiple views to make VBO rendering work correctly
2017-09-23 11:14:41 +02:00
wmayer
1673ab801e use specialized exception classes 2017-04-28 18:49:11 +02: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
e1c5597a5e Qt5OpenGL: implement grabFramebuffer 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
4bf14e7096 Ot5OpenGL: fix phantom objects in sketcher selection mode, get texture with the exact content of the 3d viewer 2017-03-21 20:37:03 +01:00
wmayer
b0cd0a5163 Qt5OpenGL: release context when finished 2017-03-21 20:37:03 +01:00
wmayer
749ace7e6b Qt5OpenGL: Framebufferobject rendering works and handles transparency and anti-aliasing 2017-03-21 20:37:03 +01:00
wmayer
27d76f3a47 Qt5OpenGL: port Image rendering mode to make box zoom & selection and cutting work again 2017-03-21 20:37:03 +01:00
wmayer
a1dd462de9 move QuarterWidget to QOpenGLWidget 2017-03-21 20:37:03 +01:00
Kunda
19f8fd4c10 source typo fixes pt5
+ cleaning up some more non-short-URLs
Issue #2914
2017-03-04 13:07:13 -03:00
wmayer
adca327b34 add 'no shading' and 'hidden line' styles 2017-03-03 16:41:38 +01:00
wmayer
6d6fbdcd8d implement correct way to query VBO status of viewer from SoBRepFaceSet node 2017-02-12 14:41:55 +01:00
wmayer
56ff88ea46 cleanup experimental code, improve whitespaces 2017-02-12 14:41:55 +01:00
Jean-Marie Verdun
8383f7222f Accelerate 3D rendering with VBO support
*First step to move Part rendering using VBO instead of direct rendering
*Update comments inside the code
*Assume VBO is available if OpenGL > 3.0 is detected
*Add initial Color support to VBO rendering !
*Initial full feature VBO rendering implementation
*Modify some include issue for linux build
*Try to fix linux include header
*Reupdate header include for linux support
*Fix compilation on linux
*Fix linux and MacoOS build
*Fix glGetString definition
*Fix Windows build
*Add VBO support as an option into the Preference menu
*Fix crash while running FreeCAD test bench with new VBO rendering infrastructure (in both cases)
*Improve performances
*Compute material index only when a VBO update is required (improve frame rate by 10%)
*Clean the code
*Fix Travis compilation warning
*Try to fix Windows compilation issue
*Update include for Windows
2017-02-12 14:41:55 +01:00
HokieEngr
f6f8363d8a Updated viewport dimensions to reflect users unit schema
The previous code assumed the user's unit system was MKS. The updated code uses
schemaTranslate() to convert from screen units to the user's chosen system.
2017-01-03 22:34:47 -05:00
wmayer
68ea7fdac5 fix coverity issues 2016-10-08 17:43:30 +02:00
wmayer
f944ab3846 replace deprecated auto_ptr with unique_ptr 2016-09-22 13:01:20 +02:00
wmayer
f19d424d8b fix -Wextra in FreeCADGui 2016-09-21 20:54:52 +02:00
wmayer
ab525189bf Coverity issues:
129097
129098
129099
129101
129102
129132
129134
129203
2016-08-16 16:34:51 +02:00
wmayer
549236f517 add method to get view that contains a given node 2016-08-14 18:01:10 +02:00
wmayer
dfb460d3bd + add getter method to return current render mode 2016-07-30 15:45:36 +02:00
wmayer
1f3c2ef2c8 support transparent background when using renderToFramebuffer 2016-07-24 22:24:58 +02:00