|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler org.reprap.RFO.XMLIn
class RFO.XMLIn
Field Summary | |
---|---|
private java.lang.String |
element
The current XML item |
private java.lang.String |
filetype
What type of file (Only STLs supported at the moment). |
private STLObject |
firstSTL
The first of a list of STLs being read. |
private java.lang.String |
location
File location for reading (eg for an input STL file). |
private java.lang.String |
material
The name of the material (i.e. |
private double[] |
mElements
Transfom matrix to get an item in the right place. |
private RFO |
rfo
The rfo that we are reading in |
private int |
rowNumber
|
private STLObject |
stl
The STL being read |
private javax.media.j3d.Transform3D |
transform
|
Constructor Summary | |
---|---|
RFO.XMLIn(java.lang.String legendFile,
RFO r)
Open up legendFile and use it to build RFO rfo. |
Method Summary | |
---|---|
void |
characters(char[] ch,
int start,
int length)
Nothing to do for characters in between. |
void |
endDocument()
End the XML document - no action needed. |
void |
endElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName)
End an element |
private void |
setMToIdentity()
Initialise the matrix to the identity matrix. |
void |
startDocument()
Begin the XML document - no action needed. |
void |
startElement(java.lang.String uri,
java.lang.String name,
java.lang.String qName,
org.xml.sax.Attributes atts)
Start an element |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private RFO rfo
private STLObject stl
private STLObject firstSTL
private java.lang.String element
private java.lang.String location
private java.lang.String filetype
private java.lang.String material
private double[] mElements
private javax.media.j3d.Transform3D transform
private int rowNumber
Constructor Detail |
---|
RFO.XMLIn(java.lang.String legendFile, RFO r)
legendFile
- r
- Method Detail |
---|
private void setMToIdentity()
public void startDocument()
startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
public void endDocument()
endDocument
in interface org.xml.sax.ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
public void startElement(java.lang.String uri, java.lang.String name, java.lang.String qName, org.xml.sax.Attributes atts)
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
public void endElement(java.lang.String uri, java.lang.String name, java.lang.String qName)
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
public void characters(char[] ch, int start, int length)
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |