JKQtPlotter/examples/jkqtplot_test/TestWidgetRGBImages.h
jkriege2 69ad2a0182 - added styling system for JKQTPlotter (+example app)
- improved documentation
- changed: using static const variables instead of \c #define for fixed default values (e.g. JKQTPImageTools::LUTSIZE, JKQTPImageTools::PALETTE_ICON_WIDTH, JKQTPlotterDrawinTools::ABS_MIN_LINEWIDTH, JKQTMathText::ABS_MIN_LINEWIDTH ...)
- new: added debugging option, which surrounds different regions with visible rectangles (JKQTBasePlotter::enableDebugShowRegionBoxes() )
- fixed: colorbars at top were positioned over the plot label
- new: frames (plot viewport, key/legend ...) may be rounded off at the corners
- new: diverse new styling options (default font name/size ...)
- speed improvements to JKQTMathText::useSTIX()
2019-02-09 12:43:12 +01:00

71 lines
1.5 KiB
C++

#ifndef TestWidgetRGBImages_H
#define TestWidgetRGBImages_H
#include <QElapsedTimer>
#include <QCheckBox>
#include <QLineEdit>
#include <QTimer>
#include <QImage>
#include <QVBoxLayout>
#include <QWidget>
#include <QTabWidget>
#include <QFormLayout>
#include <QCheckBox>
#include "jkqtplotter/jkqtplotter.h"
#include "jkqtplotter/jkqtpgraphsgeometric.h"
#include "jkqtplotter/jkqtpgraphsimage.h"
#include "jkqtplotter/jkqtpgraphsimagergb.h"
#include "jkqtplotter/jkqtpelementsoverlay.h"
#include "jkqtplotter/jkqtpgraphsparsedfunction.h"
#include "jkqtplotter/jkqtpbaseelements.h"
#include "jkqtplottergui/jkqtpgraphsmodel.h"
#include "jkqtplottertools/jkqtptools.h"
#define N1 200
#define N2 50
#define N3 8
class TestWidgetRGBImages : public QWidget
{
Q_OBJECT
public:
explicit TestWidgetRGBImages(QWidget *parent = 0);
signals:
public slots:
void setRGBColorBars(bool checked);
void setRGBMode1(int mode);
void setRGBMode2(int mode);
void updateRGBChannels();
void setRGBModifier(int item);
protected:
double* rgb_rimg2;
double* rgb_gimg2;
double* rgb_bimg2;
double* rgb_aimg2;
int rgb_colr, rgb_colb, rgb_colg, rgb_cola;
JKQTPlotter* plotImgRGB;
JKQTPRGBMathImage* rgbimg;
JKQTPColumnRGBMathImage* rgbimg2;
QCheckBox* chkRGBUseR;
QCheckBox* chkRGBUseG;
QCheckBox* chkRGBUseB;
QCheckBox* chkRGBUseA;
};
#endif // TestWidgetRGBImages_H