Commit Graph

56 Commits

Author SHA1 Message Date
wmayer
a9b1356bc7 code reduction w.r.t offscreen rendering 2018-01-07 17:12:50 +01:00
wmayer
2cd338ba03 improve whitespaces 2017-11-24 15:43:28 +01:00
wmayer
5604e64f54 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
f13538a016 Qt5OpenGL: implement grabFramebuffer 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
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
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
b014f86a88 + fix drag and drop of Quarter viewer 2016-05-25 14:13:57 +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
jriegel
e5f3fe18f6 make SoFCUnifiedSelection work with nested children in 3DView 2016-04-12 18:11:45 +02:00
wmayer
b82b386a7a + various minor fixes, whitespaces improvements 2016-03-23 23:28:56 +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
wmayer
7c83638b40 + for VRML and OpenInventor export only selection, fix whitespaces 2015-05-17 13:53:22 +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
ccf173e207 Gestures: subscribe 3d view to recieve gestures 2015-03-31 21:49:00 +02:00
wmayer
303f00a06d + support of arbitrary background colors in snapshot function 2014-11-08 18:23:41 +01:00
wmayer
de62919885 + fix gradient background issue when creating snapshot, remove superfluous signal from FileOptionsDialog 2014-11-08 14:50:27 +01:00
wmayer
3da4ede31d + add new render type to 3d viewer 2014-11-03 23:09:38 +01:00
wmayer
e0d755b91d + share GL widgets when creating further 3d views of a document 2014-10-15 12:04:06 +02:00
Stefan Tröger
dce299bed0 fix framerate rendering 2014-09-23 10:11:12 +02:00
Stefan Tröger
f1d122b78c fix reported bugs
- compile on windows
- fix cursors
2014-09-23 10:11:12 +02: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
Stefan Tröger
512a2b94d2 Adaption of FreeCAD to QuarterWidget
-removes all soqtviewer references
-create a quarter adaptor class which implements missing functionality
-adopts freecad code to make use of SoRenderManager and changed View3DInventorViewer  interface
2014-09-23 10:11:11 +02:00
Stefan Tröger
f44ddc107e add default quarter files 2014-09-23 10:11:11 +02:00
jriegel
6f8d6e9c26 FreeCAD-VR: command integration 2014-09-13 10:18:52 +02:00
wmayer
1a3beb44b0 + fix author notes, fix memory leak, fix build failure under Windows 2014-07-30 10:05:13 +02:00
wmayer
4f71c3543e Squashed commit of the following:
commit 8853bf442b6e1a98699fa90fca5eb30b3f6d3a5e
Author: Ian Rees <ian.rees@gmail.com>
Date:   Tue Jul 29 15:46:59 2014 +1200

    Refactoring and small fix in constraint icon bounding boxes

commit c03e4c13d8fd657e18e3c78d16bbdef209f8c779
Author: Ian Rees <ian.rees@gmail.com>
Date:   Mon Jul 28 15:41:15 2014 +1200

    Implemented picking of individual constraints from combined icons

commit 254aaab450fe6646bee7542c532c454af91b6597
Author: Ian Rees <ian.rees@gmail.com>
Date:   Mon Jul 28 13:04:18 2014 +1200

    Added bounding boxes for combined constraint icons

commit 4f0738ec30220fbf1abdea14dd121d0a134e5dfd
Author: Ian Rees <ian.rees@gmail.com>
Date:   Sat Jul 26 18:53:33 2014 +1200

    Added screenCoordsOfPath() to View3DInventorViewer

commit 14e2dc7b4aa79db97cbacd2c848728a66276d644
Author: Ian Rees <ian.rees@gmail.com>
Date:   Sun Jul 20 14:24:27 2014 +1200

    Bit of code to make constraint icon text rendering nicer.

    This won't be useful unless the font changes, but wanted to add it while
    I was thinking about it.

commit 8020d2d62214d71875cbae101d5ac5e96d998201
Author: Ian Rees <ian.rees@gmail.com>
Date:   Sun Jul 20 13:54:51 2014 +1200

    Fixed an off-by-one in ViewProviderSketch::combineConstratintIcons

    Bug resulted in icons occasionally not being combined into groups,
    when they should've been.

commit 20d92a3ccc1f795be1cb86f6f92045518dc8eb81
Author: Ian Rees <ian.rees@gmail.com>
Date:   Tue Jul 15 19:38:20 2014 +1200

    Fixed a bug that was introduced two commits ago.

commit 69e1ea848e3bc3c8c372c539f30a7b4d2a563aa2
Author: Ian Rees <ian.rees@gmail.com>
Date:   Tue Jul 15 15:33:30 2014 +1200

    Fixed dumb copy-and-paste error

commit a998b75a905cc31e1f4f49869e81ecaef5858b69
Author: Ian Rees <ian.rees@gmail.com>
Date:   Sun Jul 13 18:39:22 2014 +1200

    Fixed crash reported by sponssi

    More info at http://forum.freecadweb.org/viewtopic.php?f=10&t=6965&p=56590

commit 27b7b804790dda5164c7ef0b9418f6c160228859
Author: Ian Rees <ian.rees@gmail.com>
Date:   Thu Jul 10 13:32:16 2014 +1200

    Cleaning up my git repo for FreeCAD.

    This branch now has just the Sketcher icon fixes, plus a few random comment edits.
2014-07-30 10:05:12 +02:00
wmayer
a376d6398a + whitespace improvements 2014-05-09 12:18:58 +02:00
Stefan Tröger
e1a8bb1623 Add multisampling anti-aliasing 2014-05-09 11:24:38 +02:00
wmayer
6112c1917b + fixes #0001497: Implement getCameraOrientation similarly to getViewDirection 2014-04-02 11:40:36 +02:00
wmayer
a4cb1b8bd6 + fixes #0001289: Fit All option has not animation when Enable animation is active 2014-01-21 15:49:18 +01:00
Yorik van Havre
49d797866b Merge of tanderson-viewoverride4 branch 2014-01-16 10:27:21 -02:00
tanderson
b7a41fa382 implemented 2014-01-16 10:27:21 -02:00
blobfish
23a7f6e725 Part Dimension: alterations to existing files
Not sure what is happening with View3dInventorViewer.h.
    The only REAL change, beyond the addition of dim functions, is
    the removal of the member arrowrotation. It wasn't referenced anywhere.
2013-12-17 10:05:46 -05:00
wmayer
10a8c462b8 + Get exact point on data model when picking in 3d view 2013-11-21 12:50:49 +01:00
jriegel
746cfd62d0 move AxisCross code to the Viewer and make a Python binding 2013-07-09 23:28:21 +02:00
wmayer
b737eeb52d Use rubberband for box selection 2013-07-02 10:04:33 +02:00
wmayer
8f98348253 Reduce redundant code in View3DInventorViewer class 2013-06-20 16:57:10 +02:00
wmayer
561c117f2d Use framebuffer object as fallback for off-screen rendering 2013-06-19 17:42:28 +02:00
wmayer
2f2b2e8a1b Add framebuffer support to Inventor viewer 2013-05-02 17:37:56 +02:00
wmayer
7b97150470 Fix typo 2013-04-28 14:31:12 +02:00
wmayer
9505f0db99 0001087: Inventor Navigation continues with released Mouse Button 2013-04-27 22:10:59 +02:00