Package esys :: Package lsm :: Package geometry :: Module GeometryPy :: Class SimpleSphereCollection
[hide private]
[frames] | no frames]

Class SimpleSphereCollection

 object --+    
          |    
??.instance --+
              |
             SimpleSphereCollection
Known Subclasses:

A collection of SimpleSphere objects.

Instance Methods [hide private]
 
__getstate__(...)
 
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature
SimpleSphereCollectionIterator
__iter__(...)
Returns an iterator for enumerating spheres in this collection.
int
__len__(...)
Returns number of spheres in this collection.
 
__reduce__(...)
helper for pickle
 
__setstate__(...)
SimpleSphere
create(...)
Creates a sphere in this collection, lifetime of sphere is tied to this collection.
esys.lsm.util.BoundingBox
getBBox(...)
Returns the axis aligned bounding box which contains all spheres in this collection.
int
getNumSpheres(...)
Returns the number of spheres in this collection.
 
rotate(...)
Rotates all spheres in this collection about a specifed axis of rotation which passes through a specified point.
 
translate(...)
Translates all spheres in this collection by the specified amount.

Inherited from unreachable.instance: __new__

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

Class Variables [hide private]
  __getstate_manages_dict__ = True
  __instance_size__ = 64
  __safe_for_unpickling__ = True
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(...)
(Constructor)

 

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

Overrides: object.__init__
(inherited documentation)

__iter__(...)

 

Returns an iterator for enumerating spheres in this collection.

Returns: SimpleSphereCollectionIterator
Sphere iterator.

__len__(...)
(Length operator)

 

Returns number of spheres in this collection.

Returns: int
number of spheres.

__reduce__(...)

 

helper for pickle

Overrides: object.__reduce__
(inherited documentation)

create(...)

 

Creates a sphere in this collection, lifetime of sphere is tied to this collection.

Parameters:
Returns: SimpleSphere
reference to newly created sphere.

getBBox(...)

 

Returns the axis aligned bounding box which contains all spheres in this collection.

Returns: esys.lsm.util.BoundingBox
tight bounding box for all spheres in this collection.

getNumSpheres(...)

 

Returns the number of spheres in this collection.

Returns: int
number of spheres in this collection

rotate(...)

 

Rotates all spheres in this collection about a specifed axis of rotation which passes through a specified point.

Parameters:

translate(...)

 

Translates all spheres in this collection by the specified amount.

Parameters: