/[escript]/trunk/pycad/py_src/primitives.py
ViewVC logotype

Diff of /trunk/pycad/py_src/primitives.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 944 by gross, Tue Jan 30 08:57:37 2007 UTC revision 999 by gross, Tue Feb 27 08:12:37 2007 UTC
# Line 1348  class Volume(Manifold3D, Primitive): Line 1348  class Volume(Manifold3D, Primitive):
1348    
1349  class PropertySet(Primitive, PrimitiveBase):  class PropertySet(Primitive, PrimitiveBase):
1350      """      """
1351      defines a group L{Primitive} which can be accessed through a name      defines a group of L{Primitive} which can be accessed through a name
1352      """      """
1353      def __init__(self,name,*items):      def __init__(self,name,*items):
1354         Primitive.__init__(self)         Primitive.__init__(self)
# Line 1386  class PropertySet(Primitive, PrimitiveBa Line 1386  class PropertySet(Primitive, PrimitiveBa
1386             return Manifold3D             return Manifold3D
1387      def getDim(self):      def getDim(self):
1388          """          """
1389          returns the dimension of the          returns the dimension of the items
1390          """          """
1391          return self.__dim          return self.__dim
1392      def getName(self):      def getName(self):
# Line 1394  class PropertySet(Primitive, PrimitiveBa Line 1394  class PropertySet(Primitive, PrimitiveBa
1394          returns the name of the set          returns the name of the set
1395          """          """
1396          return self.__name          return self.__name
1397      def setName(self,name=None):      def setName(self,name):
1398          """          """
1399          sets the name. If no name is given the id is used.          sets the name.
1400          """          """
1401          self.__name=str(name)          self.__name=str(name)
1402            
1403      def addItem(self,*items):      def addItem(self,*items):
1404          """          """
1405          adds items. An item my be any L{Primitive} but no L{PropertySet}          adds items. An item my be any L{Primitive} but no L{PropertySet}
# Line 1453  class PropertySet(Primitive, PrimitiveBa Line 1454  class PropertySet(Primitive, PrimitiveBa
1454    
1455      def getTag(self):      def getTag(self):
1456           """           """
1457           returns the tag used for this           returns the tag used for this property set
1458           """           """
1459           return self.getID()           return self.getID()

Legend:
Removed from v.944  
changed lines
  Added in v.999

  ViewVC Help
Powered by ViewVC 1.1.26