def up(self, x, y, buttons): who, voxel = self.getVoxel(x, y) if who is not None: self.toolbox.setParamValues(point=voxel) operator = selectionoperators.getSelectionOperator(buttons) self.toolbox.invokeMenuItem( who, pixelselectionmethod.PointSelector(voxel, operator))
def up(self, x, y, buttons): who, voxel = self.getVoxel(x, y) if voxel is not None: wrange = self.toolbox.getParamValues('range') operator = selectionoperators.getSelectionOperator(buttons) self.toolbox.setParamValues(point=voxel) self.toolbox.invokeMenuItem( who, pixelselectionmethod.ColorSelector(voxel, wrange, operator))
def up(self, x, y, buttons): who, voxel = self.getVoxel(x, y) if voxel is not None: self.toolbox.setParamValues(point=voxel) (local_flammability, global_flammability, color_space_norm, next_nearest) = self.toolbox.getParamValues( "local_flammability", "global_flammability", "color_space_norm", "next_nearest") operator = selectionoperators.getSelectionOperator(buttons) self.toolbox.invokeMenuItem( who, burn.Burn(voxel, local_flammability, global_flammability, color_space_norm, next_nearest, operator))
def modkeys(self, buttons): self.toolbox.setParamValues( operator=selectionoperators.getSelectionOperator(buttons))
def down(self, x, y, buttons): who, voxel = self.getVoxel(x, y) if voxel is not None: self.toolbox.setParamValues( point=voxel, operator=selectionoperators.getSelectionOperator(buttons))