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

#include <VectorField.h>

Collaboration diagram for carta::VectorField:
[legend]

Classes

struct  CalcFpi
 
struct  CalcPa
 
struct  CalcPi
 
struct  ThresholdCut
 
struct  Valid
 

Public Member Functions

 VectorField ()
 
bool SetParameters (const CARTA::SetVectorOverlayParameters &message, int stokes_axis)
 
bool ClearParameters (const std::function< void(CARTA::VectorOverlayTileData &)> &callback, int z_index)
 
void CalculatePiPa (std::unordered_map< std::string, std::vector< float > > &stokes_data, std::unordered_map< std::string, bool > &stokes_flag, const Tile &tile, int width, int height, int z_index, double progress, const std::function< void(CARTA::VectorOverlayTileData &)> &callback)
 
int Mip () const
 
bool Fractional () const
 
float Threshold () const
 
bool CalculatePi () const
 
bool CalculatePa () const
 
bool CurrStokesAsPi () const
 
bool CurrStokesAsPa () const
 

Protected Member Functions

void ClearSettings ()
 
bool IsEqual (const CARTA::SetVectorOverlayParameters &message)
 
void RenewParameters (const CARTA::SetVectorOverlayParameters &message, int stokes_axis)
 
void FillTileData (CARTA::TileData *tile, int32_t x, int32_t y, int32_t layer, int32_t mip, int32_t tile_width, int32_t tile_height, std::vector< float > &array, CARTA::CompressionType compression_type, float compression_quality)
 

Protected Attributes

int _file_id
 
int _smoothing_factor
 
bool _fractional
 
double _threshold
 
bool _debiasing
 
double _q_error
 
double _u_error
 
int _stokes_intensity
 
int _stokes_angle
 
CARTA::CompressionType _compression_type
 
float _compression_quality
 
bool _calculate_pi
 
bool _calculate_pa
 
bool _current_stokes_as_pi
 
bool _current_stokes_as_pa
 

Constructor & Destructor Documentation

◆ VectorField()

carta::VectorField::VectorField ( )
Here is the call graph for this function:

Member Function Documentation

◆ CalculatePa()

bool carta::VectorField::CalculatePa ( ) const
inline
Here is the caller graph for this function:

◆ CalculatePi()

bool carta::VectorField::CalculatePi ( ) const
inline
Here is the caller graph for this function:

◆ CalculatePiPa()

void carta::VectorField::CalculatePiPa ( std::unordered_map< std::string, std::vector< float > > &  stokes_data,
std::unordered_map< std::string, bool > &  stokes_flag,
const Tile tile,
int  width,
int  height,
int  z_index,
double  progress,
const std::function< void(CARTA::VectorOverlayTileData &)> &  callback 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ClearParameters()

bool carta::VectorField::ClearParameters ( const std::function< void(CARTA::VectorOverlayTileData &)> &  callback,
int  z_index 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ClearSettings()

void carta::VectorField::ClearSettings ( )
protected
Here is the caller graph for this function:

◆ CurrStokesAsPa()

bool carta::VectorField::CurrStokesAsPa ( ) const
inline
Here is the caller graph for this function:

◆ CurrStokesAsPi()

bool carta::VectorField::CurrStokesAsPi ( ) const
inline
Here is the caller graph for this function:

◆ FillTileData()

void carta::VectorField::FillTileData ( CARTA::TileData *  tile,
int32_t  x,
int32_t  y,
int32_t  layer,
int32_t  mip,
int32_t  tile_width,
int32_t  tile_height,
std::vector< float > &  array,
CARTA::CompressionType  compression_type,
float  compression_quality 
)
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Fractional()

bool carta::VectorField::Fractional ( ) const
inline
Here is the caller graph for this function:

◆ IsEqual()

bool carta::VectorField::IsEqual ( const CARTA::SetVectorOverlayParameters &  message)
protected
Here is the caller graph for this function:

◆ Mip()

int carta::VectorField::Mip ( ) const
inline
Here is the caller graph for this function:

◆ RenewParameters()

void carta::VectorField::RenewParameters ( const CARTA::SetVectorOverlayParameters &  message,
int  stokes_axis 
)
protected
Here is the caller graph for this function:

◆ SetParameters()

bool carta::VectorField::SetParameters ( const CARTA::SetVectorOverlayParameters &  message,
int  stokes_axis 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Threshold()

float carta::VectorField::Threshold ( ) const
inline
Here is the caller graph for this function:

Member Data Documentation

◆ _calculate_pa

bool carta::VectorField::_calculate_pa
protected

◆ _calculate_pi

bool carta::VectorField::_calculate_pi
protected

◆ _compression_quality

float carta::VectorField::_compression_quality
protected

◆ _compression_type

CARTA::CompressionType carta::VectorField::_compression_type
protected

◆ _current_stokes_as_pa

bool carta::VectorField::_current_stokes_as_pa
protected

◆ _current_stokes_as_pi

bool carta::VectorField::_current_stokes_as_pi
protected

◆ _debiasing

bool carta::VectorField::_debiasing
protected

◆ _file_id

int carta::VectorField::_file_id
protected

◆ _fractional

bool carta::VectorField::_fractional
protected

◆ _q_error

double carta::VectorField::_q_error
protected

◆ _smoothing_factor

int carta::VectorField::_smoothing_factor
protected

◆ _stokes_angle

int carta::VectorField::_stokes_angle
protected

◆ _stokes_intensity

int carta::VectorField::_stokes_intensity
protected

◆ _threshold

double carta::VectorField::_threshold
protected

◆ _u_error

double carta::VectorField::_u_error
protected

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