xmto2xmta.mapstructure
Class StrXMTO
java.lang.Object
|
+--xmto2xmta.MapRoot
|
+--xmto2xmta.mapstructure.StrStructureElement
|
+--xmto2xmta.mapstructure.StrXMTO
- All Implemented Interfaces:
- MapInterface
- public class StrXMTO
- extends StrStructureElement
Class to handle the conversion of the XMT-O element. The class
name is XMTO instead of XMT-O since java doesn't allow a dash character
in the class name.
History:
- 13 Dec 2000 - Created file.
- 30 Apr 2001 - Add switch to generate new format for XMT-A files.
- 06 Jun 2001 - Move defs group under a switch so that it can be hidden.
- 17 Jun 2001 - Add %&t;texture> as one of the classes to search for
in determining whether or not we have Object Descriptors.
- 20 Jun 2001 - Remove support for old XMT-A format.
- 21 Jun 2001 - Add checking %&t;xmtaMedia> to see if it has object descriptors.
- 28 Jun 2001 - Changed SLConfigDescriptor to use predefined option.
Field Summary |
private static boolean |
debug_
Whether debug information is to be printed to the console. |
private XMTO |
treeXmto_
|
private java.util.ResourceBundle |
xmto2XmtaRes_
|
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
debug_
private static boolean debug_
- Whether debug information is to be printed to the console.
default is not have debug information printed (false).
treeXmto_
private XMTO treeXmto_
xmto2XmtaRes_
private java.util.ResourceBundle xmto2XmtaRes_
StrXMTO
public StrXMTO()
createXmtaBodyInfrasture
private boolean createXmtaBodyInfrasture()
- Create the body infrastructure.
<Body>
<par begin="0"/>
<par begin="0">
<Replace>
<Scene>
<OrderedGroup>
<children>
<Group DEF="???">
<children/>
</Group>
<Switch whichChoice="-1">
<choice>
<Group DEF="???">
<children/>
</Group>
</choice>
<Switch>
<Switch whichChoice="-1">
<choice>
<Group DEF="???">
<children/>
</Group>
</choice>
<Switch>
<OrderedGroup DEF="???">
<children/>
</OrderedGroup>
<OrderedGroup DEF="???">
<children/>
</OrderedGroup>
</children>
</Group>
</Scene>
</Replace>
</par>
<par begin="0"/>
<par begin="0"/>
</Body>
createXmtaHeaderInfrastructure
private boolean createXmtaHeaderInfrastructure()
- Create the XMT-A infrasturcture.
<Header>
<InitialObjectDescriptor ObjectDescriptorID="???">
<esDescr>
<ES_Descriptor ES_ID="???">
<decConfigDescr>
<DecoderConfigDescriptor bufferSizeDB="auto" objectTypeIndication="255" streamType="3">
<decSpecificInfo>
<BIFSConfig nodeIDbits="auto" routeIDbits="auto"/>
<commandStream pixelMetric="???">
<size pixelWidth="???" pixelHeight="???"/>
</commandStream>
</BIFSConfig>
</decSpecificInfo>
</DecoderConfigDescriptor>
</decConfigDescr>
<slConfigDescr>
<SLConfigDescriptor>
<predefined value="2"/>
</SLConfigDescriptor>
</slConfigDescr>
</ES_Descriptor>
<ES_Descriptor ES_ID="???">
<decConfigDescr>
<DecoderConfigDescriptor bufferSizeDB="auto" objectTypeIndication="255" streamType="1"/>
</decConfigDescr>
<slConfigDescr>
<SLConfigDescriptor>
<predefined value="2"/>
</SLConfigDescriptor>
</slConfigDescr>
</ES_Descriptor>
</esDescr>
</InitialObjectDescriptor>
</Header>
createXmtaInfrastructure
private boolean createXmtaInfrastructure()
- Create the XMT-A infrasturcture.
determineHasBackdropSrc
private boolean determineHasBackdropSrc(TreeElement treeElement,
java.lang.Class backdropClass,
java.lang.reflect.Method getXmtoAttrSrcMethod)
determineHasClass
private boolean determineHasClass(TreeElement treeElement,
java.util.Vector classes)
determineHasObjectDescriptors
private boolean determineHasObjectDescriptors()
determineHasXmtaMediaHasOD
private boolean determineHasXmtaMediaHasOD(TreeElement treeElement,
java.lang.Class xmtaMediaClass,
java.lang.reflect.Method getXmtoAttrHasODMethod)
doMapping
public void doMapping()
init
public void init(Xmto2Xmta xmto2xmta,
ConvertElement element)
throws java.lang.Exception
- Overrides:
init
in class MapRoot
setDebug
public static void setDebug(boolean debug)
- Enable debugging information to be printed to the console.
- Parameters:
debug
- sets debug information is printed
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object