|
lsst.afw
16.0-56-g615901931+1
|
Holds an integer identifier for an LSST filter. More...
#include <Filter.h>
Public Member Functions | |
| Filter (std::string const &name, bool const force=false) | |
| Creates a Filter with the given name. More... | |
| Filter (int id=UNKNOWN) | |
| Creates a Filter with the given identifier. More... | |
| Filter (std::shared_ptr< lsst::daf::base::PropertySet const > metadata, bool const force=false) | |
| Create a Filter from a PropertySet (e.g. More... | |
| Filter (Filter const &)=default | |
| Filter (Filter &&) noexcept=default | |
| Filter & | operator= (Filter const &)=default |
| Filter & | operator= (Filter &&) noexcept=default |
| ~Filter () noexcept=default | |
| bool | operator== (Filter const &rhs) const noexcept |
| Are two filters identical? More... | |
| bool | operator!= (Filter const &rhs) const noexcept |
| int | getId () const noexcept |
| Return a Filter's integral id. More... | |
| std::string const & | getName () const noexcept |
| Return a Filter's name. More... | |
| std::string const & | getCanonicalName () const |
| Return a filter's canonical name. More... | |
| std::vector< std::string > | getAliases () const |
| Return all aliases by which this filter is known. More... | |
| FilterProperty const & | getFilterProperty () const |
| Return a Filter's FilterProperty. More... | |
Static Public Member Functions | |
| static void | reset () |
| Clear all definitions. More... | |
| static int | define (FilterProperty const &filterProperty, int id=AUTO, bool force=false) |
| Define a filter name to have the specified id. More... | |
| static int | defineAlias (std::string const &oldName, std::string const &newName, bool force=false) |
| Define an alias for a filter. More... | |
| static std::vector< std::string > | getNames () |
| Return a list of known filters. More... | |
Static Public Attributes | |
| static int const | AUTO = -1 |
| static int const | UNKNOWN = -1 |
|
inlineexplicit |
|
inlineexplicit |
|
explicit |
|
default |
|
defaultnoexcept |
|
defaultnoexcept |
|
static |
Define a filter name to have the specified id.
If id == Filter::AUTO a value will be chosen for you.
It is an error to attempt to change a name's id (unless you specify force)
|
static |
| std::vector< std::string > lsst::afw::image::Filter::getAliases | ( | ) | const |
|
inline |
| FilterProperty const & lsst::afw::image::Filter::getFilterProperty | ( | ) | const |
Return a Filter's FilterProperty.
|
inlinenoexcept |
|
inlinenoexcept |
|
static |
|
inlinenoexcept |
|
noexcept |
|
inlinestatic |
1.8.13