lsst.gauss2d gbf99507273+afb4790f61
 
Loading...
Searching...
No Matches
lsst::gauss2d::CentroidValues Class Reference

A CentroidData storing centroid values as shared_ptrs. More...

#include <centroid.h>

Inheritance diagram for lsst::gauss2d::CentroidValues:
lsst::gauss2d::CentroidData lsst::gauss2d::Object

Public Member Functions

double get_x () const override
 Get the x value.
 
std::array< double, 2 > get_xy () const override
 Get the x and y values.
 
double get_y () const override
 Get the y value.
 
void set_x (double x) override
 
void set_xy (const std::array< double, 2 > &xy) override
 
void set_y (double y) override
 
std::string repr (bool name_keywords, std::string_view namespace_separator) const override
 
std::string str () const override
 Return a brief, human-readable string representation of this.
 
bool operator== (const CentroidValues &other) const
 
bool operator!= (const CentroidValues &other) const
 
 CentroidValues (std::shared_ptr< double > x, std::shared_ptr< double > y)
 Construct a new Centroid Values object.
 
 CentroidValues (double x=0, double y=0)
 
- Public Member Functions inherited from lsst::gauss2d::CentroidData
bool operator== (const CentroidData &other) const
 

Additional Inherited Members

- Static Public Member Functions inherited from lsst::gauss2d::Object
static std::string_view null_str (const std::string_view &namespace_separator)
 
- Static Public Attributes inherited from lsst::gauss2d::Object
static constexpr std::string_view CC_NAMESPACE_SEPARATOR = "::"
 The C++ namespace separator.
 
static constexpr std::string_view NULL_STR_GENERAL = "None"
 
static constexpr std::string_view PY_NAMESPACE_SEPARATOR = "."
 

Detailed Description

A CentroidData storing centroid values as shared_ptrs.

This implementation stores values in shared_ptrs, allowing sharing of values with other instances.

Constructor & Destructor Documentation

◆ CentroidValues()

lsst::gauss2d::CentroidValues::CentroidValues ( std::shared_ptr< double > x,
std::shared_ptr< double > y )

Construct a new Centroid Values object.

Parameters
xThe x-axis centroid value
yThe y-axis centroid value

Member Function Documentation

◆ get_x()

double lsst::gauss2d::CentroidValues::get_x ( ) const
overridevirtual

Get the x value.

Implements lsst::gauss2d::CentroidData.

◆ get_xy()

std::array< double, 2 > lsst::gauss2d::CentroidValues::get_xy ( ) const
overridevirtual

Get the x and y values.

Implements lsst::gauss2d::CentroidData.

◆ get_y()

double lsst::gauss2d::CentroidValues::get_y ( ) const
overridevirtual

Get the y value.

Implements lsst::gauss2d::CentroidData.

◆ repr()

std::string lsst::gauss2d::CentroidValues::repr ( bool name_keywords,
std::string_view namespace_separator ) const
overridevirtual

Return a full, callable string representation of this.

Parameters
name_keywordsWhether to prefix arguments with "{name}=", where name is the arg name in the header (as with keyword arguments in Python).
namespace_separatorThe string to use to delimit namespaces, i.e. :: in C++ and . in Python.
Returns
A callable string representation of this, which should return an an identical object to this.
Note
The representation with name_keywords=false must be callable in C++. The representation with name_keywords=true should be callable in Python, if there are any bindings.

Implements lsst::gauss2d::CentroidData.

◆ set_x()

void lsst::gauss2d::CentroidValues::set_x ( double x)
overridevirtual

◆ set_xy()

void lsst::gauss2d::CentroidValues::set_xy ( const std::array< double, 2 > & xy)
overridevirtual

◆ set_y()

void lsst::gauss2d::CentroidValues::set_y ( double y)
overridevirtual

◆ str()

std::string lsst::gauss2d::CentroidValues::str ( ) const
overridevirtual

Return a brief, human-readable string representation of this.

Implements lsst::gauss2d::CentroidData.


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