1#ifndef SAWTOOTHSTRETCHTYPE_H
2#define SAWTOOTHSTRETCHTYPE_H
4#include "StretchType.h"
38 const QString &name,
const QColor &color);
Stores stretch information for a cube.
Container of a cube histogram.
This handles the advanced sawtooth stretch.
void widthSliderMoved(int)
This is called when the sawtooth width slider moves.
virtual void setStretch(Stretch)
Given an arbitrary stretch, this will re-interpret it, as best as possible, into a sawtooth stretch.
virtual CubeStretch getStretch()
Gets the CubeStretch for this Sawtooth Stretch.
QLineEdit * p_widthEdit
Width edit.
SawtoothStretchType(const Histogram &, const Stretch &, const QString &name, const QColor &color)
This initializes a sawtooth stretch type.
void offsetEditChanged(const QString &)
This is called when the the sawtooth offset edit changes.
void widthEditChanged(const QString &)
This is called when the the sawtooth width edit changes.
QLineEdit * p_offsetEdit
Offset edit.
Stretch calculateNewStretch()
This calculates a new stretch using the GUI edits.
void offsetSliderMoved(int)
This is called when the sawtooth offset slider moves.
bool p_sliderOverride
This is used to let the edits be changed to where sliders cant go.
~SawtoothStretchType()
Destructor.
QSlider * p_widthSlider
Width slider.
QSlider * p_offsetSlider
Offset slider.
This is the base class for advanced stretches.
This is free and unencumbered software released into the public domain.