Commit Graph

695 Commits

Author SHA1 Message Date
Stefan Tröger
761e05a98a Prevent QPainter buffer swap
As the QGraphicsScene overlay does not work for all cards/drivers we disable the possible buffer swap of the qpainter, as this could be a potential source of the flickering. If the painter swaps buffers and we do it again the user will see first the correct picture (first swap) and then something uninitalized (second swap)
2014-09-29 10:11:29 +02:00
Stefan Tröger
6fd459feee Make stereo modes work again
Be aware that stereo rendering based on SoRenderManager does not allow background colors as the opengl buffers are cleared before rendering. As FreeCAD draws the background before the standart coin rendering the background gets erased again.
2014-09-29 10:11:28 +02:00
wmayer
493d1343ae + fix typos 2014-09-24 22:06:13 +02:00
wmayer
8bdc9b0f09 + add option to disable automatic fit to view when loading data file 2014-09-24 18:49:19 +02:00
wmayer
696d4a5f4a + fix warnings with clang 2014-09-24 17:46:04 +02:00
wmayer
20398c9f35 + fix warnings with clang 2014-09-24 16:00:10 +02:00
wmayer
055dcb0512 + fix warnings with clang 2014-09-24 15:55:36 +02:00
wmayer
f2c63d04f2 + set fix precision for FPS counter 2014-09-23 18:19:35 +02:00
Stefan Tröger
dce299bed0 fix framerate rendering 2014-09-23 10:11:12 +02:00
Stefan Tröger
2fd86af7cf fix qt moc warnings 2014-09-23 10:11:12 +02:00
Stefan Tröger
d0605dd6c2 fix backlight issue 2014-09-23 10:11:12 +02:00
Stefan Tröger
99a61cc03e ensure that the glwidget is returned 2014-09-23 10:11:12 +02:00
Stefan Tröger
ec26dd381c fix rotation center after view all 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
0303c699f8 Port QuarterWidget to QGraphicsView
Derive from QGraphicsView instead of QGLWidget to allow to add widgets as overlay over the 3d scene later on.
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
cccfe3d554 Adopt mouse selection to quarter widget
Quarter Widget soes not allow to switch of multisampling on the fly, therefore we need to use glgraphicsitem instead of direct opengl xor rendering for mouse selection
2014-09-23 10:11:11 +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
wmayer
2b8b11c71f + build with Qt < 4.7 and OCC < 6.5 2014-09-20 17:49:29 +02:00
Sebastian Hoogen
efbd320f78 fixes #1745 Encode Annotation Text using latin1
for Coin Versions <= 3
2014-09-20 16:26:59 +02:00
jriegel
df8cce057b Merge branch 'refs/heads/Rift' 2014-09-19 11:08:00 +02:00
jriegel
083527c5d9 FreeCAD-VR: Small fix for older compilers 2014-09-19 11:03:35 +02:00
jriegel
ae2f3e7c9c FreeCAD-VR: Small cleanups 2014-09-18 10:25:28 +02:00
jriegel
5f9ac2ea68 FreeCAD-VR: fix Z direction 2014-09-17 19:13:48 +02:00
jriegel
649f6bc97a FreeCAD-VR: Proper light handling 2014-09-17 18:55:51 +02:00
jriegel
8cb69fead7 FreeCAD-VR: Positional light and fix in camera positioning 2014-09-17 18:35:11 +02:00
jriegel
3cabf5d409 FreeCAD-VR: Upright position and remembering render window position 2014-09-17 15:01:28 +02:00
jriegel
74aa2b5938 FreeCAD-VR: Remove Tabs and add orientation for viewer position 2014-09-17 13:49:44 +02:00
Sebastian Hoogen
d49528b27e issue #1700 replace PyExc_Exception 2014-09-17 11:15:57 +02:00
Sebastian Hoogen
af50cbf964 fixes #0001422: Subclass Exception
inherit Base.FreeCADError form RuntimeError
inherit Part.OCCError from Base.FreeCADError
inherit OCCDomainError from Part.OCCError
inherit OCCRangeError from Part.OCCError
inherit OCCConstructionError from OCCDomainError
inherit OCCDimensionError from OCCDomainError
Added PY_CATCH_OCC macro
replace PyExc_Exception
use FreeCADError in makeWireString
catch exception in BSplineCurve.increasedegree
2014-09-17 11:15:56 +02:00
jriegel
581c5d8fb5 FreeCAD-VR: Some fixes 2014-09-16 18:14:42 +02:00
jriegel
d53aa80447 FreeCAD-VR: Render the FreeCAD scene graph 2014-09-15 19:50:55 +02:00
jriegel
f2de6742e3 FreeCAD-VR: Separating FreeCAD and Coin/Rift stuff 2014-09-15 17:14:44 +02:00
jriegel
8909f3acb7 FreeCAD-VR: some fixes on FrameBuffer rendering portion 2014-09-15 16:27:40 +02:00
jriegel
f8702edf9c FreeCAD-VR: Some fixes... 2014-09-14 14:57:07 +02:00
jriegel
2576d5df5c FreeCAD-VR: Handling the safety warning 2014-09-14 13:54:02 +02:00
jriegel
ee0a8eaf67 FreeCAD-VR: First succesfull render on the Rift! 2014-09-13 20:03:57 +02:00
Yorik van Havre
514df2d9bb Mis upgrades for the selection window - fixes #1737
* Added a search box that searches through object labels
* Added a context menu to selected items
* Allow to double-click an item to isolate
2014-09-13 12:02:45 -03:00
jriegel
6f8d6e9c26 FreeCAD-VR: command integration 2014-09-13 10:18:52 +02:00
jriegel
7762a361a9 porting the offscreen rendering version to SDK 4.2 2014-09-12 20:15:04 +02:00
jriegel
a73050e934 Merge branch 'refs/heads/master' into jriegel/Rift 2014-09-12 12:27:55 +02:00
wmayer
7226f436fc + fixes #0001726: Dialog for saving document should indicate documentname 2014-09-03 14:45:19 +02:00
wmayer
353d481281 + Add StackWalker to get log messages on crashes (MSVC only) 2014-09-03 11:48:34 +02:00
wmayer
df58407c51 + minor fix 2014-09-02 17:43:25 +02:00
wmayer
b0a7b0f274 + fixes #0001714: FreeCAD 0.14 Stable crashes when importing a step model 2014-09-01 19:11:46 +02:00
Yorik van Havre
7f6a22c787 Added Gui.showDownloads() py function to show the download manager, and allow to click https links in webgui browser 2014-08-31 16:51:51 -03:00
wmayer
c94403412d + fixes #0001719: Show current shortcuts (S) in menus and hover text. 2014-08-31 14:28:33 +02:00
wmayer
c238a5b766 + minor fix of output format 2014-08-28 15:47:09 +02:00
wmayer
422cadb757 + do not try to use framebuffer objects when it's not supported on the system 2014-08-28 15:35:17 +02:00