Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 60f1dc962abad0f3b492991a4fbef9be > files > 262

vtk-doc-5.4.2-5mdv2010.0.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>VTK: vtkCgShaderDeviceAdapter Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="classes.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>vtkCgShaderDeviceAdapter Class Reference</h1><!-- doxytag: class="vtkCgShaderDeviceAdapter" --><!-- doxytag: inherits="vtkShaderDeviceAdapter" --><code>#include &lt;<a class="el" href="a05166.html">vtkCgShaderDeviceAdapter.h</a>&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for vtkCgShaderDeviceAdapter:</div>
<div class="dynsection">
<p><center><img src="a08536.png" border="0" usemap="#a08537" alt="Inheritance graph"></center>
<map name="a08537">
<area shape="rect" href="a01536.html" title="an adapter to pass generic vertex attributes to the rendering pipeline. .SECTION..." alt="" coords="13,155,187,181"><area shape="rect" href="a01084.html" title="abstract base class for most VTK objects" alt="" coords="60,80,140,107"><area shape="rect" href="a01085.html" title="abstract base class for most VTK objects" alt="" coords="45,5,155,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
<div class="dynheader">
Collaboration diagram for vtkCgShaderDeviceAdapter:</div>
<div class="dynsection">
<p><center><img src="a08538.png" border="0" usemap="#a08539" alt="Collaboration graph"></center>
<map name="a08539">
<area shape="rect" href="a01536.html" title="an adapter to pass generic vertex attributes to the rendering pipeline. .SECTION..." alt="" coords="129,405,303,432"><area shape="rect" href="a01537.html" title="vtkShaderProgram" alt="" coords="380,496,516,523"><area shape="rect" href="a01084.html" title="abstract base class for most VTK objects" alt="" coords="533,96,613,123"><area shape="rect" href="a00285.html" title="create and manipulate unsorted lists of objects" alt="" coords="463,315,564,341"><area shape="rect" href="a00286.html" title="vtkCollectionElement" alt="" coords="499,189,648,216"><area shape="rect" href="a00287.html" title="iterator through a vtkCollection." alt="" coords="601,405,745,432"><area shape="rect" href="a01915.html" title="encapsulates a VTK Material description." alt="" coords="775,315,892,341"><area shape="rect" href="a01902.html" title="Represents an XML element and those nested inside." alt="" coords="825,189,972,216"><area shape="rect" href="a01085.html" title="abstract base class for most VTK objects" alt="" coords="452,5,561,32"><area shape="rect" href="a01719.html" title="record modification and/or execution time" alt="" coords="585,5,695,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="a08540.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
adapter to pass generic vertex attributes to the rendering pipeline to be used in a Cg shader. 
<p>
<a class="el" href="a01536.html" title="an adapter to pass generic vertex attributes to the rendering pipeline. .SECTION...">vtkShaderDeviceAdapter</a> subclass for Cg. <dl class="user" compact><dt><b>Thanks:</b></dt><dd>Support for generic vertex attributes in VTK was contributed in collaboration with Stephane Ploix at EDF. </dd></dl>

<p>Definition at line <a class="el" href="a05166.html#l00030">30</a> of file <a class="el" href="a05166.html">vtkCgShaderDeviceAdapter.h</a>.</p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <a class="el" href="a01536.html">vtkShaderDeviceAdapter</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00259.html#e2328cb76d189b504784201d850dafbc">Superclass</a></td></tr>

<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00259.html#2798e289766058d4cbca5be70af0b804">GetClassName</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00259.html#45735affe332a9215bd023c9c73b96d2">IsA</a> (const char *type)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00259.html#872d26c578afe4e34581173f534b23d7">PrintSelf</a> (ostream &amp;os, <a class="el" href="a00869.html">vtkIndent</a> indent)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00259.html#5bcd85c3515db74d7ab0a9f9f773bdae">PrepareForRender</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00259.html#b1ff5d7f6c2292e4caf199c110d2958a">SendAttributeInternal</a> (const char *attrname, int components, const double *)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00259.html#0db86b2ce147b0bbd1183d196ddfe7bc">SendAttributeInternal</a> (const char *attrname, int components, const float *)</td></tr>

<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00259.html#4c87d4aee830cb6dec33665e4725fa2a">SendAttribute</a> (const char *attrname, int components, int type, const void *attribute, unsigned long offset=0)</td></tr>

