22 #ifndef ASTSHIM_SPHMAP_H 23 #define ASTSHIM_SPHMAP_H 63 explicit SphMap(std::string
const &options =
"")
64 :
Mapping(reinterpret_cast<AstMapping *>(astSphMap(
"%s", options.c_str()))) {}
85 return copyImpl<SphMap, AstSphMap>();
89 explicit SphMap(AstSphMap *rawptr) :
Mapping(reinterpret_cast<AstMapping *>(rawptr)) {
91 std::ostringstream os;
92 os <<
"this is a " <<
getClassName() <<
", which is not a SphMap";
93 throw std::invalid_argument(os.str());
SphMap(std::string const &options="")
Definition: SphMap.h:63
AstObject const * getRawPtr() const
Definition: Object.h:291
AST wrapper classes and functions.
Definition: attributes_channel.dox:1
std::string getClassName() const
Definition: Object.h:138
std::shared_ptr< SphMap > copy() const
Return a deep copy of this object.
Definition: SphMap.h:75
double getPolarLong() const
Get PolarLong: the longitude value to assign to either pole (radians).
Definition: SphMap.h:81
bool getUnitRadius() const
Get UnitRadius: input vectors lie on a unit sphere?
Definition: SphMap.h:78
bool getB(std::string const &attrib) const
Definition: Object.h:347
virtual ~SphMap()
Definition: SphMap.h:66
SphMap(AstSphMap *rawptr)
Construct a SphMap from a raw AST pointer.
Definition: SphMap.h:89
SphMap & operator=(SphMap const &)=delete
double getD(std::string const &attrib) const
Definition: Object.h:373
virtual std::shared_ptr< Object > copyPolymorphic() const override
Definition: SphMap.h:84