org.jcae.viewer3d.cad
Class CADSelection

java.lang.Object
  extended by org.jcae.viewer3d.cad.CADSelection

public class CADSelection
extends java.lang.Object

A selection in a ViewableCAD. If faceIDs, edgesIDs and vertexIDs are null, the whole domain is concidered as selected.


Constructor Summary
CADSelection(int domainID, int[] faceIDs, int[] edgeIDs, int[] vertexIDs)
           
 
Method Summary
 int getDomainID()
          Return the domain ID of the this selection.
 int[] getEdgeIDs()
          Return the edges IDs of the this selection.
 int[] getFaceIDs()
          Return the faces IDs of the this selection.
 int[] getVertexIDs()
          Return the vertices IDs of the this selection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CADSelection

public CADSelection(int domainID,
                    int[] faceIDs,
                    int[] edgeIDs,
                    int[] vertexIDs)
Parameters:
domainID -
faceIDs -
edgeIDs -
vertexIDs -
Method Detail

getDomainID

public int getDomainID()
Return the domain ID of the this selection. The first domain returned by the CADProvider get the 0 ID, and so on.


getEdgeIDs

public int[] getEdgeIDs()
Return the edges IDs of the this selection. The first edge returned by the CADDomain get the 0 ID, and so on.


getFaceIDs

public int[] getFaceIDs()
Return the faces IDs of the this selection. The first face returned by the CADDomain get the 0 ID, and so on.


getVertexIDs

public int[] getVertexIDs()
Return the vertices IDs of the this selection. The first vertex returned by the CADDomain get the 0 ID, and so on.