<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><span>This is personal code, by maybe one day I will contribute it to VTK, as like a plugin or something....</span></div><div><br><span></span></div><div><span>There are pieces of code that special things that do access OpenGL directly however, like the LIC code.&nbsp; But I could do things another way...I so see classes related to shaders (vtkShader) and setting up the view volume (vtkPersp*), so those classes may come in handy....<br></span></div><div><br><span></span></div><div><span>Sohail<br></span></div><div><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><font face="Arial" size="2"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Andy Bauer &lt;andy.bauer@kitware.com&gt;<br><b><span
 style="font-weight: bold;">To:</span></b> Sohail Shafii &lt;sohailshafii@yahoo.com&gt;<br><b><span style="font-weight: bold;">Cc:</span></b> "paraview@paraview.org" &lt;paraview@paraview.org&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Wednesday, October 5, 2011 8:56 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Paraview] Accessing OpenGL from standard VTK filter<br></font><br><meta http-equiv="x-dns-prefetch-control" content="off"><div id="yiv931605686">Are you hoping that this will make its way into the main VTK repo or is this personal code that you plan on maintaining yourself and plan on linking with VTK?<br><br>There are people that know more about this than me but this sounds like a bad idea for the main VTK repo.&nbsp; A lot of the OpenGL specific calls are hidden by factories which create them as needed.&nbsp; For example, you'd create a vtkPolyDataMapper and the factory would create the
 vtkOpenGLPolyDataMapper, vtkMesaPolyDataMapper, etc as needed by the build.<br>
<br>Andy<br><br><div class="yiv931605686gmail_quote">On Tue, Oct 4, 2011 at 6:34 PM, Sohail Shafii <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:sohailshafii@yahoo.com" target="_blank" href="mailto:sohailshafii@yahoo.com">sohailshafii@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="yiv931605686gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex;">
<div><div style="color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);font-family:arial, helvetica, sans-serif;font-size:12pt;"><div><span>Hi,</span></div><div><br><span></span></div><div><span>If I were to write a typical VTK filter C++ (i.e. the type with VTKRequestData, not existing in the VTK/Rendering folder), would it be fine to have OpenGL calls in there?&nbsp; I'm guessing based on the way VTK is designed, most classes that access OpenGL directly might exist in the Rendering folder.&nbsp; This is more of a design question anyway and relates to how to VTK classes are designed.</span></div>
<div><br><span></span></div><div><span>My class will add data structures to the pipeline but it may need a fragment shader for computations.</span></div><div><br><span></span></div><font color="#888888"><div><span>Sohail<br>
</span></div><div><br><span></span></div><div><span><br></span></div><br><div style="font-family:times new roman, new york, times, serif;font-size:12pt;"><br></div></font></div></div><br>_______________________________________________<br>

Powered by <a rel="nofollow" target="_blank" href="http://www.kitware.com">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a rel="nofollow" target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a rel="nofollow" target="_blank" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a rel="nofollow" target="_blank" href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br>
</div><meta http-equiv="x-dns-prefetch-control" content="on"><br><br></div></div></div></body></html>