Holds an integer identifier for an LSST filter.
More...
#include <Filter.h>
|
| 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 int const | AUTO = -1 |
| |
| static int const | UNKNOWN = -1 |
| |
Holds an integer identifier for an LSST filter.
Definition at line 134 of file Filter.h.
◆ Filter() [1/3]
| lsst::afw::image::Filter::Filter |
( |
std::string const & |
name, |
|
|
bool const |
force = false |
|
) |
| |
|
inlineexplicit |
Creates a Filter with the given name.
- Parameters
-
| name | Name of filter |
| force | Allow us to construct an unknown Filter |
Definition at line 142 of file Filter.h.
◆ Filter() [2/3]
| lsst::afw::image::Filter::Filter |
( |
int |
id = UNKNOWN | ) |
|
|
inlineexplicit |
Creates a Filter with the given identifier.
- Parameters
-
| id | Id number of desired filter |
Definition at line 149 of file Filter.h.
◆ Filter() [3/3]
Create a Filter from a PropertySet (e.g.
a FITS header)
- Parameters
-
| metadata | Metadata to process (e.g. a IFITS header) |
| force | Allow us to construct an unknown Filter |
Definition at line 113 of file Filter.cc.
◆ define()
| int lsst::afw::image::Filter::define |
( |
FilterProperty const & |
filterProperty, |
|
|
int |
id = AUTO, |
|
|
bool |
force = false |
|
) |
| |
|
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)
Definition at line 189 of file Filter.cc.
◆ defineAlias()
| int lsst::afw::image::Filter::defineAlias |
( |
std::string const & |
oldName, |
|
|
std::string const & |
newName, |
|
|
bool |
force = false |
|
) |
| |
|
static |
Define an alias for a filter.
- Parameters
-
| oldName | old name for Filter |
| newName | new name for Filter |
| force | force an alias even if newName is already in use |
Definition at line 222 of file Filter.cc.
◆ getAliases()
| std::vector< std::string > lsst::afw::image::Filter::getAliases |
( |
| ) |
const |
Return all aliases by which this filter is known.
The list excludes the canonical name
Definition at line 137 of file Filter.cc.
◆ getCanonicalName()
| std::string const& lsst::afw::image::Filter::getCanonicalName |
( |
| ) |
const |
|
inline |
Return a filter's canonical name.
I.e. if this filter's an alias, return the name of the aliased Filter
Definition at line 179 of file Filter.h.
◆ getFilterProperty()
| FilterProperty const & lsst::afw::image::Filter::getFilterProperty |
( |
| ) |
const |
◆ getId()
| int lsst::afw::image::Filter::getId |
( |
| ) |
const |
|
inline |
◆ getName()
| std::string const& lsst::afw::image::Filter::getName |
( |
| ) |
const |
|
inline |
◆ getNames()
| std::vector< std::string > lsst::afw::image::Filter::getNames |
( |
| ) |
|
|
static |
Return a list of known filters.
Definition at line 150 of file Filter.cc.
◆ operator!=()
| bool lsst::afw::image::Filter::operator!= |
( |
Filter const & |
rhs | ) |
const |
|
inline |
◆ operator==()
| bool lsst::afw::image::Filter::operator== |
( |
Filter const & |
rhs | ) |
const |
Are two filters identical?
Definition at line 167 of file Filter.cc.
◆ reset()
| static void lsst::afw::image::Filter::reset |
( |
| ) |
|
|
inlinestatic |
Clear all definitions.
Definition at line 194 of file Filter.h.
◆ AUTO
| int const lsst::afw::image::Filter::AUTO = -1 |
|
static |
◆ UNKNOWN
| int const lsst::afw::image::Filter::UNKNOWN = -1 |
|
static |
The documentation for this class was generated from the following files: