public class I3DXMLImporter
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
I3DXMLImporter.ZipInputStreamWrapper |
Constructor and Description |
---|
I3DXMLImporter() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getAttribute(org.w3c.dom.Node node,
java.lang.String attributeName) |
static boolean |
getBooleanAttribute(org.w3c.dom.Node node,
java.lang.String attributeName) |
static double |
getDoubleAttribute(org.w3c.dom.Node node,
java.lang.String attributeName) |
static int |
getElementIntegerValue(org.w3c.dom.Node node) |
static java.lang.String |
getElementValue(org.w3c.dom.Node node) |
static int |
getIntegerAttribute(org.w3c.dom.Node node,
java.lang.String attributeName) |
static I3DXML.Matrix4x3 |
getMatrix4x3(org.w3c.dom.Node node) |
static org.w3c.dom.Node |
getXMLNode(java.io.InputStream is)
build a XML node tree and returns its root node
|
static void |
main(java.lang.String[] args) |
static void |
printNode(org.w3c.dom.Node node,
int indentDepth) |
static I3DXML |
read(java.io.File file) |
static I3DXML |
read(java.io.InputStream is,
java.lang.String filename) |
static I3DXML |
read(java.lang.String filename) |
static void |
read3DRep(I3DXML document,
java.lang.String filename,
java.io.InputStream is) |
static void |
read3DXML(I3DXML document,
java.lang.String filename,
java.io.InputStream is) |
static void |
readAssociatedFile(I3DXML document,
I3DXML.ReferenceRep referenceRep) |
static void |
readCATMaterial(I3DXML document,
org.w3c.dom.Node node) |
static void |
readCATMaterialRef(I3DXML document,
org.w3c.dom.Node node) |
static void |
readCATRepImage(I3DXML document,
org.w3c.dom.Node node) |
static void |
readDefaultView(I3DXML document,
org.w3c.dom.Node node) |
static I3DXML.FaceGPType |
readFaceGP(org.w3c.dom.Node node) |
static I3DXML.FaceSetType |
readFaceSet(org.w3c.dom.Node node) |
static void |
readHeader(I3DXML document,
org.w3c.dom.Node node) |
static void |
readInstance3D(I3DXML document,
org.w3c.dom.Node node) |
static void |
readInstanceRep(I3DXML document,
org.w3c.dom.Node node) |
static void |
readModel3DXML(I3DXML document,
org.w3c.dom.Node node) |
static I3DXML.PolygonalRepType |
readPolygonalRepType(I3DXML.XMLRepresentationDocument document,
org.w3c.dom.Node node) |
static I3DXML.PolylineGPType |
readPolylineGP(org.w3c.dom.Node node) |
static I3DXML.PolylineSetType |
readPolylineSet(org.w3c.dom.Node node) |
static void |
readProductStructure(I3DXML document,
org.w3c.dom.Node node) |
static void |
readReference3D(I3DXML document,
org.w3c.dom.Node node) |
static void |
readReferenceRep(I3DXML document,
org.w3c.dom.Node node) |
static I3DXML.TextureCoordinatesBufferType |
readTextureCoordinatesBuffer(org.w3c.dom.Node node) |
static I3DXML.VertexBufferType |
readVertexBuffer(org.w3c.dom.Node node) |
static I3DXML.VisualizationRepType |
readVisualizationRepType(I3DXML.XMLRepresentationDocument document,
org.w3c.dom.Node node) |
static void |
readXMLRepresentation(I3DXML.XMLRepresentationDocument rep,
org.w3c.dom.Node node) |
static void |
recursivePrint(org.w3c.dom.Node node,
int depth) |
public static I3DXML read(java.lang.String filename) throws java.io.IOException
java.io.IOException
public static I3DXML read(java.io.File file) throws java.io.IOException
java.io.IOException
public static I3DXML read(java.io.InputStream is, java.lang.String filename) throws java.io.IOException
java.io.IOException
public static org.w3c.dom.Node getXMLNode(java.io.InputStream is)
public static void read3DXML(I3DXML document, java.lang.String filename, java.io.InputStream is) throws java.io.IOException
java.io.IOException
public static void readModel3DXML(I3DXML document, org.w3c.dom.Node node)
public static void readHeader(I3DXML document, org.w3c.dom.Node node)
public static void readProductStructure(I3DXML document, org.w3c.dom.Node node)
public static void readReference3D(I3DXML document, org.w3c.dom.Node node)
public static void readInstance3D(I3DXML document, org.w3c.dom.Node node)
public static void readReferenceRep(I3DXML document, org.w3c.dom.Node node)
public static void readAssociatedFile(I3DXML document, I3DXML.ReferenceRep referenceRep)
public static void readInstanceRep(I3DXML document, org.w3c.dom.Node node)
public static void readDefaultView(I3DXML document, org.w3c.dom.Node node)
public static void readCATMaterialRef(I3DXML document, org.w3c.dom.Node node)
public static void readCATMaterial(I3DXML document, org.w3c.dom.Node node)
public static void readCATRepImage(I3DXML document, org.w3c.dom.Node node)
public static void read3DRep(I3DXML document, java.lang.String filename, java.io.InputStream is) throws java.io.IOException
java.io.IOException
public static void readXMLRepresentation(I3DXML.XMLRepresentationDocument rep, org.w3c.dom.Node node)
public static I3DXML.VisualizationRepType readVisualizationRepType(I3DXML.XMLRepresentationDocument document, org.w3c.dom.Node node)
public static I3DXML.PolygonalRepType readPolygonalRepType(I3DXML.XMLRepresentationDocument document, org.w3c.dom.Node node)
public static I3DXML.FaceSetType readFaceSet(org.w3c.dom.Node node)
public static I3DXML.FaceGPType readFaceGP(org.w3c.dom.Node node)
public static I3DXML.PolylineSetType readPolylineSet(org.w3c.dom.Node node)
public static I3DXML.PolylineGPType readPolylineGP(org.w3c.dom.Node node)
public static I3DXML.VertexBufferType readVertexBuffer(org.w3c.dom.Node node)
public static I3DXML.TextureCoordinatesBufferType readTextureCoordinatesBuffer(org.w3c.dom.Node node)
public static java.lang.String getAttribute(org.w3c.dom.Node node, java.lang.String attributeName)
public static int getIntegerAttribute(org.w3c.dom.Node node, java.lang.String attributeName) throws java.lang.NumberFormatException
java.lang.NumberFormatException
public static double getDoubleAttribute(org.w3c.dom.Node node, java.lang.String attributeName) throws java.lang.NumberFormatException
java.lang.NumberFormatException
public static boolean getBooleanAttribute(org.w3c.dom.Node node, java.lang.String attributeName) throws java.lang.NumberFormatException
java.lang.NumberFormatException
public static java.lang.String getElementValue(org.w3c.dom.Node node)
public static int getElementIntegerValue(org.w3c.dom.Node node) throws java.lang.NumberFormatException
java.lang.NumberFormatException
public static I3DXML.Matrix4x3 getMatrix4x3(org.w3c.dom.Node node) throws java.lang.NumberFormatException
java.lang.NumberFormatException
public static void printNode(org.w3c.dom.Node node, int indentDepth)
public static void recursivePrint(org.w3c.dom.Node node, int depth)
public static void main(java.lang.String[] args)