Skip to content

Commit

Permalink
indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Feb 27, 2016
1 parent e289415 commit 8125f61
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
12 changes: 6 additions & 6 deletions python/plugins/processing/algs/lidar/fusion/ImageCreate.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,22 @@ class ImageCreate(FusionAlgorithm):
SWITCH = 'SWITCH'
OUTPUT = 'OUTPUT'


def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('ImageCreate')
self.group, self.i18n_group = self.trAlgorithm('Points')
self.addParameter(ParameterFile(
self.INPUT, self.tr('Input LAS')))
self.INPUT, self.tr('Input LAS')))
self.addParameter(ParameterSelection(
self.COLOROPTION, self.tr('Method to assign colour'), ['Intensity', 'Elevation','Height']))
self.COLOROPTION, self.tr('Method to assign colour'),
['Intensity', 'Elevation','Height']))
self.addParameter(ParameterFile(
self.GROUND, self.tr("Ground file (used with 'Height' method)"),'dtm'))
self.GROUND, self.tr("Ground file (used with 'Height' method)"), 'dtm'))
self.addParameter(ParameterBoolean(self.RGB,
self.tr('Use RGB colour model to create the colour ramp'), False))
self.tr('Use RGB colour model to create the colour ramp'), False))
self.addParameter(ParameterNumber(
self.PIXEL, self.tr('Pixel size'), 0, None, 1.0))
self.addParameter(ParameterSelection(
self.SWITCH, self.tr('Output format'), ['JPEG', 'Bitmap']))
self.SWITCH, self.tr('Output format'), ['JPEG', 'Bitmap']))
self.addOutput(OutputFile(self.OUTPUT, 'Output image'))
self.addAdvancedModifiers()

Expand Down
9 changes: 4 additions & 5 deletions python/plugins/processing/algs/lidar/fusion/IntensityImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,22 @@ class IntensityImage(FusionAlgorithm):
SWITCH = 'SWITCH'
OUTPUT = 'OUTPUT'


def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('IntensityImage')
self.group, self.i18n_group = self.trAlgorithm('Points')
self.addParameter(ParameterFile(
self.INPUT, self.tr('Input file')))

self.addParameter(ParameterBoolean(self.ALLRET,
self.tr('Use all returns instead of only first'), False))
self.tr('Use all returns instead of only first'), False))
self.addParameter(ParameterBoolean(self.LOWEST,
self.tr('Use the lowest return in pixel area to assign the intensity value'), False))
self.tr('Use the lowest return in pixel area to assign the intensity value'), False))
self.addParameter(ParameterBoolean(self.HIST,
self.tr('Produce a CSV intensity histogram data file'), False))
self.tr('Produce a CSV intensity histogram data file'), False))
self.addParameter(ParameterNumber(
self.PIXEL, self.tr('Pixel size'), 0, None, 1.0))
self.addParameter(ParameterSelection(
self.SWITCH, self.tr('Output format'), ['Bitmap', 'JPEG']))
self.SWITCH, self.tr('Output format'), ['Bitmap', 'JPEG']))
self.addOutput(OutputFile(self.OUTPUT, 'Output image'))
self.addAdvancedModifiers()

Expand Down

0 comments on commit 8125f61

Please sign in to comment.