<div dir="ltr">Instead of using vtkActor2D use vtkActor with vtkPolyDataMapper and use SetPosition and RotateX,Y&Z to get the correct view. <br><br>Or use a vtkTransform with vtkActor.<br><br>Jothy<br><br><div class="gmail_quote">
On Tue, Feb 14, 2012 at 10:01 AM, Daniel Kruber <span dir="ltr"><<a href="mailto:ich_daniel@habmalnefrage.de">ich_daniel@habmalnefrage.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi there,<br>
<br>
I create contour lines of a 3D object and put this in 3 different vtkCanvas, different in each of three sides. (look at screenshot, right side)<br>
The contour lines are vtkActor2D, which are always displayed correctly from the front. The other two views (side, bottom) are also shown only from the front, so you can see only a simple straight line.<br>
<br>
Is it possible to turn this vtkActor2D or similar?<br>
<br>
<br>
The production of contour lines is done by:<br>
<br>
//****<br>
/* 3 different planes for each view (3 total) */<br>
vtkPlane plane...<br>
/*<br>
example: vtkPlane sagPlane = new vtkPlane();<br>
sagPlane.SetOrigin(0,0,0);<br>
sagPlane.SetNormal(1, 0, 0);<br>
*/<br>
<br>
vtkPolyData data...<br>
<br>
vtkCutter cutEdges = new vtkCutter(); //Generate cut lines<br>
cutEdges.SetInput(data);<br>
cutEdges.SetCutFunction (plane);<br>
cutEdges.GenerateCutScalarsOn();<br>
cutEdges.SetValue( 0, 0);<br>
<br>
vtkCoordinate coord = new vtkCoordinate();<br>
coord.SetCoordinateSystemToViewport();<br>
<br>
vtkPolyDataMapper2D contourMapper = new vtkPolyDataMapper2D();<br>
contourMapper.SetInputConnection(cutEdges.GetOutputPort());<br>
contourMapper.SetTransformCoordinate(coord);<br>
contourMapper.SetLookupTable(lut);<br>
contourMapper.ScalarVisibilityOff();<br>
<br>
vtkActor2D contourActor = new vtkActor2D();<br>
contourActor.SetMapper(contourMapper);<br>
//****<br>
<br>
<br>
Thanks in advance.<br>
<font color="#888888"><br>
<br>
<br>
--<br>
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!<br>
Jetzt informieren: <a href="http://www.gmx.net/de/go/freephone/" target="_blank">http://www.gmx.net/de/go/freephone/</a><br>
</font><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" 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" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Jothy<br></div><br>
</div>