Abdullah Tahiri
5dcd081591
Sketcher enhancement: Constraint icons visible over lines
2014-09-17 18:49:40 +02:00
Abdullah Tahiri
cea93fa33c
Sketcher Bug fix: Arrows for symmetry constraint are back
...
The arrows were there in the code, but at a certain point, code was written to set the this->imgHeight value programatically, based on
whether it had text or not. As symmetry constraint does not have text the variable failed to initialize. Being zero, it did not pass
the ASSERT in the render function, so it was not rendered.
This includes Werner's fix for improver cast of a SoRayPickAction to SoGLRenderAction:
SbVec2s vp_size = static_cast<SoGLRenderAction*>(action)->getViewportRegion().getWindowSize();
to
SbVec2s vp_size = SoViewportRegionElement::get(state).getWindowSize();
At least sometimes tt is a SoRayPickAction because:
When you move with the mouse over the sketcher (when in edit mode) you enter the method ViewProviderSketch::mouseMove.
Inside there the method getPointOnRay is called to get a picked point underneath the cursor. Inside the latter method
an instance of SoRayPickAction is created to traverse the scene graph. After a long cascade of function calls you
finally enter SoDatumLabel::generatePrimitives(SoAction*).
2014-09-17 18:48:54 +02:00
wmayer
839eced7a9
+ fix more compiler warnings
2014-08-27 13:26:44 +02:00
wmayer
d431f52a2d
+ fix issues with angle constraints
2014-05-17 18:27:56 +02:00
Stefan Tröger
468069266c
fix sketcher arrow size and make them independend from window size
2014-05-14 22:43:31 +02:00
Stefan Tröger
31771d5314
fix inverted sketcher font-size issue and make font size undependend of window size
2014-05-13 18:20:38 +02:00
wmayer
8ad5d0416b
fixes #0001191 : Cannot manipulate length if moved away from between the 'red lines'
2014-01-14 11:48:34 +01:00
wmayer
3fe720f3bc
+ Replace math.h with cmath
2014-01-05 11:25:40 +01:00
jriegel
16c6fe2470
Add unti support to Sketcher
2013-12-15 22:47:47 +01:00
wmayer
00d46af3e1
0001246: Constraint datum dimension label shown as gray box vice number in transparent background.
2013-10-21 10:05:23 +02:00
wmayer
434400f8a0
0000971: Tracing over a background image in Sketcher: image is overwritten by first dimensional constraint text
2013-10-13 18:35:27 +02:00
wmayer
c64d0594b6
Apply fix from mrlukeparry for datum labels
2013-05-27 11:25:50 +02:00
Yorik van Havre
acb2d38da5
Sketcher: small fix to allow to use SoDatumLabel in python
2013-03-04 15:56:17 -03:00
wmayer
ec1de40d99
0000721: massive memory leak when dragging an unconstrained model
2012-11-15 00:24:40 +01:00
wmayer
3b3aaa5bcd
Fix some memory leaks
2012-11-14 17:12:42 +01:00
unknown
c2c5b137f2
Fix possible crash in various view providers, fix formatting of Coin debug output, fix warning and compiler errors with Coin2 in SoDatumLabel
2012-07-18 10:40:36 +02:00
mrlukeparry
5513942b55
Sketcher: fix incorrect datum text flip for non xy-plane sketches
2012-07-17 23:15:58 +02:00
mrlukeparry
4486bd0a1c
Sketcher: improve symmetric constraint visual
2012-07-17 12:40:22 +02:00
mrlukeparry
7b05576aa2
Sketcher, 0000466: improve visualization of constraints
2012-07-15 13:23:59 +02:00
mrlukeparry
4fcffabf15
Remove un-necessary GL command that seemed to cause rendering artifacts.
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5372 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-12-31 20:01:24 +00:00
logari81
3d9c7771f8
+ fix indentation, untabify and strip trailing spaces
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5054 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-22 11:57:49 +00:00
mrlukeparry
87dd7826c7
Improved Datum Visuals.
...
DepthTest works correctly.
Datum label selection colour works correctly.
Made labels slightly smaller to prevent stretch
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5052 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-22 08:50:30 +00:00
logari81
b252fe7e1f
+ improve coding style and fix typos
...
+ fix positioning of symmetry constraint icon
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5002 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 21:41:30 +00:00
wmayer
120ca87015
+ unify DLL export defines to namespace names
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00