Changes between Initial Version and Version 1 of MSVSAutoexp


Ignore:
Timestamp:
Sep 20, 2010, 4:59:41 PM (14 years ago)
Author:
hromain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MSVSAutoexp

    v1 v1  
     1
     2== Microsoft Visual Studio visualizers ==
     3
     4Geometry implementations are not viewable directly in the debug window of MS Visual Studio.
     5
     6To view quickly geometries in the debug window, edit the file located at
     7
     8{{{
     9C:\Program Files\Microsoft Visual Studio 9.0\Common7\Packages\Debugger\autoexp.dat
     10}}}
     11
     12and put this code somewhere :
     13
     14
     15{{{
     16;-------------------------------------------------------------
     17; Geos Point
     18;
     19geos::geom::Point {
     20  preview
     21  (
     22    #(
     23      (((*(((*((geos::geom::CoordinateArraySequence *)(($e).coordinates)._Myptr))).vect))._Myfirst)[0x00000000]).x,
     24      (((*(((*((geos::geom::CoordinateArraySequence *)(($e).coordinates)._Myptr))).vect))._Myfirst)[0x00000000]).y
     25    )
     26  )
     27  children
     28  (
     29    #(
     30      x: (((*(((*((geos::geom::CoordinateArraySequence *)(($e).coordinates)._Myptr))).vect))._Myfirst)[0x00000000]).x,
     31      y: (((*(((*((geos::geom::CoordinateArraySequence *)(($e).coordinates)._Myptr))).vect))._Myfirst)[0x00000000]).y,
     32      z: (((*(((*((geos::geom::CoordinateArraySequence *)(($e).coordinates)._Myptr))).vect))._Myfirst)[0x00000000]).z,
     33      SRID:(*(geos::geom::Geometry*)(&($e))).SRID,
     34      geometry: (*(geos::geom::Geometry*)(&($e)))
     35    )
     36  )
     37}
     38
     39}}}
     40
     41
     42
     43