<!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: vtkSphericalDirectionEncoder 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 Page</span></a></li> <li><a href="pages.html"><span>Related 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 List</span></a></li> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> </div> <div class="contents"> <h1>vtkSphericalDirectionEncoder Class Reference</h1><!-- doxytag: class="vtkSphericalDirectionEncoder" --><!-- doxytag: inherits="vtkDirectionEncoder" --><code>#include <<a class="el" href="a05415.html">vtkSphericalDirectionEncoder.h</a>></code> <p> <div class="dynheader"> Inheritance diagram for vtkSphericalDirectionEncoder:</div> <div class="dynsection"> <p><center><img src="a14630.png" border="0" usemap="#a14631" alt="Inheritance graph"></center> <map name="a14631"> <area shape="rect" href="a00423.html" title="encode a direction into a one or two byte value" alt="" coords="35,155,179,181"><area shape="rect" href="a01084.html" title="abstract base class for most VTK objects" alt="" coords="67,80,147,107"><area shape="rect" href="a01085.html" title="abstract base class for most VTK objects" alt="" coords="52,5,161,32"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <div class="dynheader"> Collaboration diagram for vtkSphericalDirectionEncoder:</div> <div class="dynsection"> <p><center><img src="a14632.png" border="0" usemap="#a14633" alt="Collaboration graph"></center> <map name="a14633"> <area shape="rect" href="a00423.html" title="encode a direction into a one or two byte value" alt="" coords="55,174,199,200"><area shape="rect" href="a01084.html" title="abstract base class for most VTK objects" alt="" coords="87,96,167,123"><area shape="rect" href="a01085.html" title="abstract base class for most VTK objects" alt="" coords="5,6,115,32"><area shape="rect" href="a01719.html" title="record modification and/or execution time" alt="" coords="139,6,248,32"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <p> <a href="a14634.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2> A direction encoder based on spherical coordinates. <p> <a class="el" href="a01585.html" title="A direction encoder based on spherical coordinates.">vtkSphericalDirectionEncoder</a> is a direction encoder which uses spherical coordinates for mapping (nx, ny, nz) into an azimuth, elevation pair.<p> <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="a00423.html" title="encode a direction into a one or two byte value">vtkDirectionEncoder</a> </dd></dl> <p>Definition at line <a class="el" href="a05415.html#l00030">30</a> of file <a class="el" href="a05415.html">vtkSphericalDirectionEncoder.h</a>.</p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="a01585.html#4145f48e2fddc739675e1b5313bac947">DecodedGradientTableInitialized</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="a01585.html#442f04dc3a5587d04fc573d7a9349dc1">InitializeDecodedGradientTable</a> ()</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="a00423.html">vtkDirectionEncoder</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a01585.html#bad49814d2f4929d278df7bc765b58e1">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 * </td><td class="memItemRight" valign="bottom"><a class="el" href="a01585.html#fbbf7f83b6c148fac8929f7c4fd6024f">GetClassName</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="a01585.html#a3be4f82ed65d9884213a50494a54ecc">IsA</a> (const char *type)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a01585.html#24005a104a15bb5e90f5b0e2ca032681">PrintSelf</a> (ostream &os, <a class="el" href="a00869.html">vtkIndent</a> indent)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="a01585.html#9ac5f86fc12a11913a09df4f8edf749c">GetEncodedDirection</a> (float n[3])</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">float * </td><td class="memItemRight" valign="bottom"><a class="el" href="a01585.html#7ef967d4e5eec4c6d30c5cd32a9a7953">GetDecodedGradient</a> (int value)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="a01585.html#1136eaf04017eaed36d1cb97c518691c">GetNumberOfEncodedDirections</a> (void)</td></tr> <tr><td colspan="2"><div class="groupHeader"></div></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">float * </td><td class="memItemRight" valign="bottom"><a class="el" href="a01585.html#2b7a25159f767646a76bd1f3a8dc5ac0">GetDecodedGradientTable</a> (void)</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 int </td><td class="memItemRight" valign="bottom"><a class="el" href="a01585.html#8c4676277695b69e9cb84b27e08e4834">IsTypeOf</a> (const char *type)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static <br> <a class="el" href="a01585.html">vtkSphericalDirectionEncoder</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="a01585.html#3cae7d1ed31f2a6768596f1c97b5d4b7">SafeDownCast</a> (<a class="el" href="a01084.html">vtkObject</a> *o)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static <br> <a class="el" href="a01585.html">vtkSphericalDirectionEncoder</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="a01585.html#0368e108d58712f9c219008373bd1ef9">New</a> ()</td></tr> <tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a01585.html#bfc8d5c303c9c9d6a5f297f61ed38af5">vtkSphericalDirectionEncoder</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a01585.html#d3d1df6d3ea71c7b05fc147d30baebf9">~vtkSphericalDirectionEncoder</a> ()</td></tr> <tr><td colspan="2"><br><h2>Static Protected Attributes</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static float </td><td class="memItemRight" valign="bottom"><a class="el" href="a01585.html#27dab9540f684d6a269c226aa9403560">DecodedGradientTable</a> [65536 *3]</td></tr> </table> <hr><h2>Member Typedef Documentation</h2> <a class="anchor" name="bad49814d2f4929d278df7bc765b58e1"></a><!-- doxytag: member="vtkSphericalDirectionEncoder::Superclass" ref="bad49814d2f4929d278df7bc765b58e1" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef <a class="el" href="a00423.html">vtkDirectionEncoder</a> <a class="el" href="a00423.html">vtkSphericalDirectionEncoder::Superclass</a> </td> </tr> </table> </div> <div class="memdoc"> <p> Get the name of this class <p>Reimplemented from <a class="el" href="a00423.html#6f649b6fa6334146fe96f9f06994a2d7">vtkDirectionEncoder</a>.</p> <p>Definition at line <a class="el" href="a05415.html#l00033">33</a> of file <a class="el" href="a05415.html">vtkSphericalDirectionEncoder.h</a>.</p> </div> </div><p> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="bfc8d5c303c9c9d6a5f297f61ed38af5"></a><!-- doxytag: member="vtkSphericalDirectionEncoder::vtkSphericalDirectionEncoder" ref="bfc8d5c303c9c9d6a5f297f61ed38af5" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">vtkSphericalDirectionEncoder::vtkSphericalDirectionEncoder </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="d3d1df6d3ea71c7b05fc147d30baebf9"></a><!-- doxytag: member="vtkSphericalDirectionEncoder::~vtkSphericalDirectionEncoder" ref="d3d1df6d3ea71c7b05fc147d30baebf9" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">vtkSphericalDirectionEncoder::~vtkSphericalDirectionEncoder </td> <td>(</td> <td class="paramname"> </td> <td> ) </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="fbbf7f83b6c148fac8929f7c4fd6024f"></a><!-- doxytag: member="vtkSphericalDirectionEncoder::GetClassName" ref="fbbf7f83b6c148fac8929f7c4fd6024f" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual const char* vtkSphericalDirectionEncoder::GetClassName </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get the name of this class <p>Reimplemented from <a class="el" href="a00423.html#f5430586d8bc77e8ba4e144021e49ad8">vtkDirectionEncoder</a>.</p> </div> </div><p> <a class="anchor" name="8c4676277695b69e9cb84b27e08e4834"></a><!-- doxytag: member="vtkSphericalDirectionEncoder::IsTypeOf" ref="8c4676277695b69e9cb84b27e08e4834" args="(const char *type)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static int vtkSphericalDirectionEncoder::IsTypeOf </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>type</em> </td> <td> ) </td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get the name of this class <p>Reimplemented from <a class="el" href="a00423.html#34914b386f2c3e7f72c4c30f4bdd79d5">vtkDirectionEncoder</a>.</p> </div> </div><p> <a class="anchor" name="a3be4f82ed65d9884213a50494a54ecc"></a><!-- doxytag: member="vtkSphericalDirectionEncoder::IsA" ref="a3be4f82ed65d9884213a50494a54ecc" args="(const char *type)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual int vtkSphericalDirectionEncoder::IsA </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>type</em> </td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get the name of this class <p>Reimplemented from <a class="el" href="a00423.html#67c44d285f36ebae2b5e20cac13f376d">vtkDirectionEncoder</a>.</p> </div> </div><p> <a class="anchor" name="3cae7d1ed31f2a6768596f1c97b5d4b7"></a><!-- doxytag: member="vtkSphericalDirectionEncoder::SafeDownCast" ref="3cae7d1ed31f2a6768596f1c97b5d4b7" args="(vtkObject *o)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="a01585.html">vtkSphericalDirectionEncoder</a>* vtkSphericalDirectionEncoder::SafeDownCast </td> <td>(</td> <td class="paramtype"><a class="el" href="a01084.html">vtkObject</a> * </td> <td class="paramname"> <em>o</em> </td> <td> ) </td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get the name of this class <p>Reimplemented from <a class="el" href="a00423.html#4acb1f08bed0cc54efa4c54f2d81a7e3">vtkDirectionEncoder</a>.</p> </div> </div><p> <a class="anchor" name="24005a104a15bb5e90f5b0e2ca032681"></a><!-- doxytag: member="vtkSphericalDirectionEncoder::PrintSelf" ref="24005a104a15bb5e90f5b0e2ca032681" args="(ostream &os, vtkIndent indent)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void vtkSphericalDirectionEncoder::PrintSelf </td> <td>(</td> <td class="paramtype">ostream & </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> </td> <td class="paramname"> <em>indent</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get the name of this class <p>Reimplemented from <a class="el" href="a00423.html#666c07098efd4e7ac2ce8506ed23f284">vtkDirectionEncoder</a>.</p> </div> </div><p> <a class="anchor" name="0368e108d58712f9c219008373bd1ef9"></a><!-- doxytag: member="vtkSphericalDirectionEncoder::New" ref="0368e108d58712f9c219008373bd1ef9" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="a01585.html">vtkSphericalDirectionEncoder</a>* vtkSphericalDirectionEncoder::New </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Construct the object. Initialize the index table which will be used to map the normal into a patch on the recursively subdivided sphere. <p>Reimplemented from <a class="el" href="a01084.html#4d5b227267c076d6f9e38483370b6612">vtkObject</a>.</p> </div> </div><p> <a class="anchor" name="9ac5f86fc12a11913a09df4f8edf749c"></a><!-- doxytag: member="vtkSphericalDirectionEncoder::GetEncodedDirection" ref="9ac5f86fc12a11913a09df4f8edf749c" args="(float n[3])" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int vtkSphericalDirectionEncoder::GetEncodedDirection </td> <td>(</td> <td class="paramtype">float </td> <td class="paramname"> <em>n</em>[3] </td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Given a normal vector n, return the encoded direction <p>Implements <a class="el" href="a00423.html#2f1df849b7d8982cb16770505757d543">vtkDirectionEncoder</a>.</p> </div> </div><p> <a class="anchor" name="7ef967d4e5eec4c6d30c5cd32a9a7953"></a><!-- doxytag: member="vtkSphericalDirectionEncoder::GetDecodedGradient" ref="7ef967d4e5eec4c6d30c5cd32a9a7953" args="(int value)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">float* vtkSphericalDirectionEncoder::GetDecodedGradient </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>value</em> </td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> / Given an encoded value, return a pointer to the normal vector <p>Implements <a class="el" href="a00423.html#f29912b41b911f31d95dd0e90ea644a3">vtkDirectionEncoder</a>.</p> </div> </div><p> <a class="anchor" name="1136eaf04017eaed36d1cb97c518691c"></a><!-- doxytag: member="vtkSphericalDirectionEncoder::GetNumberOfEncodedDirections" ref="1136eaf04017eaed36d1cb97c518691c" args="(void)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int vtkSphericalDirectionEncoder::GetNumberOfEncodedDirections </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return the number of encoded directions <p>Implements <a class="el" href="a00423.html#0c8572b7660aa30b335b3c1037ed7ba1">vtkDirectionEncoder</a>.</p> <p>Definition at line <a class="el" href="a05415.html#l00048">48</a> of file <a class="el" href="a05415.html">vtkSphericalDirectionEncoder.h</a>.</p> </div> </div><p> <a class="anchor" name="2b7a25159f767646a76bd1f3a8dc5ac0"></a><!-- doxytag: member="vtkSphericalDirectionEncoder::GetDecodedGradientTable" ref="2b7a25159f767646a76bd1f3a8dc5ac0" args="(void)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">float* vtkSphericalDirectionEncoder::GetDecodedGradientTable </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get the decoded gradient table. There are this-><a class="el" href="a01585.html#1136eaf04017eaed36d1cb97c518691c">GetNumberOfEncodedDirections()</a> entries in the table, each containing a normal (direction) vector. This is a flat structure - 3 times the number of directions floats in an array. <p>Implements <a class="el" href="a00423.html#ce27086397c0480da8a20f9e8d6a0e03">vtkDirectionEncoder</a>.</p> <p>Definition at line <a class="el" href="a05415.html#l00055">55</a> of file <a class="el" href="a05415.html">vtkSphericalDirectionEncoder.h</a>.</p> </div> </div><p> <a class="anchor" name="442f04dc3a5587d04fc573d7a9349dc1"></a><!-- doxytag: member="vtkSphericalDirectionEncoder::InitializeDecodedGradientTable" ref="442f04dc3a5587d04fc573d7a9349dc1" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static void vtkSphericalDirectionEncoder::InitializeDecodedGradientTable </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [static, protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Initialize the table at startup </div> </div><p> <hr><h2>Member Data Documentation</h2> <a class="anchor" name="27dab9540f684d6a269c226aa9403560"></a><!-- doxytag: member="vtkSphericalDirectionEncoder::DecodedGradientTable" ref="27dab9540f684d6a269c226aa9403560" args="[65536 *3]" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">float <a class="el" href="a01585.html#27dab9540f684d6a269c226aa9403560">vtkSphericalDirectionEncoder::DecodedGradientTable</a>[65536 *3]<code> [static, protected]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> <p>Definition at line <a class="el" href="a05415.html#l00066">66</a> of file <a class="el" href="a05415.html">vtkSphericalDirectionEncoder.h</a>.</p> </div> </div><p> <a class="anchor" name="4145f48e2fddc739675e1b5313bac947"></a><!-- doxytag: member="vtkSphericalDirectionEncoder::DecodedGradientTableInitialized" ref="4145f48e2fddc739675e1b5313bac947" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int <a class="el" href="a01585.html#4145f48e2fddc739675e1b5313bac947">vtkSphericalDirectionEncoder::DecodedGradientTableInitialized</a><code> [static, protected]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> Initialize the table at startup <p>Definition at line <a class="el" href="a05415.html#l00071">71</a> of file <a class="el" href="a05415.html">vtkSphericalDirectionEncoder.h</a>.</p> </div> </div><p> <hr>The documentation for this class was generated from the following file:<ul> <li>dox/VolumeRendering/<a class="el" href="a05415.html">vtkSphericalDirectionEncoder.h</a></ul> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 19:35:41 2009 for VTK by <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>