1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00

180 Commits

Author SHA1 Message Date
abv
8a262fa13d 0023586: The test execution process should correctly stop on user demand
Possibility to break DRAW commands by user break (Control-C) is implemented as follows:

- Treatment of Control-C (SIGINT signal) on UNIX in OSD::SetSignal() is made coherent with Windows implementation: instead of attempt to raise exception (simulated by longjump, does not work anyway), signal handler just sets a flag which can be later checked by OSD::ControlBreak()

- Call to OSD::ControlBreak() is added to common entry point for OCCT DRAW commands; this causes command interruption if Control-C has been pressed before its start.

- Command "dbreak" added allowing to check Control-Break status from Tcl script (raises Tcl exception if break was signaled)

- Command "dversion" added printing information on OCCT version, used build options, compiler, etc.

- Test system modified to properly handle and report user breaks and add version info in the summary log

Fix compiler error on Linux
2012-12-07 16:12:01 +04:00
dbv
aff395a36d 0023415: OSD_FontMgr can't idenify aspect for fonts with names dependant on system locale.
Added function DetectFontsAspects to Font_FontMgr class. This function uses workaround from OpenGl_FontMgr with FreeType for detecting font aspect.
Removed font name parsing from Font_FontMgr::InitFontDataBase(). Now the font name and font style we get through the FreeType.
Fixed Unix part of Font_FontMgr::InitFontDataBase() method. Font name and font style now detected through the FreeType.
Remarks fix. Added recursive default font directories scanning .
Fixed adding fonts folders recursively from configuration files.
Moved fonts aliases map from OpenGl_Display_1 to Font_FontMgr.
Moved fonts name definition from Graphic3d_NameOfFont.hxx to Font_NameOfFont.hxx.
Added new methods to Font_FontMgr: GetAvailableFontsNames, GetFont and FindFont.
Modified Font_SystemFont creation from XLFD. Added method IsEqual to Font_SystemFont.
Modified methods OpenGl_Display::FindFont, OpenGl_FontMgr::request_font in accordance to the new functionality of the Font_FontMgr.
OpenGl_FontMgr now stores only generated fonts instead of duplication of available fonts list.
Removed method OpenGl_FontMgr::requestFontList. Its function now performs Font_FontMgr::GetAvailableFontsNames.
Documentation was fixed
Adjusting testing cases for current state of OCCT
2012-12-07 13:42:37 +04:00
omy
c2ae831c12 0023237: OSD_PerfMeter reports wrong (zero) times
Commit details:
1) in OSD_PerfMeter, use static functions of OSD_Chronometer class for time measurements instead of specific code to avoid incorrect results on CentOS (due to wrong valus of CLK_TCK);
2) changed definition of OSD_PerfMeter from .c to .cxx to avoid problems with C-functions;
3) fixed OSD_PerfMeter.h for building on Unix systems;
4) removed platform-specific #defines;
5) added test case for OSD_PerfMeter as bugs fclasses bug23237;
6) Removed DebugTools package (duplicates OSD_PerfMeter)
7) Avoid compiler (GCC) error casting BRepPrimAPI_Make* instances to TopoDS_Shape
2012-11-30 16:17:28 +04:00
bugmaster
fc3a37cda1 23563: Introduce support of MS Visual Studio 2012
unused Mapiwi.h commented
Update of OCCT samples for vc11
Update of target folders for vc11
Update of generation-vc-projects.bat files
2012-11-30 15:43:13 +04:00
omy
999c0ca132 0022506: Wrong factor for elapsed time mesaured with GetTickCount() in OSD_Timer
Commit details: set the proper factor value.
2012-11-15 14:38:07 +04:00
Roman Lygin
0ac0c8b4ae 0022545: Improved exception handling 2012-11-15 13:17:30 +04:00
dbv
eeaaaefb6f 0023466: Move OSD_FontMgr class outside TKernel
Created new package Font in TKService.
Classes FontMgr and SystemFont have been moved from OSD package to Font package.
2012-10-12 15:15:32 +04:00
Roman Lygin
1cc1abe1ab 0023393: Improve usability of OSD_MAllocHook::CollectBySize
Usability of OSD_MAllocHook::CollectBySize was improved:
- fields of OSD_MAllocHook::CollectBySize are made public (not private) to enable access for debugging purposes.
- added field myMaxAllocSize to denote maximum tracked size
2012-08-24 15:14:14 +04:00
Pawel
d015d21804 0023277: Buffer underflow using memset in osd_path.cxx
The parameter used in memset matches the buffer size.
2012-07-27 14:58:54 +04:00
Pawel
abd9003d5f 0023280: Pointer to local array is stored outside the scope of this array.
Moved the array 'buff' so it can be visible while 'str' still refers to it.
2012-07-23 15:00:03 +04:00
Pawel
8ec3edb0c5 0023278: Buffer underflow using memset in osd_host.cxx
Zero memory uses the size of the array.
2012-07-20 16:32:09 +04:00
kgv
8fa02385b0 0023250: Missing include in OSD_MemInfo.cxx
Function getpid() declared in "unistd.h" header on POSIX-compliant systems.
Fix compilation error with gcc 4.7 on Linux.
2012-07-13 17:23:31 +04:00
dbv
60be1f9b1d 0023072: Eliminate compiler warnings (level 3) on Windows / MSVC++ 2012-07-06 15:52:20 +04:00
bugmaster
9fa641d946 Correction of compilation errors 2012-04-13 16:34:10 +04:00
kgv
f04309524a 0023081: This is desirable to retrieve GPU memory information from graphic driver
Added Graphic3d_GraphicDriver::MemoryInfo() function.
Added vfps command to estimate average frame rate of 3D Viewer
Simplified vdrawsphere command
Removed turnVbo and performance measurements from vdrawsphere.
Added vvbo command to control VBO usage flag.
Added vmemgpu command to display GPU memory info from graphic driver
2012-04-12 12:49:54 +04:00
kgv
208e6839be 0023065: This is desirable to add general DRAW command to estimate visualization performance
Added vfps command to estimate average frame rate of 3D Viewer
Simplified vdrawsphere command

