Tags give the ability to mark specific points in history as being important
-
v1.2.4
b2096369 · ·The RowSet overloads only handled real scalar columns: a vector column read out of bounds and a complex column gave no data. They now follow the unfiltered overloads: - QtCurve/QtScatter(tab, yCol, rows): complex columns plot real part on x and imaginary part on y. Vector columns give one graph per selected row, named after its table row. - QtCurve/QtScatter(tab, xCol, yCol, rows): two vector columns give one graph per row. Different element counts or a complex column throw. - QtHistogram(tab, col, rows): vector and complex columns are flattened. Behaviour change: QtCurve/QtScatter(tab, yCol, rows) now puts the table's 1-based row number on x, as the unfiltered overload does, instead of renumbering from 0. Add QtDensityPlot(tab, col, rows, ...) for a complex or 2-element vector column. Add QtHistogram(tab, col, groups, ...), which draws one graph per group of rows on the same bin edges, so their counts compare bin by bin. With nBins = 0 the Sturges rule applies to the total number of values. _QtHistogramCore takes an optional range for this. _colToDoubles now throws on a column it can't convert, instead of reading out of bounds on a vector column or returning nothing for a complex one. QCustomContours: use the system fixed font for contour labels instead of asking for a "monospace" font by name. Extend gTest_QtFitsViewer with the RowSet overloads and common bins.
-
-
-
v1.2.1
Release: Release — v1.2.1fbdb64a4 · ·Add QCPAxisRect* overloads to QtFITSviewer display API Description: Summary All QtFITSviewer static display methods previously required a QCustomPlot* as their first argument, which always targets the default axis rect (element 0,0 of the root layout). This makes it impossible to display or overlay FITS images into sub-panels of a multi-panel layout without recreating the entire drawing logic outside the library. This branch adds a parallel set of overloads taking QCPAxisRect* instead, letting callers target any axis rect regardless of how it is nested in the layout hierarchy. Changes New API (src/QtFITSviewer.h) A QCPAxisRect* overload is added for every existing QCustomPlot* display method: Method New overloads QtDisplay full image, pixel range, intensity range (new variant) QtDisplayLayer cube layer Overlay full image, pixel range QtDisplayInWCS 4 overloads (full / wcsIdx / range / range+wcsIdx) OverlayInWCS 4 overloads (same) The QtDisplay(QCPAxisRect*, img, double zMin, double zMax) overload is new across both families: it renders the full image then immediately clamps the colormap to caller-supplied intensity bounds (percentiles, threshold values, etc.) without a separate rescale step. Implementation (src/QtFitsPloting.cxx) Overlay(QCustomPlot*, ...) now delegates to Overlay(qPlot->axisRect(), ...), making the axis-rect variant the canonical implementation. Color scale placement logic updated: the scale is inserted into the same QCPLayoutGrid that owns the target rect (at rectCol + 1), rather than always at plotLayout(0,1). This allows each sub-panel to have its own independent scale without overwriting the main panel's. OverlayInWCS(QCPAxisRect*, ...) is a full implementation (pixel → WCS coordinate mapping, masked pixel handling, z-scaling, color scale). Stale per-function Doxygen blocks removed from the .cxx file; documentation now lives in the header only. Tests (test/gTest_QtFitsViewer.cxx) Histogram tests updated to match the current step-curve rendering (lsLine, 2*nBins+2 points, sum = 2*N). Motivation This change is the prerequisite for NISP-S_StellarAnchor, which displays a three-panel Qt layout (science image | significance map | histogram) where the significance panel is a QCPAxisRect nested inside a QCPLayoutGrid sub-grid. Without this branch the significance image had to be rendered with a duplicated local helper function; after this merge it uses the library API directly. Testing Existing unit tests in gTest_QtFitsViewer.cxx pass with updated expectations. Manually validated in NISP-S_StellarAnchor (multi-panel display with bidirectional axis sync and independent color scales per panel).
-
v1.2.0
d515a99d · ·Summary This MR adds a complete plotting API (QtCurve, QtScatter, QtDensityPlot, QtHistogram) to the QtFITSviewer class, covering all numeric FITS column types including vector and complex columns. It also promotes QCustomContours.h to a public include, fixes the Qt6 test build, and adds comprehensive Doxygen documentation. Changes by file src/QtFitsPloting.cxx (+1508 / -1) New public methods (type-dispatched via dtype_pair switch): Method Overloads Notes QtCurve (x, y), (y) Scalar, vector and complex columns QtScatter (x, y), (y) Same dispatch as QtCurve QtDensityPlot 4 overloads 2-D histogram / heatmap with optional Z weight and log scaling QtHistogram 3 overloads 1-D histogram; 0-bin count triggers Sturges auto rule New internal helpers: _QtDensityCore — non-template kernel shared by all QtDensityPlot overloads (bitmask logFlag: 0x1 = log x, 0x2 = log y, 0x4 = log z) _QtHistogramCore — non-template kernel shared by all QtHistogram overloads applyPlotOptions(QCPGraph*, string) — parses a key=value option string to set line colour/width/style and marker shape/size/colour at runtime src/QtFITSviewer.h (+1010 / -1) Doxygen block comments on all protected template helpers (_QtCurve, _QtCplxCurve, _QtVectorCurve, _QtCplxVectorCurve) Declarations of _QtDensityCore and _QtHistogramCore kernels Doxygen on pixelDistribution struct and its fields src/QCustomContours.h (-249) File removed — it was already promoted to include/DSTdisplay/QCustomContours.h in a prior commit. The old copy in src/ is now deleted. include/DSTdisplay/QtFitsPloting.h (+74 / -1) Doxygen block comment on dtype_pair(a, b) explaining the 32-bit packing scheme include/DSTdisplay/DSD_version.h (+137 / -1) Full Doxygen class comment on gGIT (singleton lifecycle, thread-safety note, version string format) Per-method Doxygen for all public static methods and comparison operators Inline /// comments on private data members CMakeLists.txt (+7) Added Qt6-guarded target_include_directories block inside the test foreach loop so that test targets including QtFITSviewer.h can find the autogenerated ui_QtFITSviewer.h from DSTdisplay_autogen/include Points for reviewer attention Type coverage: the QtCurve / QtScatter dispatch handles every numeric DSL::dtype combination (signed/unsigned × scalar/vector × all widths). Please verify no relevant type pair is missing in the switch table. Complex column convention: single-argument overloads map real → x, imag → y (Argand diagram). The behaviour when a user passes a complex column to the two-argument overload is explicitly rejected with BAD_TFORM_DTYPE. Is that the intended API contract? QCPGraph ownership: new graphs are wrapped in shared_ptr with a no-op deleter because QCustomPlot takes ownership. Worth a quick sanity check in the context of the clearGraphs() / clearPlottables() calls in the viewer. Thread worker count (b7c4733): the relaxation of the thread count cap was included in this branch — it may warrant its own MR review if it is not directly related to the plotting feature.
-
v1.1.0
7c09d60d · ·## v1.1.0 ### New features #### HDU discovery and multi-HDU viewer (`QtFITSviewer`) - **`HduInfo`** — new plain-old-data struct describing one HDU: 1-based index, `EXTNAME`, type (`IMG` / `TBL` / `BTBL` / `UNKNOWN`), `NAXIS`, and `NAXIS3`. - **`enumerateHDUs(FITSmanager&)`** — header-only traversal of all HDUs in an open FITS file. Type is inferred from the `XTENSION` keyword; no pixel data is loaded. - **`HduListWindow`** — new `QMainWindow` subclass. Presents all HDUs in a `QTableWidget` (columns: index, extension name, type). On double-click, delegates viewer creation to a caller-supplied `std::function<QWidget*(const HduInfo&)>` factory, keeping the library independent of application-specific dispatch logic. When a new viewer is opened, it inherits the geometry (position and size) of the previously closed one. Closing the window calls `QApplication::quit()`. ### Other changes - Licence file added. - Doxygen documentation style improvements (Doxygen Awesome CSS submodule). - CI worker configuration fixes and build system improvements. - Bug fixes in `QtFitsPloting` (contour display, `OverlayInWCS`). - Linux compilation flag tuning; Apple CMake option review. - Performance improvement in pixel processing (no accuracy impact). ### Compatibility Requires `DSTfits ≥ v1.1.0` (for `FITSmanager::GetHeaderAtIndex`). Consumer utilities should check for `DSD::gGIT::version() ≥ "v1.1.0"`.
-
v1.0.0
Release: FitsViewer v1.0.05a778a9e · ·Version 1.0.0 Provide utilities: • FitsViwer : Command line tools to display Fits2D image. Provide dynamic view on 2D image with x/y profile and histogram distribution of the pixel array.
-