areaDetector  3-5-0
EPICS areaDetector framework
Functions | Variables
makeAdl Namespace Reference

Functions

def elements (node)
 
def getText (node)
 
def handle_node (node)
 
def handle_category (category)
 
def quoteString (string)
 
def make_box ()
 
def make_description ()
 
def make_label ()
 
def make_ro ()
 
def make_demand ()
 
def make_rbv ()
 
def make_menu ()
 
def make_cmd ()
 
def 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")
 
dictionary lookup = {}
 
dictionary 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
 
string 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"))
 
dictionary recordName = records[nodeName]
 
bool ro = False
 
string desc = ""
 
list descs = ["%s: "% nodeName, "", "", "", "", ""]
 
int i = 0
 
int nx = x + 5
 
int tlen = len(nodeName) * 10. / labelWidth
 
int labelHeight = 20
 

Function Documentation

◆ elements()

def makeAdl.elements (   node)

◆ getText()

def makeAdl.getText (   node)

◆ handle_category()

def makeAdl.handle_category (   category)

◆ handle_node()

def makeAdl.handle_node (   node)

◆ make_box()

def makeAdl.make_box ( )

◆ make_cmd()

def makeAdl.make_cmd ( )

◆ make_demand()

def makeAdl.make_demand ( )

◆ make_description()

def makeAdl.make_description ( )

◆ make_label()

def makeAdl.make_label ( )

◆ make_menu()

def makeAdl.make_menu ( )

◆ make_rbv()

def makeAdl.make_rbv ( )

◆ make_ro()

def makeAdl.make_ro ( )

◆ quoteString()

def makeAdl.quoteString (   string)

◆ write_adl_file()

def makeAdl.write_adl_file (   fileName)

Variable Documentation

◆ adl_more_filename

makeAdl.adl_more_filename = os.path.join(prefix, "op", "adl", camera_name + "-features")

◆ args

makeAdl.args

◆ boxHeight

int makeAdl.boxHeight = len(nodes) * 25 + 10 + maxLabelHeight

◆ boxWidth

int makeAdl.boxWidth = 5 + labelWidth + 5 + readonlyWidth + 5

◆ camera_name

makeAdl.camera_name = args[1]

◆ categories

list makeAdl.categories = []

◆ desc

def makeAdl.desc = ""

◆ descs

list makeAdl.descs = ["%s: "% nodeName, "", "", "", "", ""]

◆ doneNodes

list makeAdl.doneNodes = []

◆ fileNumber

int makeAdl.fileNumber = 1

◆ genicam_lines

makeAdl.genicam_lines = open(args[0]).readlines()

◆ h

int makeAdl.h = 40

◆ headingHeight

int makeAdl.headingHeight = 20

◆ headingWidth

int makeAdl.headingWidth = boxWidth -10

◆ headingX

int makeAdl.headingX = x + 5

◆ headingY

int makeAdl.headingY = y + 5

◆ i

int makeAdl.i = 0

◆ labelHeight

int makeAdl.labelHeight = 20

◆ labelWidth

int makeAdl.labelWidth = 220

◆ lookup

dictionary makeAdl.lookup = {}

◆ maxLabelHeight

int makeAdl.maxLabelHeight = 20

◆ maxScreenHeight

int makeAdl.maxScreenHeight = 850

◆ maxScreenWidth

int makeAdl.maxScreenWidth = 1600

◆ menuHeight

int makeAdl.menuHeight = 20

◆ menuWidth

int makeAdl.menuWidth = 150

◆ messageButtonHeight

int makeAdl.messageButtonHeight = 20

◆ messageButtonWidth

int makeAdl.messageButtonWidth = 150

◆ nodeName

makeAdl.nodeName = str(node.getAttribute("Name"))

◆ numColumns

int makeAdl.numColumns = 1

◆ nx

int makeAdl.nx = x + 5

◆ options

makeAdl.options

◆ parser

makeAdl.parser = OptionParser()

◆ prefix

makeAdl.prefix = os.path.abspath(os.path.join(os.path.dirname(__file__),".."))

◆ readbackHeight

int makeAdl.readbackHeight = 18

◆ readbackWidth

int makeAdl.readbackWidth = 90

◆ readonlyHeight

int makeAdl.readonlyHeight = 18

◆ readonlyWidth

int makeAdl.readonlyWidth = 150

◆ recordName

dictionary makeAdl.recordName = records[nodeName]

◆ records

dictionary makeAdl.records = {}

◆ ro

bool makeAdl.ro = False

◆ start_line

makeAdl.start_line = min(i for i in range(2) if genicam_lines[i].lstrip().startswith("<"))

◆ stdout

makeAdl.stdout = sys.stdout

◆ structure

list makeAdl.structure = []

◆ text

string makeAdl.text = ""

◆ textEntryHeight

int makeAdl.textEntryHeight = 20

◆ textEntryWidth

int makeAdl.textEntryWidth = 60

◆ tlen

int makeAdl.tlen = len(nodeName) * 10. / labelWidth

◆ w

int makeAdl.w = boxWidth

◆ x

int makeAdl.x = 5

◆ xml_root

makeAdl.xml_root = parseString("".join(genicam_lines[start_line:]).lstrip())

◆ y

int makeAdl.y = 40