Removed turnVbo and performance measurements from vdrawsphere.
Added vvbo command to control VBO usage flag.
2012-04-06 12:33:47 +04:00
bugmaster
b311480ed5 0023024: Update headers of OCCT files
Added appropriate copyright and license information in source files
2012-03-21 19:43:04 +04:00
kgv
270a5d4e0c 0023019: OSD_Chronometer fails to compile due to lack of clock_gettime() on Mac OS X
Usage of task_info() system function in OSD_Chronometer::GetThreadCPU() to retrieve process info.
2012-03-15 14:42:44 +04:00
skv
13b4230bdb 0023006: Improvement to debug memory leaks and insufficient memory growths. 2012-03-15 12:17:48 +04:00
dbv
8413a813df 0022954: Variable not freed upon realloc failure 2012-03-15 11:05:21 +04:00
Pawel, DBV
f78c0415f7 0022953: strcat expects null-terminated destination string 2012-03-05 19:32:36 +04:00
DBV
6601f504db 0022904: Clean up sccsid variables 2012-03-05 19:32:14 +04:00
EPV
a6535b1d3f 0022774: Memory leak in OSD_FontMgr::InitFontDataBase() method 2012-03-05 19:31:43 +04:00
bugmaster
e2f8b392a6 Update for compilation on gcc compilers up to 4.4.5 2012-03-05 19:30:27 +04:00
MSV
213cb88863 OCC22256 Add mechanism based on malloc/free callback for debugging memory problems 2012-03-05 19:28:40 +04:00
bugmaster
c3d894867d Merge OCC22105 and OCC22360 2012-03-05 19:28:28 +04:00
MSV,AGV
7af17f1e1a OCC22256 Add mechanism based on malloc/free callback for debugging memory problems 2012-03-05 19:28:17 +04:00
MSV
5b181c6297 OCC22360 Writing out of allocated memory in the method OSD_FontMgr::InitFontDataBase 2012-03-05 19:27:55 +04:00
APL
28e8503452 OCC22105 Suspicious call to XOpenDisplay() in OSD_FontMgr class 2012-03-05 19:27:49 +04:00
bugmaster
7fd59977df Integration of OCCT 6.5.0 from SVN 2012-03-05 19:23:40 +04:00