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

#include <PvPreviewCube.h>

Collaboration diagram for carta::PvPreviewCube:
[legend]

Public Member Functions

 PvPreviewCube (const PreviewCubeParameters &parameters)
 
 ~PvPreviewCube ()=default
 
PreviewCubeParameters parameters ()
 
bool HasSameParameters (const PreviewCubeParameters &parameters)
 
bool HasFileId (int file_id)
 
int GetStokes ()
 
void SetSourceFileName (const std::string &name)
 
std::string GetSourceFileName ()
 
void SetPreviewRegionOrigin (const casacore::IPosition &origin)
 
std::shared_ptr< casacore::ImageInterface< float > > GetPreviewImage (GeneratorProgressCallback progress_callback, bool &cancel, std::string &message)
 
std::shared_ptr< casacore::ImageInterface< float > > GetPreviewImage (casacore::SubImage< float > &sub_image, GeneratorProgressCallback progress_callback, bool &cancel, std::string &message)
 
bool CubeLoaded ()
 
RegionState GetPvCutRegion (const RegionState &source_region_state, int preview_frame_id)
 
bool GetRegionProfile (const casacore::Slicer &region_bounding_box, const casacore::ArrayLattice< casacore::Bool > &mask, GeneratorProgressCallback progress_callback, std::vector< float > &profile, double &num_pixels, std::string &message)
 
void StopCube ()
 

Private Member Functions

bool DoRebin ()
 
void LoadCubeData (GeneratorProgressCallback progress_callback, bool &cancel)
 

Private Attributes

PreviewCubeParameters _cube_parameters
 
std::string _source_filename
 
casacore::IPosition _origin
 
std::shared_ptr< casacore::ImageInterface< float > > _preview_image
 
casacore::SubImage< float > _preview_subimage
 
casacore::Array< float > _cube_data
 
bool _stop_cube
 
std::string _cancel_message
 

Constructor & Destructor Documentation

◆ PvPreviewCube()

carta::PvPreviewCube::PvPreviewCube ( const PreviewCubeParameters parameters)

◆ ~PvPreviewCube()

carta::PvPreviewCube::~PvPreviewCube ( )
default

Member Function Documentation

◆ CubeLoaded()

bool carta::PvPreviewCube::CubeLoaded ( )
Here is the caller graph for this function:

◆ DoRebin()

bool carta::PvPreviewCube::DoRebin ( )
private
Here is the caller graph for this function:

◆ GetPreviewImage() [1/2]

std::shared_ptr< casacore::ImageInterface< float > > carta::PvPreviewCube::GetPreviewImage ( casacore::SubImage< float > &  sub_image,
GeneratorProgressCallback  progress_callback,
bool &  cancel,
std::string &  message 
)
Here is the call graph for this function:

◆ GetPreviewImage() [2/2]

std::shared_ptr< casacore::ImageInterface< float > > carta::PvPreviewCube::GetPreviewImage ( GeneratorProgressCallback  progress_callback,
bool &  cancel,
std::string &  message 
)
Here is the call graph for this function:

◆ GetPvCutRegion()

RegionState carta::PvPreviewCube::GetPvCutRegion ( const RegionState source_region_state,
int  preview_frame_id 
)

◆ GetRegionProfile()

bool carta::PvPreviewCube::GetRegionProfile ( const casacore::Slicer &  region_bounding_box,
const casacore::ArrayLattice< casacore::Bool > &  mask,
GeneratorProgressCallback  progress_callback,
std::vector< float > &  profile,
double &  num_pixels,
std::string &  message 
)
Here is the call graph for this function:

◆ GetSourceFileName()

std::string carta::PvPreviewCube::GetSourceFileName ( )

◆ GetStokes()

int carta::PvPreviewCube::GetStokes ( )

◆ HasFileId()

bool carta::PvPreviewCube::HasFileId ( int  file_id)

◆ HasSameParameters()

bool carta::PvPreviewCube::HasSameParameters ( const PreviewCubeParameters parameters)
Here is the call graph for this function:

◆ LoadCubeData()

void carta::PvPreviewCube::LoadCubeData ( GeneratorProgressCallback  progress_callback,
bool &  cancel 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parameters()

PreviewCubeParameters carta::PvPreviewCube::parameters ( )
Here is the caller graph for this function:

◆ SetPreviewRegionOrigin()

void carta::PvPreviewCube::SetPreviewRegionOrigin ( const casacore::IPosition &  origin)

◆ SetSourceFileName()

void carta::PvPreviewCube::SetSourceFileName ( const std::string &  name)

◆ StopCube()

void carta::PvPreviewCube::StopCube ( )

Member Data Documentation

◆ _cancel_message

std::string carta::PvPreviewCube::_cancel_message
private

◆ _cube_data

casacore::Array<float> carta::PvPreviewCube::_cube_data
private

◆ _cube_parameters

PreviewCubeParameters carta::PvPreviewCube::_cube_parameters
private

◆ _origin

casacore::IPosition carta::PvPreviewCube::_origin
private

◆ _preview_image

std::shared_ptr<casacore::ImageInterface<float> > carta::PvPreviewCube::_preview_image
private

◆ _preview_subimage

casacore::SubImage<float> carta::PvPreviewCube::_preview_subimage
private

◆ _source_filename

std::string carta::PvPreviewCube::_source_filename
private

◆ _stop_cube

bool carta::PvPreviewCube::_stop_cube
private

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