Interface for an object storing Centroid data. More...
#include <centroid.h>
Public Member Functions | |
| virtual double | get_x () const =0 |
| Get the x value. | |
| virtual std::array< double, 2 > | get_xy () const =0 |
| Get the x and y values. | |
| virtual double | get_y () const =0 |
| Get the y value. | |
| virtual void | set_x (double x)=0 |
| virtual void | set_xy (const std::array< double, 2 > &xy)=0 |
| virtual void | set_y (double y)=0 |
| bool | operator== (const CentroidData &other) const |
| virtual std::string | repr (bool name_keywords=false, std::string_view namespace_separator=Object::CC_NAMESPACE_SEPARATOR) const override=0 |
| virtual std::string | str () const override=0 |
| Return a brief, human-readable string representation of this. | |
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 = "." |
Interface for an object storing Centroid data.
This is an abstract class designed to store data for a Centroid to retrieve. No additional restrictions are placed on implementations.
|
pure virtual |
Get the x value.
Implemented in lsst::gauss2d::CentroidValues.
|
pure virtual |
Get the x and y values.
Implemented in lsst::gauss2d::CentroidValues.
|
pure virtual |
Get the y value.
Implemented in lsst::gauss2d::CentroidValues.
|
overridepure virtual |
Return a full, callable string representation of this.
| 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. |
Implements lsst::gauss2d::Object.
Implemented in lsst::gauss2d::CentroidValues.
|
overridepure virtual |
Return a brief, human-readable string representation of this.
Implements lsst::gauss2d::Object.
Implemented in lsst::gauss2d::CentroidValues.