#
source:
mauRepo/MolesManager/trunk/src/ea_model/iso_19107_2003_spatial_schema/geometry/coordinate_geometry/gm_triangulatedsurface.py
@
8091

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/ea_model/iso_19107_2003_spatial_schema/geometry/coordinate_geometry/gm_triangulatedsurface.py@8091
Revision 8091, 4.8 KB checked in by mnagni, 9 years ago (diff) |
---|

Line | |
---|---|

1 | |

2 | |

3 | |

4 | |

5 | |

6 | |

7 | |

8 | |

9 | |

10 | |

11 | |

12 | |

13 | |

14 | |

15 | |

16 | |

17 | |

18 | |

19 | |

20 | |

21 | from ea_model.iso_19107_2003_spatial_schema.geometry.coordinate_geometry.gm_polyhedralsurface import GM_PolyhedralSurface |

22 | from ascore.utils import has_value |

23 | |

24 | ''' |

25 | Created on 16-Feb-2012 16:18:00 |

26 | |

27 | @author: mnagni |

28 | ''' |

29 | |

30 | class GM_TriangulatedSurface(GM_PolyhedralSurface): |

31 | ''' |

32 | Represents a data entity defined in a UML diagram and supposed to |

33 | be persisted in a relational database. |

34 | |

35 | This class has been genererated automatically using the Apache Velocity project. |

36 | ''' |

37 | ''' |

38 | Please note that any access to the inner attributes should be done using |

39 | the given get/set methods and NOT accessing them directly. |

40 | ''' |

41 | def __init__(self): |

42 | self._gm_polyhedralsurface = GM_PolyhedralSurface() |

43 | |

44 | self._topology_tp_directedtopo = [] |

45 | self._topology_tp_edge = [] |

46 | self._topology_tp_node = [] |

47 | self._topology_tp_solid = [] |

48 | self._topology_tp_face = [] |

49 | self._containedPrimitive_gm_orientableprimitive = [] |

50 | self._containedPrimitive_gm_point = [] |

51 | self._containedPrimitive_gm_solid = [] |

52 | self._composite_gm_compositecurve = [] |

53 | self._composite_gm_compositesolid = [] |

54 | self._composite_gm_compositesurface = [] |

55 | self._composite_gm_compositepoint = [] |

56 | self.composite = [] |

57 | self._CRS_sc_singlecrs = None |

58 | self._CRS_sc_compoundcrs = None |

59 | self.orientation = None |

60 | self._patch_gm_polygon = [] |

61 | self._patch_gm_parametriccurvesurface = [] |

62 | self.patch = [] |

63 | self._proxy_gm_orientablesurface = None |

64 | self._proxy_gm_orientablecurve = None |

65 | self._containingPrimitive_gm_orientableprimitive = [] |

66 | self._containingPrimitive_gm_point = [] |

67 | self._containingPrimitive_gm_solid = [] |

68 | self.complex = [] |

69 | self._primitive_gm_orientableprimitive = None |

70 | self._primitive_gm_point = None |

71 | self._primitive_gm_solid = None |

72 | super(GM_TriangulatedSurface, self).__init__() |

73 | |

74 | @property |

75 | def topology(self): |

76 | return self._gm_polyhedralsurface.topology |

77 | |

78 | @topology.setter |

79 | def topology(self, value): |

80 | self._gm_polyhedralsurface.topology = value |

81 | |

82 | @property |

83 | def containedPrimitive(self): |

84 | return self._gm_polyhedralsurface.containedPrimitive |

85 | |

86 | @containedPrimitive.setter |

87 | def containedPrimitive(self, value): |

88 | self._gm_polyhedralsurface.containedPrimitive = value |

89 | |

90 | @property |

91 | def composite(self): |

92 | return self._gm_polyhedralsurface.composite |

93 | |

94 | @composite.setter |

95 | def composite(self, value): |

96 | self._gm_polyhedralsurface.composite = value |

97 | |

98 | @property |

99 | def composite(self): |

100 | return self._gm_polyhedralsurface.composite |

101 | |

102 | @composite.setter |

103 | def composite(self, value): |

104 | self._gm_polyhedralsurface.composite = value |

105 | |

106 | @property |

107 | def CRS(self): |

108 | return self._gm_polyhedralsurface.CRS |

109 | |

110 | @CRS.setter |

111 | def CRS(self, value): |

112 | self._gm_polyhedralsurface.CRS = value |

113 | |

114 | @property |

115 | def orientation(self): |

116 | return self._gm_polyhedralsurface.orientation |

117 | |

118 | @orientation.setter |

119 | def orientation(self, value): |

120 | self._gm_polyhedralsurface.orientation = value |

121 | |

122 | @property |

123 | def patch(self): |

124 | return self._gm_polyhedralsurface.patch |

125 | |

126 | @patch.setter |

127 | def patch(self, value): |

128 | self._gm_polyhedralsurface.patch = value |

129 | |

130 | @property |

131 | def proxy(self): |

132 | return self._gm_polyhedralsurface.proxy |

133 | |

134 | @proxy.setter |

135 | def proxy(self, value): |

136 | self._gm_polyhedralsurface.proxy = value |

137 | |

138 | @property |

139 | def containingPrimitive(self): |

140 | return self._gm_polyhedralsurface.containingPrimitive |

141 | |

142 | @containingPrimitive.setter |

143 | def containingPrimitive(self, value): |

144 | self._gm_polyhedralsurface.containingPrimitive = value |

145 | |

146 | @property |

147 | def complex(self): |

148 | return self._gm_polyhedralsurface.complex |

149 | |

150 | @complex.setter |

151 | def complex(self, value): |

152 | self._gm_polyhedralsurface.complex = value |

153 | |

154 | @property |

155 | def primitive(self): |

156 | return self._gm_polyhedralsurface.primitive |

157 | |

158 | @primitive.setter |

159 | def primitive(self, value): |

160 | self._gm_polyhedralsurface.primitive = value |

161 | |

162 | def __key(self): |

163 | return (self.topology, self.containedPrimitive, self.composite, self.composite, self.CRS, self.orientation, self.patch, self.patch, self.proxy, self.containingPrimitive, self.complex, self.primitive) |

164 | |

165 | def __eq__(self, y): |

166 | ''' |

167 | Cannot compare classes which do not define a "__key" attribute |

168 | ''' |

169 | if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): |

170 | return self.__key() == y.__key() |

171 | return id(self) == id(y) |

172 | |

173 | def __hash__(self): |

174 | return hash(self.__key()) |

**Note:**See TracBrowser for help on using the repository browser.