Calculate bounds on indexing
This commit is contained in:
+5
-3
@@ -30,14 +30,16 @@ class WCSData
|
||||
{
|
||||
int nwcs = 0;
|
||||
struct wcsprm *wcs = nullptr;
|
||||
int width;
|
||||
int height;
|
||||
void freeWCS();
|
||||
public:
|
||||
WCSData();
|
||||
WCSData(char *header, int nrec);
|
||||
WCSData(int width, int height, char *header, int nrec);
|
||||
WCSData(const WCSData &) = delete;
|
||||
~WCSData();
|
||||
bool pixelToWorld(const QPointF &pixel, SkyPoint &point) const;
|
||||
bool worldToPixel(const SkyPoint &point, QPointF &pixel) const;
|
||||
void calculateBounds(int w, int h, double &minRa, double &maxRa, double &minDec, double &maxDec);
|
||||
void calculateBounds(double &minRa, double &maxRa, double &minDec, double &maxDec) const;
|
||||
bool valid() const { return wcs; };
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user