org.jcae.viewer3d.fd
Class ViewableFD
java.lang.Object
org.jcae.viewer3d.ViewableAdaptor
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SELECT_PLATE
public static final byte SELECT_PLATE
- See Also:
- Constant Field Values
provider
protected FDProvider provider
parentBranchGroup
protected javax.media.j3d.BranchGroup parentBranchGroup
ViewableFD
public ViewableFD(FDProvider provider)
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