SauvaudProperties.hh 1.73 KB
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/* 
 * File:   SauvaudProperties.hh
 * Author: hacene
 *
 * Created on January 3, 2022, 10:36 AM
 */

#ifndef SAUVAUDPROPERTIES_HH
#define SAUVAUDPROPERTIES_HH
#include "SpectroProperties.hh"
namespace plot {

    class SauvaudProperties : public SpectroProperties {
    public:

        SauvaudProperties() : SpectroProperties(),_rightDim(0),_hasYleftAxis(true) {

        }

        SauvaudProperties(const SpectroProperties& orig) : SpectroProperties(orig) {

        }

        SauvaudProperties(const SauvaudProperties& orig) : SpectroProperties(orig) {

        }
        
        AMDA::Common::ParameterIndexComponentList getIndexesByIndex(int index, int dim)
        {
            AMDA::Common::ParameterIndexComponentList res;
            int index_;
            for(auto paramIndex : SpectroProperties:: _indexList){
                index_ = dim ==0 ? paramIndex.getDim1Index() : paramIndex.getDim2Index(); 
                if(index_ == index)
                    res.push_back(paramIndex);
            }
            return res;
        }

        virtual ~SauvaudProperties() {

        }

        int getRightDim() {
            return _rightDim;
        }

        void setRightDim(int dim) {
            _rightDim = dim;
        }

        bool hasYleftAxis() const {
            return _hasYleftAxis;
        }

        void setYAxis(bool hasYAxis) {
            _hasYleftAxis = hasYAxis;
        }
        
    private:
        
        /***/
        int _rightDim;

        bool _hasYleftAxis;
        
    };


} /* namespace plot */
#endif /* SAUVAUDPROPERTIES_HH */