|
| FrameDict (Frame const &frame, std::string const &options="") |
|
| FrameDict (Frame const &baseFrame, Mapping const &mapping, Frame const ¤tFrame, std::string const &options="") |
|
| FrameDict (FrameSet const &frameSet) |
|
| FrameDict (FrameDict const &)=delete |
|
| FrameDict (FrameDict &&)=default |
|
FrameDict & | operator= (FrameDict const &)=delete |
|
FrameDict & | operator= (FrameDict &&)=default |
|
std::shared_ptr< FrameDict > | copy () const |
| Return a deep copy of this object.
|
|
void | addFrame (int iframe, Mapping const &map, Frame const &frame) override |
|
void | addFrame (std::string const &domain, Mapping const &map, Frame const &frame) |
|
std::set< std::string > | getAllDomains () const |
|
std::shared_ptr< Frame > | getFrame (std::string const &domain, bool copy=true) const |
|
std::shared_ptr< Mapping > | getMapping (int from, std::string const &to) const |
|
std::shared_ptr< Mapping > | getMapping (std::string const &from, int to) const |
|
std::shared_ptr< Mapping > | getMapping (std::string const &from, std::string const &to) const |
|
int | getIndex (std::string const &domain) const |
|
bool | hasDomain (std::string const &domain) const |
|
void | mirrorVariants (std::string const &domain) |
|
void | remapFrame (std::string const &domain, Mapping &map) |
|
void | removeFrame (int iframe) override |
|
void | removeFrame (std::string const &domain) |
|
void | setBase (std::string const &domain) |
|
void | setCurrent (std::string const &domain) |
|
void | setDomain (std::string const &domain) override |
|
| FrameSet (Frame const &frame, std::string const &options="") |
|
| FrameSet (Frame const &baseFrame, Mapping const &mapping, Frame const ¤tFrame, std::string const &options="") |
|
| FrameSet (FrameSet const &)=delete |
|
| FrameSet (FrameSet &&)=default |
|
FrameSet & | operator= (FrameSet const &)=delete |
|
FrameSet & | operator= (FrameSet &&)=default |
|
std::shared_ptr< FrameSet > | copy () const |
| Return a deep copy of this object.
|
|
void | addAxes (Frame const &frame) |
|
void | addVariant (Mapping const &map, std::string const &name) |
|
std::string | getAllVariants () const |
|
int | getBase () const |
|
int | getCurrent () const |
|
std::shared_ptr< Frame > | getFrame (int iframe, bool copy=true) const |
|
std::shared_ptr< Mapping > | getMapping (int from=BASE, int to=CURRENT) const |
|
int | getNFrame () const |
|
std::string | getVariant () const |
|
void | mirrorVariants (int iframe) |
|
void | remapFrame (int iframe, Mapping &map) |
|
void | renameVariant (std::string const &name) |
|
void | setBase (int ind) |
|
void | setCurrent (int ind) |
|
| Frame (int naxes, std::string const &options="") |
|
| Frame (Frame const &)=delete |
|
| Frame (Frame &&)=default |
|
Frame & | operator= (Frame const &)=delete |
|
Frame & | operator= (Frame &&)=default |
|
std::shared_ptr< Frame > | copy () const |
| Return a deep copy of this object.
|
|
double | angle (PointD const &a, PointD const &b, PointD const &c) const |
|
double | axAngle (PointD const &a, PointD const &b, int axis) const |
|
double | axDistance (int axis, double v1, double v2) const |
|
double | axOffset (int axis, double v1, double dist) const |
|
std::shared_ptr< FrameSet > | convert (Frame const &to, std::string const &domainlist="") |
|
double | distance (PointD const &point1, PointD const &point2) const |
|
std::shared_ptr< FrameSet > | findFrame (Frame const &tmplt, std::string const &domainlist="") |
|
std::string | format (int axis, double value) const |
|
bool | getActiveUnit () const |
|
std::string | getAlignSystem () const |
|
double | getBottom (int axis) const |
|
int | getDigits () const |
|
int | getDigits (int axis) const |
|
bool | getDirection (int axis) const |
|
std::string | getDomain () const |
|
double | getDut1 () const |
|
double | getEpoch () const |
|
std::string | getFormat (int axis) const |
|
std::string | getInternalUnit (int axis) const |
|
std::string | getLabel (int axis) const |
|
bool | getMatchEnd () const |
|
int | getMaxAxes () const |
|
int | getMinAxes () const |
|
int | getNAxes () const |
|
std::string | getNormUnit (int axis) const |
|
double | getObsAlt () const |
|
std::string | getObsLat () const |
|
std::string | getObsLon () const |
|
bool | getPermute () const |
|
bool | getPreserveAxes () const |
|
std::string | getSymbol (int axis) const |
|
std::string | getSystem () const |
|
std::string | getTitle () const |
|
double | getTop (int axis) const |
|
std::string | getUnit (int axis) const |
|
std::vector< double > | intersect (std::vector< double > const &a1, std::vector< double > const &a2, std::vector< double > const &b1, std::vector< double > const &b2) const |
|
std::vector< int > | matchAxes (Frame const &other) const |
|
CmpFrame | under (Frame const &next) const |
|
PointD | norm (PointD value) const |
|
PointD | offset (PointD point1, PointD point2, double offset) const |
|
DirectionPoint | offset2 (PointD const &point1, double angle, double offset) const |
|
void | permAxes (std::vector< int > perm) |
|
FrameMapping | pickAxes (std::vector< int > const &axes) const |
|
ResolvedPoint | resolve (std::vector< double > const &point1, std::vector< double > const &point2, std::vector< double > const &point3) const |
|
void | setAlignSystem (std::string const &system) |
|
void | setBottom (int axis, double bottom) |
|
void | setDigits (int digits) |
|
void | setDigits (int axis, int digits) |
|
void | setDirection (bool direction, int axis) |
|
void | setDut1 (double dut1) |
|
void | setEpoch (double epoch) |
|
void | setEpoch (std::string const &epoch) |
|
void | setFormat (int axis, std::string const &format) |
|
void | setLabel (int axis, std::string const &label) |
|
void | setMatchEnd (bool match) |
|
void | setMaxAxes (int maxAxes) |
|
void | setMinAxes (int minAxes) |
|
void | setObsAlt (double alt) |
|
void | setObsLat (std::string const &lat) |
|
void | setObsLon (std::string const &lon) |
|
void | setActiveUnit (bool enable) |
|
void | setPermute (bool permute) |
|
void | setPreserveAxes (bool preserve) |
|
void | setSymbol (int axis, std::string const &symbol) |
|
void | setSystem (std::string const &system) |
|
void | setTitle (std::string const &title) |
|
void | setTop (int axis, double top) |
|
void | setUnit (int axis, std::string const &unit) |
|
NReadValue | unformat (int axis, std::string const &str) const |
|
| Mapping (Mapping const &)=delete |
|
| Mapping (Mapping &&)=default |
|
Mapping & | operator= (Mapping const &)=delete |
|
Mapping & | operator= (Mapping &&)=default |
|
std::shared_ptr< Mapping > | copy () const |
| Return a deep copy of this object.
|
|
int | getNIn () const |
|
int | getNOut () const |
|
bool | getIsSimple () const |
|
bool | isInverted () const |
|
bool | getIsLinear () const |
|
bool | getReport () const |
|
bool | hasForward () const |
|
bool | hasInverse () const |
|
std::shared_ptr< Mapping > | getInverse () const |
|
Array2D | linearApprox (PointD const &lbnd, PointD const &ubnd, double tol) const |
|
SeriesMap | then (Mapping const &next) const |
|
ParallelMap | under (Mapping const &next) const |
|
double | rate (PointD const &at, int ax1, int ax2) const |
|
void | setReport (bool report) |
|
std::shared_ptr< Mapping > | simplify () const |
|
void | applyForward (ConstArray2D const &from, Array2D const &to) const |
|
Array2D | applyForward (ConstArray2D const &from) const |
|
std::vector< double > | applyForward (std::vector< double > const &from) const |
|
void | applyInverse (ConstArray2D const &from, Array2D const &to) const |
|
Array2D | applyInverse (ConstArray2D const &from) const |
|
std::vector< double > | applyInverse (std::vector< double > const &from) const |
|
void | tranGridForward (PointI const &lbnd, PointI const &ubnd, double tol, int maxpix, Array2D const &to) const |
|
Array2D | tranGridForward (PointI const &lbnd, PointI const &ubnd, double tol, int maxpix, int nPts) const |
|
void | tranGridInverse (PointI const &lbnd, PointI const &ubnd, double tol, int maxpix, Array2D const &to) const |
|
Array2D | tranGridInverse (PointI const &lbnd, PointI const &ubnd, double tol, int maxpix, int nPts) const |
|
| Object (Object const &)=delete |
|
| Object (Object &&)=default |
|
Object & | operator= (Object const &)=delete |
|
Object & | operator= (Object &&)=default |
|
bool | operator== (Object const &rhs) const |
|
bool | operator!= (Object const &rhs) const |
|
std::shared_ptr< Object > | copy () const |
| Return a deep copy of this object.
|
|
void | clear (std::string const &attrib) |
|
bool | hasAttribute (std::string const &attrib) const |
|
std::string | getClassName () const |
|
std::string | getID () const |
| Get ID: object identification string that is not copied.
|
|
std::string | getIdent () const |
| Get Ident: object identification string that is copied.
|
|
int | getNObject () const |
|
int | getObjSize () const |
| Get ObjSize: the in-memory size of the AST object in bytes.
|
|
int | getRefCount () const |
|
bool | getUseDefs () const |
| Get UseDefs: allow use of default values for Object attributes?
|
|
void | lock (bool wait) |
|
bool | same (Object const &other) const |
|
void | setID (std::string const &id) |
| Set ID: object identification string that is not copied.
|
|
void | setIdent (std::string const &ident) |
| Set Ident: object identification string that is copied.
|
|
void | setUseDefs (bool usedefs) |
| Set UseDefs: allow use of default values for Object attributes?
|
|
void | show (std::ostream &os, bool showComments=true) const |
|
std::string | show (bool showComments=true) const |
|
bool | test (std::string const &attrib) const |
|
void | unlock (bool report=false) |
|
AstObject const * | getRawPtr () const |
|
AstObject * | getRawPtr () |
|
A FrameSet whose frames can be referenced by domain name.
For every FrameSet method that takes a frame index, the same method in FrameDict may take a (case blind) domain name or a frame index.
This has several useful applications:
- Locate a frame without changing the FrameSet (findFrame is not a const method).
- Locate a frame or mapping in a way that is unaffected by deleting frames (indices change, domain names do not).
All contained Frames with explicitly set, non-empty domains must have unique domains (where the comparison ignores case). Use FrameSet if you want a collection of Frames that may have matching domains.
- Warning
- FrameDict.getClassName returns "FrameSet". This is because FrameDict has no direct AST equivalent; it is merely a convenience wrapper around FrameSet.
- Note
- AST casts all Frame domains to uppercase. This is why domain comparison and domain lookup are case blind.
- Some AST frame classes have default domain names, e.g. SkyFrame defaults to "SKY". Such default names are ignored in order to reduce the chance of accidental collisions.
Attributes
All those of FrameSet.