Added update() method to enable the ScaleBar to be updated after changes

to attached classes.
This commit is contained in:
Robert Osfield
2004-04-22 10:44:23 +00:00
parent b8a68204c0
commit e3a7db4559

View File

@@ -143,6 +143,9 @@ public:
{
}
META_Node(osgSim, ScalarBar);
/** Set the number of distinct colours on the ScalarBar. */
void setNumColors(int numColors);
@@ -197,7 +200,8 @@ public:
/** Get the TextProperties for the labels & title. @see TextProperties */
const TextProperties& getTextProperties() const;
META_Node(osgSim, ScalarBar);
/** force update the drawables used to render the scalar bar.*/
void update() { createDrawables(); }
private: