Hello ,
I use stellarium for a planetarium/dome projection, together with the TUI
plugin. As of now, the TUI is chopped off while choosing the Disk viewport,
as the default co-ordinates are at left-hand corner.
The below changes should address the problem. Please include this into
trunk.
=== modified file 'plugins/TextUserInterface/src/TextUserInterface.cpp'
--- plugins/TextUserInterface/src/TextUserInterface.cpp 2012-02-17
18:12:37 +0000
+++ plugins/TextUserInterface/src/TextUserInterface.cpp 2012-02-18
13:10:50 +0000
@@ -497,6 +497,14 @@
x = (sideBar) ? sideBar->boundingRectNoHelpLabel().right() :
50;
y = (bottomBar) ? bottomBar->boundingRect().height() : 50;
}
+
+ // Alternate x,y for Disk viewport
+ if (core->getProjection(StelCore::FrameJ2000)->getMaskType() ==
StelProjector::MaskDisk)
+ {
+ StelProjector::StelProjectorParams projParams =
core->getCurrentStelProjectorParams();
+ x = projParams.viewportCenter[0] -
projParams.viewportFovDiameter/2;
+ y = projParams.viewportCenter[1];
+ }
x += 20;
y += 15;
Regards,
Sibi
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Stellarium-pubdevel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel