org.jcae.viewer3d.fe
Class ViewableFE

java.lang.Object
  extended by org.jcae.viewer3d.ViewableAdaptor
      extended by org.jcae.viewer3d.fe.ViewableFE
All Implemented Interfaces:
Viewable

public class ViewableFE
extends ViewableAdaptor


Field Summary
static byte PICK_DOMAIN
           
static byte PICK_NODE
           
 
Constructor Summary
ViewableFE(FEProvider provider)
           
 
Method Summary
static javax.media.j3d.BoundingBox computeBoundingBox(float[] nodes)
          Workaround to buggy auto bounding box of GeomInfo
 void domainsChangedPerform(int[] ids)
           
 DomainProvider getDomainProvider()
          Return the domain provider of this viewable
 javax.media.j3d.Node getJ3DNode()
          Return the Java3D Node associated to this Viewable
 java.awt.Component getResultPalette()
          Return a color palette showing the color used to represent the result in this viewable.
 int[] getSelectedDomains()
           
 NodeSelection[] getSelectedNodes()
           
 void highlight(int domainID, boolean selected)
           
 void highlight(int domainID, boolean selected, boolean fireListeners)
           
 void pick(PickViewable result)
           
 void setDomainVisible(java.util.Map<java.lang.Integer,java.lang.Boolean> map)
           
 void setName(java.lang.String name)
           
 void setPickingMode(byte mode)
           
 void setShowShapeLine(boolean showShapeLine)
          if true the border of the element will be displayed else elements are render with shading.
 java.lang.String toString()
           
 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, wait, wait, wait
 

Field Detail

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
Constructor Detail

ViewableFE

public ViewableFE(FEProvider provider)
Method Detail

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.