コード例 #1
0
 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))
コード例 #2
0
 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))
コード例 #3
0
 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))
コード例 #4
0
 def modkeys(self, buttons):
     self.toolbox.setParamValues(
         operator=selectionoperators.getSelectionOperator(buttons))
コード例 #5
0
 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))