Skip to content
Snippets Groups Projects
axis.h 798 B
Newer Older
  • Learn to ignore specific revisions
  • #define CPLOT_PSMAX 10
    
    class CAxis {
     public:
        double inf, sup;
        bool   logflag;
        bool   force;
    
        CAxis( bool _log ) :
            logflag(_log), force(false) { setAuto(); };
    
        void Ask( string quest );
        void setLog( bool _log );
        double pc(double v) const;
    
        void setAuto();
        void setLimits( string axnam, double _inf, double _sup );
        void setRoundedLimits( string axnam, double _inf, double _sup );
        void set_from_string( string text );
    
        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 inf_pos() const;
        void calc_ticks( int *ntack, double **tack, int *ntpt, double *ticklim )
            const;
    };