Show
Ignore:
Timestamp:
10/21/14 17:10:27 (35 hours 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/TrackballDragger

    r9899 r13855  
    1818#include <osgManipulator/RotateCylinderDragger> 
    1919#include <osgManipulator/RotateSphereDragger> 
     20#include <osg/ShapeDrawable> 
     21#include <osg/Geometry> 
     22#include <osg/LineWidth> 
    2023 
    2124namespace osgManipulator { 
     
    3538        void setupDefaultGeometry(); 
    3639 
     40        /** Sets the width of the axis lines in pixels. */ 
     41        void setAxisLineWidth(float linePixelWidth); 
     42 
     43        /** Retrieves the width of the axis lines in pixels. */ 
     44        float getAxisLineWidth() const { return _axisLineWidth; } 
     45 
     46        /** Sets the height of the cylinders representing the axis lines for picking. */ 
     47        void setPickCylinderHeight(float pickCylinderHeight); 
     48 
     49        /** Retrieves the height of the cylinders representing the axis lines for picking. */ 
     50        float getPickCylinderHeight() const { return _pickCylinderHeight; } 
     51 
    3752    protected: 
    3853 
     
    4358        osg::ref_ptr<RotateCylinderDragger> _zDragger; 
    4459        osg::ref_ptr<RotateSphereDragger>   _xyzDragger; 
     60 
     61        float _axisLineWidth; 
     62        float _pickCylinderHeight; 
     63 
     64        osg::ref_ptr<osg::Geode> _geode; 
     65        osg::ref_ptr<osg::Cylinder> _cylinder; 
     66        osg::ref_ptr<osg::LineWidth> _lineWidth; 
    4567}; 
    4668