Commit Graph

2759 Commits

Author SHA1 Message Date
wmayer
616b1d0d99 + save last used export/import filter 2014-10-19 19:42:50 +02:00
wmayer
9c83e55d9b + fix Python binding of 3d viewer 2014-10-19 18:59:05 +02:00
wmayer
4ffb856f33 + fix more Quarter port issues 2014-10-19 17:49:31 +02:00
wmayer
7ade19fde2 + support of home path with non-ASCII chars 2014-10-19 17:27:02 +02:00
wmayer
be949a054d + harmonize API 2014-10-19 14:25:51 +02:00
Sebastian Hoogen
dc69e119af fixes #1706 rename anaglyph stereo mode red/cyan 2014-10-15 15:53:18 +02:00
wmayer
fd2c2e165b + fix build failure 2014-10-15 15:45:40 +02:00
wmayer
e0d755b91d + share GL widgets when creating further 3d views of a document 2014-10-15 12:04:06 +02:00
wmayer
398546aecb + fix build problems with Python & MacOSX 2014-10-13 22:02:57 +02:00
Sebastian Hoogen
01cf0f5872 issue #1027 use unicode filepaths 2014-10-11 13:32:06 +02:00
wmayer
bb6b2ec5c5 + fix anti-aliasing issue 2014-10-10 16:58:02 +02:00
wmayer
2f2061eabb + fix whitespaces 2014-10-10 15:48:31 +02:00
wmayer
21ea4e972a + fix stack overflow error 2014-10-10 15:47:20 +02:00
wmayer
4e72e4a937 + fix Qt help problems 2014-10-01 17:16:43 +02:00
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