CARTA Backend
The backend component of CARTA
Loading...
Searching...
No Matches
RegionImportExportUtil.h File Reference
#include <casacore/coordinates/Coordinates/CoordinateSystem.h>
#include <carta-protobuf/enums.pb.h>
Include dependency graph for RegionImportExportUtil.h:
This graph shows which files directly or indirectly include this file:

Namespaces

namespace  carta
 

Functions

std::unordered_map< CARTA::RegionType, std::string > carta::GetRegionTypeNames (CARTA::FileType region_file_type)
 Return map from CARTA region type to string for region file type.
 
std::string carta::GetImageDirectionFrame (std::shared_ptr< casacore::CoordinateSystem > coord_sys)
 Return name of coordinate frame from coordinate system direction coordinate, if any.
 
bool carta::ConvertPointToPixels (std::shared_ptr< casacore::CoordinateSystem > coord_sys, std::string &region_frame, std::vector< casacore::Quantity > &point, casacore::Vector< casacore::Double > &pixel_coords)
 Convert point control points in world coordinates to pixel coordinates in region frame.
 
std::string carta::FormatColor (const std::string &color)
 Format input color string as expected for import or export.
 

Variables

static std::unordered_map< CARTA::TextAnnotationPosition, std::string > carta::text_positions
 Map from CARTA text position to string.
 
static std::unordered_map< CARTA::RegionType, std::string > carta::region_names
 Map from CARTA region type to string, common to all region file types.