1 #ifndef DISPLAY_DS9_DS9CONTEXT_H_
2 #define DISPLAY_DS9_DS9CONTEXT_H_
21 std::vector<double>
doubletovec(
double x=1,
double y=1,
double z=1 );
25 typedef std::string
Tag;
52 return sf ==
FK4 ?
"FK4" :
55 sf ==
ECLIPTIC ?
"ECLIPTIC" :
"NATIVEWCS";
59 return cs ==
IMAGE ?
"IMAGE" :
63 cs ==
WCS ?
"WCS" : cs ==
WCSA ?
"WCSA" :
64 cs ==
WCSB ?
"WCSB" : cs ==
WCSC ?
"WCSC" :
65 cs ==
WCSD ?
"WCSD" : cs ==
WCSE ?
"WCSE" :
66 cs ==
WCSF ?
"WCSF" : cs ==
WCSG ?
"WCSG" :
67 cs ==
WCSH ?
"WCSH" : cs ==
WCSI ?
"WCSI" :
68 cs ==
WCSJ ?
"WCSJ" : cs ==
WCSK ?
"WCSK" :
69 cs ==
WCSL ?
"WCSL" : cs ==
WCSM ?
"WCSM" :
70 cs ==
WCSN ?
"WCSN" : cs ==
WCSO ?
"WCSO" :
71 cs ==
WCSP ?
"WCSP" : cs ==
WCSQ ?
"WCSQ" :
72 cs ==
WCSR ?
"WCSR" : cs ==
WCSS ?
"WCSS" :
73 cs ==
WCST ?
"WCST" : cs ==
WCSU ?
"WCSU" :
74 cs ==
WCSV ?
"WCSV" : cs ==
WCSW ?
"WCSW" :
75 cs ==
WCSX ?
"WCSX" : cs ==
WCSY ?
"WCSY" :
76 cs ==
WCSZ ?
"WCSZ" :
"WCS0";
80 return f ==
DEGREES ?
"DEGREES" :
82 f ==
ARCMIN ?
"ARCMIN" :
"ARCSEC";
108 const char* ,
unsigned short ,
const char* ,
109 const std::list<Tag>& ) { }
112 int ,
const char* ,
const char* ,
unsigned short ,
113 const char* ,
const std::list<Tag>& ) { }
115 int ,
const char* ,
const char* ,
unsigned short ,
116 const char* ,
const std::list<Tag>& ) { }
118 int ,
const char* ,
const char* ,
unsigned short ,
119 const char* ,
const std::list<Tag>& ) { }
121 int ,
const char* ,
const char* ,
unsigned short ,
122 const char* ,
const std::list<Tag>& ) { }
125 const char* ,
const char* ,
int* ,
int ,
126 const char* ,
const char* ,
unsigned short ,
127 const char* ,
const std::list<Tag>& ) { }
130 int ,
const char* ,
const char* ,
unsigned short ,
131 const char* ,
const std::list<Tag>& ) { }
133 const char* ,
const char* ,
int* ,
int ,
134 const char* ,
const char* ,
unsigned short ,
135 const char* ,
const std::list<Tag>& ) { }
137 const char* ,
int* ,
int ,
const char* ,
138 const char* ,
unsigned short ,
const char* ,
139 const std::list<Tag>& ) { }
141 int ,
const char* ,
const char* ,
unsigned short ,
142 const char* ,
const std::list<Tag>& ) { }
144 double ,
double ,
int ,
const char* ,
int* ,
145 int ,
const char* ,
const char* ,
unsigned short ,
146 const char* ,
const std::list<Tag>& ) { }
148 const char* ,
int* ,
int ,
const char* ,
149 const char* ,
unsigned short ,
const char* ,
150 const std::list<Tag>& ) { }
152 const Vector& ,
int ,
double ,
153 const char* ,
int* ,
int ,
const char* ,
154 const char* ,
unsigned short ,
const char* ,
155 const std::list<Tag>& ) { }
157 const char* ,
int* ,
int ,
const char* ,
158 const char* ,
unsigned short ,
const char* ,
159 const std::list<Tag>& ) { }
162 const char* ,
int* ,
int ,
const char* ,
163 const char* ,
unsigned short ,
const char* ,
164 const std::list<Tag>& ) { }
166 double ,
const char* ,
int* ,
int ,
const char* ,
167 const char* ,
unsigned short ,
const char* ,
168 const std::list<Tag>& ) { }
170 const char* ,
int* ,
int ,
const char* ,
171 const char* ,
unsigned short ,
172 const char* ,
const std::list<Tag>& ) { }
174 int ,
double ,
const char* ,
int* ,
175 int ,
const char* ,
const char* ,
unsigned short ,
176 const char* ,
const std::list<Tag>& ) { }
178 const char* ,
int* ,
int ,
const char* ,
179 const char* ,
unsigned short ,
const char* ,
180 const std::list<Tag>& ) { }
184 const char* ,
int* ,
int ,
const char* ,
185 const char* ,
unsigned short ,
const char* ,
186 const std::list<Tag>& ) { }
188 double ,
const char* ,
int* ,
int ,
189 const char* ,
const char* ,
unsigned short ,
190 const char* ,
const std::list<Tag>& ) { }
193 int ,
const char* ,
const char* ,
unsigned short ,
194 const char* ,
const std::list<Tag>& ) { }
199 const char* ,
int* ,
int ,
const char* ,
200 const char* ,
unsigned short ,
const char* ,
201 const std::list<Tag>& );
203 const char* ,
int* ,
int ,
const char* ,
204 const char* ,
unsigned short ,
const char* ,
205 const std::list<Tag>& );
207 int ,
const char* ,
const char* ,
unsigned short ,
208 const char* ,
const std::list<Tag>& );
210 int width,
const char* font,
const char* text,
unsigned short prop,
211 const char* comment,
const std::list<Tag>& tag );
213 int width,
const char* font,
const char* text,
unsigned short prop,
214 const char* comment,
const std::list<Tag>& tag );
217 int width,
const char* font,
const char* text,
unsigned short prop,
218 const char* comment,
const std::list<Tag>& tag );
220 int width,
const char* font,
const char* text,
unsigned short prop,
221 const char* comment,
const std::list<Tag>& tag );
223 int width,
const char* font,
const char* text,
unsigned short prop,
224 const char* comment,
const std::list<Tag>& tag );
226 int width,
const char* font,
const char* text,
unsigned short prop,
227 const char* comment,
const std::list<Tag>& tag );
229 int width,
const char* font,
const char* text,
unsigned short prop,
230 const char* comment,
const std::list<Tag>& tag );
232 int width,
const char* font,
const char* text,
unsigned short prop,
233 const char* comment,
const std::list<Tag>& tag );
235 int width,
const char* font,
const char* text,
unsigned short prop,
236 const char* comment,
const std::list<Tag>& tag );
void createEpandaCmd(const Vector &, int, double *, int, Vector *, double, const char *, int *, int, const char *, const char *, unsigned short, const char *, const std::list< Tag > &)
void createCircleCmd(const Vector &, double, const char *, int *, int, const char *, const char *, unsigned short, const char *, const std::list< Tag > &)
void createAnnulusCmd(const Vector &, int, double *, const char *, int *, int, const char *, const char *, unsigned short, const char *, const std::list< Tag > &)
void createBpandaCmd(const Vector &, int, double *, int, Vector *, double, const char *, int *, int, const char *, const char *, unsigned short, const char *, const std::list< Tag > &)
double parseSEXStr(const char *d)
double mapLenToRef(double d, CoordSystem sys, SkyFormat format=DEGREES)
from Base::findFits(globalTile)->mapLenToRef(...)
void createVectCmd(const Vector &, double, double, int, const char *, int *, int, const char *, const char *, unsigned short, const char *, const std::list< Tag > &)
std::vector< double > Vector
void createRulerCmd(const Vector &, const Vector &, CoordSystem, SkyFrame, CoordSystem, SkyFormat, const char *, int *, int, const char *, const char *, unsigned short, const char *, const std::list< Tag > &)
void createCirclePointCmd(const Vector ¢er, int size, const char *color, int *dash, int width, const char *font, const char *text, unsigned short prop, const char *comment, const std::list< Tag > &tag)
void createPolygonCmd(const Vector ¢er, const Vector &bb, const char *color, int *dash, int width, const char *font, const char *text, unsigned short prop, const char *comment, const std::list< Tag > &tag)
std::vector< double > Vertex
void createAnnulusCmd(const Vector &, double, double, int, const char *, int *, int, const char *, const char *, unsigned short, const char *, const std::list< Tag > &)
void createContourPolygonCmd(const char *, int *, int, const char *, const char *, unsigned short, const char *, const std::list< Tag > &)
double parseDMSStr(const char *str)
void createCrossPointCmd(const Vector ¢er, int size, const char *color, int *dash, int width, const char *font, const char *text, unsigned short prop, const char *comment, const std::list< Tag > &tag)
void resetCompositeMarker()
void createBoxAnnulusCmd(const Vector &, const Vector &, const Vector &, int, double, const char *, int *, int, const char *, const char *, unsigned short, const char *, const std::list< Tag > &)
void createBpandaCmd(const Vector &, double, double, int, const Vector &, const Vector &, int, double, const char *, int *, int, const char *, const char *, unsigned short, const char *, const std::list< Tag > &)
casacore::MDirection::Types todirection(SkyFrame frame)
RegionToolManager * toolmgr
void createLineCmd(const Vector &, const Vector &, int, int, const char *, int *, int, const char *, const char *, unsigned short, const char *, const std::list< Tag > &)
std::shared_ptr< RegionTool > tool(region::RegionTypes t)
void createEpandaCmd(const Vector &, double, double, int, const Vector &, const Vector &, int, double, const char *, int *, int, const char *, const char *, unsigned short, const char *, const std::list< Tag > &)
void createEllipseCmd(const Vector &, const Vector &, double, const char *, int *, int, const char *, const char *, unsigned short, const char *, const std::list< Tag > &)
void createCpandaCmd(const Vector &, double, double, int, double, double, int, const char *, int *, int, const char *, const char *, unsigned short, const char *, const std::list< Tag > &)
Types
Types of known MDirections Warning: The order defines the order in the translation matrix FromTo in ...
void createCompassCmd(const Vector &, double, const char *, const char *, int, int, CoordSystem, SkyFrame, const char *, int *, int, const char *, const char *, unsigned short, const char *, const std::list< Tag > &)
double mapAngleFromRef(double, CoordSystem, SkyFrame)
std::vector< double > doubletovec(double x=1, double y=1, double z=1)
std::vector< double > coordtovec(double *)
void createProjectionCmd(const Vector &, const Vector &, double, const char *, const char *, const char *, int *, int, const char *, const char *, unsigned short, const char *, const std::list< Tag > &)
void createArrowPointCmd(const Vector ¢er, int size, const char *color, int *dash, int width, const char *font, const char *text, unsigned short prop, const char *comment, const std::list< Tag > &tag)
void createBoxPointCmd(const Vector ¢er, int size, const char *color, int *dash, int width, const char *font, const char *text, unsigned short prop, const char *comment, const std::list< Tag > &tag)
void createBoxCirclePointCmd(const Vector ¢er, int size, const char *color, int *dash, int width, const char *font, const char *text, unsigned short prop, const char *comment, const std::list< Tag > &tag)
ds9context(WorldCanvas *wc, RegionToolManager *mgr)
void markerDeleteLastCmd()
double mapAngleToRef(double, CoordSystem, SkyFrame)
void createBoxAnnulusCmd(const Vector &, int, Vector *, double, const char *, int *, int, const char *, const char *, unsigned short, const char *, const std::list< Tag > &)
void createVectCmd(const Vector &, const Vector &, int, const char *, int *, int, const char *, const char *, unsigned short, const char *, const std::list< Tag > &)
void createExPointCmd(const Vector ¢er, int size, const char *color, int *dash, int width, const char *font, const char *text, unsigned short prop, const char *comment, const std::list< Tag > &tag)
Vector mapToRef(const Vector &v, CoordSystem sys, SkyFrame format=FK5)
from Base::findFits(globalTile)->mapToRef(...)
void createBoxCmd(const Vector &, const Vector &, double, const char *, int *, int, const char *, const char *, unsigned short, const char *, const std::list< Tag > &)
double parseHMSStr(const char *str)
void createCompositeCmd(const Vector &, double, int, const char *, int *, int, const char *, const char *, unsigned short, const char *, const std::list< Tag > &)
Implementation of drawing in world coordinates on top of a PixelCanvas.
void createCpandaCmd(const Vector &, int, double *, int, double *, const char *, int *, int, const char *, const char *, unsigned short, const char *, const std::list< Tag > &)
void createEllipseAnnulusCmd(const Vector &, const Vector &, const Vector &, int, double, const char *, int *, int, const char *, const char *, unsigned short, const char *, const std::list< Tag > &)
void createTextCmd(const Vector &, double, int, const char *, int *, int, const char *, const char *, unsigned short, const char *, const std::list< Tag > &)
void createCircle3dCmd(const Vector &, double, const char *, const char *, const char *, int *, int, const char *, const char *, unsigned short, const char *, const std::list< Tag > &)
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the color(i.e.,"000000"for black) and
void createDiamondPointCmd(const Vector ¢er, int size, const char *color, int *dash, int width, const char *font, const char *text, unsigned short prop, const char *comment, const std::list< Tag > &tag)
const char * tostr(SkyFrame sf)
void createEllipseAnnulusCmd(const Vector &, int, Vector *, double, const char *, int *, int, const char *, const char *, unsigned short, const char *, const std::list< Tag > &)