lsst.astshim  master-gd1207e8857
 All Classes Namespaces Functions Variables Typedefs Enumerations Pages
Public Member Functions | Protected Member Functions | Friends | List of all members
ast::SphMap Class Reference

#include <SphMap.h>

Inheritance diagram for ast::SphMap:
ast::Mapping ast::Object

Public Member Functions

 SphMap (std::string const &options="")
 
 SphMap (SphMap const &)=delete
 
 SphMap (SphMap &&)=default
 
SphMap & operator= (SphMap const &)=delete
 
SphMap & operator= (SphMap &&)=default
 
std::shared_ptr< SphMap > copy () const
 Return a deep copy of this object.
 
bool getUnitRadius () const
 Get UnitRadius: input vectors lie on a unit sphere?
 
double getPolarLong () const
 Get PolarLong: the longitude value to assign to either pole (radians).
 
- Public Member Functions inherited from ast::Mapping
 Mapping (Mapping const &)=delete
 
 Mapping (Mapping &&)=default
 
Mapping & operator= (Mapping const &)=delete
 
Mapping & operator= (Mapping &&)=default
 
std::shared_ptr< Mapping > copy () const
 Return a deep copy of this object.
 
int getNin () const
 
int getNout () const
 
bool getIsSimple () const
 
bool isInverted () const
 
bool getIsLinear () const
 
bool getReport () const
 
bool hasForward () const
 
bool hasInverse () const
 
std::shared_ptr< Mapping > getInverse () const
 
Array2D linearApprox (PointD const &lbnd, PointD const &ubnd, double tol) const
 
SeriesMap of (Mapping const &first) const
 
ParallelMap over (Mapping const &first) const
 
double rate (PointD const &at, int ax1, int ax2) const
 
void setReport (bool report)
 
std::shared_ptr< Mapping > simplify () const
 
void tranForward (ConstArray2D const &from, Array2D const &to) const
 
Array2D tranForward (ConstArray2D const &from) const
 
std::vector< double > tranForward (std::vector< double > const &from) const
 
void tranInverse (ConstArray2D const &from, Array2D const &to) const
 
Array2D tranInverse (ConstArray2D const &from) const
 
std::vector< double > tranInverse (std::vector< double > const &from) const
 
void tranGridForward (PointI const &lbnd, PointI const &ubnd, double tol, int maxpix, Array2D const &to) const
 
Array2D tranGridForward (PointI const &lbnd, PointI const &ubnd, double tol, int maxpix, int nPts) const
 
void tranGridInverse (PointI const &lbnd, PointI const &ubnd, double tol, int maxpix, Array2D const &to) const
 
Array2D tranGridInverse (PointI const &lbnd, PointI const &ubnd, double tol, int maxpix, int nPts) const
 
- Public Member Functions inherited from ast::Object
 Object (Object const &)=delete
 
 Object (Object &&)=default
 
Object & operator= (Object const &)=delete
 
Object & operator= (Object &&)=default
 
std::shared_ptr< Object > copy () const
 Return a deep copy of this object.
 
void clear (std::string const &attrib)
 
bool hasAttribute (std::string const &attrib) const
 
std::string getClass () const
 
std::string getID () const
 Get ID: object identification string that is not copied.
 
std::string getIdent () const
 Get Ident: object identification string that is copied.
 
int getNobject () const
 Get Nobject: number of Objects in class.
 
int getObjSize () const
 Get ObjSize: the in-memory size of the Object in bytes.
 
int getRefCount () const
 Get RefCount: count of active Object pointers.
 
bool getUseDefs () const
 Get UseDefs: allow use of default values for Object attributes?
 
void lock (bool wait)
 
bool same (Object const &other) const
 
void setID (std::string const &id)
 Set ID: object identification string that is not copied.
 
void setIdent (std::string const &ident)
 Set Ident: object identification string that is copied.
 
void setUseDefs (bool usedefs)
 Set UseDefs: allow use of default values for Object attributes?
 
void show (std::ostream &os) const
 
std::string show () const
 
bool test (std::string const &attrib)
 
void unlock (bool report=false)
 
AstObject const * getRawPtr () const
 
AstObject * getRawPtr ()
 

Protected Member Functions

virtual std::shared_ptr< Object > _copyPolymorphic () const override
 
 SphMap (AstSphMap *rawptr)
 Construct a SphMap from a raw AST pointer.
 
- Protected Member Functions inherited from ast::Mapping
 Mapping (AstMapping *rawMap)
 
template<typename Class >
std::shared_ptr< Class > _decompose (int i, bool copy) const
 
- Protected Member Functions inherited from ast::Object
 Object (AstObject *object)
 
template<typename T , typename AstT >
std::shared_ptr< T > _copyImpl () const
 
bool getB (std::string const &attrib) const
 
std::string const getC (std::string const &attrib) const
 
double getD (std::string const &attrib) const
 
float getF (std::string const &attrib) const
 
int getI (std::string const &attrib) const
 
long int getL (std::string const &attrib) const
 
void set (std::string const &setting)
 
void setB (std::string const &attrib, bool value)
 
void setC (std::string const &attrib, std::string const &value)
 
void setD (std::string const &attrib, double value)
 
void setF (std::string const &attrib, float value)
 
void setI (std::string const &attrib, int value)
 
void setL (std::string const &attrib, long int value)
 

Friends

class Object
 

Additional Inherited Members

- Public Types inherited from ast::Object
using ObjectPtr = std::unique_ptr< AstObject, Deleter >
 unique pointer holding an AST raw pointer
 
- Static Public Member Functions inherited from ast::Object
static std::shared_ptr< Object > fromString (std::string const &str)
 
template<typename Class >
static std::shared_ptr< Class > fromAstObject (AstObject *rawObj, bool copy)
 
- Static Protected Member Functions inherited from ast::Object
static std::shared_ptr< Object > _basicFromAstObject (AstObject *rawObj)
 
template<typename ShimT , typename AstT >
static std::shared_ptr< ShimT > makeShim (AstObject *p)
 

Detailed Description

A SphMap is a Mapping which transforms points from a 3-dimensional Cartesian coordinate system into a 2-dimensional spherical coordinate system (longitude and latitude on a unit sphere centred at the origin). It works by regarding the input coordinates as position vectors and finding their intersection with the sphere surface. The inverse transformation always produces points which are a unit distance from the origin (i.e. unit vectors).

Attributes

Notes

Constructor & Destructor Documentation

ast::SphMap::SphMap ( std::string const &  options = "")
inlineexplicit

Construct a SphMap

Parameters
[in]optionsComma-separated list of attribute assignments.

Member Function Documentation

virtual std::shared_ptr<Object> ast::SphMap::_copyPolymorphic ( ) const
inlineoverrideprotectedvirtual

Return a deep copy of this object. This is called by copy.

Each subclass must override this method. The standard implementation is: ``` return _copyImpl<astshim_class, ast_class>(); ``` for example Frame implements this as: ``` return _copyImpl<Frame, AstFrame>(); ```

Reimplemented from ast::Mapping.


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