<div dir="ltr">Imre,<div><br></div><div>Your best bet is probably to transform the data itself rather than the user transform of the actors.</div><div><br></div><div>vtkSmartPointer<vtkTransformFilter> transformFilter = vtkSmartPointer<vtkTransformFilter>::New();</div><div>transformFilter->SetTransform(axis);</div><div>transformFilter->SetInputData(<your input data>);</div><div><br></div><div>HTH,</div><div>Cory</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 4, 2015 at 1:48 PM, Imre Goretzki <span dir="ltr"><<a href="mailto:goretzki.imre@gmail.com" target="_blank">goretzki.imre@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have data like this:<br>
<a href="http://i.imgur.com/CR2O8Ik.png" rel="noreferrer" target="_blank">http://i.imgur.com/CR2O8Ik.png</a><br>
and I would like to "stretch" the Z-axis to get more like a cube visualization.<br>
<br>
I used vtkTransform to transform the axes, but I would change the data if I do this. I hope you understand what I want to do, e.g. is there a possibility to change / stretch the ticks of a specific axis.<br>
<br>
The vtkTransform plot stretches to much:<br>
<a href="http://i.imgur.com/DDUW91T.png" rel="noreferrer" target="_blank">http://i.imgur.com/DDUW91T.png</a><br>
The data is deformed<br>
<br>
I use the vtkTransform like this:<br>
vtkSmartPointer<vtkTransform> axis = vtkSmartPointer<vtkTransform>::New();<br>
axis->Scale(1,1,10);<br>
<br>
dataActor->SetUserTransform(axis);<br>
outlineActor->SetUserTransform(axis);<br>
<br>
I tried using the camera with the vtkTransform, but the only thing I got from there, was an empty image or I had to zoom out greatly.<br>
<br>
For matlab reference, something like this:<br>
<a href="http://de.mathworks.com/help/matlab/ref/axis.html?refresh=true" rel="noreferrer" target="_blank">http://de.mathworks.com/help/matlab/ref/axis.html?refresh=true</a><br>
<br>
Would be nice if you could help me<span class="HOEnZb"><font color="#888888"><br>
<br>
Imre</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
Am 03.12.2015 um 22:20 schrieb Imre Goretzki:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hey guys<br>
<br>
i'd like to ask you if there's a equivalent method for vtkRenderWindow for equalizing the axis, just like MATLABs axis equal. Could vtkAxesActor be helpful?<br>
<br>
I hope you can help<br>
<br>
Thanks<br>
Imre<br>
<br>
</blockquote>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</div>