1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0032055: Draw Harness, ViewerTest - add more vmanipulator position adjusting options

Draw::ParseOnOffIterator() - added auxiliary wrapper over Draw::ParseOnOff() for more compact syntax.
strncasecmp() definition for msvc compilers has been moved to Standard_CString for consistency with strcasecmp().
vmanipulator command has been refactored to use more straightforward parser.

vmanipulator now accepts "-adjustPosition {0|center|location|shapeLocation}" options
adjusting position to object's AABB center (existed before), object's local transformation or TopoDS_Shape location.
This commit is contained in:
kgv
2021-01-13 21:22:00 +03:00
committed by bugmaster
parent 607f045954
commit ff6122e008
6 changed files with 533 additions and 248 deletions

View File

@@ -24,9 +24,14 @@
#include <stdio.h>
#include <string.h>
# if defined(_MSC_VER) && ! defined(strcasecmp)
# define strcasecmp _stricmp
# endif
#if defined(_MSC_VER)
#if !defined(strcasecmp)
#define strcasecmp _stricmp
#endif
#if !defined(strncasecmp)
#define strncasecmp _strnicmp
#endif
#endif
// C++ only definitions
#ifdef __cplusplus