| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
PgSAdapter
A base class for objects adapting pgSphere objects. The all need a pgType attribute and two static methods _adaptToPgSphere(obj) and _castFromPgSphere(value, cursor). You must also define a sequence checkedAttributes; all attributes metioned there must be equal for two adapted values to be equal (equality testing here really is mainly for unit tests with hand-crafted values). Also, all subclasses you should provide an asPoly returning a spherical polygon. This is used when uploading VOTables with REGION columns. In practice, you also want: fromDALI(cls, daliSeq) -- a classmethod turning the DALI votable representation (typically, float arrays in degrees) into a corresponding object. asDALI(self) -- the inverse of fromDALI asSODA(self) -- returns a representation of the geometry as used in SODA parameters.
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
| Class Variables | |
pgType = Nonehash(x) |
|
| Properties | |
|
Inherited from |
| Method Details |
repr(x)
|
returns the "SODA-form" for this circle. This is a string containing blank-separated float literals; the floats are what asDALI returns, and hence this is built on top of asDALI. We don't worry about the fact that the coordinates just *might* be non-ICRS. |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu May 2 07:29:09 2019 | http://epydoc.sourceforge.net |