LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
22 #ifndef ASTSHIM_SPHMAP_H
23 #define ASTSHIM_SPHMAP_H
64 :
Mapping(reinterpret_cast<AstMapping *>(astSphMap(
"%s", options.c_str()))) {
87 return copyImpl<SphMap, AstSphMap>();
91 explicit SphMap(AstSphMap *rawptr) :
Mapping(reinterpret_cast<AstMapping *>(rawptr)) {
bool getB(std::string const &attrib) const
Get the value of an attribute as a bool.
SphMap(std::string const &options="")
Construct a SphMap.
void assertOK(AstObject *rawPtr1=nullptr, AstObject *rawPtr2=nullptr)
Throw std::runtime_error if AST's state is bad.
An abstract base class for objects which transform one set of coordinates to another.
bool getUnitRadius() const
Get UnitRadius: input vectors lie on a unit sphere?
Abstract base class for all AST objects.
double getPolarLong() const
Get PolarLong: the longitude value to assign to either pole (radians).
std::string getClassName() const
Get Class: the name of the class (e.g.
SphMap(SphMap const &)=default
Copy constructor: make a deep copy.
SphMap & operator=(SphMap &&)=default
SphMap(SphMap &&)=default
A SphMap is a Mapping which transforms points from a 3-dimensional Cartesian coordinate system into a...
SphMap & operator=(SphMap const &)=delete
AST wrapper classes and functions.
double getD(std::string const &attrib) const
Get the value of an attribute as a double.
AstObject const * getRawPtr() const
Get the raw AST pointer.
SphMap(AstSphMap *rawptr)
Construct a SphMap from a raw AST pointer.
std::shared_ptr< SphMap > copy() const
Return a deep copy of this object.
virtual std::shared_ptr< Object > copyPolymorphic() const override
Return a deep copy of this object.