Download Benchtop System Users Manual

Transcript
Benchtop System Users Manual, Release 4.3
def getCube(self, sourceID=None):
"""
Returns the requested datacube.
returns the current cube.
"""
If sourceID is None,
def getRendering(self, renderID=None):
"""
Returns the requested rendering. If sourceID is None,
returns the current rendering.
"""
def getSpectrum(self, sourceID=None):
"""
Returns the requested spectrum. If sourceID is None,
returns the current spectrum.
"""
def addCube(self, datacube, name=None, render=True):
"""
Adds a datacube to the workbench.
"""
def addSpectrum(self, spectrumObject, name=None):
"""
Adds a spectrum to the workbench.
"""
def postMessage(self, message, title=''):
"""
Post a message in a dialog box
"""
def postScrolledMessage(self, message, title=''):
"""
Post a message in a dialog box that can be scrolled and text
can be selected. Good for long messages
"""
def postQuestion(self, message, title="Proceed?"):
"""
post message. returns True if user selects 'OK' and False if 'Cancel'
params:
message: the message to show
title: the dialog box title
"""
def requestOpenFilename(self,
wildcard='',
message="Enter Filename To Open ",
multiple=False):
"""
Requests a filename(s) from the user. Returns
the filename as a string, or a list of strings
if multiple=True. Returns None if the user selects
'Cancel'.
"""
108
Chapter 10. Custom Data Analysis: Writing Plugins