lsst.afw  14.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
lsst::afw::cameraGeom::CameraSys Class Reference

Camera coordinate system; used as a key in in TransformMap. More...

#include <CameraSys.h>

Public Member Functions

 CameraSys (std::string const &sysName, std::string const &detectorName="")
 Construct a CameraSys from a sysName and a detectorName. More...
 
 CameraSys (CameraSysPrefix const &sysPrefix, std::string const &detectorName="")
 Construct a CameraSys from a CameraSysPrefix and a detectorName. More...
 
 CameraSys ()
 default constructor so SWIG can wrap a vector of pairs containing these More...
 
std::string getSysName () const
 Get coordinate system name. More...
 
std::string getDetectorName () const
 Get detector name, or "" if not a detector-specific coordinate system. More...
 
bool hasDetectorName () const
 Does this have a non-blank detector name? More...
 
bool operator== (CameraSys const &rhs) const
 
bool operator!= (CameraSys const &rhs) const
 
bool operator< (CameraSys const &rhs) const
 

Detailed Description

Camera coordinate system; used as a key in in TransformMap.

Note
When TransformMap switches to using unordered_map, a good way to compute the hash is: size_t hash = 0; boost::hash_combine(hash, cameraSys.getSysName()); boost::hash_combine(hash, cameraSys.getDetectorName()); return hash;

Definition at line 74 of file CameraSys.h.

Constructor & Destructor Documentation

lsst::afw::cameraGeom::CameraSys::CameraSys ( std::string const &  sysName,
std::string const &  detectorName = "" 
)
inlineexplicit

Construct a CameraSys from a sysName and a detectorName.

Parameters
sysNamecoordinate system name
detectorNamedetector name

Definition at line 79 of file CameraSys.h.

lsst::afw::cameraGeom::CameraSys::CameraSys ( CameraSysPrefix const &  sysPrefix,
std::string const &  detectorName = "" 
)
inlineexplicit

Construct a CameraSys from a CameraSysPrefix and a detectorName.

Parameters
sysPrefixcoordinate system prefix
detectorNamedetector name

Definition at line 87 of file CameraSys.h.

lsst::afw::cameraGeom::CameraSys::CameraSys ( )
inline

default constructor so SWIG can wrap a vector of pairs containing these

Definition at line 93 of file CameraSys.h.

Member Function Documentation

std::string lsst::afw::cameraGeom::CameraSys::getDetectorName ( ) const
inline

Get detector name, or "" if not a detector-specific coordinate system.

Definition at line 103 of file CameraSys.h.

std::string lsst::afw::cameraGeom::CameraSys::getSysName ( ) const
inline

Get coordinate system name.

Definition at line 98 of file CameraSys.h.

bool lsst::afw::cameraGeom::CameraSys::hasDetectorName ( ) const
inline

Does this have a non-blank detector name?

Definition at line 108 of file CameraSys.h.

bool lsst::afw::cameraGeom::CameraSys::operator!= ( CameraSys const &  rhs) const
inline

Definition at line 114 of file CameraSys.h.

bool lsst::afw::cameraGeom::CameraSys::operator< ( CameraSys const &  rhs) const
inline

Definition at line 117 of file CameraSys.h.

bool lsst::afw::cameraGeom::CameraSys::operator== ( CameraSys const &  rhs) const
inline

Definition at line 110 of file CameraSys.h.


The documentation for this class was generated from the following file: