lsst.astshim
20.0.0-4-g45278ab+d529cf1a41
|
Go to the documentation of this file.
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()))) {
87 return copyImpl<SphMap, AstSphMap>();
91 explicit SphMap(AstSphMap *rawptr) :
Mapping(reinterpret_cast<AstMapping *>(rawptr)) {
93 std::ostringstream os;
94 os <<
"this is a " <<
getClassName() <<
", which is not a SphMap";
95 throw std::invalid_argument(os.str());
bool getB(std::string const &attrib) const
Definition: Object.h:348
SphMap(std::string const &options="")
Definition: SphMap.h:63
virtual ~SphMap()
Definition: SphMap.h:68
void assertOK(AstObject *rawPtr1=nullptr, AstObject *rawPtr2=nullptr)
Definition: base.cc:49
bool getUnitRadius() const
Get UnitRadius: input vectors lie on a unit sphere?
Definition: SphMap.h:80
double getPolarLong() const
Get PolarLong: the longitude value to assign to either pole (radians).
Definition: SphMap.h:83
std::string getClassName() const
Definition: Object.h:139
SphMap(SphMap const &)=default
Copy constructor: make a deep copy.
SphMap & operator=(SphMap &&)=default
SphMap(SphMap &&)=default
SphMap & operator=(SphMap const &)=delete
AST wrapper classes and functions.
Definition: attributes_channel.dox:1
double getD(std::string const &attrib) const
Definition: Object.h:374
AstObject const * getRawPtr() const
Definition: Object.h:292
SphMap(AstSphMap *rawptr)
Construct a SphMap from a raw AST pointer.
Definition: SphMap.h:91
std::shared_ptr< SphMap > copy() const
Return a deep copy of this object.
Definition: SphMap.h:77
virtual std::shared_ptr< Object > copyPolymorphic() const override
Definition: SphMap.h:86