Show
Ignore:
Timestamp:
10/21/14 17:10:27 (10 days ago)
Author:
robert
Message:

Added shaders to support experimental shader based displacement mapping technique osgTerrain::ShaderTerrain?.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/osgManipulator/ScaleAxisDragger

    r9899 r13855  
    1717 
    1818#include <osgManipulator/Scale1DDragger> 
     19#include <osg/ShapeDrawable> 
     20#include <osg/Geometry> 
     21#include <osg/LineWidth> 
    1922 
    2023namespace osgManipulator { 
     
    3437        void setupDefaultGeometry(); 
    3538 
     39        /** Sets the width of the axis lines in pixels. */ 
     40        void setAxisLineWidth(float linePixelWidth); 
     41 
     42        /** Retrieves the width of the axis lines in pixels. */ 
     43        float getAxisLineWidth() const { return _axisLineWidth; } 
     44 
     45        /** Sets the size of the boxes. */ 
     46        void setBoxSize(float size); 
     47 
     48        /** Retrieves the size of the boxes. */ 
     49        float getBoxSize() const { return _boxSize; } 
     50 
    3651    protected: 
    3752 
     
    4156        osg::ref_ptr< Scale1DDragger >        _yDragger; 
    4257        osg::ref_ptr< Scale1DDragger >        _zDragger; 
     58 
     59        float _boxSize; 
     60        float _axisLineWidth; 
     61 
     62        osg::ref_ptr<osg::Geode> _lineGeode; 
     63        osg::ref_ptr<osg::LineWidth> _lineWidth; 
     64        osg::ref_ptr<osg::Box> _box; 
    4365}; 
    4466