Archived issue #0028313
Extend Draw functionality with some new useful commands and features
Description
I propose to integrate in OCCT some useful Draw commands and features that I use permanently in my work.
They include extension of main TK window with buttons that allow manipulation of view by mouse, and a set of new TCL procedures.
They include extension of main TK window with buttons that allow manipulation of view by mouse, and a set of new TCL procedures.
Steps to reproduce
None
Public activity
17 archived notes
Participants are labeled by their role within this record.
Branch [archived branch] has been created by Author.
[revision removed]
Detailed log of new commits:
Author: Author
Date: Wed Dec 28 18:12:17 2016 +0300
0028313: Extend Draw functionality with some new useful commands and features
1) In Views menu the check button item "Extended view commands" has been added. Pressing on it shows/hides the set of buttons in the main window that allow manipulating of view zoom/pan/rotate by mouse.
2) New category of commands "Vector and measurement Commands" has been added. The commands in this category allow simple calculations using 2D and 3D vectors, such as cross and dot products, computation of distances of points to other objects, and other functions.
3) The new command "pickf" has been added in "DRAW Variables management" category. It allows extracting a picked with mouse face included in some shape as a new variable.
4) New commands "del" and "era" have been added in "DRAW Variables management" category. They allow deleting (destructing) or erasing (from view) variables matched by glob pattern.
5) Help for commands "don", "donl", "disp" has been added.
[revision removed]
Detailed log of new commits:
Author: Author
Date: Wed Dec 28 18:12:17 2016 +0300
0028313: Extend Draw functionality with some new useful commands and features
1) In Views menu the check button item "Extended view commands" has been added. Pressing on it shows/hides the set of buttons in the main window that allow manipulating of view zoom/pan/rotate by mouse.
2) New category of commands "Vector and measurement Commands" has been added. The commands in this category allow simple calculations using 2D and 3D vectors, such as cross and dot products, computation of distances of points to other objects, and other functions.
3) The new command "pickf" has been added in "DRAW Variables management" category. It allows extracting a picked with mouse face included in some shape as a new variable.
4) New commands "del" and "era" have been added in "DRAW Variables management" category. They allow deleting (destructing) or erasing (from view) variables matched by glob pattern.
5) Help for commands "don", "donl", "disp" has been added.
Dear Andrey, please review the branch CR28313.
It is necessary to mention these modifications in the documentation. The most suitable places are (IMHO):
1) Draw Test Harness
2) Debugging tools and hints.
1) Draw Test Harness
2) Debugging tools and hints.
As we discussed, please consider removing duplicate DRAW commands, such as don and donl
Branch [archived branch] has been updated forcibly by Author.
[revision removed]
[revision removed]
Branch [archived branch] has been created by Author.
[revision removed]
Detailed log of new commits:
Author: Author
Date: Wed Dec 28 18:12:17 2016 +0300
0028313: Extend Draw functionality with some new useful commands and features
1) In Views menu the check button item "Extended view commands" has been added. Pressing on it shows/hides the set of buttons in the main window that allow manipulating of view zoom/pan/rotate by mouse.
2) New category of commands "Vector and measurement Commands" has been added. The commands in this category allow simple calculations using 2D and 3D vectors, such as cross and dot products, computation of distances of points to other objects, and other functions.
3) The new command "pickf" has been added in "DRAW Variables management" category. It allows extracting a picked with mouse face included in some shape as a new variable.
4) New commands "del" and "era" have been added in "DRAW Variables management" category. They allow deleting (destructing) or erasing (from view) variables matched by glob pattern.
5) Missing help for some commands like "don", "disp" and others has been added.
[revision removed]
Detailed log of new commits:
Author: Author
Date: Wed Dec 28 18:12:17 2016 +0300
0028313: Extend Draw functionality with some new useful commands and features
1) In Views menu the check button item "Extended view commands" has been added. Pressing on it shows/hides the set of buttons in the main window that allow manipulating of view zoom/pan/rotate by mouse.
2) New category of commands "Vector and measurement Commands" has been added. The commands in this category allow simple calculations using 2D and 3D vectors, such as cross and dot products, computation of distances of points to other objects, and other functions.
3) The new command "pickf" has been added in "DRAW Variables management" category. It allows extracting a picked with mouse face included in some shape as a new variable.
4) New commands "del" and "era" have been added in "DRAW Variables management" category. They allow deleting (destructing) or erasing (from view) variables matched by glob pattern.
5) Missing help for some commands like "don", "disp" and others has been added.
Please review again.
Can you please rearrange commands "help" and definition of DRAW Tcl procedures so that help is before the procedure, not after it? This is common practice to put comment before the method, not at the end. Currently the order is reversed and it is quite confusing.
I agree. I did so as continuation of old code.
Branch [archived branch] has been updated by Author.
[revision removed]
Detailed log of new commits:
Author: Author
Date: Thu Jan 26 13:11:18 2017 +0300
//Put help for the commands before their definition.
[revision removed]
Detailed log of new commits:
Author: Author
Date: Thu Jan 26 13:11:18 2017 +0300
//Put help for the commands before their definition.
Done. Please review.
No more remarks, please test
Branch [archived branch] has been updated forcibly by Participant.
[revision removed]
[revision removed]
Branch [archived branch] has been rebased on IR-2017-01-26
Dear Commenter 3,
Branch CR27313_1 from occt git-repository (and IR-2017-01-26 from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested.
[revision removed]
Number of compiler warnings:
occt component:
Linux: 0 (0 on master)
Windows: 0 (0 on master)
MasOS: 0 (0 on master)
products component:
Linux: 63
Windows: 0
MacOS: 1122
Regressions/Differences:
Not detected
Testing cases:
Not needed
Testing on Linux:
Total MEMORY difference: 91728285 / 92310306 [-0.63%]
Total CPU difference: 19775.180000000182 / 19914.260000000217 [-0.70%]
Testing on Windows:
Total MEMORY difference: 57618713 / 57618048 [+0.00%]
Total CPU difference: 18450.394270998622 / 18683.178963198647 [-1.25%]
Branch CR27313_1 from occt git-repository (and IR-2017-01-26 from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested.
[revision removed]
Number of compiler warnings:
occt component:
Linux: 0 (0 on master)
Windows: 0 (0 on master)
MasOS: 0 (0 on master)
products component:
Linux: 63
Windows: 0
MacOS: 1122
Regressions/Differences:
Not detected
Testing cases:
Not needed
Testing on Linux:
Total MEMORY difference: 91728285 / 92310306 [-0.63%]
Total CPU difference: 19775.180000000182 / 19914.260000000217 [-0.70%]
Testing on Windows:
Total MEMORY difference: 57618713 / 57618048 [+0.00%]
Total CPU difference: 18450.394270998622 / 18683.178963198647 [-1.25%]
Branch [archived branch] has been deleted by Participant.
[revision removed]
[revision removed]
Branch [archived branch] has been deleted by Participant.
[revision removed]
[revision removed]