|
lsst.afw
14.0-25-g0e8fc950e+5
|
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 >, bool const force=false) | |
| Create a Filter from a PropertySet (e.g. More... | |
| bool | operator== (Filter const &rhs) const |
| Are two filters identical? More... | |
| bool | operator!= (Filter const &rhs) const |
| int | getId () const |
| Return a Filter's integral id. More... | |
| std::string const & | getName () const |
| 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 |
|
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.
|
inline |
|
inline |
|
static |
|
inline |
| bool lsst::afw::image::Filter::operator== | ( | Filter const & | rhs | ) | const |
|
inlinestatic |
1.8.13