Commit Graph

122 Commits

Author SHA1 Message Date
wmayer
34f277e7bb Qt5OpenGL: make off-screen renderer working 2017-03-21 20:37:03 +01:00
wmayer
a04a7a6b21 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
f8a14fc69e Qt5OpenGL: release context when finished 2017-03-21 20:37:03 +01:00
wmayer
0bec4dbd63 Qt5OpenGL: Framebufferobject rendering works and handles transparency and anti-aliasing 2017-03-21 20:37:03 +01:00
wmayer
6e026fd67b Qt5OpenGL: port Image rendering mode to make box zoom & selection and cutting work again 2017-03-21 20:37:03 +01:00
wmayer
9e42badfaf move QuarterWidget to QOpenGLWidget 2017-03-21 20:37:03 +01:00
Kunda
de2392eb18 source typo fixes pt5
+ cleaning up some more non-short-URLs
Issue #2914
2017-03-04 13:07:13 -03:00
wmayer
69e1297dd2 add 'no shading' and 'hidden line' styles 2017-03-03 16:41:38 +01:00
wmayer
c2f1bab784 implement correct way to query VBO status of viewer from SoBRepFaceSet node 2017-02-12 14:41:55 +01:00
wmayer
4a0720dd00 cleanup experimental code, improve whitespaces 2017-02-12 14:41:55 +01:00
Jean-Marie Verdun
44af3629db 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
71db22dfde 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
677ec6cd30 fix coverity issues 2016-10-08 17:43:30 +02:00
wmayer
2af6bb6e49 replace deprecated auto_ptr with unique_ptr 2016-09-22 13:01:20 +02:00
wmayer
1e6dcabefc fix -Wextra in FreeCADGui 2016-09-21 20:54:52 +02:00
wmayer
683f943d38 Coverity issues:
129097
129098
129099
129101
129102
129132
129134
129203
2016-08-16 16:34:51 +02:00
wmayer
554875b930 add method to get view that contains a given node 2016-08-14 18:01:10 +02:00
wmayer
1efd7f6d57 + add getter method to return current render mode 2016-07-30 15:45:36 +02:00
wmayer
1ebe48440b support transparent background when using renderToFramebuffer 2016-07-24 22:24:58 +02:00
Mateusz Skowroński
6c0c0e983b Fix includes to be compatible with Qt5.
This change is Qt4/Qt5 neutral.
2016-07-07 15:10:31 -03:00
wmayer
b014f86a88 + fix drag and drop of Quarter viewer 2016-05-25 14:13:57 +02:00
Stefan Tröger
ec16290be2 FEM Post: Fix rebase errors 2016-05-18 21:35:15 +02:00
Stefan Tröger
02095a49af FEM Post: Move post processing to fem objects 2016-05-18 21:35:15 +02:00
Stefan Tröger
379a51a12d FEM Post: Proof of concept 2016-05-18 21:35:15 +02:00
Stefan Tröger
6fa3b94ff1 Override mode works with non-toplevel viewprovider
And adopt the part design body to handle the override mode correctly
2016-04-12 18:12:23 +02:00
blobfish
4a1698cf10 Gui: View3DInventorViewer: check if child exists before removal 2016-04-12 18:12:04 +02:00
jriegel
e5f3fe18f6 make SoFCUnifiedSelection work with nested children in 3DView 2016-04-12 18:11:45 +02:00
jriegel
8eb0d198f8 First claimChildren3D implementation and Starting PartItem implementation 2016-04-12 18:11:45 +02:00
wmayer
555f8cb325 + fix issue with cursor on viewer widget, prepare code for improved event handling 2016-03-28 00:55:37 +02:00
wmayer
b82b386a7a + various minor fixes, whitespaces improvements 2016-03-23 23:28:56 +01:00
wmayer
f023d54b45 + fix warning of unused variable
+ when clearing scene graph then also empty internal lists
+ whitespace changes
2016-03-22 19:25:38 +01:00
wmayer
e8ef74d6ac + fix bug in animated fit for orthographic camera if view width < height 2016-01-16 00:06:37 +01:00
wmayer
91a65bf973 + improve whitespaces 2016-01-15 23:20:52 +01:00
Mateusz Skowroński
6942c23895 Qt4's qglobal.h defined TRUE and FALSE. Qt5 does not do it anymore. Replace it with true and false.
158f39ec78

This change is Qt4/Qt5 neutral.
2016-01-05 16:43:33 +01:00
Mateusz Skowroński
c275b35d48 QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
This change is Qt4/Qt5 neutral.
2016-01-05 16:07:25 +01:00
wmayer
96611d0a71 + correctly handle toggle selection in BRep shape nodes 2015-11-28 16:21:20 +01:00
wmayer
de41dc46ec + Prefer prefix ++/-- operators for non-primitive types 2015-10-07 13:38:17 +02:00
wmayer
fed9501489 + To avoid possible memory leaks or inconsistencies on Document::resetEdit() call finishEditing() of view provider inside document because the editing view could be closed already 2015-09-16 14:20:13 +02:00
wmayer
56ed425680 + code refactoring for VRML and Inventor export 2015-08-26 18:55:14 +02:00
wwmayer
6bf065c097 + fix many minor warnings, activate -Wall for gcc 2015-08-02 22:32:18 +02:00
wmayer
d2740d6a7d + new parameter 'CoinOffscreenRenderer' to use Coin's offscreen renderer 2015-05-20 22:11:25 +02:00
wmayer
7c83638b40 + for VRML and OpenInventor export only selection, fix whitespaces 2015-05-17 13:53:22 +02:00
wmayer
48f8105949 + switch between old and new offscreen renderer 2015-05-08 00:54:09 +02:00
wmayer
15de65eb71 + before trying to write out snapshot image check if it's null 2015-05-07 23:07:20 +02:00
DeepSOIC
571b7ded02 Gestures: fix running on win XP
Potential fix, by dynamically linking SetGestureConfig
2015-04-07 00:57:22 +03:00
wmayer
697dd741d4 + fix various things 2015-03-31 23:08:12 +02:00
DeepSOIC
26fb298043 Gestures: inventor touch events and device 2015-03-31 21:49:01 +02:00
DeepSOIC
a53940fcf6 Gestures: tuning windows to enable rotates and switch off horz/vert stickiness of pans 2015-03-31 21:49:00 +02:00
DeepSOIC
ccf173e207 Gestures: subscribe 3d view to recieve gestures 2015-03-31 21:49:00 +02:00
wmayer
a7e898dbe8 set cache context when off-screen rendering 2015-03-08 19:12:31 +01:00