From Jaap Glas, "Added a default parameter to the following constructor in TabPlaneDragger

and TabPlaneDragger.cpp:

TabPlaneDragger(float handleScaleFactor=20.0f);

The reason for this is that the default OSG tab sizes are way bigger than
those we used in our application so far. And since handleScaleFactor_
is already a (constant) class member, I see no objection against making
it user defined."
This commit is contained in:
Robert Osfield 2012-05-25 08:56:25 +00:00
parent a28907a67f
commit c21f1f488f
2 changed files with 3 additions and 2 deletions

View File

@ -29,7 +29,7 @@ class OSGMANIPULATOR_EXPORT TabPlaneDragger : public CompositeDragger
{
public:
TabPlaneDragger();
TabPlaneDragger(float handleScaleFactor=20.0f);
META_OSGMANIPULATOR_Object(osgManipulator,TabPlaneDragger)

View File

@ -191,7 +191,8 @@ void createTranslateDraggerGeometry(Scale2DDragger* cornerScaleDragger, Translat
}
TabPlaneDragger::TabPlaneDragger() : _handleScaleFactor(20.0)
TabPlaneDragger::TabPlaneDragger( float handleScaleFactor )
:_handleScaleFactor( handleScaleFactor )
{
_cornerScaleDragger = new Scale2DDragger(Scale2DDragger::SCALE_WITH_OPPOSITE_HANDLE_AS_PIVOT);
addChild(_cornerScaleDragger.get());