<div dir="ltr"><br><div class="gmail_quote"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">Hi,<br><div class="gmail_quote"><div dir="ltr"><div><div><br></div><div>I'm working in 3D grpahs with VTK. Now I have the possibility to rotate them, but around the center of the image. Like in rotation.bmp.</div>
<div class="im">
<div><br>
</div><div><br>
</div><div><br></div><div>What I want to achieve is rotating them around the axes's origin and consequently, maintain always the origin always fixed.</div><div><br></div><div>I define the following interactor in the constructor.</div>
<div><br></div></div></div><div class="im"><div><div><span style="white-space:pre-wrap">        </span>public Chart3dCanvas(ChartComposite composite3) {</div><div><span style="white-space:pre-wrap">                </span>super();</div><div><span style="white-space:pre-wrap">                </span>this.chartComposite = composite3;</div>
<div><span style="white-space:pre-wrap">                </span>vtkFileOutputWindow output = new vtkFileOutputWindow();</div><div><span style="white-space:pre-wrap">                </span>output.SetFileName("vtkerror.txt");</div><div>
<span style="white-space:pre-wrap">                </span>output.SetInstance(output);</div><div><br></div><div><span style="white-space:pre-wrap">                </span>iren.SetInteractorStyle(new vtkInteractorStyleTrackballCamera());</div><div>
<span style="white-space:pre-wrap">                </span></div><div><span style="white-space:pre-wrap">                </span>iren.GetInteractorStyle().AddObserver("MiddleButtonPressEvent", this, "middleButtonPressed");</div>
<div><span style="white-space:pre-wrap">                </span>iren.GetInteractorStyle().AddObserver("MiddleButtonPressEvent", this, "middleButtonReleased");</div><div><span style="white-space:pre-wrap">                </span></div>
<div><span style="white-space:pre-wrap">                </span>iren.GetInteractorStyle().AddObserver("MouseWheelForwardEvent", this, "mouseWheelForward");</div><div><span style="white-space:pre-wrap">                </span>iren.GetInteractorStyle().AddObserver("MouseWheelBackwardEvent", this, "mouseWheelBackward");</div>
<div><span style="white-space:pre-wrap">                </span></div><div><span style="white-space:pre-wrap">                </span>this.addMouseWheelListener(this);</div><div><span style="white-space:pre-wrap">        </span>}</div></div><div>
<div>
<br clear="all"><div>Any help, please?</div><div><br></div><div>Thank you in advance!</div><span><font color="#888888"><div><br></div></font></span></div></div></div></div></div></div></div><span class="HOEnZb"><font color="#888888">-- <br>
Laura Balbastre<br>
</font></span></div>
</div><br><br clear="all"><div><br></div>-- <br>Laura Balbastre<br>
</div>