Show
Ignore:
Timestamp:
06/02/04 14:37:14 (10 years ago)
Author:
robert
Message:

Added setPosition and setWidth methods into ScalarBar? and changed the
implementation to use these values to position and set the size of the
scalar bar. Also made the characterSize value a float rather than
the previous int.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgscalarbar/osgscalarbar.cpp

    r3012 r3023  
    5656 
    5757    ColorRange* cr = new ColorRange(0.0f,1.0f,cs); 
    58     ScalarBar* sb = new ScalarBar(20, 11, cr, "ScalarBar", ScalarBar::VERTICAL, 4.0f, new MyScalarPrinter); 
     58    ScalarBar* sb = new ScalarBar(20, 11, cr, "ScalarBar", ScalarBar::VERTICAL, 0.1f, new MyScalarPrinter); 
    5959    sb->setScalarPrinter(new MyScalarPrinter); 
    6060