<div dir="ltr">Hi!<div>Sorry for postuing again, Imaybe this time someone could help?</div><div><br><div><div>Using vtk5.10 (Ubuntu 12.04), I am always getting messages:</div><div><br></div><div><div>Warning: In /export01/anka/ibis2/sb/ibisExternalDependencies/vtk-5.10/src/Common/vtkTransform.cxx, line 201</div>
<div>vtkTransform (0x1b6e680): InternalUpdate: doing hack to support legacy code. This is deprecated in VTK 4.2. May be removed in a future version.</div><div><br></div><div><pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px">
<br>What do I have to do to get rid of the warning?</pre><pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><br></pre></div></div><div>Here is a simple example:</div><div>//IncerseTransform</div><div><pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px">
<span style="color:rgb(0,0,128)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"vtkMatrix4x4.h"</span></pre><pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px">
<span style="color:rgb(0,0,128)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"vtkTransform.h"</span></pre><pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px">
<span style="color:rgb(0,0,128)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"vtkLinearTransform.h"</span></pre><pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px">
<span style="color:rgb(0,0,128)">#include</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"vtkSmartPointer.h"</span></pre><pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px">
<br></pre><pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,128,0)">int</span><span style="color:rgb(192,192,192)"> </span>main(<span style="color:rgb(128,128,0)">int</span><span style="color:rgb(192,192,192)"> </span>arg,<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)">char</span><span style="color:rgb(192,192,192)"> </span>**<span style="color:rgb(192,192,192)"> </span>argv)</pre>
<pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span>{</pre><pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,0,128)">vtkSmartPointer</span><<span style="color:rgb(128,0,128)">vtkTransform</span>><span style="color:rgb(192,192,192)"> </span>transform<span style="color:rgb(192,192,192)"> </span>=<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">vtkSmartPointer</span><<span style="color:rgb(128,0,128)">vtkTransform</span>>::New();</pre>
<pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span>transform->Identity();</pre><pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">vtkMatrix4x4</span><span style="color:rgb(192,192,192)"> </span>*mat<span style="color:rgb(192,192,192)"> </span>=<span style="color:rgb(192,192,192)"> </span>transform->GetMatrix();</pre>
<pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span>mat->SetElement(<span style="color:rgb(0,0,128)">0</span>,<span style="color:rgb(0,0,128)">0</span>,-<span style="color:rgb(0,0,128)">0.994485</span>);</pre>
<pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span>mat->SetElement(<span style="color:rgb(0,0,128)">0</span>,<span style="color:rgb(0,0,128)">1</span>,<span style="color:rgb(0,0,128)">0.0114648</span>);</pre>
<pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span>mat->SetElement(<span style="color:rgb(0,0,128)">0</span>,<span style="color:rgb(0,0,128)">2</span>,<span style="color:rgb(0,0,128)">0.10425</span>);</pre>
<pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span>mat->SetElement(<span style="color:rgb(0,0,128)">0</span>,<span style="color:rgb(0,0,128)">3</span>,-<span style="color:rgb(0,0,128)">109.911</span>);</pre>
<pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span>mat->SetElement(<span style="color:rgb(0,0,128)">1</span>,<span style="color:rgb(0,0,128)">0</span>,<span style="color:rgb(0,0,128)">0.104868</span>);</pre>
<pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span>mat->SetElement(<span style="color:rgb(0,0,128)">1</span>,<span style="color:rgb(0,0,128)">1</span>,<span style="color:rgb(0,0,128)">0.123302</span>);</pre>
<pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span>mat->SetElement(<span style="color:rgb(0,0,128)">1</span>,<span style="color:rgb(0,0,128)">2</span>,<span style="color:rgb(0,0,128)">0.986813</span>);</pre>
<pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span>mat->SetElement(<span style="color:rgb(0,0,128)">1</span>,<span style="color:rgb(0,0,128)">3</span>,<span style="color:rgb(0,0,128)">36.2377</span>);</pre>
<pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span>mat->SetElement(<span style="color:rgb(0,0,128)">2</span>,<span style="color:rgb(0,0,128)">0</span>,-<span style="color:rgb(0,0,128)">0.00154065</span>);</pre>
<pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span>mat->SetElement(<span style="color:rgb(0,0,128)">2</span>,<span style="color:rgb(0,0,128)">1</span>,<span style="color:rgb(0,0,128)">0.992303</span>);</pre>
<pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span>mat->SetElement(<span style="color:rgb(0,0,128)">2</span>,<span style="color:rgb(0,0,128)">2</span>,-<span style="color:rgb(0,0,128)">0.123824</span>);</pre>
<pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span>mat->SetElement(<span style="color:rgb(0,0,128)">2</span>,<span style="color:rgb(0,0,128)">3</span>,-<span style="color:rgb(0,0,128)">41.2797</span>);</pre>
<pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><br></pre><pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)">double</span><span style="color:rgb(192,192,192)"> </span>det<span style="color:rgb(192,192,192)"> </span>=<span style="color:rgb(192,192,192)"> </span>mat->Determinant(mat);</pre>
<pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><br></pre><pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span>cout<span style="color:rgb(192,192,192)"> </span><<<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"Determinant</span><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)">"</span><span style="color:rgb(192,192,192)"> </span><<<span style="color:rgb(192,192,192)"> </span>det<span style="color:rgb(192,192,192)"> </span><<<span style="color:rgb(192,192,192)"> </span>endl;</pre>
<pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><br></pre><pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">vtkIndent</span><span style="color:rgb(192,192,192)"> </span>indent;</pre>
<pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span>mat-><span style="font-style:italic">PrintSelf</span>(cout,<span style="color:rgb(192,192,192)"> </span>indent);</pre>
<pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><br></pre><pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">vtkSmartPointer</span><<span style="color:rgb(128,0,128)">vtkMatrix4x4</span>><span style="color:rgb(192,192,192)"> </span>invMat<span style="color:rgb(192,192,192)"> </span>=<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">vtkSmartPointer</span><<span style="color:rgb(128,0,128)">vtkMatrix4x4</span>>::New();</pre>
<pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span>invMat->Identity();</pre><pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span>cout<span style="color:rgb(192,192,192)"> </span><<<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"GetInverse will produce warning\n"</span>;</pre>
<pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span>transform->GetInverse(invMat);</pre><pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px">
<span style="color:rgb(192,192,192)"> </span>cout<span style="color:rgb(192,192,192)"> </span><<<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"out</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">of</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">GetInverse\n"</span>;</pre>
<pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)">return</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,128)">0</span>;</pre>
<pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"> }</pre>
<pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px">CMakeLists.txt</pre><pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px"><br></pre><pre style="white-space:pre-wrap;margin-top:0px;margin-bottom:0px">
cmake_minimum_required(VERSION 2.6)
PROJECT(InverseIransform)
FIND_PACKAGE(VTK REQUIRED)
INCLUDE(${VTK_USE_FILE})
ADD_EXECUTABLE(InverseIransform inversetransform.cxx)
TARGET_LINK_LIBRARIES(InverseIransform vtkHybrid)<span class=""><font color="#888888"><br></font></span></pre></pre><div class="" style="margin:2px 0px 0px;font-family:arial,sans-serif;font-size:13px"></div></div></div></div>
</div>