QskScaleEngine

Public Types

  Name
enum Attribute { Inverted = 1 « 0, Floating = 1 « 1}

Public Functions

  Name
  QskScaleEngine()
  ~QskScaleEngine()
void setAttribute(Attribute attribute, bool on =true)
bool testAttribute(Attribute attribute) const
void setAttributes(Attributes attributes)
Attributes attributes() const
QskScaleTickmarks divideScale(qreal x1, qreal x2, int maxMajorSteps, int maxMinorSteps, qreal stepSize =0.0) const
void autoScale(int maxNumSteps, qreal & x1, qreal & x2, qreal & stepSize) const

Public Types Documentation

enum Attribute

Enumerator Value Description
Inverted 1 « 0  
Floating 1 « 1  

Public Functions Documentation

function QskScaleEngine

QskScaleEngine()

function ~QskScaleEngine

~QskScaleEngine()

function setAttribute

void setAttribute(
    Attribute attribute,
    bool on =true
)

function testAttribute

bool testAttribute(
    Attribute attribute
) const

function setAttributes

void setAttributes(
    Attributes attributes
)

function attributes

Attributes attributes() const

function divideScale

QskScaleTickmarks divideScale(
    qreal x1,
    qreal x2,
    int maxMajorSteps,
    int maxMinorSteps,
    qreal stepSize =0.0
) const

function autoScale

void autoScale(
    int maxNumSteps,
    qreal & x1,
    qreal & x2,
    qreal & stepSize
) const

Updated on 28 July 2023 at 14:02:28 CEST