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

Class Grain

    object --+        
             |        
   ??.instance --+    
                 |    
ParticleCollection --+
                     |
                    Grain

Represents an aggregation of particles.

Instance Methods [hide private]
 
__getinitargs__(...)
 
__init__(...)
Constructs an empty grain with default id.
int
getId(...)
Returns the Id of this grain.
 
setId(...)
Sets the id of this grain.

Inherited from ParticleCollection: __getstate__, __iter__, __len__, __reduce__, __setstate__, createParticle, getNumParticles, getParticleBBox, rotate, translate

Inherited from unreachable.instance: __new__

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

Class Variables [hide private]
  __instance_size__ = 72

Inherited from ParticleCollection: __getstate_manages_dict__, __safe_for_unpickling__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(...)
(Constructor)

 

Constructs an empty grain with default id.

Constructs an empty grain with specified Id.

Parameters:
  • id (int) - Grain Id.
Overrides: object.__init__

getId(...)

 

Returns the Id of this grain.

Returns: int
Grain Id.

setId(...)

 

Sets the id of this grain.

Parameters:
  • id (int) - The new grain Id.