[osg-users] ScalarBar vertical

Robert Osfield robert.osfield at gmail.com
Thu Jul 10 07:37:14 PDT 2008


Hi Tomas,


On Thu, Jul 10, 2008 at 3:20 PM, Tomas Hnilica
<tomas.hnilica at webstep.net> wrote:
> Hello all,
>
> does anyone use the osgSim::ScalarBar with vertical display in HUD?
> I would like to show the scalarbar vertically on the left screen side.
>
> In the example osgscalarbar there are two ways of ScalarBar displaying, HUD one
> does not show when changed to VERTICAL, the other one does not affect such
> setting...
>
> In the HUD there are some 'magic' transformations that probably works only for
> horizontal scalarbar...

There isn't any magic going on, its the scalar bar is geometry like
any other in the OSG.  To place it in the correct place you either
need to set its initial values appropriately or position it using a
transform.

Robert.



More information about the osg-users mailing list