Changeset 8457 for mauRepo/CedaMolesModel/trunk/ceda_moles_model/ea_model/iso_19107_2003_spatial_schema/geometry/geometric_complex/gm_composite.py
 Timestamp:
 10/07/12 14:41:56 (7 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

mauRepo/CedaMolesModel/trunk/ceda_moles_model/ea_model/iso_19107_2003_spatial_schema/geometry/geometric_complex/gm_composite.py
r8437 r8457 23 23 24 24 ''' 25 Created on 06Jul2012 07:43:0825 Created on 10Jul2012 14:14:59 26 26 27 27 @author: mnagni … … 44 44 self.topology = None 45 45 self.CRS = None 46 self._generator_ gm_point= []46 self._generator_simplex = [] 47 47 self._generator_gm_solid = [] 48 48 self._generator_cell = [] 49 self._generator_simplex = []50 49 self._generator_gm_orientableprimitive = [] 50 self._generator_gm_point = [] 51 51 self._generator = [] 52 52 super(GM_Composite, self).__init__() … … 90 90 try: 91 91 ret = [] 92 ret.extend(self._generator_ gm_point)92 ret.extend(self._generator_simplex) 93 93 ret.extend(self._generator_gm_solid) 94 94 ret.extend(self._generator_cell) 95 ret.extend(self._generator_simplex)96 95 ret.extend(self._generator_gm_orientableprimitive) 96 ret.extend(self._generator_gm_point) 97 97 if not hasattr(self, '_generator'): 98 98 self._generator = [] … … 107 107 108 108 def synchronize(self): 109 del self._generator_gm_point[:] 109 int_generator = self.generator 110 del self._generator_simplex[:] 110 111 del self._generator_gm_solid[:] 111 112 del self._generator_cell[:] 112 del self._generator_simplex[:]113 113 del self._generator_gm_orientableprimitive[:] 114 for item in self.generator: 115 valueClass = "%s.%s" % (type(item).__module__,type(item).__name__) 116 if valueClass == "ea_model.iso_19107_2003_spatial_schema.geometry.geometric_primitive.gm_point.GM_Point": 117 self._generator_gm_point.append(item) 118 continue 119 valueClass = "%s.%s" % (type(item).__module__,type(item).__name__) 120 if valueClass == "ea_model.iso_19107_2003_spatial_schema.geometry.geometric_primitive.gm_solid.GM_Solid": 121 self._generator_gm_solid.append(item) 122 continue 123 valueClass = "%s.%s" % (type(item).__module__,type(item).__name__) 124 if valueClass == "ea_model.informative.spatial_examples_from_iso_19107.application_schema.topology_simple.cellular_topology.cell.Cell": 125 self._generator_cell.append(item) 126 continue 114 del self._generator_gm_point[:] 115 for item in int_generator: 127 116 valueClass = "%s.%s" % (type(item).__module__,type(item).__name__) 128 117 if valueClass == "ea_model.informative.spatial_examples_from_iso_19107.application_schema.simplicial_topology.simplex.Simplex": 129 118 self._generator_simplex.append(item) 130 119 continue 131 valueClass = "%s.%s" % (type(item).__module__,type(item).__name__) 120 if valueClass == "ea_model.iso_19107_2003_spatial_schema.geometry.geometric_primitive.gm_solid.GM_Solid": 121 self._generator_gm_solid.append(item) 122 continue 123 if valueClass == "ea_model.informative.spatial_examples_from_iso_19107.application_schema.topology_simple.cellular_topology.cell.Cell": 124 self._generator_cell.append(item) 125 continue 132 126 if valueClass == "ea_model.iso_19107_2003_spatial_schema.geometry.geometric_primitive.gm_orientableprimitive.GM_OrientablePrimitive": 133 127 self._generator_gm_orientableprimitive.append(item) 128 continue 129 if valueClass == "ea_model.iso_19107_2003_spatial_schema.geometry.geometric_primitive.gm_point.GM_Point": 130 self._generator_gm_point.append(item) 134 131 continue 135 132 pass
Note: See TracChangeset
for help on using the changeset viewer.