22 #ifndef ASTSHIM_ZOOMMAP_H 23 #define ASTSHIM_ZOOMMAP_H 62 :
Mapping(reinterpret_cast<AstMapping *>(astZoomMap(ncoord, zoom,
"%s",
options.c_str()))) {
82 return copyImpl<ZoomMap, AstZoomMap>();
86 explicit ZoomMap(AstZoomMap *rawptr) :
Mapping(reinterpret_cast<AstMapping *>(rawptr)) {
89 os <<
"this is a " <<
getClassName() <<
", which is not a ZoomMap";
virtual std::shared_ptr< Object > copyPolymorphic() const override
Return a deep copy of this object.
AstObject const * getRawPtr() const
Get the raw AST pointer.
double getZoom() const
Get Zoom: scale factor.
AST wrapper classes and functions.
std::string getClassName() const
Get Class: the name of the class (e.g.
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.
def zoom(zoomfac=None, colc=None, rowc=None, frame=None, origin=afwImage.PARENT)
std::shared_ptr< ZoomMap > copy() const
Return a deep copy of this object.
T static_pointer_cast(T... args)
ZoomMap(int ncoord, double zoom, std::string const &options="")
Create a ZoomMap.
float getF(std::string const &attrib) const
Get the value of an attribute as a float.
A Mapping which "zooms" a set of points about the origin by multiplying all coordinate values by the ...
Abstract base class for all AST objects.
ZoomMap & operator=(ZoomMap const &)=delete
ZoomMap(AstZoomMap *rawptr)
Construct a ZoomMap from a raw AST pointer.