areaDetector 3-14
EPICS areaDetector framework
|
Functions | |
elements (node) | |
getText (node) | |
handle_node (node) | |
handle_category (category) | |
quoteString (string) | |
make_box () | |
make_description () | |
make_label () | |
make_ro () | |
make_demand () | |
make_rbv () | |
make_menu () | |
make_cmd () | |
write_adl_file (fileName) | |
Variables | |
parser = OptionParser() | |
options | |
args | |
genicam_lines = open(args[0]).readlines() | |
start_line = min(i for i in range(2) if genicam_lines[i].lstrip().startswith("<")) | |
xml_root = parseString("".join(genicam_lines[start_line:]).lstrip()) | |
camera_name = args[1] | |
prefix = os.path.abspath(os.path.join(os.path.dirname(__file__),"..")) | |
adl_more_filename = os.path.join(prefix, "op", "adl", camera_name + "-features") | |
dict | lookup = {} |
dict | records = {} |
list | categories = [] |
list | structure = [] |
list | doneNodes = [] |
stdout = sys.stdout | |
int | maxScreenWidth = 1600 |
int | maxScreenHeight = 850 |
int | headingHeight = 20 |
int | labelWidth = 220 |
int | maxLabelHeight = 20 |
int | readonlyWidth = 150 |
int | readonlyHeight = 18 |
int | readbackWidth = 90 |
int | readbackHeight = 18 |
int | textEntryWidth = 60 |
int | textEntryHeight = 20 |
int | menuWidth = 150 |
int | menuHeight = 20 |
int | messageButtonWidth = 150 |
int | messageButtonHeight = 20 |
int | boxWidth = 5 + labelWidth + 5 + readonlyWidth + 5 |
int | w = boxWidth |
int | h = 40 |
int | x = 5 |
int | y = 40 |
str | text = "" |
int | numColumns = 1 |
int | fileNumber = 1 |
int | boxHeight = len(nodes) * 25 + 10 + maxLabelHeight |
int | headingY = y + 5 |
int | headingX = x + 5 |
int | headingWidth = boxWidth -10 |
nodeName = str(node.getAttribute("Name")) | |
dict | recordName = records[nodeName] |
bool | ro = False |
str | desc = "" |
list | descs = ["%s: "% nodeName, "", "", "", "", ""] |
int | i = 0 |
int | nx = x + 5 |
int | tlen = len(nodeName) * 10. / labelWidth |
int | labelHeight = 20 |
makeAdl.elements | ( | node | ) |
makeAdl.getText | ( | node | ) |
makeAdl.handle_category | ( | category | ) |
makeAdl.handle_node | ( | node | ) |
makeAdl.make_box | ( | ) |
makeAdl.make_cmd | ( | ) |
makeAdl.make_demand | ( | ) |
makeAdl.make_description | ( | ) |
makeAdl.make_label | ( | ) |
makeAdl.make_menu | ( | ) |
makeAdl.make_rbv | ( | ) |
makeAdl.make_ro | ( | ) |
makeAdl.quoteString | ( | string | ) |
makeAdl.write_adl_file | ( | fileName | ) |
makeAdl.adl_more_filename = os.path.join(prefix, "op", "adl", camera_name + "-features") |
makeAdl.args |
int makeAdl.boxHeight = len(nodes) * 25 + 10 + maxLabelHeight |
int makeAdl.boxWidth = 5 + labelWidth + 5 + readonlyWidth + 5 |
makeAdl.camera_name = args[1] |
list makeAdl.categories = [] |
makeAdl.desc = "" |
list makeAdl.descs = ["%s: "% nodeName, "", "", "", "", ""] |
list makeAdl.doneNodes = [] |
int makeAdl.fileNumber = 1 |
makeAdl.genicam_lines = open(args[0]).readlines() |
int makeAdl.h = 40 |
int makeAdl.headingHeight = 20 |
int makeAdl.headingWidth = boxWidth -10 |
int makeAdl.headingX = x + 5 |
int makeAdl.headingY = y + 5 |
int makeAdl.i = 0 |
int makeAdl.labelHeight = 20 |
int makeAdl.labelWidth = 220 |
dict makeAdl.lookup = {} |
int makeAdl.maxLabelHeight = 20 |
int makeAdl.maxScreenHeight = 850 |
int makeAdl.maxScreenWidth = 1600 |
int makeAdl.menuHeight = 20 |
int makeAdl.menuWidth = 150 |
int makeAdl.messageButtonHeight = 20 |
int makeAdl.messageButtonWidth = 150 |
makeAdl.nodeName = str(node.getAttribute("Name")) |
int makeAdl.numColumns = 1 |
int makeAdl.nx = x + 5 |
makeAdl.options |
makeAdl.parser = OptionParser() |
makeAdl.prefix = os.path.abspath(os.path.join(os.path.dirname(__file__),"..")) |
int makeAdl.readbackHeight = 18 |
int makeAdl.readbackWidth = 90 |
int makeAdl.readonlyHeight = 18 |
int makeAdl.readonlyWidth = 150 |
dict makeAdl.records = {} |
bool makeAdl.ro = False |
makeAdl.start_line = min(i for i in range(2) if genicam_lines[i].lstrip().startswith("<")) |
makeAdl.stdout = sys.stdout |
list makeAdl.structure = [] |
str makeAdl.text = "" |
int makeAdl.textEntryHeight = 20 |
int makeAdl.textEntryWidth = 60 |
int makeAdl.tlen = len(nodeName) * 10. / labelWidth |
int makeAdl.w = boxWidth |
int makeAdl.x = 5 |
makeAdl.xml_root = parseString("".join(genicam_lines[start_line:]).lstrip()) |
int makeAdl.y = 40 |