<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,128,0)">void</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">vtkTransform</span>::<span style="font-weight:600;color:rgb(0,103,124)">Identity</span>()</pre>
<pre style="margin-top:0px;margin-bottom:0px">{</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)">this</span>-><span style="color:rgb(128,0,0)">Concatenation</span>-><span style="color:rgb(0,103,124)">Identity</span>();</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)">this</span>-><span style="font-style:italic;color:rgb(0,103,124)">Modified</span>();</pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">support</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">for</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">the</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">legacy</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">hack</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">in</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">InternalUpdate</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)">if</span><span style="color:rgb(192,192,192)"> </span>(<span style="color:rgb(128,128,0)">this</span>-><span style="color:rgb(128,0,0)">Matrix</span>-><span style="font-style:italic;color:rgb(0,103,124)">GetMTime</span>()<span style="color:rgb(192,192,192)"> </span>><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)">this</span>-><span style="color:rgb(128,0,0)">MatrixUpdateMTime</span>)</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span>{</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)">this</span>-><span style="color:rgb(128,0,0)">Matrix</span>-><span style="color:rgb(0,103,124)">Identity</span>();</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span>}</pre>
<pre style="margin-top:0px;margin-bottom:0px">}</pre>
<pre style="margin-top:0px;margin-bottom:0px">Modified() is called before the matrix is reset to Identity.</pre><pre style="margin-top:0px;margin-bottom:0px">Should it be called at the end?</pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">My code reacts to Modified event and promptly uses matrix that was not yet changed.</pre><pre style="margin-top:0px;margin-bottom:0px">I patch it by calling transform<span style="font-family:Arial,Helvetica,sans-serif">-></span><span style="font-family:Arial,Helvetica,sans-serif;font-style:italic;color:rgb(0,103,124)">Modified</span><span style="font-family:Arial,Helvetica,sans-serif">() after</span> <span style="font-family:Arial,Helvetica,sans-serif;color:rgb(9,46,100)">transform</span><span style="font-family:Arial,Helvetica,sans-serif">-></span><span style="font-family:Arial,Helvetica,sans-serif;color:rgb(0,103,124)">Identity</span><span style="font-family:Arial,Helvetica,sans-serif">();</span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:Arial,Helvetica,sans-serif"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="Arial, Helvetica, sans-serif">Anka</font></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="Arial, Helvetica, sans-serif"><br></font></pre><pre style="margin-top:0px;margin-bottom:0px"><pre style="margin-top:0px;margin-bottom:0px"> </pre><pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:Arial,Helvetica,sans-serif"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:Arial,Helvetica,sans-serif"><br></span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre></pre></div></div></div></div></div>