org.jcae.viewer3d.fe
Class ViewableFE
java.lang.Object
org.jcae.viewer3d.ViewableAdaptor
org.jcae.viewer3d.fe.ViewableFE
- All Implemented Interfaces:
- Viewable
public class ViewableFE
- extends ViewableAdaptor
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PICK_DOMAIN
public static final byte PICK_DOMAIN
- See Also:
- Constant Field Values
PICK_NODE
public static final byte PICK_NODE
- See Also:
- Constant Field Values
ViewableFE
public ViewableFE(FEProvider provider)
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:
domainsChangedPerform
public void domainsChangedPerform(int[] ids)
- Specified by:
domainsChangedPerform in class ViewableAdaptor
- Parameters:
ids - The ids (Integer) of domains that changed or null to
specify that even ids may have change
computeBoundingBox
public static javax.media.j3d.BoundingBox computeBoundingBox(float[] nodes)
- Workaround to buggy auto bounding box of GeomInfo
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)
getResultPalette
public java.awt.Component getResultPalette()
- Return a color palette showing the color used to represent the result
in this viewable.
The palette include numerical graduation.
The caller may resize the returned component to get an horizontal or a
vertical palette.
- Returns:
setPickingMode
public void setPickingMode(byte mode)
pick
public void pick(PickViewable result)
- Specified by:
pick in interface Viewable- Specified by:
pick in class ViewableAdaptor
highlight
public void highlight(int domainID,
boolean selected)
highlight
public void highlight(int domainID,
boolean selected,
boolean fireListeners)
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
setName
public void setName(java.lang.String name)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getSelectedDomains
public int[] getSelectedDomains()
getSelectedNodes
public NodeSelection[] getSelectedNodes()
setShowShapeLine
public void setShowShapeLine(boolean showShapeLine)
- if true the border of the element will be displayed else elements
are render with shading. The default value is true.