rob...@16af8721-9629-0410-8352-f15c8da7e697  committed 7c73af9 Draft

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."

  • Participants
  • Parent commits 794a1f3
  • Branches default

Comments (0)

Files changed (2)

File include/osgManipulator/TabPlaneDragger

-        TabPlaneDragger();
+        TabPlaneDragger(float handleScaleFactor=20.0f);

File src/osgManipulator/TabPlaneDragger.cpp

-TabPlaneDragger::TabPlaneDragger() : _handleScaleFactor(20.0)
+TabPlaneDragger::TabPlaneDragger( float handleScaleFactor )
+          :_handleScaleFactor( handleScaleFactor )
     _cornerScaleDragger = new Scale2DDragger(Scale2DDragger::SCALE_WITH_OPPOSITE_HANDLE_AS_PIVOT);