org.jcae.viewer3d.fe
Class NodeSelectionImpl

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

public class NodeSelectionImpl
extends java.lang.Object
implements NodeSelection


Constructor Summary
NodeSelectionImpl(int domainID)
           
 
Method Summary
 void clear()
           
 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

NodeSelectionImpl

public NodeSelectionImpl(int domainID)
Method Detail

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

clear

public void clear()

toString

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

getDomainID

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