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)) {
94 os <<
"this is a " <<
getClassName() <<
", which is not a SphMap";
SphMap(std::string const &options="")
Construct a SphMap.
AstObject const * getRawPtr() const
Get the raw AST pointer.
AST wrapper classes and functions.
std::string getClassName() const
Get Class: the name of the class (e.g.
std::shared_ptr< SphMap > copy() const
Return a deep copy of this object.
void assertOK(AstObject *rawPtr1=nullptr, AstObject *rawPtr2=nullptr)
Throw std::runtime_error if AST's state is bad.
double getPolarLong() const
Get PolarLong: the longitude value to assign to either pole (radians).
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?
bool getB(std::string const &attrib) const
Get the value of an attribute as a bool.
T static_pointer_cast(T... args)
SphMap(AstSphMap *rawptr)
Construct a SphMap from a raw AST pointer.
SphMap & operator=(SphMap const &)=delete
A SphMap is a Mapping which transforms points from a 3-dimensional Cartesian coordinate system into a...
double getD(std::string const &attrib) const
Get the value of an attribute as a double.
Abstract base class for all AST objects.
virtual std::shared_ptr< Object > copyPolymorphic() const override
Return a deep copy of this object.