<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="a00259.html">vtkCgShaderDeviceAdapter</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00259.html#cb5b846b8b1dfbf3ef78f41adb637663">New</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00259.html#f5088dcda4cd645a442c5b36cdb97045">IsTypeOf</a> (const char *type)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="a00259.html">vtkCgShaderDeviceAdapter</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00259.html#0d1ac52d780130e51f1be94456c1806e">SafeDownCast</a> (<a class="el" href="a01084.html">vtkObject</a> *o)</td></tr>

<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00259.html#2e489896db0d7eb8e7518a6a95439c15">vtkCgShaderDeviceAdapter</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00259.html#96c1d6af9b5f7e0b42c13c389e141665">~vtkCgShaderDeviceAdapter</a> ()</td></tr>

</table>
<hr><h2>Member Typedef Documentation</h2>
<a class="anchor" name="e2328cb76d189b504784201d850dafbc"></a><!-- doxytag: member="vtkCgShaderDeviceAdapter::Superclass" ref="e2328cb76d189b504784201d850dafbc" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="a01536.html">vtkShaderDeviceAdapter</a> <a class="el" href="a01536.html">vtkCgShaderDeviceAdapter::Superclass</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Reimplemented from <a class="el" href="a01536.html#01ea4dc4c82471bd827e5fa8973762a1">vtkShaderDeviceAdapter</a>.</p>

<p>Definition at line <a class="el" href="a05166.html#l00034">34</a> of file <a class="el" href="a05166.html">vtkCgShaderDeviceAdapter.h</a>.</p>

</div>
</div><p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="2e489896db0d7eb8e7518a6a95439c15"></a><!-- doxytag: member="vtkCgShaderDeviceAdapter::vtkCgShaderDeviceAdapter" ref="2e489896db0d7eb8e7518a6a95439c15" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">vtkCgShaderDeviceAdapter::vtkCgShaderDeviceAdapter           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="96c1d6af9b5f7e0b42c13c389e141665"></a><!-- doxytag: member="vtkCgShaderDeviceAdapter::~vtkCgShaderDeviceAdapter" ref="96c1d6af9b5f7e0b42c13c389e141665" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">vtkCgShaderDeviceAdapter::~vtkCgShaderDeviceAdapter           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="cb5b846b8b1dfbf3ef78f41adb637663"></a><!-- doxytag: member="vtkCgShaderDeviceAdapter::New" ref="cb5b846b8b1dfbf3ef78f41adb637663" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="a00259.html">vtkCgShaderDeviceAdapter</a>* vtkCgShaderDeviceAdapter::New           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. 
<p>Reimplemented from <a class="el" href="a01084.html#4d5b227267c076d6f9e38483370b6612">vtkObject</a>.</p>

</div>
</div><p>
<a class="anchor" name="2798e289766058d4cbca5be70af0b804"></a><!-- doxytag: member="vtkCgShaderDeviceAdapter::GetClassName" ref="2798e289766058d4cbca5be70af0b804" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const char* vtkCgShaderDeviceAdapter::GetClassName           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Reimplemented from <a class="el" href="a01536.html#b2b30400a1d126499d2fc712dd8be498">vtkShaderDeviceAdapter</a>.</p>

</div>
</div><p>
<a class="anchor" name="f5088dcda4cd645a442c5b36cdb97045"></a><!-- doxytag: member="vtkCgShaderDeviceAdapter::IsTypeOf" ref="f5088dcda4cd645a442c5b36cdb97045" args="(const char *type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static int vtkCgShaderDeviceAdapter::IsTypeOf           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>name</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. 
<p>Reimplemented from <a class="el" href="a01536.html#7ac05f945023381663942d53bb4564ce">vtkShaderDeviceAdapter</a>.</p>

</div>
</div><p>
<a class="anchor" name="45735affe332a9215bd023c9c73b96d2"></a><!-- doxytag: member="vtkCgShaderDeviceAdapter::IsA" ref="45735affe332a9215bd023c9c73b96d2" args="(const char *type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int vtkCgShaderDeviceAdapter::IsA           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>name</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. 
<p>Reimplemented from <a class="el" href="a01536.html#b089da5c8ee29b40ffb2b30a0a45b757">vtkShaderDeviceAdapter</a>.</p>

