Package gavo :: Package utils :: Module pgsphere :: Class SCircle
[frames] | no frames]

Class SCircle

source code

object --+    
         |    
PgSAdapter --+
             |
            SCircle

A spherical circle from pgSphere.

The constructor accepts an SPoint center and a radius in rad.

Instance Methods
 
__init__(self, center, radius)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
asDALI(self)
returns the "DALI-form" for this circle.
source code
 
asSTCS(self, systemString) source code
 
asPgSphere(self) source code
 
asPoly(self, nSegments=32) source code

Inherited from PgSAdapter: __eq__, __ne__, __repr__, asSODA

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods
 
fromDALI(cls, daliSeq)
returns a circle from its DALI float sequence.
source code
Class Variables
  pgType = 'scircle'
hash(x)
  checkedAttributes = ['center', 'radius']
  pattern = re.compile(r'<(\([^\)]*\))\s*,\s*([0-9\.e-]+)>')
Properties

Inherited from object: __class__

Method Details

__init__(self, center, radius)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

asDALI(self)

source code 

returns the "DALI-form" for this circle.

This is an array containing the center coordinates and the radius in degrees.

fromDALI(cls, daliSeq)
Class Method

source code 

returns a circle from its DALI float sequence.

Any None in daliSeq makes this a None to help with VOTable null value handling.

asPoly(self, nSegments=32)

source code 
Overrides: PgSAdapter.asPoly