#include <casa/iomanip.h>
#include <casa/Exceptions.h>
#include <measures/Measures/MDirection.h>
#include <measures/Measures/MFrequency.h>
#include <measures/Measures/MeasTable.h>
#include <casa/Logging/LogOrigin.h>
#include <casa/Logging/LogIO.h>
#include <casa/iostream.h>
#include <casa/System/Aipsrc.h>
#include <casa/Utilities/Regex.h>
#include <display/Display/WorldCanvas.h>
#include <coordinates/Coordinates/CoordinateUtil.h>
#include <coordinates/Coordinates/DirectionCoordinate.h>
#include <coordinates/Coordinates/SpectralCoordinate.h>
#include <display/DisplayCanvas/WCCSAxisLabeller.h>
using namespace casacore;
const String WCCSAxisLabeller::FRAME_REST = "REST";
WCCSAxisLabeller::WCCSAxisLabeller() :
itsWorldAxisLabels(true),
itsSpecAxisType(WCCSAxisLabeller::VELO),
itsHasCoordinateSystem(false),
itsSpectralPrecision(-1),
itsSpectralQuantity("radio velocity"),
itsSpectralTypeUnit("radio velocity [km/s]"),
itsDirectionUnit("arcsec"),
itsDirectionSystem("J2000"),
itsFrequencySystem("LSRK"),
Aipsrc::find(worldorpix,"display.axislabels.world","on");
!worldorpix.matches(Regex("[ \t]*(([nN]o)|([oO]ff)|([fF](alse)*))[ \t\n]*"));
WCCSAxisLabeller::~WCCSAxisLabeller() {
void WCCSAxisLabeller::setCoordinateSystem(const DisplayCoordinateSystem& cSys) {
itsCoordinateSystem = cSys;
itsHasCoordinateSystem = true;
void WCCSAxisLabeller::setDefaultOptions() {
WCAxisLabeller::setDefaultOptions();