public abstract class FemMeshBase extends SkinMeshBase
CompositeComponent.NavpanelDisplay
ModelComponent.NavpanelVisibility
Modifier and Type | Field and Description |
---|---|
static PropertyList |
myProps |
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames
ARTICULATED, SIMULATING
TRANSLUCENT, TWO_DIMENSIONAL
Constructor and Description |
---|
FemMeshBase() |
FemMeshBase(FemModel3d fem) |
Modifier and Type | Method and Description |
---|---|
void |
connectToHierarchy()
Called by the system after this component is added to the
component hierarchy (i.e., when it is added as a child of another
CompositeComponent).
|
FemMeshBase |
copy(int flags,
java.util.Map<ModelComponent,ModelComponent> copyMap) |
void |
disconnectFromHierarchy()
Called by the system after this component is removed from the component
hierarchy (i.e., when it is removed as a child of its parent).
|
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
abstract PointAttachment |
getAttachment(int idx) |
ColorMapBase |
getColorMap() |
PropertyMode |
getColorMapMode() |
FemModel.SurfaceRender |
getColorRendering() |
PropertyMode |
getColorRenderingMode() |
FemModel3d |
getFem() |
void |
getSelection(java.util.LinkedList<java.lang.Object> list,
int qid)
Append to
list the component (or components) associated with
the qid -th selection query issued by this component's render
method. |
DoubleInterval |
getStressPlotRange() |
PropertyMode |
getStressPlotRangeMode() |
FemModel.Ranging |
getStressPlotRanging() |
PropertyMode |
getStressPlotRangingMode() |
abstract int |
numAttachments() |
int |
numSelectionQueriesNeeded()
If this selectable manages its own selection (by issuing selection
queries within its
render method), then this method should
return the maximum number of selection queries that will be
required. |
void |
prerender(RenderList list)
Prepare for rendering, and potentially add itself to a list to be drawn
by a GLRenderer.
|
void |
render(GLRenderer renderer,
RenderProps props,
int flags) |
void |
resetStressPlotRange() |
void |
setColorMap(ColorMapBase map) |
void |
setColorMapMode(PropertyMode mode) |
void |
setColorRendering(FemModel.SurfaceRender mode) |
void |
setColorRenderingMode(PropertyMode mode) |
void |
setFem(FemModel3d fem) |
void |
setMesh(MeshBase mesh) |
void |
setMeshFromInfo() |
void |
setStressPlotRange(DoubleInterval range) |
void |
setStressPlotRangeMode(PropertyMode mode) |
void |
setStressPlotRanging(FemModel.Ranging ranging) |
void |
setStressPlotRangingMode(PropertyMode mode) |
componentChanged, findComponent, get, get, getByNumber, getNavpanelDisplay, getNavpanelVisibility, getNumberLimit, hierarchyContainsReferences, indexOf, numComponents, postscan, scaleDistance, scan, setDisplayMode, setNavpanelDisplay, transformGeometry, updateNameMap, updateSlavePos, updateSlaveVel
createRenderProps, getMesh, getVertex, numVertices, render, scaleMass, setDefaultValues, setMesh, setMesh, transformGeometry, transformGeometry, updateBounds, updatePosition
getRenderHints, getRenderProps, isSelectable, setRenderProps, updateRenderProps
checkFlag, checkName, checkNameUniqueness, clearFlag, clone, createTempFlag, getChildren, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, hasChildren, hasState, isFixed, isMarked, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setSelected, updateReferences, write
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHardReferences, getName, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, setFixed, setMarked, setName, setNumber, setParent, setSelected, updateReferences
getProperty
getChildren, hasChildren
isWritable, write
public static PropertyList myProps
public FemMeshBase()
public FemMeshBase(FemModel3d fem)
public PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
getAllPropertyInfo
in class SkinMeshBase
public abstract int numAttachments()
numAttachments
in class SkinMeshBase
public abstract PointAttachment getAttachment(int idx)
getAttachment
in class SkinMeshBase
public void setMeshFromInfo()
public void setMesh(MeshBase mesh)
setMesh
in class MeshComponent
public void setColorRendering(FemModel.SurfaceRender mode)
public FemModel.SurfaceRender getColorRendering()
public PropertyMode getColorRenderingMode()
public void setColorRenderingMode(PropertyMode mode)
public FemModel.Ranging getStressPlotRanging()
public void setStressPlotRanging(FemModel.Ranging ranging)
public PropertyMode getStressPlotRangingMode()
public void setStressPlotRangingMode(PropertyMode mode)
public PropertyMode getStressPlotRangeMode()
public void setStressPlotRangeMode(PropertyMode mode)
public DoubleInterval getStressPlotRange()
public void resetStressPlotRange()
public void setStressPlotRange(DoubleInterval range)
public void prerender(RenderList list)
GLRenderable
prerender
in interface GLRenderable
prerender
in class MeshComponent
public void render(GLRenderer renderer, RenderProps props, int flags)
render
in class MeshComponent
public void setColorMap(ColorMapBase map)
public ColorMapBase getColorMap()
public PropertyMode getColorMapMode()
public void setColorMapMode(PropertyMode mode)
public void connectToHierarchy()
ModelComponentBase
When this method is called, ModelComponent.getParent()
will return
the new parent component; the system will have set this beforehand.
connectToHierarchy
in interface ModelComponent
connectToHierarchy
in class ModelComponentBase
public void disconnectFromHierarchy()
ModelComponentBase
When this
method is called, ModelComponent.getParent()
will still return this original
parent component; the system will set this to null
after.
disconnectFromHierarchy
in interface ModelComponent
disconnectFromHierarchy
in class ModelComponentBase
public void setFem(FemModel3d fem)
public FemModel3d getFem()
public FemMeshBase copy(int flags, java.util.Map<ModelComponent,ModelComponent> copyMap)
copy
in class SkinMeshBase
public int numSelectionQueriesNeeded()
GLSelectable
render
method), then this method should
return the maximum number of selection queries that will be
required. Otherwise, this method should return -1.numSelectionQueriesNeeded
in interface GLSelectable
numSelectionQueriesNeeded
in class RenderableComponentBase
public void getSelection(java.util.LinkedList<java.lang.Object> list, int qid)
GLSelectable
list
the component (or components) associated with
the qid
-th selection query issued by this component's render
method. This will only be called if this component manages its own
selection (i.e., the number nums
returned by GLSelectable.numSelectionQueriesNeeded()
is positive), and qid
will in
turn be a number between 0 and nums
-1.getSelection
in interface GLSelectable
getSelection
in class RenderableComponentBase
list
- selected objects are appended to the end of this listqid
- index of the selection query