Show
Ignore:
Timestamp:
10/21/14 17:10:27 (4 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/TranslateAxisDragger

    r9899 r13855  
    1717 
    1818#include <osgManipulator/Translate1DDragger> 
     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 radius of the cylinders representing the axis lines for picking. */ 
     46        void setPickCylinderRadius(float pickCylinderRadius); 
     47 
     48        /** Retrieves the radius of the cylinders representing the axis lines for picking. */ 
     49        float getPickCylinderRadius() const { return _pickCylinderRadius; } 
     50 
     51        /** Sets the height of the cones. */ 
     52        void setConeHeight(float radius); 
     53 
     54        /** Retrieves the height of the cones. */ 
     55        float getConeHeight() const { return _coneHeight; } 
     56 
    3657    protected: 
    3758 
     
    4162        osg::ref_ptr< Translate1DDragger >  _yDragger; 
    4263        osg::ref_ptr< Translate1DDragger >  _zDragger; 
     64 
     65        float _coneHeight; 
     66        float _axisLineWidth; 
     67        float _pickCylinderRadius; 
     68 
     69        osg::ref_ptr<osg::Geode> _lineGeode; 
     70        osg::ref_ptr<osg::Cylinder> _cylinder; 
     71        osg::ref_ptr<osg::LineWidth> _lineWidth; 
     72        osg::ref_ptr<osg::Cone> _cone; 
    4373}; 
    4474