LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
22 #ifndef ASTSHIM_TIMEFRAME_H
23 #define ASTSHIM_TIMEFRAME_H
90 :
Frame(reinterpret_cast<AstFrame *>(astTimeFrame(
"%s", options.c_str()))) {
155 return copyImpl<TimeFrame, AstTimeFrame>();
159 explicit TimeFrame(AstTimeFrame *rawptr) :
Frame(reinterpret_cast<AstFrame *>(rawptr)) {
162 os <<
"this is a " <<
getClassName() <<
", which is not a TimeFrame";
void setD(std::string const &attrib, double value)
Set the value of an attribute as a double.
TimeFrame(TimeFrame &&)=default
void setAlignTimeScale(std::string const &scale)
Set AlignTimeScale: time scale in which to align TimeFrames.
void assertOK(AstObject *rawPtr1=nullptr, AstObject *rawPtr2=nullptr)
Throw std::runtime_error if AST's state is bad.
double currentTime() const
Get the current system time.
Abstract base class for all AST objects.
void setTimeOrigin(double origin)
Set TimeOrigin: the zero point for TimeFrame axis values.
TimeFrame & operator=(TimeFrame &&)=default
void setTimeScale(std::string const &scale)
Set TimeScale: the timescale used by the TimeFrame.
std::string getClassName() const
Get Class: the name of the class (e.g.
Frame is used to represent a coordinate system.
std::shared_ptr< TimeFrame > copy() const
Return a deep copy of this object.
PointD offset(PointD point1, PointD point2, double offset) const
Find the point which is offset a specified distance along the geodesic curve between two other points...
TimeFrame & operator=(TimeFrame const &)=delete
double getLTOffset() const
Get LTOffset: the offset of Local Time from UTC, in hours.
double getTimeOrigin() const
Get TimeOrigin: the zero point for TimeFrame axis values.
TimeFrame(std::string const &options="")
Construct a TimeFrame.
TimeFrame(AstTimeFrame *rawptr)
Construct a TimeFrame from a raw AST pointer.
virtual std::shared_ptr< Object > copyPolymorphic() const override
Return a deep copy of this object.
double safeDouble(double val)
Return a double value after checking status and replacing AST__BAD with nan
AST wrapper classes and functions.
double getD(std::string const &attrib) const
Get the value of an attribute as a double.
void setC(std::string const &attrib, std::string const &value)
Set the value of an attribute as a string.
void setLTOffset(double offset)
Set LTOffset: the offset of Local Time from UTC, in hours.
A TimeFrame is a specialised form of one-dimensional Frame which represents various coordinate system...
TimeFrame(TimeFrame const &)=default
Copy constructor: make a deep copy.
std::string const getC(std::string const &attrib) const
Get the value of an attribute as a string.
def scale(algorithm, min, max=None, frame=None)
std::string getAlignTimeScale() const
Get AlignTimeScale: time scale in which to align TimeFrames.
AstObject const * getRawPtr() const
Get the raw AST pointer.
std::string getTimeScale() const
Get TimeScale: the timescale used by the TimeFrame.