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

Class PropertySet

   object --+    
            |    
    Primitive --+
                |
   object --+   |
            |   |
PrimitiveBase --+
                |
               PropertySet

Defines a group of Primitives which can be accessed through a name.

Instance Methods [hide private]
 
__init__(self, name, *items)
Initializes the Primitive instance object with a unique ID.
 
__repr__(self)
Returns a string representation.
 
addItem(self, *items)
Adds items.
 
addItems(self, *items)
Adds items.
 
clearItems(self)
Clears the list of items.
 
collectPrimitiveBases(self)
Returns primitives used to construct the PropertySet.
 
getDim(self)
Returns the dimensionality of the items.
 
getItems(self)
Returns the list of items.
 
getManifoldClass(self)
Returns the manifold class expected from items.
 
getName(self)
Returns the name of the set.
 
getNumItems(self)
Returns the number of items in the property set.
 
getTag(self)
Returns the tag used for this property set.
 
setName(self, name)
Sets the name.

Inherited from Primitive: __neg__, getDirectedID, getID, getUnderlyingPrimitive, hasSameOrientation, isColocated, substitute

Inherited from PrimitiveBase: __add__, __cmp__, __iadd__, __imul__, __isub__, __rmul__, __sub__, apply, copy, getConstructionPoints, getPrimitives, modifyBy, setLocalScale

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, *items)
(Constructor)

 

Initializes the Primitive instance object with a unique ID.

Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

 

Returns a string representation.

Overrides: object.__repr__

addItem(self, *items)

 

Adds items. An item my be any Primitive but no PropertySet.

addItems(self, *items)

 

Adds items. An item my be any Primitive but no PropertySet.

collectPrimitiveBases(self)

 

Returns primitives used to construct the PropertySet.

Overrides: Primitive.collectPrimitiveBases