Package esys :: Package pycad :: Module primitives :: Class PrimitiveBase
[hide private]
[frames] | no frames]

Class PrimitiveBase

object --+
         |
        PrimitiveBase
Known Subclasses:

Template for a set of primitives.
Instance Methods [hide private]
 
__add__(self, other)
Returns a new object shifted by other.
 
__cmp__(self, other)
Compares object with other by comparing the absolute value of the ID.
 
__eq__(self, other)
 
__hash__(self)
hash(x)
 
__iadd__(self, other)
Shifts the point inplace by other.
 
__imul__(self, other)
Modifies object by applying Transformation other.
 
__init__(self)
Initializes the PrimitiveBase instance object.
 
__isub__(self, other)
Shifts the point inplace by -other.
 
__lt__(self, other)
 
__rmul__(self, other)
Applies Transformation other to object.
 
__sub__(self, other)
Returns a new object shifted by -other.
 
apply(self, transformation)
Returns a new object by applying the transformation.
 
copy(self)
Returns a deep copy of the object.
 
getConstructionPoints(self)
Returns the points used to construct the primitive.
 
getPrimitives(self)
Returns a list of primitives used to construct the primitive with no double entries.
 
modifyBy(self, transformation)
Modifies the coordinates by applying a transformation.
 
setLocalScale(self, factor=1.0)
Sets the local refinement factor.

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__hash__(self)
(Hashing function)

 
hash(x)
Overrides: object.__hash__
(inherited documentation)

__imul__(self, other)

 
Modifies object by applying Transformation other. If other is not a Transformation it is first tried to be converted.

__init__(self)
(Constructor)

 
Initializes the PrimitiveBase instance object.
Overrides: object.__init__

__rmul__(self, other)

 
Applies Transformation other to object. If other is not a Transformation it is first tried to be converted.