SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SourceXtractor::MoffatCriteria Class Reference

Groups sources if their Moffat profile overlap. More...

#include <MoffatCriteria.h>

Inheritance diagram for SourceXtractor::MoffatCriteria:
Collaboration diagram for SourceXtractor::MoffatCriteria:

Public Member Functions

 MoffatCriteria (double threshold, double max_distance)
virtual ~MoffatCriteria ()
bool shouldGroup (const SourceInterface &, const SourceInterface &) const override
 Determines if the two sources should be grouped together.
std::set< PropertyIdrequiredProperties () const override
 Return a set of used properties so they can be pre-fetched.
Public Member Functions inherited from SourceXtractor::GroupingCriteria
virtual ~GroupingCriteria ()=default
 Destructor.

Private Member Functions

bool doesImpact (const SourceInterface &impactor, const SourceInterface &impactee) const

Private Attributes

double m_threshold
double m_max_distance

Detailed Description

Groups sources if their Moffat profile overlap.

Definition at line 39 of file MoffatCriteria.h.

Constructor & Destructor Documentation

◆ MoffatCriteria()

SourceXtractor::MoffatCriteria::MoffatCriteria ( double threshold,
double max_distance )
inline

Definition at line 42 of file MoffatCriteria.h.

References m_max_distance, and m_threshold.

◆ ~MoffatCriteria()

virtual SourceXtractor::MoffatCriteria::~MoffatCriteria ( )
inlinevirtual

Definition at line 43 of file MoffatCriteria.h.

Member Function Documentation

◆ doesImpact()

bool SourceXtractor::MoffatCriteria::doesImpact ( const SourceInterface & impactor,
const SourceInterface & impactee ) const
private

◆ requiredProperties()

std::set< PropertyId > SourceXtractor::MoffatCriteria::requiredProperties ( ) const
overridevirtual

Return a set of used properties so they can be pre-fetched.

Reimplemented from SourceXtractor::GroupingCriteria.

Definition at line 61 of file MoffatCriteria.cpp.

References SourceXtractor::PropertyId::create().

Here is the call graph for this function:

◆ shouldGroup()

bool SourceXtractor::MoffatCriteria::shouldGroup ( const SourceInterface & first,
const SourceInterface & second ) const
overridevirtual

Determines if the two sources should be grouped together.

Implements SourceXtractor::GroupingCriteria.

Definition at line 57 of file MoffatCriteria.cpp.

References doesImpact().

Here is the call graph for this function:

Member Data Documentation

◆ m_max_distance

double SourceXtractor::MoffatCriteria::m_max_distance
private

Definition at line 53 of file MoffatCriteria.h.

Referenced by doesImpact(), and MoffatCriteria().

◆ m_threshold

double SourceXtractor::MoffatCriteria::m_threshold
private

Definition at line 52 of file MoffatCriteria.h.

Referenced by doesImpact(), and MoffatCriteria().


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