Ignore:
Timestamp:
Apr 18, 2012, 10:04:27 PM (12 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • experimental/distortionNG/DistortionSet.h

    r344 r345  
    2121#include <osg/Image>
    2222#include <osg/Matrixd>
    23 #include <osg/PrimitiveSet>
    2423
    2524namespace osgViewer {
     
    4443
    4544        void setDistortionMeshRows(int distortionMeshRows)              { _distortionMeshRows = distortionMeshRows; }
    46         int getDistortionMeshRows() const       { return(_distortionMeshRows); }
     45        int getDistortionMeshRows() const       { return _distortionMeshRows; }
    4746
    4847        void setDistortionMeshColumns(int distortionMeshColumns)                { _distortionMeshColumns = distortionMeshColumns; }
    49         int getDistortionMeshColumns() const    { return(_distortionMeshColumns); }
     48        int getDistortionMeshColumns() const    { return _distortionMeshColumns; }
     49
     50        void setMeshType(GLenum meshType) { _meshType = meshType; }
     51    inline GLenum getMeshType() const { return _meshType; }
    5052
    5153        void setIntensityMap(osg::Image* intensityMap)          { _intensityMap = intensityMap; }
    52         const osg::Image* getIntensityMap() const       { return(_intensityMap); }
     54        const osg::Image* getIntensityMap() const       { return _intensityMap; }
    5355
    5456        void setTexUnitScene(unsigned int texUnitScene)         { _texUnitScene = texUnitScene; }
    55         unsigned int getTexUnitScene() const    { return(_texUnitScene); }
     57        unsigned int getTexUnitScene() const    { return _texUnitScene; }
    5658
    5759        void setTexUnitIntensityMap(unsigned int texUnitIntensityMap)   { _texUnitIntensityMap = texUnitIntensityMap; }
    58         unsigned int getTexUnitIntensityMap() const     { return(_texUnitIntensityMap); }
     60        unsigned int getTexUnitIntensityMap() const     { return _texUnitIntensityMap; }
    5961
    6062        void setViewOffset(const osg::Matrixd& viewOffset)      { _viewOffset = viewOffset; }
    61         const osg::Matrixd& getViewOffset() const       { return(_viewOffset); }
     63        const osg::Matrixd& getViewOffset() const       { return _viewOffset; }
    6264
    6365        void setProjectionOffset(const osg::Matrixd& projectionOffset)          { _projectionOffset = projectionOffset; }
    64         const osg::Matrixd& getProjectionOffset() const { return(_projectionOffset); }
     66        const osg::Matrixd& getProjectionOffset() const { return _projectionOffset; }
    6567
    6668private:
    6769        int _distortionMeshRows;
    6870        int _distortionMeshColumns;
    69         //osg::PrimitiveSet::Mode _MeshType
     71        GLenum _meshType;
    7072       
    7173        osg::ref_ptr<osg::Image> _intensityMap;
Note: See TracChangeset for help on using the changeset viewer.