[gl2ps] Patches/VTK Integration

David Lonie david.lonie at kitware.com
Mon Oct 1 21:13:26 CEST 2012


Hi list,

I've been working on the gl2ps exporter in VTK, and I've had to make a
couple of changes to the gl2ps sources. We'd like to see these merged
upstream so that VTK/ParaView will be able to link against system-wide
GL2PS installations in the future.

I've attached three diffs, each containing a change:

* color.diff
    Add option to gl2psTextOpts to explicitly set the color. We ran into
    issues on certain implementations where the GL_CURRENT_RASTER_COLOR
    wasn't preserved in feedback mode as expected (See my previous post:
    http://www.geuz.org/pipermail/gl2ps/2012/000348.html and ref'd
    http://www.groupsrv.com/computers/about128565.html ).
* getFileFormat.diff
    Adds a gl2psGetFileFormat() function to the API. This makes it easier
    to generate raw output for gl2psSpecial calls.
* gl2psSpecialPDF.diff
    Adds an implementation of the gl2psSpecial command for the PDF backend.

Please let me know if these can be merged upstream as-is, or if there
is any improvement they need.

Thanks,

Dave
-------------- next part --------------
A non-text attachment was scrubbed...
Name: color.diff
Type: application/octet-stream
Size: 3151 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gl2ps/attachments/20121001/f14dd864/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getFileFormat.diff
Type: application/octet-stream
Size: 988 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gl2ps/attachments/20121001/f14dd864/attachment-0001.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gl2psSpecialPDF.diff
Type: application/octet-stream
Size: 1360 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gl2ps/attachments/20121001/f14dd864/attachment-0002.diff>