I'm pretty sure either (1) you do not have the latest revision or (2) you need to clean out your source tree, e.g., R CMD INSTALL --preclean.<br><br><br><div class="gmail_quote">On Wed, Oct 20, 2010 at 8:50 PM, Yihui Xie <span dir="ltr"><<a href="mailto:xieyihui@gmail.com">xieyihui@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Perfect! Thanks so much!<br>
<br>
I didn't find the updateSceneGeometry() method, instead, there are<br>
update() and updateGeometry() methods which work as well.<br>
<br>
BTW, when there are texts in a layer, I will get this warning:<br>
<br>
Painter::setTransform: rotating matrices not supported<br>
<br>
To reproduce, run the code in this page:<br>
<a href="http://github.com/bigbear/cranvas/wiki/How-to-rotate-a-view" target="_blank">http://github.com/bigbear/cranvas/wiki/How-to-rotate-a-view</a><br>
<div class="im"><br>
Regards,<br>
Yihui<br>
--<br>
Yihui Xie <<a href="mailto:xieyihui@gmail.com">xieyihui@gmail.com</a>><br>
Phone: 515-294-2465 Web: <a href="http://yihui.name" target="_blank">http://yihui.name</a><br>
Department of Statistics, Iowa State University<br>
2215 Snedecor Hall, Ames, IA<br>
<br>
<br>
<br>
</div><div><div></div><div class="h5">On Wed, Oct 20, 2010 at 10:03 PM, Michael Lawrence<br>
<<a href="mailto:lawrence.michael@gene.com">lawrence.michael@gene.com</a>> wrote:<br>
> This should be supported now.<br>
><br>
> Qt supports rotations at the view using methods like scale, rotate, etc.<br>
> Most of the work was supporting this in conjunction with the rescaling<br>
> performed by our special PlotView class. When using geometry rescale mode<br>
> (the default, and desirable for your use-case) you'll need to tell the<br>
> PlotView to update the scene geometry by calling the updateSceneGeometry()<br>
> method.<br>
><br>
> So it's like:<br>
><br>
> v$rotate(90)<br>
> v$updateSceneGeometry()<br>
><br>
> Michael<br>
><br>
> On Tue, Oct 19, 2010 at 4:15 PM, Michael Lawrence <<a href="mailto:michafla@gene.com">michafla@gene.com</a>> wrote:<br>
>><br>
>> Again, moved this over to qtinterfaces-devel.<br>
>><br>
>> There are basically two transforms involved: one from item (layer) to<br>
>> scene and one from scene to view (which might be translated by a third<br>
>> transform to screen coordinates if there is a scrolled viewport). To rotate<br>
>> the entire plot, axes layers included, it's probably best to modify the view<br>
>> transform.<br>
>><br>
>> Unfortunately, the view transform basically must be identity if you're<br>
>> using the geometry rescale mode in the plot view (the plot view is then<br>
>> making sure that the plot fits in the viewport by changing the geometry of<br>
>> the layer in the scene). I might be able to improve that if necessary<br>
>> though. I guess I had not anticipated this use-case. It doesn't make sense<br>
>> to zoom with the geometry rescale mode but rotations might make sense.<br>
>><br>
>> Thanks for this suggestion,<br>
>> Michael<br>
>><br>
>> On Tue, Oct 19, 2010 at 2:31 PM, Yihui Xie <<a href="mailto:xieyihui@gmail.com">xieyihui@gmail.com</a>> wrote:<br>
>>><br>
>>> Hi everyone,<br>
>>><br>
>>> I still feel lost in the Qt sea, but I believe it should be very easy<br>
>>> to rotate a layer by 90 degrees, and I feel it is something like<br>
>>> qdeviceTransform(), but I just don't know how to use this function.<br>
>>> Can anyone give me an example? e.g. switch x and y in a scatter plot<br>
>>> (without really switching the values of x and y)<br>
>>><br>
>>> This can reduce the efforts on considering the direction of a plot,<br>
>>> being horizontal or vertical; in my par-coords plots, I did this on<br>
>>> the R level long ago. Maybe that is a waste of time.<br>
>>><br>
>>> Thanks!<br>
>>><br>
>>> Regards,<br>
>>> Yihui<br>
>>> --<br>
>>> Yihui Xie <<a href="mailto:xieyihui@gmail.com">xieyihui@gmail.com</a>><br>
>>> Phone: 515-294-2465 Web: <a href="http://yihui.name" target="_blank">http://yihui.name</a><br>
>>> Department of Statistics, Iowa State University<br>
>>> 2215 Snedecor Hall, Ames, IA<br>
>>><br>
>>> --<br>
>>> You received this message because you are subscribed to the Google Groups<br>
>>> "GGobi core" group.<br>
>>> To post to this group, send email to <a href="mailto:ggobi-core@googlegroups.com">ggobi-core@googlegroups.com</a>.<br>
>>> To unsubscribe from this group, send email to<br>
>>> <a href="mailto:ggobi-core%2Bunsubscribe@googlegroups.com">ggobi-core+unsubscribe@googlegroups.com</a>.<br>
>>> For more options, visit this group at<br>
>>> <a href="http://groups.google.com/group/ggobi-core?hl=en" target="_blank">http://groups.google.com/group/ggobi-core?hl=en</a>.<br>
>>><br>
>><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Qtinterfaces-devel mailing list<br>
> <a href="mailto:Qtinterfaces-devel@lists.r-forge.r-project.org">Qtinterfaces-devel@lists.r-forge.r-project.org</a><br>
> <a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/qtinterfaces-devel" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/qtinterfaces-devel</a><br>
><br>
><br>
_______________________________________________<br>
Qtinterfaces-devel mailing list<br>
<a href="mailto:Qtinterfaces-devel@lists.r-forge.r-project.org">Qtinterfaces-devel@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/qtinterfaces-devel" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/qtinterfaces-devel</a><br>
</blockquote></div><br>