1#ifndef BinaryStretchType_H
2#define BinaryStretchType_H
4#include "StretchType.h"
35 const QString &name,
const QColor &color);
This handles the advanced binary stretch.
BinaryStretchType(const Histogram &, const Stretch &, const QString &name, const QColor &color)
This constructs a binary stretch type.
virtual CubeStretch getStretch()
Gets the CubeStretch for this Binary Stretch.
QSlider * p_endSlider
End point slider.
bool p_sliderOverride
This is used to let the edits be changed to where sliders cant go.
void startEditChanged(const QString &)
A new start point was typed in.
void startSliderMoved(int)
This is called when the start point slider moves.
QLineEdit * p_endEdit
End point edit.
virtual void setStretch(Stretch)
Given an arbitrary stretch, this will re-interpret it, as best as possible, into a binary stretch.
void endSliderMoved(int)
This is called when the end point slider moves.
~BinaryStretchType()
Destroys the binary stretch.
Stretch calculateNewStretch()
This uses the GUI elements to calculate the current binary stretch.
void endEditChanged(const QString &)
A new end point was typed in.
QSlider * p_startSlider
Start point slider.
bool p_editOverride
This is used to let the edits be changed without updating the stretch.
QLineEdit * p_startEdit
Start point edit.
Stores stretch information for a cube.
Container of a cube histogram.
This is the base class for advanced stretches.
This is free and unencumbered software released into the public domain.