public class LCDDMaterialHelper extends Object
Modifier and Type | Field and Description |
---|---|
(package private) XMLMaterialManager |
xmgr |
Constructor and Description |
---|
LCDDMaterialHelper(XMLMaterialManager xmgr)
Ctor for helper which will use the given
XMLMaterialManager . |
Modifier and Type | Method and Description |
---|---|
private void |
addReferences(org.jdom.Element e)
Add material reference from a materials section.
|
private void |
addReferences(org.jdom.Element e,
org.jdom.Document d)
Recursively add the referenced materials or elements from a single material node.
|
private void |
addReferencesFromCompact(org.jdom.Element lccdd)
Add references to materials from a compact document to this manager.
|
private void |
copyMaterialElementsToLCDD(LCDD lcdd)
Copy material elements into LCDD.
|
private void |
copyMaterialsToLCDD(LCDD lcdd)
Copy all materials into an LCDD object for output.
|
void |
copyToLCDD(org.jdom.Element compact,
LCDD lcdd) |
void |
copyToLCDD(LCDD lcdd)
Copy material data into LCDD.
|
private static Material |
makeMaterial(org.jdom.Element m) |
private static org.jdom.Element |
makeMaterialElement(org.jdom.Element e)
Copy a MaterialElement node.
|
private void |
makeReferenceList(String matName,
List refs) |
private void |
printXMLMat() |
void |
resolveLCDDMaterialReference(String name,
LCDD lcdd)
Load referenced material into this manager.
|
XMLMaterialManager xmgr
public LCDDMaterialHelper(XMLMaterialManager xmgr)
XMLMaterialManager
.xmgr
- The XMLMaterialManager with material XML data.private static org.jdom.Element makeMaterialElement(org.jdom.Element e)
e
- The XML element to copy.org.jdom.JDOMException
private static Material makeMaterial(org.jdom.Element m)
private void printXMLMat()
private void copyMaterialsToLCDD(LCDD lcdd) throws org.jdom.JDOMException
lcdd
- The LCDD object.org.jdom.JDOMException
private void addReferencesFromCompact(org.jdom.Element lccdd)
lccdd
- The compact detector.org.jdom.JDOMException
private void addReferences(org.jdom.Element e, org.jdom.Document d)
public void copyToLCDD(LCDD lcdd) throws org.jdom.JDOMException
lcdd
- The LCDD object.org.jdom.JDOMException
private void copyMaterialElementsToLCDD(LCDD lcdd)
lcdd
- The LCDD object.private void addReferences(org.jdom.Element e)
e
- The element pointing to the materials section.public void resolveLCDDMaterialReference(String name, LCDD lcdd)
name
- The name of the material.lcdd
- The LCDD object to update.public void copyToLCDD(org.jdom.Element compact, LCDD lcdd)
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.