Compare commits

...

2 Commits

Author SHA1 Message Date
nou 71486efeef Remove unused method 2024-06-17 09:47:56 +02:00
nou 8213f6213f Fix convert scripts 2024-06-17 09:44:48 +02:00
3 changed files with 6 additions and 16 deletions
+1 -9
View File
@@ -188,12 +188,6 @@ void ImageWidget::bestFit()
setOffset(0, 0); setOffset(0, 0);
} }
void ImageWidget::blockRepaint(bool block)
{
m_blockRepaint = block;
if(!block)update();
}
void ImageWidget::allocateThumbnails(const QStringList &paths) void ImageWidget::allocateThumbnails(const QStringList &paths)
{ {
makeCurrent(); makeCurrent();
@@ -323,8 +317,6 @@ void ImageWidget::showThumbnail(bool enable)
void ImageWidget::paintGL() void ImageWidget::paintGL()
{ {
if(m_blockRepaint)return;
float dx = m_dx; float dx = m_dx;
float dy = m_dy; float dy = m_dy;
if(m_width > m_image->width() * m_scale) if(m_width > m_image->width() * m_scale)
@@ -333,9 +325,9 @@ void ImageWidget::paintGL()
dy = -height() * 0.5f + m_image->height() * m_scale * 0.5f; dy = -height() * 0.5f + m_image->height() * m_scale * 0.5f;
QBrush highlight = style()->standardPalette().highlight(); QBrush highlight = style()->standardPalette().highlight();
f->glClear(GL_COLOR_BUFFER_BIT);
if(m_showThumbnails) if(m_showThumbnails)
{ {
f->glClear(GL_COLOR_BUFFER_BIT);
m_vaoThumb->bind(); m_vaoThumb->bind();
m_thumbnailTexture->bind(1); m_thumbnailTexture->bind(1);
if(m_sizesDirty) if(m_sizesDirty)
-2
View File
@@ -53,7 +53,6 @@ class ImageWidget : public QOpenGLWidget
float m_scale = 1.0f; float m_scale = 1.0f;
int m_scaleStop = 0; int m_scaleStop = 0;
bool m_bestFit = false; bool m_bestFit = false;
bool m_blockRepaint = false;
bool m_bwImg = false; bool m_bwImg = false;
bool m_falseColor = false; bool m_falseColor = false;
bool m_invert = false; bool m_invert = false;
@@ -78,7 +77,6 @@ public:
void setWCS(std::shared_ptr<WCSData> wcs); void setWCS(std::shared_ptr<WCSData> wcs);
void zoom(int zoom, const QPointF &mousePos = QPointF()); void zoom(int zoom, const QPointF &mousePos = QPointF());
void bestFit(); void bestFit();
void blockRepaint(bool block);
void allocateThumbnails(const QStringList &paths); void allocateThumbnails(const QStringList &paths);
QVector2D getImagePixelCoord(const QVector2D &pos); QVector2D getImagePixelCoord(const QVector2D &pos);
void setBayerMask(int mask); void setBayerMask(int mask);
+5 -5
View File
@@ -10,9 +10,9 @@ let compression = {"compressionType": "zstd+sh"};
for(file of files) for(file of files)
{ {
if(file.suffix() == "fits" || file.suffix() == "fit") if(file.suffix() == "fits" || file.suffix() == "fit")
{ {
core.log("Converting " + file.fileName()); core.log("Converting " + file.fileName());
convertedFiles.push(file.convertAsync(file.relativeFilePath(), "XISF", compression)); file.convertAsync(file.relativeFilePath(), "XISF", compression);
} }
} }