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

#include <LineBoxRegions.h>

Collaboration diagram for carta::LineBoxRegions:
[legend]

Public Member Functions

 LineBoxRegions ()=default
 
 ~LineBoxRegions ()=default
 
bool GetLineBoxRegions (const RegionState &line_region_state, std::shared_ptr< casacore::CoordinateSystem > line_coord_sys, int line_width, casacore::Quantity &region_increment, std::vector< RegionState > &region_states, std::string &message)
 

Private Member Functions

bool GetFixedPixelRegions (const RegionState &line_region_state, std::shared_ptr< casacore::CoordinateSystem > line_coord_sys, int line_width, double &increment, std::vector< RegionState > &region_states)
 
float GetLineRotation (const std::vector< double > &line_start, const std::vector< double > &line_end)
 
bool CheckLinearOffsets (const std::vector< std::vector< double > > &box_centers, std::shared_ptr< casacore::CoordinateSystem > csys, double &increment)
 
double GetPointSeparation (std::shared_ptr< casacore::CoordinateSystem > coord_sys, const std::vector< double > &point1, const std::vector< double > &point2)
 
double GetSeparationTolerance (std::shared_ptr< casacore::CoordinateSystem > csys)
 
bool GetFixedAngularRegions (const RegionState &line_region_state, std::shared_ptr< casacore::CoordinateSystem > line_coord_sys, int line_width, double &increment, std::vector< RegionState > &region_states, std::string &message)
 
std::vector< double > FindPointAtTargetSeparation (std::shared_ptr< casacore::CoordinateSystem > coord_sys, const std::vector< double > &start_point, const std::vector< double > &end_point, double target_separation, double tolerance)
 
RegionState GetPolygonRegionState (std::shared_ptr< casacore::CoordinateSystem > coord_sys, int file_id, const std::vector< double > &box_start, const std::vector< double > &box_end, int pixel_width, double angular_width, float line_rotation, double tolerance)
 
casacore::Quantity AdjustIncrementUnit (double offset_increment, size_t num_offsets)
 

Static Private Attributes

static std::mutex _mvdir_mutex
 

Constructor & Destructor Documentation

◆ LineBoxRegions()

carta::LineBoxRegions::LineBoxRegions ( )
default

◆ ~LineBoxRegions()

carta::LineBoxRegions::~LineBoxRegions ( )
default

Member Function Documentation

◆ AdjustIncrementUnit()

casacore::Quantity carta::LineBoxRegions::AdjustIncrementUnit ( double  offset_increment,
size_t  num_offsets 
)
private
Here is the caller graph for this function:

◆ CheckLinearOffsets()

bool carta::LineBoxRegions::CheckLinearOffsets ( const std::vector< std::vector< double > > &  box_centers,
std::shared_ptr< casacore::CoordinateSystem >  csys,
double &  increment 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ FindPointAtTargetSeparation()

std::vector< double > carta::LineBoxRegions::FindPointAtTargetSeparation ( std::shared_ptr< casacore::CoordinateSystem >  coord_sys,
const std::vector< double > &  start_point,
const std::vector< double > &  end_point,
double  target_separation,
double  tolerance 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetFixedAngularRegions()

bool carta::LineBoxRegions::GetFixedAngularRegions ( const RegionState line_region_state,
std::shared_ptr< casacore::CoordinateSystem >  line_coord_sys,
int  line_width,
double &  increment,
std::vector< RegionState > &  region_states,
std::string &  message 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetFixedPixelRegions()

bool carta::LineBoxRegions::GetFixedPixelRegions ( const RegionState line_region_state,
std::shared_ptr< casacore::CoordinateSystem >  line_coord_sys,
int  line_width,
double &  increment,
std::vector< RegionState > &  region_states 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetLineBoxRegions()

bool carta::LineBoxRegions::GetLineBoxRegions ( const RegionState line_region_state,
std::shared_ptr< casacore::CoordinateSystem >  line_coord_sys,
int  line_width,
casacore::Quantity &  region_increment,
std::vector< RegionState > &  region_states,
std::string &  message 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetLineRotation()

float carta::LineBoxRegions::GetLineRotation ( const std::vector< double > &  line_start,
const std::vector< double > &  line_end 
)
private
Here is the caller graph for this function:

◆ GetPointSeparation()

double carta::LineBoxRegions::GetPointSeparation ( std::shared_ptr< casacore::CoordinateSystem >  coord_sys,
const std::vector< double > &  point1,
const std::vector< double > &  point2 
)
private
Here is the caller graph for this function:

◆ GetPolygonRegionState()

RegionState carta::LineBoxRegions::GetPolygonRegionState ( std::shared_ptr< casacore::CoordinateSystem >  coord_sys,
int  file_id,
const std::vector< double > &  box_start,
const std::vector< double > &  box_end,
int  pixel_width,
double  angular_width,
float  line_rotation,
double  tolerance 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetSeparationTolerance()

double carta::LineBoxRegions::GetSeparationTolerance ( std::shared_ptr< casacore::CoordinateSystem >  csys)
private
Here is the caller graph for this function:

Member Data Documentation

◆ _mvdir_mutex

std::mutex carta::LineBoxRegions::_mvdir_mutex
inlinestaticprivate

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