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:
parent
a28907a67f
commit
c21f1f488f
@ -29,7 +29,7 @@ class OSGMANIPULATOR_EXPORT TabPlaneDragger : public CompositeDragger
|
||||
{
|
||||
public:
|
||||
|
||||
TabPlaneDragger();
|
||||
TabPlaneDragger(float handleScaleFactor=20.0f);
|
||||
|
||||
META_OSGMANIPULATOR_Object(osgManipulator,TabPlaneDragger)
|
||||
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user