Skip to content
Snippets Groups Projects
axis.h 750 B
Newer Older
  • Learn to ignore specific revisions
  • class CAxis {
     public:
        double inf, sup;
        bool   logflag;
        bool   force;
    
        CAxis( bool _log ) :
            logflag(_log), force(false) { setAuto(); };
    
        void setLog( bool _log );
    
        void setAuto();
        void setLimits( string axnam, double _inf, double _sup );
        void setRoundedLimits( string axnam, double _inf, double _sup );
    
        void ask_and_set( const string& quest );
    
    
        string str() const;
        string info() const;
        bool finite() const;
        bool contains( double val ) const;
        double value2plotcoord( double v ) const;
        double plotcoord2value( double c ) const;
    
        double pc( double v ) const;
    
        double inf_pos() const;
        void calc_ticks( int *ntack, double **tack, int *ntpt, double *ticklim )
            const;
    };