A CentroidData storing centroid values as shared_ptrs.
More...
#include <centroid.h>
|
| 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) |
| |
|
bool | operator== (const CentroidData &other) const |
| |
|
|
static std::string_view | null_str (const std::string_view &namespace_separator) |
| |
|
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 = "." |
| |
A CentroidData storing centroid values as shared_ptrs.
This implementation stores values in shared_ptrs, allowing sharing of values with other instances.
◆ CentroidValues()
| lsst::gauss2d::CentroidValues::CentroidValues |
( |
std::shared_ptr< double > | x, |
|
|
std::shared_ptr< double > | y ) |
Construct a new Centroid Values object.
- Parameters
-
| x | The x-axis centroid value |
| y | The y-axis centroid value |
◆ get_x()
| double lsst::gauss2d::CentroidValues::get_x |
( |
| ) |
const |
|
overridevirtual |
◆ get_xy()
| std::array< double, 2 > lsst::gauss2d::CentroidValues::get_xy |
( |
| ) |
const |
|
overridevirtual |
◆ get_y()
| double lsst::gauss2d::CentroidValues::get_y |
( |
| ) |
const |
|
overridevirtual |
◆ 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_keywords | Whether to prefix arguments with "{name}=", where name is the arg name in the header (as with keyword arguments in Python). |
| namespace_separator | The 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 |
The documentation for this class was generated from the following files: