ALBULA  4.0.1
 All Classes Namespaces Functions Variables Pages
dectris.albula Namespace Reference

Classes

class  DViewerClient
 Opens instance of ALBULA viewer and connects to it. More...
 
class  DNoAlbulaExecutable
 Exception thrown if no ALBULA executable is found. More...
 
class  DNoMethod
 Exception thrown if non-existing method is called on an object. More...
 
class  DNoObject
 Exception thrown if an DMainFrame or DSubframe can no longer be addressed as it was explicitely closed by the user. More...
 
class  DFrame
 class DFrame is the parent class of class DMainFrame and DSubFrame. More...
 
class  DMainFrame
 class DMainFrame represents a graphical unit that contains DSubFrames Open a DMainFrame via openMainFrame(). More...
 
class  DSubFrame
 class DSubFrame displays an image within a DMainFrame More...
 
class  DHdf5Writer
 Class DHdf5Writer writes DImage objects to an HDF5 container file. More...
 
class  DImageSeries
 class DImageSeries provides access to image series, which may reside in a series of single image files or in one hdf5 container file. More...
 
class  DColorTable
 Class DColorTable is an opaque class containing color data that shall be passed to DColorMap. More...
 
class  DEigerStream
 class DEigerStream provides access the Eiger stream interface. More...
 
class  DImageWriter
 class DImageWriter writes DImage objects to files. More...
 
class  DMessageQueue
 Class DMessageQueue opens a message queue to communicate between processes. More...
 
class  DImageModule
 class DImageModule provides information of an image module e.g. More...
 
class  DNeXusTree
 class DNeXusTree forms a tree like representation of the NeXus/Hdf5 header. More...
 
class  DNeXusNode
 class DNeXusNode represents a NeXus node in a DNeXusTree. More...
 
class  DNeXusGroup
 class DNeXusGroup represents a group in the NeXus tree. More...
 
class  DAbstractNeXusData
 class DAbstractNeXusData represents NeXus nodes that accommodate data, i.e. More...
 
class  DNeXusData
 class DNeXusGroup represents a dataset in the NeXus tree. More...
 
class  DNeXusAttribute
 class DNeXusGroup represents an attribute in the NeXus tree. More...
 
class  DContrast
 Class DContrast computes recommendations for foreground and background values, that may be used when representing a DImageInt or DImageFloat by a color scale. More...
 
class  DPilatusCalibration
 DPilatusCalibration deprecated. More...
 
class  DRateCorrection
 Implements the rate correction. More...
 
class  DRect
 The DRect class defines a rectangle in the plane using integer precision. More...
 
class  DEigerFileWriter
 class DEigerFileWriter provides access to the EIGER filewriter module. More...
 
class  DEigerMonitor
 class DEigerMonitor provides access the Eiger monitor interface. More...
 
class  DImageOptionalData
 The DImageOptionalData class contains optional image parameters. More...
 
class  DEigerDetector
 class DEigerDetector provides access the Eiger configuration interface. More...
 
class  DEfficiencyCorrection
 Implements the efficiency correction. More...
 
class  DColorMap
 class DColorMap lets you map image data to rgb data. More...
 
class  DDrawingPrimitive
 class DDrawingPrimitve contains primitives that are displayed in a viewer window. More...
 
class  DDrawingPixel
 class DDrawingPixel is a DDrawingPrimitive that highlights a pixel in the viewer window by a cross. More...
 
class  DDrawingLine
 class DDrawingLine is a DDrawingPrimitive that represents a line in the viewer window. More...
 
class  DDrawingString
 class DDrawingString is a DDrawingPrimitive that represents a string in the viewer window. More...
 
class  DDrawingEllipse
 class DDrawingEllipse is a DDrawingPrimitive that represents a ellipse in the viewer window. More...
 
class  DImage
 The Dectris Image class. More...
 

Functions

def __DImageRadd__
 
def __DImageRsub__
 
def __DImageRmul__
 
def __DImageRdiv__
 
def __DImageSeriesIter__
 
def __DHdf5WriterEnter__
 
def __DHdf5WriterExit__
 
def openMainFrame
 Creates and displays new DMainFrame. More...
 
def display
 Displays image in new DMainFrame. More...
 
def readImage
 Read an image from a file and return an image object. More...
 
def version
 Version string. More...
 
def versionMajor
 Major version. More...
 
def versionMinor
 Minor version. More...
 
def versionPatch
 Patch version. More...
 

Variables

tuple msg = str(e)
 

Function Documentation

def dectris.albula.__DHdf5WriterEnter__ (   self)
def dectris.albula.__DHdf5WriterExit__ (   self,
  exc_type,
  exc_value,
  traceback 
)
def dectris.albula.__DImageRadd__ (   image,
  val 
)
def dectris.albula.__DImageRdiv__ (   image,
  val 
)
def dectris.albula.__DImageRmul__ (   image,
  val 
)
def dectris.albula.__DImageRsub__ (   image,
  val 
)
def dectris.albula.__DImageSeriesIter__ (   imageSeries)
def dectris.albula.display (   image,
  width = -1,
  height = -1,
  hideToolBar = False,
  disableClose = False,
  hideToolButtons = False,
  title = None 
)

Displays image in new DMainFrame.

Parameters
imageEither path to image file or DImage object
widthDisplayed width
heightDisplayed height
hideToolBarhide the tool bar. See DMainFrame.showToolBar() and DMainFrame.hideToolBar()
disableCloseIf set to True clicking the exit button does not close the DMainFrame.
hideToolButtonsSee DMainFrame.openSubFrame()
titleSee DMainFrame.openSubFrame()
Returns
Tuple (DMainFrame, DSubFrame)
def dectris.albula.openMainFrame (   width = -1,
  height = -1,
  hideToolBar = False,
  disableClose = False,
  enableGLSL = True 
)

Creates and displays new DMainFrame.

Parameters
widthDisplayed width
heightDisplayed height
hideToolBarhide the tool bar. See DMainFrame.showToolBar() and DMainFrame.hideToolBar()
disableCloseIf set to True clicking the exit button does not close the DMainFrame.
enableGLSLenable OpenGL shaders. For GLSL version < 1.30 (i.e. OpenGL version < 3.0) this option has no effect.
Returns
DMainFrame object
def dectris.albula.readImage (   fileName,
  timeout = 0 
)

Read an image from a file and return an image object.

If timeout > 0 wait timeout milliseconds for file to be created. Caveat: There is no way to figure out when writing to a file ALBULA is waiting for is finished. Hence write image first to a temporary file and rename it atomically to fileName. (rename, mv are atomic operations on unix systems)

Parameters
fileNamePath to file from where the image is read.
timeoutWait timeout milliseconds for file to be created (timeout == 0: return immediately, timeout < 0: wait forever)
Returns
DImage
def dectris.albula.version ( )

Version string.

Returns
String "Major.Minor-Patch"
def dectris.albula.versionMajor ( )

Major version.

Returns
Integer
def dectris.albula.versionMinor ( )

Minor version.

Returns
Integer
def dectris.albula.versionPatch ( )

Patch version.

Returns
Integer

Variable Documentation

tuple dectris.albula.msg = str(e)