Sophie

Sophie

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

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: dox/Common/vtkMatrix4x4.h Source File</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><a href="classes.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
<h1>dox/Common/vtkMatrix4x4.h</h1><a href="a02074.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*=========================================================================</span>
<a name="l00002"></a>00002 <span class="comment"></span>
<a name="l00003"></a>00003 <span class="comment">  Program:   Visualization Toolkit</span>
<a name="l00004"></a>00004 <span class="comment">  Module:    $RCSfile: vtkMatrix4x4.h,v $</span>
<a name="l00005"></a>00005 <span class="comment"></span>
<a name="l00006"></a>00006 <span class="comment">  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen</span>
<a name="l00007"></a>00007 <span class="comment">  All rights reserved.</span>
<a name="l00008"></a>00008 <span class="comment">  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.</span>
<a name="l00009"></a>00009 <span class="comment"></span>
<a name="l00010"></a>00010 <span class="comment">     This software is distributed WITHOUT ANY WARRANTY; without even</span>
<a name="l00011"></a>00011 <span class="comment">     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR</span>
<a name="l00012"></a>00012 <span class="comment">     PURPOSE.  See the above copyright notice for more information.</span>
<a name="l00013"></a>00013 <span class="comment"></span>
<a name="l00014"></a>00014 <span class="comment">=========================================================================*/</span>
<a name="l00029"></a>00029 <span class="preprocessor">#ifndef __vtkMatrix4x4_h</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span><span class="preprocessor">#define __vtkMatrix4x4_h</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span>
<a name="l00032"></a>00032 <span class="preprocessor">#include "<a class="code" href="a02079.html">vtkObject.h</a>"</span>
<a name="l00033"></a>00033 
<a name="l00034"></a><a class="code" href="a00998.html">00034</a> <span class="keyword">class </span><a class="code" href="a02170.html#873ca0b83d0838a1df577536068a1730">VTK_COMMON_EXPORT</a> <a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> : <span class="keyword">public</span> <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>
<a name="l00035"></a>00035 {
<a name="l00036"></a>00036   <span class="comment">// Some of the methods in here have a corresponding static (class)</span>
<a name="l00037"></a>00037   <span class="comment">// method taking a pointer to 16 doubles that constitutes a user</span>
<a name="l00038"></a>00038   <span class="comment">// supplied matrix. This allows C++ clients to allocate double arrays</span>
<a name="l00039"></a>00039   <span class="comment">// on the stack and manipulate them using vtkMatrix4x4 methods. </span>
<a name="l00040"></a>00040   <span class="comment">// This is an alternative to allowing vtkMatrix4x4 instances to be</span>
<a name="l00041"></a>00041   <span class="comment">// created on the stack (which is frowned upon) or doing lots of</span>
<a name="l00042"></a>00042   <span class="comment">// temporary heap allocation within vtkTransform and vtkActor methods,</span>
<a name="l00043"></a>00043   <span class="comment">// which is inefficient.</span>
<a name="l00044"></a>00044 
<a name="l00045"></a>00045 <span class="keyword">public</span>:
<a name="l00046"></a><a class="code" href="a00998.html#91de6f6560c8948cad67003f5a26e6e3">00046</a>   <span class="keywordtype">double</span> Element[4][4];
<a name="l00047"></a>00047 
<a name="l00049"></a>00049   <span class="keyword">static</span> <a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> *<a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>();
<a name="l00050"></a>00050 
<a name="l00051"></a><a class="code" href="a00998.html#acd41b60a47477cabcf63e2a8cf963eb">00051</a>   vtkTypeRevisionMacro(<a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a>,<a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>);
<a name="l00052"></a>00052   <span class="keywordtype">void</span> <a class="code" href="a01084.html#bf3dbb4154289b56a12483eee3866263">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00053"></a>00053   
<a name="l00055"></a>00055 
<a name="l00057"></a><a class="code" href="a00998.html#e25aebb68c9ea768234f7231ef7ba06a">00057</a>   <span class="keywordtype">void</span> DeepCopy(<a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> *<a class="code" href="a02995.html#7c22aa18a4e42c330618a6410d133551">source</a>) 
<a name="l00058"></a>00058     {<a class="code" href="a00998.html#e25aebb68c9ea768234f7231ef7ba06a">vtkMatrix4x4::DeepCopy</a>(*this-&gt;Element,source); this-&gt;<a class="code" href="a01084.html#8586479b9d204cf0a45fb693d4281354">Modified</a>(); }
<a name="l00060"></a>00060 <span class="comment">//BTX</span>
<a name="l00061"></a><a class="code" href="a00998.html#42ab66458459bd5037c00e3581ec7b0e">00061</a>   <span class="keyword">static</span> <span class="keywordtype">void</span> DeepCopy(<span class="keywordtype">double</span> Elements[16], <a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> *<a class="code" href="a02995.html#7c22aa18a4e42c330618a6410d133551">source</a>) 
<a name="l00062"></a>00062     {<a class="code" href="a00998.html#e25aebb68c9ea768234f7231ef7ba06a">vtkMatrix4x4::DeepCopy</a>(Elements,*source-&gt;<a class="code" href="a00998.html#91de6f6560c8948cad67003f5a26e6e3">Element</a>); }
<a name="l00063"></a>00063   <span class="keyword">static</span> <span class="keywordtype">void</span> DeepCopy(<span class="keywordtype">double</span> Elements[16], <span class="keyword">const</span> <span class="keywordtype">double</span> newElements[16]);
<a name="l00064"></a>00064 <span class="comment">//ETX</span>
<a name="l00065"></a>00065 
<a name="l00067"></a>00067 
<a name="l00068"></a><a class="code" href="a00998.html#2c8f2b5b81c58568239f0ff11c0948b7">00068</a>   <span class="keywordtype">void</span> DeepCopy(<span class="keyword">const</span> <span class="keywordtype">double</span> Elements[16]) 
<a name="l00069"></a>00069     { this-&gt;DeepCopy(*this-&gt;Element,Elements); this-&gt;<a class="code" href="a01084.html#8586479b9d204cf0a45fb693d4281354">Modified</a>(); }
<a name="l00071"></a>00071 
<a name="l00073"></a>00073 
<a name="l00074"></a><a class="code" href="a00998.html#6ec1d7ab432be29620d06811a02ad98b">00074</a>   <span class="keywordtype">void</span> Zero() 
<a name="l00075"></a>00075     { <a class="code" href="a00998.html#6ec1d7ab432be29620d06811a02ad98b">vtkMatrix4x4::Zero</a>(*this-&gt;Element); this-&gt;<a class="code" href="a01084.html#8586479b9d204cf0a45fb693d4281354">Modified</a>(); }
<a name="l00077"></a>00077 <span class="comment">//BTX</span>
<a name="l00078"></a>00078   <span class="keyword">static</span> <span class="keywordtype">void</span> Zero(<span class="keywordtype">double</span> Elements[16]);
<a name="l00079"></a>00079 <span class="comment">//ETX  </span>
<a name="l00080"></a>00080 
<a name="l00082"></a>00082 
<a name="l00083"></a><a class="code" href="a00998.html#5a2d3a4de16c7273f3e9821ff23abfdb">00083</a>   <span class="keywordtype">void</span> Identity() 
<a name="l00084"></a>00084     { <a class="code" href="a00998.html#5a2d3a4de16c7273f3e9821ff23abfdb">vtkMatrix4x4::Identity</a>(*this-&gt;Element); this-&gt;<a class="code" href="a01084.html#8586479b9d204cf0a45fb693d4281354">Modified</a>();}
<a name="l00086"></a>00086 <span class="comment">//BTX</span>
<a name="l00087"></a>00087   <span class="keyword">static</span> <span class="keywordtype">void</span> Identity(<span class="keywordtype">double</span> Elements[16]);
<a name="l00088"></a>00088 <span class="comment">//ETX  </span>
<a name="l00089"></a>00089 
<a name="l00091"></a>00091 
<a name="l00093"></a><a class="code" href="a00998.html#c53581610e0c12e350140a282528f25e">00093</a>   <span class="keyword">static</span> <span class="keywordtype">void</span> Invert(<a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> *in, <a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> *out) 
<a name="l00094"></a>00094     {<a class="code" href="a00998.html#f94e176a1db3bb59c40aea1223c24636">vtkMatrix4x4::Invert</a>(*in-&gt;<a class="code" href="a00998.html#91de6f6560c8948cad67003f5a26e6e3">Element</a>,*out-&gt;<a class="code" href="a00998.html#91de6f6560c8948cad67003f5a26e6e3">Element</a>); out-&gt;<a class="code" href="a01084.html#8586479b9d204cf0a45fb693d4281354">Modified</a>(); }
<a name="l00095"></a><a class="code" href="a00998.html#f94e176a1db3bb59c40aea1223c24636">00095</a>   <span class="keywordtype">void</span> Invert() 
<a name="l00096"></a>00096     { <a class="code" href="a00998.html#f94e176a1db3bb59c40aea1223c24636">vtkMatrix4x4::Invert</a>(<span class="keyword">this</span>,<span class="keyword">this</span>); }
<a name="l00098"></a>00098 <span class="comment">//BTX</span>
<a name="l00099"></a>00099   <span class="keyword">static</span> <span class="keywordtype">void</span> Invert(<span class="keyword">const</span> <span class="keywordtype">double</span> inElements[16], <span class="keywordtype">double</span> outElements[16]);
<a name="l00100"></a>00100 <span class="comment">//ETX</span>
<a name="l00101"></a>00101 
<a name="l00102"></a>00102 
<a name="l00104"></a>00104 
<a name="l00105"></a><a class="code" href="a00998.html#d9f2710145adbdf67aa8db0f61c5f860">00105</a>   <span class="keyword">static</span> <span class="keywordtype">void</span> Transpose(<a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> *in, <a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> *out) 
<a name="l00106"></a>00106     {<a class="code" href="a00998.html#89d5807bbb3cda6fc65547ce7ed7d9ac">vtkMatrix4x4::Transpose</a>(*in-&gt;<a class="code" href="a00998.html#91de6f6560c8948cad67003f5a26e6e3">Element</a>,*out-&gt;<a class="code" href="a00998.html#91de6f6560c8948cad67003f5a26e6e3">Element</a>); out-&gt;<a class="code" href="a01084.html#8586479b9d204cf0a45fb693d4281354">Modified</a>(); }
<a name="l00107"></a><a class="code" href="a00998.html#89d5807bbb3cda6fc65547ce7ed7d9ac">00107</a>   <span class="keywordtype">void</span> Transpose() 
<a name="l00108"></a>00108     { <a class="code" href="a00998.html#89d5807bbb3cda6fc65547ce7ed7d9ac">vtkMatrix4x4::Transpose</a>(<span class="keyword">this</span>,<span class="keyword">this</span>); }
<a name="l00110"></a>00110 <span class="comment">//BTX</span>
<a name="l00111"></a>00111   <span class="keyword">static</span> <span class="keywordtype">void</span> Transpose(<span class="keyword">const</span> <span class="keywordtype">double</span> inElements[16], <span class="keywordtype">double</span> outElements[16]);
<a name="l00112"></a>00112 <span class="comment">//ETX</span>
<a name="l00113"></a>00113 
<a name="l00115"></a>00115 
<a name="l00117"></a><a class="code" href="a00998.html#53d8a75285d300f41f21474134730872">00117</a>   <span class="keywordtype">void</span> MultiplyPoint(<span class="keyword">const</span> <span class="keywordtype">float</span> in[4], <span class="keywordtype">float</span> out[4]) 
<a name="l00118"></a>00118     {<a class="code" href="a00998.html#53d8a75285d300f41f21474134730872">vtkMatrix4x4::MultiplyPoint</a>(*this-&gt;Element,in,out); }
<a name="l00119"></a><a class="code" href="a00998.html#44b181c32ef01cba8841e6a0c3688197">00119</a>   <span class="keywordtype">void</span> MultiplyPoint(<span class="keyword">const</span> <span class="keywordtype">double</span> in[4], <span class="keywordtype">double</span> out[4]) 
<a name="l00120"></a>00120     {<a class="code" href="a00998.html#53d8a75285d300f41f21474134730872">vtkMatrix4x4::MultiplyPoint</a>(*this-&gt;Element,in,out); }
<a name="l00122"></a>00122 
<a name="l00123"></a>00123 <span class="comment">//BTX</span>
<a name="l00124"></a>00124   <span class="keyword">static</span> <span class="keywordtype">void</span> MultiplyPoint(<span class="keyword">const</span> <span class="keywordtype">double</span> Elements[16], 
<a name="l00125"></a>00125                             <span class="keyword">const</span> <span class="keywordtype">float</span> in[4], <span class="keywordtype">float</span> out[4]);
<a name="l00126"></a>00126   <span class="keyword">static</span> <span class="keywordtype">void</span> MultiplyPoint(<span class="keyword">const</span> <span class="keywordtype">double</span> Elements[16], 
<a name="l00127"></a>00127                             <span class="keyword">const</span> <span class="keywordtype">double</span> in[4], <span class="keywordtype">double</span> out[4]);
<a name="l00128"></a>00128 <span class="comment">//ETX</span>
<a name="l00129"></a>00129 
<a name="l00131"></a>00131 
<a name="l00133"></a><a class="code" href="a00998.html#63b1e05c7e106bbee9cc606c27d6260d">00133</a>   <span class="keywordtype">float</span> *MultiplyPoint(<span class="keyword">const</span> <span class="keywordtype">float</span> in[4]) 
<a name="l00134"></a>00134     {<span class="keywordflow">return</span> this-&gt;MultiplyFloatPoint(in); }
<a name="l00135"></a><a class="code" href="a00998.html#9e1c71c3941207328705fdb73c9e8674">00135</a>   <span class="keywordtype">float</span> *MultiplyFloatPoint(<span class="keyword">const</span> <span class="keywordtype">float</span> in[4]) 
<a name="l00136"></a>00136     {this-&gt;MultiplyPoint(in,this-&gt;FloatPoint); <span class="keywordflow">return</span> this-&gt;FloatPoint; } 
<a name="l00137"></a><a class="code" href="a00998.html#f8d06b8d8eea787909052b0939ea8a29">00137</a>   <span class="keywordtype">double</span> *MultiplyDoublePoint(<span class="keyword">const</span> <span class="keywordtype">double</span> in[4]) 
<a name="l00138"></a>00138     {this-&gt;MultiplyPoint(in,this-&gt;DoublePoint); <span class="keywordflow">return</span> this-&gt;DoublePoint; } 
<a name="l00140"></a>00140 
<a name="l00142"></a>00142 
<a name="l00143"></a><a class="code" href="a00998.html#a64607eb2d28ba412f151a0d0ac9b7e2">00143</a>   <span class="keyword">static</span> <span class="keywordtype">void</span> Multiply4x4(<a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> *a, <a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> *b, <a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> *c) {
<a name="l00144"></a>00144     <a class="code" href="a00998.html#a64607eb2d28ba412f151a0d0ac9b7e2">vtkMatrix4x4::Multiply4x4</a>(*a-&gt;<a class="code" href="a00998.html#91de6f6560c8948cad67003f5a26e6e3">Element</a>,*b-&gt;<a class="code" href="a00998.html#91de6f6560c8948cad67003f5a26e6e3">Element</a>,*c-&gt;<a class="code" href="a00998.html#91de6f6560c8948cad67003f5a26e6e3">Element</a>); };
<a name="l00146"></a>00146 <span class="comment">//BTX</span>
<a name="l00147"></a>00147   <span class="keyword">static</span> <span class="keywordtype">void</span> Multiply4x4(<span class="keyword">const</span> <span class="keywordtype">double</span> a[16], <span class="keyword">const</span> <span class="keywordtype">double</span> b[16], 
<a name="l00148"></a>00148                           <span class="keywordtype">double</span> c[16]);
<a name="l00149"></a>00149 <span class="comment">//ETX</span>
<a name="l00150"></a>00150 
<a name="l00152"></a>00152 
<a name="l00153"></a><a class="code" href="a00998.html#150baa3e2fc68f45f4549d1d63b47766">00153</a>   <span class="keywordtype">void</span> Adjoint(<a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> *in, <a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> *out) 
<a name="l00154"></a>00154     {<a class="code" href="a00998.html#150baa3e2fc68f45f4549d1d63b47766">vtkMatrix4x4::Adjoint</a>(*in-&gt;<a class="code" href="a00998.html#91de6f6560c8948cad67003f5a26e6e3">Element</a>,*out-&gt;<a class="code" href="a00998.html#91de6f6560c8948cad67003f5a26e6e3">Element</a>);}
<a name="l00156"></a>00156 <span class="comment">//BTX</span>
<a name="l00157"></a>00157   <span class="keyword">static</span> <span class="keywordtype">void</span> Adjoint(<span class="keyword">const</span> <span class="keywordtype">double</span> inElements[16], <span class="keywordtype">double</span> outElements[16]);
<a name="l00158"></a>00158 <span class="comment">//ETX</span>
<a name="l00159"></a>00159 
<a name="l00161"></a><a class="code" href="a00998.html#5c707371ad2d298e434c01a091359061">00161</a>   <span class="keywordtype">double</span> Determinant() {<span class="keywordflow">return</span> <a class="code" href="a00998.html#5c707371ad2d298e434c01a091359061">vtkMatrix4x4::Determinant</a>(*this-&gt;Element);}
<a name="l00162"></a>00162 <span class="comment">//BTX</span>
<a name="l00163"></a>00163   <span class="keyword">static</span> <span class="keywordtype">double</span> Determinant(<span class="keyword">const</span> <span class="keywordtype">double</span> Elements[16]);
<a name="l00164"></a>00164 <span class="comment">//ETX</span>
<a name="l00165"></a>00165 
<a name="l00167"></a>00167   <span class="keywordtype">void</span> SetElement(<span class="keywordtype">int</span> i, <span class="keywordtype">int</span> j, <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2106bf5e5151797630e91167caab3f22b9a">value</a>);
<a name="l00168"></a>00168 
<a name="l00170"></a>00170 
<a name="l00171"></a><a class="code" href="a00998.html#e14329b27eeebddf83013880a5bd3d0e">00171</a>   <span class="keywordtype">double</span> GetElement(<span class="keywordtype">int</span> i, <span class="keywordtype">int</span> j)<span class="keyword"> const </span>
<a name="l00172"></a>00172 <span class="keyword">    </span>{<span class="keywordflow">return</span> this-&gt;Element[i][j];}
<a name="l00174"></a>00174 
<a name="l00175"></a>00175 <span class="comment">//BTX</span>
<a name="l00176"></a><a class="code" href="a00998.html#5baa13d082dce9be316c0f1db1dbf93b">00176</a>   <span class="keywordtype">double</span> *operator[](<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i) 
<a name="l00177"></a>00177     {<span class="keywordflow">return</span> &amp;(this-&gt;Element[i][0]);}
<a name="l00178"></a><a class="code" href="a00998.html#16ae4b7c3743c9fc2a15c884e349556e">00178</a>   <span class="keyword">const</span> <span class="keywordtype">double</span> *operator[](<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i)<span class="keyword"> const</span>
<a name="l00179"></a>00179 <span class="keyword">    </span>{ <span class="keywordflow">return</span> &amp;(this-&gt;Element[i][0]); }  
<a name="l00180"></a><a class="code" href="a00998.html#72c270bc07090c00110611db54d91171">00180</a>   <span class="keywordtype">void</span> Adjoint(<a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> &amp;in,<a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> &amp;out)
<a name="l00181"></a>00181     {this-&gt;Adjoint(&amp;in,&amp;out);}
<a name="l00182"></a><a class="code" href="a00998.html#933a8626ec93b2884a8f5c45de0ad8d0">00182</a>   <span class="keywordtype">double</span> Determinant(<a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> &amp;in) 
<a name="l00183"></a>00183     {<span class="keywordflow">return</span> this-&gt;Determinant(&amp;in);}
<a name="l00184"></a><a class="code" href="a00998.html#1994995409354e27384c5a49bcd29cfa">00184</a>   <span class="keywordtype">double</span> Determinant(<a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> *in) 
<a name="l00185"></a>00185     {<span class="keywordflow">return</span> <a class="code" href="a00998.html#5c707371ad2d298e434c01a091359061">vtkMatrix4x4::Determinant</a>(*in-&gt;<a class="code" href="a00998.html#91de6f6560c8948cad67003f5a26e6e3">Element</a>);}
<a name="l00186"></a><a class="code" href="a00998.html#914b5b25c14baa4bc8a5d0792cc43ee5">00186</a>   <span class="keywordtype">void</span> Invert(<a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> &amp;in,<a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> &amp;out)
<a name="l00187"></a>00187     {this-&gt;Invert(&amp;in,&amp;out);}
<a name="l00188"></a><a class="code" href="a00998.html#de928fe8485cfae4d04fd1ce171e9e13">00188</a>   <span class="keywordtype">void</span> Transpose(<a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> &amp;in,<a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> &amp;out)
<a name="l00189"></a>00189     {this-&gt;Transpose(&amp;in,&amp;out);}
<a name="l00190"></a>00190   <span class="keyword">static</span> <span class="keywordtype">void</span> PointMultiply(<span class="keyword">const</span> <span class="keywordtype">double</span> Elements[16], 
<a name="l00191"></a>00191                             <span class="keyword">const</span> <span class="keywordtype">float</span> in[4], <span class="keywordtype">float</span> out[4]);
<a name="l00192"></a>00192   <span class="keyword">static</span> <span class="keywordtype">void</span> PointMultiply(<span class="keyword">const</span> <span class="keywordtype">double</span> Elements[16], 
<a name="l00193"></a>00193                             <span class="keyword">const</span> <span class="keywordtype">double</span> in[4], <span class="keywordtype">double</span> out[4]);
<a name="l00194"></a>00194 <span class="comment">//ETX</span>
<a name="l00195"></a>00195 
<a name="l00196"></a>00196 <span class="keyword">protected</span>:
<a name="l00197"></a><a class="code" href="a00998.html#c2e536913dfa32fb15f7641aa3488341">00197</a>   <a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a>() { <a class="code" href="a00998.html#5a2d3a4de16c7273f3e9821ff23abfdb">vtkMatrix4x4::Identity</a>(*this-&gt;Element); };
<a name="l00198"></a><a class="code" href="a00998.html#ad10a125a8b4b1f57829a6c36d34762b">00198</a>   ~<a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a>() {};
<a name="l00199"></a>00199   
<a name="l00200"></a>00200   <span class="keywordtype">float</span> FloatPoint[4];
<a name="l00201"></a><a class="code" href="a00998.html#0c1fc0683fed978596896780507101ed">00201</a>   <span class="keywordtype">double</span> DoublePoint[4];
<a name="l00202"></a>00202 <span class="keyword">private</span>:
<a name="l00203"></a>00203   <a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a>(<span class="keyword">const</span> <a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a>&amp;);  <span class="comment">// Not implemented</span>
<a name="l00204"></a>00204   <span class="keywordtype">void</span> operator= (<span class="keyword">const</span> <a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a>&amp;);  <span class="comment">// Not implemented</span>
<a name="l00205"></a>00205 };
<a name="l00206"></a>00206 
<a name="l00207"></a><a class="code" href="a00998.html#6413522a56a1b78889db95a7427cb439">00207</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="a00998.html#6413522a56a1b78889db95a7427cb439">vtkMatrix4x4::SetElement</a>(<span class="keywordtype">int</span> i, <span class="keywordtype">int</span> j, <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2106bf5e5151797630e91167caab3f22b9a">value</a>)
<a name="l00208"></a>00208 {
<a name="l00209"></a>00209   <span class="keywordflow">if</span> (this-&gt;<a class="code" href="a00998.html#91de6f6560c8948cad67003f5a26e6e3">Element</a>[i][j] != value)
<a name="l00210"></a>00210     {
<a name="l00211"></a>00211     this-&gt;<a class="code" href="a00998.html#91de6f6560c8948cad67003f5a26e6e3">Element</a>[i][j] = value;
<a name="l00212"></a>00212     this-&gt;<a class="code" href="a01084.html#8586479b9d204cf0a45fb693d4281354">Modified</a>();
<a name="l00213"></a>00213     }
<a name="l00214"></a>00214 }
<a name="l00215"></a>00215 
<a name="l00216"></a>00216 <span class="preprocessor">#endif</span>
<a name="l00217"></a>00217 <span class="preprocessor"></span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:11 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>