CARTA Backend
The backend component of CARTA
Loading...
Searching...
No Matches
carta::PvGenerator Class Reference

#include <PvGenerator.h>

Collaboration diagram for carta::PvGenerator:
[legend]

Public Types

enum  PositionAxisType { OFFSET , DISTANCE }
 

Public Member Functions

 PvGenerator ()
 
 ~PvGenerator ()=default
 
void SetFileName (int index, const std::string &filename, bool is_preview=false)
 
bool GetPvImage (const std::shared_ptr< Frame > &frame, const casacore::Matrix< float > &pv_data, casacore::IPosition &pv_shape, PositionAxisType axis_type, const casacore::Quantity &position_increment, int start_chan, int stokes, bool reverse, GeneratedImage &pv_image, std::string &message)
 

Private Member Functions

void SetPvImageName (const std::string &filename, int index, bool is_preview)
 
std::shared_ptr< casacore::ImageInterface< casacore::Float > > SetupPvImage (const std::shared_ptr< casacore::ImageInterface< float > > &input_image, const std::shared_ptr< casacore::CoordinateSystem > &input_csys, casacore::IPosition &pv_shape, const std::string &position_name, const casacore::Quantity &position_increment, double position_refval, double position_refpix, double spectral_refval, int stokes, bool reverse, std::string &message)
 
casacore::CoordinateSystem GetPvCoordinateSystem (const std::shared_ptr< casacore::CoordinateSystem > &input_csys, casacore::IPosition &pv_shape, const std::string &position_name, const casacore::Quantity &position_increment, double position_refval, double position_refpix, double spectral_refval, int stokes, bool reverse)
 

Private Attributes

int _file_id
 
std::string _name
 

Member Enumeration Documentation

◆ PositionAxisType

Enumerator
OFFSET 
DISTANCE 

Constructor & Destructor Documentation

◆ PvGenerator()

PvGenerator::PvGenerator ( )

◆ ~PvGenerator()

carta::PvGenerator::~PvGenerator ( )
default

Member Function Documentation

◆ GetPvCoordinateSystem()

casacore::CoordinateSystem PvGenerator::GetPvCoordinateSystem ( const std::shared_ptr< casacore::CoordinateSystem > &  input_csys,
casacore::IPosition &  pv_shape,
const std::string &  position_name,
const casacore::Quantity &  position_increment,
double  position_refval,
double  position_refpix,
double  spectral_refval,
int  stokes,
bool  reverse 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetPvImage()

bool PvGenerator::GetPvImage ( const std::shared_ptr< Frame > &  frame,
const casacore::Matrix< float > &  pv_data,
casacore::IPosition &  pv_shape,
PositionAxisType  axis_type,
const casacore::Quantity &  position_increment,
int  start_chan,
int  stokes,
bool  reverse,
GeneratedImage pv_image,
std::string &  message 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetFileName()

void PvGenerator::SetFileName ( int  index,
const std::string &  filename,
bool  is_preview = false 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetPvImageName()

void PvGenerator::SetPvImageName ( const std::string &  filename,
int  index,
bool  is_preview 
)
private
Here is the caller graph for this function:

◆ SetupPvImage()

std::shared_ptr< casacore::ImageInterface< casacore::Float > > PvGenerator::SetupPvImage ( const std::shared_ptr< casacore::ImageInterface< float > > &  input_image,
const std::shared_ptr< casacore::CoordinateSystem > &  input_csys,
casacore::IPosition &  pv_shape,
const std::string &  position_name,
const casacore::Quantity &  position_increment,
double  position_refval,
double  position_refpix,
double  spectral_refval,
int  stokes,
bool  reverse,
std::string &  message 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _file_id

int carta::PvGenerator::_file_id
private

◆ _name

std::string carta::PvGenerator::_name
private

The documentation for this class was generated from the following files: