190 def set_width(self, x): |
190 def set_width(self, x): |
191 self.has_width_ = 1 |
191 self.has_width_ = 1 |
192 self.width_ = x |
192 self.width_ = x |
193 |
193 |
194 def clear_width(self): |
194 def clear_width(self): |
195 self.has_width_ = 0 |
195 if self.has_width_: |
196 self.width_ = 0 |
196 self.has_width_ = 0 |
|
197 self.width_ = 0 |
197 |
198 |
198 def has_width(self): return self.has_width_ |
199 def has_width(self): return self.has_width_ |
199 |
200 |
200 def height(self): return self.height_ |
201 def height(self): return self.height_ |
201 |
202 |
202 def set_height(self, x): |
203 def set_height(self, x): |
203 self.has_height_ = 1 |
204 self.has_height_ = 1 |
204 self.height_ = x |
205 self.height_ = x |
205 |
206 |
206 def clear_height(self): |
207 def clear_height(self): |
207 self.has_height_ = 0 |
208 if self.has_height_: |
208 self.height_ = 0 |
209 self.has_height_ = 0 |
|
210 self.height_ = 0 |
209 |
211 |
210 def has_height(self): return self.has_height_ |
212 def has_height(self): return self.has_height_ |
211 |
213 |
212 def rotate(self): return self.rotate_ |
214 def rotate(self): return self.rotate_ |
213 |
215 |
214 def set_rotate(self, x): |
216 def set_rotate(self, x): |
215 self.has_rotate_ = 1 |
217 self.has_rotate_ = 1 |
216 self.rotate_ = x |
218 self.rotate_ = x |
217 |
219 |
218 def clear_rotate(self): |
220 def clear_rotate(self): |
219 self.has_rotate_ = 0 |
221 if self.has_rotate_: |
220 self.rotate_ = 0 |
222 self.has_rotate_ = 0 |
|
223 self.rotate_ = 0 |
221 |
224 |
222 def has_rotate(self): return self.has_rotate_ |
225 def has_rotate(self): return self.has_rotate_ |
223 |
226 |
224 def horizontal_flip(self): return self.horizontal_flip_ |
227 def horizontal_flip(self): return self.horizontal_flip_ |
225 |
228 |
226 def set_horizontal_flip(self, x): |
229 def set_horizontal_flip(self, x): |
227 self.has_horizontal_flip_ = 1 |
230 self.has_horizontal_flip_ = 1 |
228 self.horizontal_flip_ = x |
231 self.horizontal_flip_ = x |
229 |
232 |
230 def clear_horizontal_flip(self): |
233 def clear_horizontal_flip(self): |
231 self.has_horizontal_flip_ = 0 |
234 if self.has_horizontal_flip_: |
232 self.horizontal_flip_ = 0 |
235 self.has_horizontal_flip_ = 0 |
|
236 self.horizontal_flip_ = 0 |
233 |
237 |
234 def has_horizontal_flip(self): return self.has_horizontal_flip_ |
238 def has_horizontal_flip(self): return self.has_horizontal_flip_ |
235 |
239 |
236 def vertical_flip(self): return self.vertical_flip_ |
240 def vertical_flip(self): return self.vertical_flip_ |
237 |
241 |
238 def set_vertical_flip(self, x): |
242 def set_vertical_flip(self, x): |
239 self.has_vertical_flip_ = 1 |
243 self.has_vertical_flip_ = 1 |
240 self.vertical_flip_ = x |
244 self.vertical_flip_ = x |
241 |
245 |
242 def clear_vertical_flip(self): |
246 def clear_vertical_flip(self): |
243 self.has_vertical_flip_ = 0 |
247 if self.has_vertical_flip_: |
244 self.vertical_flip_ = 0 |
248 self.has_vertical_flip_ = 0 |
|
249 self.vertical_flip_ = 0 |
245 |
250 |
246 def has_vertical_flip(self): return self.has_vertical_flip_ |
251 def has_vertical_flip(self): return self.has_vertical_flip_ |
247 |
252 |
248 def crop_left_x(self): return self.crop_left_x_ |
253 def crop_left_x(self): return self.crop_left_x_ |
249 |
254 |
250 def set_crop_left_x(self, x): |
255 def set_crop_left_x(self, x): |
251 self.has_crop_left_x_ = 1 |
256 self.has_crop_left_x_ = 1 |
252 self.crop_left_x_ = x |
257 self.crop_left_x_ = x |
253 |
258 |
254 def clear_crop_left_x(self): |
259 def clear_crop_left_x(self): |
255 self.has_crop_left_x_ = 0 |
260 if self.has_crop_left_x_: |
256 self.crop_left_x_ = 0.0 |
261 self.has_crop_left_x_ = 0 |
|
262 self.crop_left_x_ = 0.0 |
257 |
263 |
258 def has_crop_left_x(self): return self.has_crop_left_x_ |
264 def has_crop_left_x(self): return self.has_crop_left_x_ |
259 |
265 |
260 def crop_top_y(self): return self.crop_top_y_ |
266 def crop_top_y(self): return self.crop_top_y_ |
261 |
267 |
262 def set_crop_top_y(self, x): |
268 def set_crop_top_y(self, x): |
263 self.has_crop_top_y_ = 1 |
269 self.has_crop_top_y_ = 1 |
264 self.crop_top_y_ = x |
270 self.crop_top_y_ = x |
265 |
271 |
266 def clear_crop_top_y(self): |
272 def clear_crop_top_y(self): |
267 self.has_crop_top_y_ = 0 |
273 if self.has_crop_top_y_: |
268 self.crop_top_y_ = 0.0 |
274 self.has_crop_top_y_ = 0 |
|
275 self.crop_top_y_ = 0.0 |
269 |
276 |
270 def has_crop_top_y(self): return self.has_crop_top_y_ |
277 def has_crop_top_y(self): return self.has_crop_top_y_ |
271 |
278 |
272 def crop_right_x(self): return self.crop_right_x_ |
279 def crop_right_x(self): return self.crop_right_x_ |
273 |
280 |
274 def set_crop_right_x(self, x): |
281 def set_crop_right_x(self, x): |
275 self.has_crop_right_x_ = 1 |
282 self.has_crop_right_x_ = 1 |
276 self.crop_right_x_ = x |
283 self.crop_right_x_ = x |
277 |
284 |
278 def clear_crop_right_x(self): |
285 def clear_crop_right_x(self): |
279 self.has_crop_right_x_ = 0 |
286 if self.has_crop_right_x_: |
280 self.crop_right_x_ = 1.0 |
287 self.has_crop_right_x_ = 0 |
|
288 self.crop_right_x_ = 1.0 |
281 |
289 |
282 def has_crop_right_x(self): return self.has_crop_right_x_ |
290 def has_crop_right_x(self): return self.has_crop_right_x_ |
283 |
291 |
284 def crop_bottom_y(self): return self.crop_bottom_y_ |
292 def crop_bottom_y(self): return self.crop_bottom_y_ |
285 |
293 |
286 def set_crop_bottom_y(self, x): |
294 def set_crop_bottom_y(self, x): |
287 self.has_crop_bottom_y_ = 1 |
295 self.has_crop_bottom_y_ = 1 |
288 self.crop_bottom_y_ = x |
296 self.crop_bottom_y_ = x |
289 |
297 |
290 def clear_crop_bottom_y(self): |
298 def clear_crop_bottom_y(self): |
291 self.has_crop_bottom_y_ = 0 |
299 if self.has_crop_bottom_y_: |
292 self.crop_bottom_y_ = 1.0 |
300 self.has_crop_bottom_y_ = 0 |
|
301 self.crop_bottom_y_ = 1.0 |
293 |
302 |
294 def has_crop_bottom_y(self): return self.has_crop_bottom_y_ |
303 def has_crop_bottom_y(self): return self.has_crop_bottom_y_ |
295 |
304 |
296 def autolevels(self): return self.autolevels_ |
305 def autolevels(self): return self.autolevels_ |
297 |
306 |
298 def set_autolevels(self, x): |
307 def set_autolevels(self, x): |
299 self.has_autolevels_ = 1 |
308 self.has_autolevels_ = 1 |
300 self.autolevels_ = x |
309 self.autolevels_ = x |
301 |
310 |
302 def clear_autolevels(self): |
311 def clear_autolevels(self): |
303 self.has_autolevels_ = 0 |
312 if self.has_autolevels_: |
304 self.autolevels_ = 0 |
313 self.has_autolevels_ = 0 |
|
314 self.autolevels_ = 0 |
305 |
315 |
306 def has_autolevels(self): return self.has_autolevels_ |
316 def has_autolevels(self): return self.has_autolevels_ |
307 |
317 |
308 |
318 |
309 def MergeFrom(self, x): |
319 def MergeFrom(self, x): |