|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsyn3d.base.ActiveNode
examples.syn3d.plugin.java3d.XYZResultNode
public class XYZResultNode
This is an example node to handle files in X-Y-Z-Result format. This is a simple format, which can be loaded by programs like TecPlot. The format is plain text. The first 2 lines are information on the data (see load method). These include the number of points and number of triangles. Then, the values are given line by line : The X, Y, Z coordinates of a point, plus values associated to this point (ex: temperature, voltage...) An empty line then separates the definition of the triangles. The index of the previously defined points (starting from one) are given line by line, to from the 3 summits of the triangle.
Field Summary |
---|
Fields inherited from class syn3d.base.ActiveNode |
---|
children, name, parent |
Constructor Summary | |
---|---|
XYZResultNode(ActiveNode parent)
This node needs a parent node to attach to |
Method Summary | |
---|---|
void |
doAction(java.lang.Object action)
Do a previously declared action |
java.util.List |
getActions()
Let's declare an action to load a file |
protected void |
load(java.io.File file)
Called from doAction => Load a file with the correct file format This Method should overriden by subclasses, so as to create 3D objects according to the data in the file. |
void |
showResult(int num)
Shows the given result from the data file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XYZResultNode(ActiveNode parent)
Method Detail |
---|
public java.util.List getActions()
getActions
in class ActiveNode
public void doAction(java.lang.Object action)
doAction
in class ActiveNode
action
- An action previously declared by the getActions method.protected void load(java.io.File file) throws java.io.IOException
java.io.IOException
public void showResult(int num)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |