Ignore:
Timestamp:
Apr 21, 2012, 4:53:52 PM (12 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • experimental/distortionNG/DistortionSet.h

    r349 r350  
    3737                _texUnitIntensityMap(ds._texUnitIntensityMap),
    3838                _viewOffset(ds._viewOffset),
    39                 _projectionOffset(ds._projectionOffset){}
     39                _projectionOffset(ds._projectionOffset),
     40                _showIntesityMapMapOnly(ds._showIntesityMapMapOnly){}
    4041
    4142        DistortionSet();
    4243        virtual ~DistortionSet();
    4344
     45        // Working access
     46        osg::Image* getIntensityMap()  { return _intensityMap; }        // Also for manipulating the intensity map
     47        bool& getShowIntensityMapOnlyAsRef()    { return _showIntesityMapMapOnly;}
     48
     49
     50
     51        // Serializer Access
    4452        void setDistortionMeshRows(int distortionMeshRows)              { _distortionMeshRows = distortionMeshRows; }
    4553        int getDistortionMeshRows() const       { return _distortionMeshRows; }
     
    5260
    5361        void setIntensityMap(osg::Image* intensityMap)          { _intensityMap = intensityMap; }
    54         const osg::Image* getIntensityMap() const       { return _intensityMap; }       // for serializers
    55         osg::Image* getIntensityMap()  { return _intensityMap; }        // for manipulating the intensity map
     62        const osg::Image* getIntensityMap() const       { return _intensityMap; }
     63
    5664
    5765        void setTexUnitScene(unsigned int texUnitScene)         { _texUnitScene = texUnitScene; }
     
    6775        const osg::Matrixd& getProjectionOffset() const { return _projectionOffset; }
    6876
     77        void setShowIntensityMapOnly(bool show) {_showIntesityMapMapOnly = show;}
     78        bool getShowIntensityMapOnly() const    { return _showIntesityMapMapOnly;}
     79
     80
    6981private:
    7082        int _distortionMeshRows;
     
    7991        osg::Matrixd _projectionOffset;
    8092
    81 
     93        bool _showIntesityMapMapOnly;   // Intensity Blending is done by a frag shader. To control it on runtime, the uniform must be bound to a central variable.
    8294};
    8395
Note: See TracChangeset for help on using the changeset viewer.