Package gavo :: Package stc :: Module dm :: Class _Geometry
[hide private]
[frames] | no frames]

Class _Geometry

source code

             object --+            
                      |            
utils.autonode.AutoNode --+        
                          |        
             common.ASTNode --+    
                              |    
                _CoordinateLike --+
                                  |
                                 _Geometry
Known Subclasses:

A base class for all kinds of geometries.

Geometries may have "dependent" quantities like radii, sizes, etc. For those, the convention is that if they are 1D, they must be expressed in the first component of the position units, otherwise (in particular, for box size) in the full unit of the position. This has to be made sure by the client.

To make this work, Geometries are unit adapted on STC adoption. Since their dependents need to be adapted as well, they have to define adaptDependents(...) methods. They take the units for all dependent quantities (which may all be None). This is used in stxast.

Also getTransformed usually needs to be overridden for these.

Geometries may contain two sorts of column references; ordinary ones are just stand-ins of actual values, while GeometryColRefs describe the whole thing in a database column.

Nested Classes [hide private]
  cType

Inherited from utils.autonode.AutoNode: __metaclass__

Instance Methods [hide private]
 
getValues(self) source code
 
__init__(self, fillFactor=None, frame=None, geoColRef=None, id=None, name=None, origUnit=None, size=None, ucd=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code

Inherited from _CoordinateLike: getPosition

Inherited from common.ASTNode: __eq__, __hash__, __ne__, ensureId

Inherited from utils.autonode.AutoNode: __repr__, change, iterAttributes, iterChildren, iterNodeChildren, iterNodes

Inherited from object: __delattr__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Class Methods [hide private]

Inherited from utils.autonode.AutoNode: cloneFrom

Class Variables [hide private]
  _a_size = None
  _a_fillFactor = None
  _a_origUnit = None
  _a_geoColRef = None
  _nodeAttrs = [('fillFactor', None), ('frame', None), ('geoColR...

Inherited from _CoordinateLike (private): _a_frame, _a_name

Inherited from common.ASTNode: inexactAttrs

Inherited from common.ASTNode (private): _a_id, _a_ucd

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, fillFactor=None, frame=None, geoColRef=None, id=None, name=None, origUnit=None, size=None, ucd=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

Class Variable Details [hide private]

_nodeAttrs

Value:
[('fillFactor', None),
 ('frame', None),
 ('geoColRef', None),
 ('id', None),
 ('name', None),
 ('origUnit', None),
 ('size', None),
 ('ucd', None)]