Show
Ignore:
Timestamp:
03/18/08 16:37:38 (7 years ago)
Author:
robert
Message:

To osg::AutoTransform? added support for MinimumScale?, MaximumScale? and AutoScaleTransitionWidth? parameters
and a new scheme for computing the scaling when using autoscale that introduces smooth
transitions to the scaling of the subgraph so that it looks more natural.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/osg/AutoTransform

    r7965 r7968  
    8484        bool getAutoScaleToScreen() const { return _autoScaleToScreen; } 
    8585 
     86        void setAutoScaleTransistionWidthRatio(float ratio) { _autoScaleTransitionWidthRatio = ratio; } 
     87        float getAutoScaleTransistionWidthRatio() const { return _autoScaleTransitionWidthRatio; } 
     88 
    8689 
    8790        virtual bool computeLocalToWorldMatrix(Matrix& matrix,NodeVisitor* nv) const; 
     
    116119        float                           _minimumScale; 
    117120        float                           _maximumScale; 
    118  
     121        float                           _autoScaleTransitionWidthRatio; 
    119122 
    120123        void computeMatrix() const;