-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathregion_parameters.py
90 lines (66 loc) · 2.01 KB
/
region_parameters.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# region_parameters.py
#
from __future__ import print_function
__author__ = "MichaelMurdock"
__date__ = "$Aug 2, 2010 8:34:58 PM$"
import utilsLib
class cregion_parameters(object):
'''
description of class
'''
def __init__(self,
r1_top_height_percent=0.0,
r1_bottom_height_percent=0.0,
r1_width_multiplier=0.0,
r2_top_height_percent=0.0,
r2_bottom_height_percent=0.0,
r2_width_multiplier=0.0,
r2_width_is_same_as_r1=False,
max_line_height_clamp_factor=3.0):
'''
Lorem, Ipsum, ...
'''
self._r1_top_height_percent = r1_top_height_percent
self._r1_bottom_height_percent = r1_bottom_height_percent
self._r1_width_multiplier = r1_width_multiplier
self._r2_top_height_percent = r2_top_height_percent
self._r2_bottom_height_percent = r2_bottom_height_percent
self._r2_width_multiplier = r2_width_multiplier
def doSomething(self, foo):
return True
@property
def r1_top_height_percent(self):
return self._r1_top_height_percent
@r1_top_height_percent.setter
def r1_top_height_percent(self, val):
self._r1_top_height_percent = val
@property
def r1_bottom_height_percent(self):
return self._r1_bottom_height_percent
@r1_bottom_height_percent.setter
def r1_bottom_height_percent(self, val):
self._r1_bottom_height_percent = val
@property
def r1_width_multiplier(self):
return self._r1_width_multiplier
@r1_width_multiplier.setter
def r1_width_multiplier(self, val):
self._r1_width_multiplier = val
@property
def r2_top_height_percent(self):
return self._r2_top_height_percent
@r2_top_height_percent.setter
def r2_top_height_percent(self, val):
self._r2_top_height_percent = val
@property
def r2_bottom_height_percent(self):
return self._r2_bottom_height_percent
@r2_bottom_height_percent.setter
def r2_bottom_height_percent(self, val):
self._r2_bottom_height_percent = val
@property
def r2_width_multiplier(self):
return self._r2_width_multiplier
@r2_width_multiplier.setter
def r2_width_multiplier(self, val):
self._r2_width_multiplier = val