From 622d7f53f561c69948e3e41c28554b8c8b4635af Mon Sep 17 00:00:00 2001 From: agv Date: Wed, 9 Apr 2014 12:13:20 +0400 Subject: [PATCH] 0024812: Provide VS2012 debugger visualizer for OCCT types --- .gitattributes | 1 + dox/dev_guides/debug/occt.natvis | 146 +++++++++++++++++++++++++++++++ 2 files changed, 147 insertions(+) create mode 100644 dox/dev_guides/debug/occt.natvis diff --git a/.gitattributes b/.gitattributes index 6f32bdc850..d2ae005d4d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -36,6 +36,7 @@ *.rle eol=lf *.vrml eol=lf *.md eol=lf +*.natvis eol=lf FILES eol=lf PACKAGES eol=lf EXTERNLIB eol=lf diff --git a/dox/dev_guides/debug/occt.natvis b/dox/dev_guides/debug/occt.natvis new file mode 100644 index 0000000000..c21ba55bea --- /dev/null +++ b/dox/dev_guides/debug/occt.natvis @@ -0,0 +1,146 @@ + + + + [{(float)x} {(float)y}] + + + + + [{(float)cood.x} {(float)cood.y}] + + + [{(float)x} {(float)y} {(float)z}] + + + + + [{(float)coord.x} {(float)coord.y} {(float)coord.z}] + + + [{v[0]} {v[1]}] + + + [{v[0]} {v[1]} {v[2]}] + + + [{v[0]} {v[1]} {v[2]} {v[3]}] + + + + [{(float)matrix[0][0]} {(float)matrix[0][1]}], [{(float)matrix[1][0]} {(float)matrix[1][1]}] + + + + + ((NCollection_Vec4<$T1>*)myMat)[0] + ((NCollection_Vec4<$T1>*)myMat)[1] + ((NCollection_Vec4<$T1>*)myMat)[2] + ((NCollection_Vec4<$T1>*)myMat)[3] + + + + NULL + [count={entity->count}] + + *entity + + + + NULL + [count={entity->count}] + + *((NCollection_Handle<$T1>::Ptr*)entity)->myPtr + + + + {mylength}: {mystring,s} + + + {myString.mylength}: {myString.mystring,s} + + + {myLength}: {myString,s} + + + {mylength}: {(wchar_t *)mystring,su} + + + {myString.mylength}: {(wchar_t *)myString.mystring,su} + + + TCollection_Sequence [{Size}], curr={CurrentIndex} + + + + TCollection_Map [{mySize}] + + + TColStd_PackedMapOfInteger [{myExtent}] + + + NCollection_Vector [{myLength}] + + + myData->Length + *($T1*)((char*)myData->DataPtr + $i * myItemSize) + + + myLength + *($T1*)((char*)myData->DataPtr + $i * myItemSize) + + + + + NCollection_List [{myLength}] + + + myLength + myFirst + myNext + *($T1*)(sizeof(NCollection_ListNode) + ((char *)this)) + + + + + + VOID + + Center: [{(float)myCenter[0]} {(float)myCenter[1]}], hSize: [{(float)myHSize[0]} {(float)myHSize[1]}] + + + + + VOID + + Center: [{(float)myCenter[0]} {(float)myCenter[1]} {(float)myCenter[2]}], hSize: [{(float)myHSize[0]} {(float)myHSize[1]} {(float)myHSize[2]}] + + + + NULL + [:{myLabelNode->myTag}] + + *myLabelNode + + + + [:{myTag}] + + * myBrother + * myFirstChild + myFirstAttribute + + + + NULL + + [transaction={((TDF_Attribute*)entity)->myTransaction}] + + + + (TDF_Attribute*)entity + + + + [{myGlVerMajor}.{myGlVerMinor}] + + -- 2.20.1