#
source:
mauRepo/MolesManager/trunk/src/ea_model/iso_19107_2003_spatial_schema/geometry/coordinate_geometry/gm_tin.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_tin.py@8091
Revision 8091, 5.2 KB checked in by mnagni, 8 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_triangulatedsurface import GM_TriangulatedSurface |

22 | from ascore.utils import has_value |

23 | |

24 | ''' |

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

26 | |

27 | @author: mnagni |

28 | ''' |

29 | |

30 | class GM_Tin(GM_TriangulatedSurface): |

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_triangulatedsurface = GM_TriangulatedSurface() |

43 | |

44 | self._containedPrimitive_gm_orientableprimitive = [] |

45 | self._containedPrimitive_gm_point = [] |

46 | self._containedPrimitive_gm_solid = [] |

47 | self._composite_gm_compositecurve = [] |

48 | self._composite_gm_compositesolid = [] |

49 | self._composite_gm_compositesurface = [] |

50 | self._composite_gm_compositepoint = [] |

51 | self.composite = [] |

52 | self.orientation = None |

53 | self._containingPrimitive_gm_orientableprimitive = [] |

54 | self._containingPrimitive_gm_point = [] |

55 | self._containingPrimitive_gm_solid = [] |

56 | self._topology_tp_directedtopo = [] |

57 | self._topology_tp_edge = [] |

58 | self._topology_tp_node = [] |

59 | self._topology_tp_solid = [] |

60 | self._topology_tp_face = [] |

61 | self.stopLines = [] |

62 | self._CRS_sc_singlecrs = None |

63 | self._CRS_sc_compoundcrs = None |

64 | self.patch = [] |

65 | self._patch_gm_polygon = [] |

66 | self._patch_gm_parametriccurvesurface = [] |

67 | self._proxy_gm_orientablesurface = None |

68 | self._proxy_gm_orientablecurve = None |

69 | self._primitive_gm_orientableprimitive = None |

70 | self._primitive_gm_point = None |

71 | self._primitive_gm_solid = None |

72 | self.complex = [] |

73 | self.controlPoint = [] |

74 | self.breakLines = [] |

75 | self.maxLength = None |

76 | super(GM_Tin, self).__init__() |

77 | |

78 | @property |

79 | def containedPrimitive(self): |

80 | return self._gm_triangulatedsurface.containedPrimitive |

81 | |

82 | @containedPrimitive.setter |

83 | def containedPrimitive(self, value): |

84 | self._gm_triangulatedsurface.containedPrimitive = value |

85 | |

86 | @property |

87 | def composite(self): |

88 | return self._gm_triangulatedsurface.composite |

89 | |

90 | @composite.setter |

91 | def composite(self, value): |

92 | self._gm_triangulatedsurface.composite = value |

93 | |

94 | @property |

95 | def composite(self): |

96 | return self._gm_triangulatedsurface.composite |

97 | |

98 | @composite.setter |

99 | def composite(self, value): |

100 | self._gm_triangulatedsurface.composite = value |

101 | |

102 | @property |

103 | def orientation(self): |

104 | return self._gm_triangulatedsurface.orientation |

105 | |

106 | @orientation.setter |

107 | def orientation(self, value): |

108 | self._gm_triangulatedsurface.orientation = value |

109 | |

110 | @property |

111 | def containingPrimitive(self): |

112 | return self._gm_triangulatedsurface.containingPrimitive |

113 | |

114 | @containingPrimitive.setter |

115 | def containingPrimitive(self, value): |

116 | self._gm_triangulatedsurface.containingPrimitive = value |

117 | |

118 | @property |

119 | def topology(self): |

120 | return self._gm_triangulatedsurface.topology |

121 | |

122 | @topology.setter |

123 | def topology(self, value): |

124 | self._gm_triangulatedsurface.topology = value |

125 | |

126 | @property |

127 | def CRS(self): |

128 | return self._gm_triangulatedsurface.CRS |

129 | |

130 | @CRS.setter |

131 | def CRS(self, value): |

132 | self._gm_triangulatedsurface.CRS = value |

133 | |

134 | @property |

135 | def patch(self): |

136 | return self._gm_triangulatedsurface.patch |

137 | |

138 | @patch.setter |

139 | def patch(self, value): |

140 | self._gm_triangulatedsurface.patch = value |

141 | |

142 | @property |

143 | def patch(self): |

144 | return self._gm_triangulatedsurface.patch |

145 | |

146 | @patch.setter |

147 | def patch(self, value): |

148 | self._gm_triangulatedsurface.patch = value |

149 | |

150 | @property |

151 | def proxy(self): |

152 | return self._gm_triangulatedsurface.proxy |

153 | |

154 | @proxy.setter |

155 | def proxy(self, value): |

156 | self._gm_triangulatedsurface.proxy = value |

157 | |

158 | @property |

159 | def primitive(self): |

160 | return self._gm_triangulatedsurface.primitive |

161 | |

162 | @primitive.setter |

163 | def primitive(self, value): |

164 | self._gm_triangulatedsurface.primitive = value |

165 | |

166 | @property |

167 | def complex(self): |

168 | return self._gm_triangulatedsurface.complex |

169 | |

170 | @complex.setter |

171 | def complex(self, value): |

172 | self._gm_triangulatedsurface.complex = value |

173 | |

174 | def __key(self): |

175 | return (self.containedPrimitive, self.composite, self.composite, self.orientation, self.containingPrimitive, self.topology, self.stopLines, self.CRS, self.patch, self.patch, self.proxy, self.primitive, self.complex, self.controlPoint, self.breakLines, self.maxLength) |

176 | |

177 | def __eq__(self, y): |

178 | ''' |

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

180 | ''' |

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

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

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

184 | |

185 | def __hash__(self): |

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

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