Package omeroweb :: Package webgateway :: Module marshal
[hide private]
[frames] | no frames]

Module marshal

source code

Functions [hide private]
 
channelMarshal(channel)
return a dict with all there is to know about a channel
source code
 
imageMarshal(image, key=None)
return a dict with pretty much everything we know and care about an image, all wrapped in a pretty structure.
source code
 
shapeMarshal(shape)
return a dict with all there is to know about a shape
source code
 
stringToSvg(string)
Method for converting the string returned from omero.model.ShapeI.getPoints() into an SVG for display on web.
source code
 
rgb_int2css(rgbint)
converts a bin int number into css colour, E.g.
source code
Variables [hide private]
  logger = logging.getLogger(__name__)
  INSIGHT_POINT_LIST_RE = re.compile(r'points\[([^\]]+)\]')
  OME_MODEL_POINT_LIST_RE = re.compile(r'([\d.]+),([\d.]+)')

Imports: omero, time, re, logging, traceback, settings, unwrap


Function Details [hide private]

channelMarshal(channel)

source code 

return a dict with all there is to know about a channel

Parameters:
Returns:
Dict

imageMarshal(image, key=None)

source code 

return a dict with pretty much everything we know and care about an image, all wrapped in a pretty structure.

Parameters:
Returns:
Dict

shapeMarshal(shape)

source code 

return a dict with all there is to know about a shape

Parameters:
  • channel - omero.model.ShapeI
Returns:
Dict

stringToSvg(string)

source code 

Method for converting the string returned from omero.model.ShapeI.getPoints() into an SVG for display on web. E.g: "points[309,427, 366,503, 190,491] points1[309,427, 366,503, 190,491] points2[309,427, 366,503, 190,491]" To: M 309 427 L 366 503 L 190 491 z

rgb_int2css(rgbint)

source code 

converts a bin int number into css colour, E.g. -1006567680 to '#00ff00'