<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="Generator" content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang="EN-US" link="blue" vlink="purple"><div class="WordSection1"><p class="MsoNormal"><a name="_MailEndCompose"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Does anyone know of an example of this working? I have tried a couple different approaches and I cannot see a way to do this. I know VTKGL2 is defined in vtkPVConfig.h but it seems the python wrapper is not looking at the ifdefs usig that define. I can try a different approach I just wanted to check if anyone knows of a ifdefed header function that is conditionally wrapped in python.</span></a></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Ken</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Ken Martin PhD</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Chairman & CFO</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Kitware Inc.</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">28 Corporate Drive</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Clifton Park NY 12065</span></p><p class="MsoNormal"><a href="mailto:ken.martin@kitware.com"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">ken.martin@kitware.com</span></a><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">518 881-4901 (w)</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">518 371-4573 (f)</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you.</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> David Lonie [mailto:<a href="mailto:david.lonie@kitware.com">david.lonie@kitware.com</a>] <br><b>Sent:</b> Thursday, March 26, 2015 12:01 PM<br><b>To:</b> Ken Martin<br><b>Cc:</b> <a href="mailto:paraview-developers@paraview.org">paraview-developers@paraview.org</a><br><b>Subject:</b> Re: [Paraview-developers] Exclude code from Python wrapping?</span></p><p class="MsoNormal"> </p><div><div><div><p class="MsoNormal">On Thu, Mar 26, 2015 at 11:06 AM, Ken Martin <<a href="mailto:ken.martin@kitware.com" target="_blank">ken.martin@kitware.com</a>> wrote:</p><div><p class="MsoNormal" style>Anyone know how to suppress wrapping part of a header file?</p><p class="MsoNormal" style> </p><p class="MsoNormal" style>I have in a header file the following code...</p><p class="MsoNormal" style> </p><p class="MsoNormal" style>//BTX</p><p class="MsoNormal" style>#ifndef VTKGL2</p><p class="MsoNormal" style> // Description:</p><p class="MsoNormal" style> // Get/Set the painter that does the actual rendering.</p><p class="MsoNormal" style> void SetPainter(vtkPainter*);</p><p class="MsoNormal" style> vtkGetObjectMacro(Painter, vtkPainter);</p><p class="MsoNormal" style>#endif</p><p class="MsoNormal" style>//ETX</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">FWIW, I believe</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">#ifndef __WRAP__</p></div><div><p class="MsoNormal">#endif // __WRAP__</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">have replaced</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">// BTX</p></div><div><p class="MsoNormal">// ETX</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">(at least for VTK).</p></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">Dave</p></div></div></div></div></div></body></html>