org.jcae.viewer3d.fd
Class ViewableFD

java.lang.Object
  extended by org.jcae.viewer3d.ViewableAdaptor
      extended by org.jcae.viewer3d.fd.ViewableFD
All Implemented Interfaces:
Viewable

public class ViewableFD
extends ViewableAdaptor

The J3D node of this viewable has the following structure

  parentBranchGroup
 |
 +-domainBg
 |
 +-wire Shape3D (also in wires Collection)
 |
 +-slots Shape3D (also in slots Collection)
 |
 +-plate Shape3d (also in plates Collection)
 | 
 +-plate wireframe Shape3d


Field Summary
protected  javax.media.j3d.BranchGroup parentBranchGroup
           
protected  FDProvider provider
           
static byte SELECT_PLATE
           
 
Constructor Summary
ViewableFD(FDProvider provider)
           
 
Method Summary
 void domainsChangedPerform(int[] domainId)
           
 DomainProvider getDomainProvider()
          Return the domain provider of this viewable
 javax.media.j3d.Node getJ3DNode()
          Return the Java3D Node associated to this Viewable
 FDSelection[] getSelection()
          Return the current selection
 void pick(PickViewable result)
           
 void setCellPicking(boolean b)
          Tell the viewer to select wire and slot by elementary element
 void setDomainPickable(int domainID, boolean enable)
           
 void setDomainVisible(java.util.Map<java.lang.Integer,java.lang.Boolean> map)
           
 void setMarkPicking(boolean enable)
           
 void setPlatePicking(boolean enable)
           
 void setSlotPicking(boolean enable)
           
 void setWirePicking(boolean enable)
           
 void unselectAll()
           
 
Methods inherited from class org.jcae.viewer3d.ViewableAdaptor
addSelectionListener, domainsChanged, fireSelectionChanged, removeSelectionListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SELECT_PLATE

public static final byte SELECT_PLATE
See Also:
Constant Field Values

provider

protected FDProvider provider

parentBranchGroup

protected javax.media.j3d.BranchGroup parentBranchGroup
Constructor Detail

ViewableFD

public ViewableFD(FDProvider provider)
Method Detail

domainsChangedPerform

public void domainsChangedPerform(int[] domainId)
Specified by:
domainsChangedPerform in class ViewableAdaptor
Parameters:
domainId - The ids (Integer) of domains that changed or null to specify that even ids may have change

setMarkPicking

public void setMarkPicking(boolean enable)
Parameters:
markPickable2 -

getDomainProvider

public DomainProvider getDomainProvider()
Description copied from interface: Viewable
Return the domain provider of this viewable

Specified by:
getDomainProvider in interface Viewable
Specified by:
getDomainProvider in class ViewableAdaptor
Returns:

setDomainVisible

public void setDomainVisible(java.util.Map<java.lang.Integer,java.lang.Boolean> map)
Specified by:
setDomainVisible in interface Viewable
Specified by:
setDomainVisible in class ViewableAdaptor
Parameters:
map - map domain id (Integer) to visible state (Boolean)

setDomainPickable

public void setDomainPickable(int domainID,
                              boolean enable)

setPlatePicking

public void setPlatePicking(boolean enable)

setWirePicking

public void setWirePicking(boolean enable)

setSlotPicking

public void setSlotPicking(boolean enable)

pick

public void pick(PickViewable result)
Specified by:
pick in interface Viewable
Specified by:
pick in class ViewableAdaptor

getJ3DNode

public javax.media.j3d.Node getJ3DNode()
Description copied from interface: Viewable
Return the Java3D Node associated to this Viewable

Specified by:
getJ3DNode in interface Viewable
Specified by:
getJ3DNode in class ViewableAdaptor

unselectAll

public void unselectAll()
Specified by:
unselectAll in interface Viewable
Specified by:
unselectAll in class ViewableAdaptor

getSelection

public FDSelection[] getSelection()
Return the current selection


setCellPicking

public void setCellPicking(boolean b)
Tell the viewer to select wire and slot by elementary element