Exemple #1
0
 def __init__(self,
              when,
              what,
              where,
              min=automatic.automatic,
              max=automatic.automatic,
              levels=11,
              nbins=5,
              colormap=colormap.ThermalMap()):
     ContourDisplay.__init__(self, when, what, where, min, max, levels,
                             nbins)
     self.colormap = colormap
     self.contour_max = None
     self.contour_min = None
     self.contour_levels = None
Exemple #2
0
 def __init__(self, when, what, where,
              min_contour=automatic.automatic,
              max_contour=automatic.automatic,
              levels=11, nbins=5,
              colormap=colormap.ThermalMap(),
              filter=displaymethods.defaultMeshFilter):
     ContourDisplay.__init__(self, when, what, where,
                             min_contour, max_contour, levels, nbins, filter)
     self.colormap = colormap
     # contour_min and contour_max are the actual limits used for
     # the contour color map.  min_contour and max_contour are the
     # limits provided by the user, and may be 'automatic'.
     self.contour_max = None
     self.contour_min = None
     self.contour_levels = None
     self.datarange = None
Exemple #3
0
        finally:
            self.lock.release()


registeredclass.Registration(
    'SkeletonQuality',
    display.DisplayMethod,
    SkeletonQualityDisplay,
    ordering=100,
    layerordering=display.Planar(1.1),
    whoclasses=('Skeleton', ),
    params=[
        skeletonmodifier.alphaParameter,
        parameter.RegisteredParameter('colormap',
                                      colormap.ColorMap,
                                      colormap.ThermalMap(),
                                      tip="color scheme"),
        AutoNumericParameter('min',
                             automatic.automatic,
                             tip="lowest energy to display, or 'automatic'"),
        AutoNumericParameter('max',
                             automatic.automatic,
                             tip="highest energy to display, or 'automatic'")
    ],
    tip="Color each element according to its effective energy.",
    discussion=xmlmenudump.loadFile(
        'DISCUSSIONS/engine/reg/skelqualdisplay.xml'))

###########################################