org.jcae.viewer3d.fe.amibe
Class AmibeNodeSelection

java.lang.Object
  extended by org.jcae.viewer3d.fe.amibe.AmibeNodeSelection
All Implemented Interfaces:
java.lang.Cloneable, NodeSelection

public class AmibeNodeSelection
extends java.lang.Object
implements NodeSelection


Constructor Summary
AmibeNodeSelection(AmibeProvider provider, NodeSelection[] ns)
           
 
Method Summary
 java.lang.Object clone()
           
 int getCount()
          The number of selected nodes
 int getDomainID()
           
 int getElementID(int id)
          The id of the element owning the node
 byte getNodeID(int id)
          The id of node in the element
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AmibeNodeSelection

public AmibeNodeSelection(AmibeProvider provider,
                          NodeSelection[] ns)
                   throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getDomainID

public int getDomainID()
Specified by:
getDomainID in interface NodeSelection

getCount

public int getCount()
Description copied from interface: NodeSelection
The number of selected nodes

Specified by:
getCount in interface NodeSelection

getElementID

public int getElementID(int id)
Description copied from interface: NodeSelection
The id of the element owning the node

Specified by:
getElementID in interface NodeSelection
Parameters:
id - the id of the node (between 0 and getCound()-1)

getNodeID

public byte getNodeID(int id)
Description copied from interface: NodeSelection
The id of node in the element

Specified by:
getNodeID in interface NodeSelection
Parameters:
id - the id of the node (between 0 and getCound()-1)
Returns:
0,1 or 2 for triangles, 0 or 1 for beams

clone

public java.lang.Object clone()
Specified by:
clone in interface NodeSelection
Overrides:
clone in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object