Lines Matching refs:self
56 def __init__(self, block_x, block_y, block_z):
57 self.block_x = block_x
58 self.block_y = block_y
59 self.block_z = block_z
60 self.blocks = []
62 def add_block(self, block):
63 self.blocks.append(block)
65 def __getitem__(self, i):
66 return self.blocks[i]
68 def __delitem__(self, i):
69 del self.blocks[i]
71 def __len__(self):
72 return len(self.blocks)
76 def __init__(self, pos_x, pos_y, pos_z, error_target):
77 self.pos_x = pos_x
78 self.pos_y = pos_y
79 self.pos_z = pos_z
81 self.raw_min = None
82 self.raw_max = None
84 self.ldr_min = None
85 self.ldr_max = None
87 self.error_target = error_target
88 self.passes = []
89 self.qualityHit = None
91 def add_minimums(self, r, g, b, a):
92 self.raw_min = (r, g, b, a)
98 self.ldr_min = (ldr(r), ldr(g), ldr(b), ldr(a))
100 def add_maximums(self, r, g, b, a):
101 self.raw_max = (r, g, b, a)
107 self.ldr_max = (ldr(r), ldr(g), ldr(b), ldr(a))
109 def add_pass(self, pas):
110 self.passes.append(pas)
112 def __getitem__(self, i):
113 return self.passes[i]
115 def __delitem__(self, i):
116 del self.passes[i]
118 def __len__(self):
119 return len(self.passes)
124 def __init__(self, partitions, partition, planes, target_hit, mode, component):
125 self.partitions = partitions
126 self.partition_index = 0 if partition is None else partition
127 self.planes = planes
128 self.plane2_component = component
129 self.target_hit = target_hit
130 self.search_mode = mode
131 self.candidates = []
133 def add_candidate(self, candidate):
134 self.candidates.append(candidate)
136 def __getitem__(self, i):
137 return self.candidates[i]
139 def __delitem__(self, i):
140 del self.candidates[i]
142 def __len__(self):
143 return len(self.candidates)
148 def __init__(self, weight_x, weight_y, weight_z, weight_quant):
149 self.weight_x = weight_x
150 self.weight_y = weight_y
151 self.weight_z = weight_z
152 self.weight_quant = weight_quant
153 self.refinement_errors = []
155 def add_refinement(self, errorval):
156 self.refinement_errors.append(errorval)