Commit Graph

52 Commits

Author SHA1 Message Date
wmayer
1f6efd5182 Qt5OpenGL: fix flickering on resize 2017-03-21 20:37:03 +01:00
wmayer
2d4198f453 Qt5OpenGL: add OpenGL debug logger (deactivated) 2017-03-21 20:37:03 +01:00
wmayer
764f9ce7e5 Qt5OpenGL: use OpenGL debug logger to locate problems, fix a couple of errors 2017-03-21 20:37:03 +01:00
wmayer
f8a14fc69e Qt5OpenGL: release context when finished 2017-03-21 20:37:03 +01:00
wmayer
ac1bd39cfe disabling depth test makes 3d viewer work again 2017-03-21 20:37:03 +01:00
wmayer
9e42badfaf move QuarterWidget to QOpenGLWidget 2017-03-21 20:37:03 +01:00
wmayer
d6549e7dd7 fix -Wunused-private-field, -Woverloaded-virtual 2017-03-05 10:10:53 +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
hgutsche
c7a467d454 Improved comment about Quarter doxygen commands 2017-02-28 18:52:04 +01:00
hgutsche
201c9d89b0 Some fixes for doygen syntax errors and some configuration to make it run smoother under Windows 2017-02-28 18:52:04 +01:00
Mateusz Skowroński
f8778c4d6f Fix more GCC warnings. 2017-02-18 09:35:31 +01:00
Mateusz Skowroński
3447829a2c Fix some Quarter High DPI Display issues. Ported from code by Randall O'Reilly.
https://grey.colorado.edu/svn/coin3d/quarter/trunk/
2017-02-15 22:16:46 +01:00
Mateusz Skowroński
ce1c021132 * Cosmetic change. Replace Qt keyword emit with Q_EMIT.
* Whitespace fixes.
2017-01-05 22:57:30 +01:00
wmayer
18738afc1e replace Qt keyword slots with Q_SLOTS 2017-01-05 14:27:19 +01:00
wmayer
bfa7ac910d workaround for performance problem with Qt 5.5.x 2016-12-28 10:32:22 +01:00
wmayer
5096f55ccb port C++ code to Qt5 2016-12-13 14:22:59 +01:00
wmayer
1e6dcabefc fix -Wextra in FreeCADGui 2016-09-21 20:54:52 +02:00
wmayer
279531e89d remove superfluous semicolons 2016-08-14 17:10:49 +02:00
DeepSOIC
8415bc32b6 Gui: Selection: pick radius support 2016-08-10 18:46:45 +02:00
wmayer
6380881b58 + fix warnings:
-Wsign-compare, -Wunused-variable, -Wunused-function, -Wswitch
+ fix Qt issues
2016-04-13 14:26:38 +02:00
wmayer
57d3e15e37 + activate new implementation of QuarterWidget::viewportEvent 2016-04-09 19:04:21 +02:00
wmayer
67c76596ce + add convenience methods to SoQTQuarterAdaptor 2016-04-04 12:53:06 +02:00
wmayer
7c55086d2c + fix crash when viewer has no camera 2016-04-04 12:48:58 +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
fb1310f43e + resize scene size when resizing graphics view 2016-03-25 18:11:56 +01:00
Eivind Kvedalen
cfc3de186a SIM::Coin3D::Quarter::SoQTQuarterAdaptor: Added missing initializationg of member field m_viewingflag. 2016-03-08 16:09:25 +01:00
maurerpe
c455a17fb7 Ensure mutexes are always properly unlocked
Error exists with Qt4 and Qt5.  Qt5 generated helpful warnings that made
it easier to debug.
2016-02-24 23:56:05 +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
fe6face07b Change includes in Quarter to be compatible with Qt5.
This change is Qt4/Qt5 neutral.
2016-01-05 16:10:02 +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
Mateusz Skowroński
0695552cff QString::toAscii() is obsolete in Qt5. Replace it with toLatin1().
This change is Qt4/Qt5 neutral.
2016-01-05 16:06:48 +01:00
wmayer
f46dc20fca + fix & suppress msvc warnings 2015-10-16 18:26:30 +02:00
Przemo Firszt
5fcd8224b5 Doc: Quarter doc main page is not FreeCAD documentation main page
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-08-30 11:59:21 +02:00
wmayer
4a176cbe29 + fix various warnings 2015-08-29 22:05:09 +02:00
wwmayer
6bf065c097 + fix many minor warnings, activate -Wall for gcc 2015-08-02 22:32:18 +02:00
wmayer
910d6c93c2 + fixes #0001970: Spaceball 5000 USB no longer works in Windows 7 in 0.15 dev versions 2015-03-11 12:44:38 +01:00
wmayer
629dc9aad0 + fixes #0001972: FreeCAD crashes when using keyboard shortcut H to constrain a line 2015-02-18 12:50:16 +01:00
DeepSOIC
865ecca262 Sketcher: Responsivity tweaks and AngleViaPoint Constraint
Solver iteration limit independent of system size (reduces hangs when
solver fails to converge).
Repaint() instead of update() to force render for every movePoint.

Sketcher: New Constraint AngleViaPoint

* Adding generic CalculateNormal() method
* Reconfiguration of GCS geometry classes: adding a base class "Curve",
that has a pure virtual function CalculateNormal().
* Initial inplementation of the new function.
* adding Vector2D class (I wanted to reuse the existing, but got wierd
compile errors, so implemented a new one... TODO.)
* Adding redirection support into GCS shapes. Adding a Copy method to
GCS::Curve.
* Automatic point-on-object
* Angle precalculation: when AngleViaPoint is added, angle is properly calculated based on
existing geometry.
* Added tangency-via-point using one.
* Implemented placement of tangency-via-point icon in 3d view. Also
affected is the placement of point-on-object icon (since it is very
similar code, it is now shared with tangency-via-point)
* Placement and moving of angle datum
Functions: calculateAngleViaPoint, isPointOnCurve,
calculateConstraintError exposed to python
* Endpoint tangency: All endpoint-to-endpoint and endpoint-to-curve tangency now works
through AngleViaPoint constraint and obsolete code clean up (most procedures
addConstraintTangentXXX2YYY)
2015-01-02 11:48:28 +01:00
wmayer
75e08f0730 + fix bug in SoQTQuarterAdaptor::processSoEvent 2014-11-06 19:14:14 +01:00
Stefan Tröger
95a976c3d0 fixes #0001781: Reimplement arrow keys for 3d view
- including minor formating fixes
2014-11-06 18:56:51 +01:00
wmayer
2a49ac5878 + port cache context handling 2014-10-22 15:26:22 +02:00
wmayer
2f2061eabb + fix whitespaces 2014-10-10 15:48:31 +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
wmayer
493d1343ae + fix typos 2014-09-24 22:06:13 +02:00
wmayer
696d4a5f4a + fix warnings with clang 2014-09-24 17:46:04 +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
99a61cc03e ensure that the glwidget is returned 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