</div>
</div><p>
<a class="anchor" name="0d1ac52d780130e51f1be94456c1806e"></a><!-- doxytag: member="vtkCgShaderDeviceAdapter::SafeDownCast" ref="0d1ac52d780130e51f1be94456c1806e" args="(vtkObject *o)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="a00259.html">vtkCgShaderDeviceAdapter</a>* vtkCgShaderDeviceAdapter::SafeDownCast           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a01084.html">vtkObject</a> *&nbsp;</td>
          <td class="paramname"> <em>o</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Reimplemented from <a class="el" href="a01536.html#2152896524b405401f0aac9f9046eab1">vtkShaderDeviceAdapter</a>.</p>

</div>
</div><p>
<a class="anchor" name="872d26c578afe4e34581173f534b23d7"></a><!-- doxytag: member="vtkCgShaderDeviceAdapter::PrintSelf" ref="872d26c578afe4e34581173f534b23d7" args="(ostream &amp;os, vtkIndent indent)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void vtkCgShaderDeviceAdapter::PrintSelf           </td>
          <td>(</td>
          <td class="paramtype">ostream &amp;&nbsp;</td>
          <td class="paramname"> <em>os</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00869.html">vtkIndent</a>&nbsp;</td>
          <td class="paramname"> <em>indent</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use <a class="el" href="a01085.html#edadf6378465fd81c2592ef64262e2a5">Print()</a> instead) but used in the hierarchical print process to combine the output of several classes. 
<p>Reimplemented from <a class="el" href="a01536.html#f2e7df268e57428d6665cd6d880c0c75">vtkShaderDeviceAdapter</a>.</p>

</div>
</div><p>
<a class="anchor" name="5bcd85c3515db74d7ab0a9f9f773bdae"></a><!-- doxytag: member="vtkCgShaderDeviceAdapter::PrepareForRender" ref="5bcd85c3515db74d7ab0a9f9f773bdae" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void vtkCgShaderDeviceAdapter::PrepareForRender           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Implements <a class="el" href="a01536.html#3f3a4d4d48d9ae9bd4b038d2c4532ab8">vtkShaderDeviceAdapter</a>.</p>

</div>
</div><p>
<a class="anchor" name="4c87d4aee830cb6dec33665e4725fa2a"></a><!-- doxytag: member="vtkCgShaderDeviceAdapter::SendAttribute" ref="4c87d4aee830cb6dec33665e4725fa2a" args="(const char *attrname, int components, int type, const void *attribute, unsigned long offset=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void vtkCgShaderDeviceAdapter::SendAttribute           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>attrname</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>components</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const void *&nbsp;</td>
          <td class="paramname"> <em>attribute</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned long&nbsp;</td>
          <td class="paramname"> <em>offset</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sends a single attribute to the graphics card. The attrname parameter identifies the name of attribute. The components parameter gives the number of components in the attribute. In general, components must be between 1-4, but a rendering system may impose even more constraints. The type parameter is a VTK type enumeration (VTK_FLOAT, VTK_INT, etc.). Again, a rendering system may not support all types for all attributes. The attribute parameter is the actual data for the attribute. If offset is specified, it is added to attribute pointer <code>after</code> it has been casted to the proper type. 
<p>Implements <a class="el" href="a01536.html#44e78e68950fb97794e46bae30cd5e29">vtkShaderDeviceAdapter</a>.</p>

</div>
</div><p>
<a class="anchor" name="b1ff5d7f6c2292e4caf199c110d2958a"></a><!-- doxytag: member="vtkCgShaderDeviceAdapter::SendAttributeInternal" ref="b1ff5d7f6c2292e4caf199c110d2958a" args="(const char *attrname, int components, const double *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void vtkCgShaderDeviceAdapter::SendAttributeInternal           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>attrname</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>components</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double *&nbsp;</td>
          <td class="paramname"></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="0db86b2ce147b0bbd1183d196ddfe7bc"></a><!-- doxytag: member="vtkCgShaderDeviceAdapter::SendAttributeInternal" ref="0db86b2ce147b0bbd1183d196ddfe7bc" args="(const char *attrname, int components, const float *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void vtkCgShaderDeviceAdapter::SendAttributeInternal           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>attrname</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>components</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const float *&nbsp;</td>
          <td class="paramname"></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li>dox/Rendering/<a class="el" href="a05166.html">vtkCgShaderDeviceAdapter.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:56:29 2009 for VTK by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>