public class FemDisplayProbe extends CutPlaneProbe
FemModel3d.Probe.ExportProps, Probe.ImportExportFileInfoModelComponent.FilePathSaveType, ModelComponent.NavpanelVisibility| Modifier and Type | Field and Description |
|---|---|
static PropertyList |
myProps |
useOldSaveMethod, writeStartStopTimeInSecondsenforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNamesTRANSPARENT, TWO_DIMENSIONAL| Constructor and Description |
|---|
FemDisplayProbe() |
FemDisplayProbe(FemModel3d fem) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(double t)
Called at time
t to apply this probe |
void |
clip(boolean set)
Clip the probe viewer to fall within the FEM.
|
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
double |
getBackgroundAlpha()
Transparency of the background for this probe
|
ColorMapBase |
getColorMap()
Gets the map used for interpolating colors in stress/strain plots
|
boolean |
getDrawIntersections()
Gets whether we are computing/drawing intersection of mesh with plane
|
FemModel3d |
getFem()
Gets the examined FEM
|
int |
getRenderHints()
Returns a bit code giving rendering hints about this renderable.
|
DoubleInterval |
getStressPlotRange()
Gets the stress plot range
|
FemModel.Ranging |
getStressPlotRanging()
Gets the stress/strain plot range type (auto or fixed)
|
FemModel.SurfaceRender |
getSurfaceRendering()
Gets the surface rendering mode
|
void |
initialize(double t) |
boolean |
isClipped() |
boolean |
isUsingRestCoordinates() |
void |
render(Renderer renderer,
int flags)
Render this object using the functionality of the supplied
Renderer. |
void |
resetStressPlotRange() |
void |
setBackgroundAlpha(double val)
Sets the transparency for the background of this probe
|
void |
setColorMap(ColorMapBase map)
Sets the color mapping for stress/strain plots
|
void |
setDragger(Dragger3d.DraggerType type)
Sets the dragger type for manipulating the display
|
void |
setDrawIntersections(boolean enable)
Sets whether to draw an outline of the intersection of this
mesh with the plane
|
void |
setFem(FemModel3d model)
Sets the fem model to examine
|
void |
setOrientation(AxisAngle axisAng)
Sets the orientation of the display
|
void |
setPosition(Point3d pos)
Sets the 3D position of the centre of the display
|
void |
setResolution(Vector2d res)
Sets the resolution fo teh display, integers (nx, ny) corresponding
to the number of divisions along the x and y axes.
|
void |
setSize(Vector2d size)
Sets the size of the display grid
|
void |
setStressPlotRange(DoubleInterval range)
Sets the stress/strain plot range
|
void |
setStressPlotRanging(FemModel.Ranging ranging)
Sets the stress/strain plot range type (auto or fixed)
|
void |
setSurfaceRendering(FemModel.SurfaceRender mode)
Sets the surface rendering mode, allowing Stress, Strain,
Shaded or None
|
void |
setUseRestCoordinates(boolean set) |
void |
updateDisplay()
Updates display colors and intersections
|
void |
writeItems(java.io.PrintWriter pw,
NumberFormat fmt,
CompositeComponent ancestor)
Write probe attributes to a PrintWriter
|
centerInViewer, createRenderProps, draggerAdded, draggerBegin, draggerEnd, draggerMove, draggerRemoved, draggerRepositioned, getDragger, getOrientation, getPlane, getPlane, getPosition, getRenderProps, getResolution, getSelection, getSize, getTransformableDescendents, isSelectable, numSelectionQueriesNeeded, prerender, resetInViewer, setGridToWorld, setPlane, setPlane, setRenderProps, transformGeometry, transformGeometry, updateBoundscreateState, exportData, getAttachedFile, getAttachedFileName, getChildren, getClippedVirtualTime, getDefaultScale, getDefaultStartTime, getDefaultStopTime, getDefaultUpdateInterval, getDuration, getExportFile, getExportFileInfo, getExportFileName, getExportProps, getFileFromPath, getImportFile, getImportFileInfo, getImportFileName, getInitialState, getPathFromFile, getProperty, getScale, getStartTime, getState, getStopTime, getTimelineTime, getTrack, getUpdateInterval, getVirtualTime, hasAttachedFile, hasChildren, hasState, importData, isAttachedFileRelative, isCloneable, isEditable, isEventTime, isInput, isPrintable, isScalable, isSettable, load, nextEventTime, print, save, scan, setAttachedFileName, setData, setExportFileName, setImportFileName, setInterval, setName, setScalable, setScale, setStartStopTimes, setStartTime, setState, setStopTime, setTrack, setUpdateIntervaldispose, finalize, getModel, isActive, setActive, setModel, setModelFromComponent, writecheckFlag, checkName, checkNameUniqueness, clearFlag, clone, connectToHierarchy, copy, createTempFlag, disconnectFromHierarchy, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getSoftReferences, isFixed, isMarked, isScanning, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, postscan, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, setFixed, setFlag, setMarked, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setScanning, setSelected, setWritable, updateReferencesequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferencesgetPropertygetChildren, hasChildrenpostscanisWritable, writepublic static PropertyList myProps
public FemDisplayProbe()
public FemDisplayProbe(FemModel3d fem)
public PropertyList getAllPropertyInfo()
HasPropertiesgetAllPropertyInfo in interface HasPropertiesgetAllPropertyInfo in class CutPlaneProbepublic void setFem(FemModel3d model)
public FemModel3d getFem()
public void updateDisplay()
public void setDragger(Dragger3d.DraggerType type)
CutPlaneProbesetDragger in class CutPlaneProbepublic void setOrientation(AxisAngle axisAng)
CutPlaneProbesetOrientation in class CutPlaneProbepublic void setPosition(Point3d pos)
CutPlaneProbesetPosition in class CutPlaneProbepublic void setResolution(Vector2d res)
CutPlaneProbesetResolution in class CutPlaneProbepublic void setSize(Vector2d size)
CutPlaneProbesetSize in class CutPlaneProbepublic int getRenderHints()
IsRenderableTRANSPARENT and
TWO_DIMENSIONAL.getRenderHints in interface IsRenderablegetRenderHints in class CutPlaneProbepublic void render(Renderer renderer, int flags)
IsRenderableRenderer.render in interface IsRenderablerender in class CutPlaneProberenderer - provides the functionality used to perform the rendering.flags - flags that may be used to control different
aspects of the rendering. Flags are defined in Renderer
and currently include
Renderer.HIGHLIGHT and
Renderer.SORT_FACES.public void clip(boolean set)
public boolean isClipped()
public void setSurfaceRendering(FemModel.SurfaceRender mode)
mode - surface rendering modepublic FemModel.SurfaceRender getSurfaceRendering()
public FemModel.Ranging getStressPlotRanging()
public void setStressPlotRanging(FemModel.Ranging ranging)
public DoubleInterval getStressPlotRange()
public void resetStressPlotRange()
public void setStressPlotRange(DoubleInterval range)
public void setColorMap(ColorMapBase map)
public ColorMapBase getColorMap()
public double getBackgroundAlpha()
public void setBackgroundAlpha(double val)
public void setDrawIntersections(boolean enable)
public boolean getDrawIntersections()
public void initialize(double t)
initialize in interface ModelAgentinitialize in class CutPlaneProbepublic void apply(double t)
Probet to apply this probeapply in class CutPlaneProbet - time at which probe is being appliedpublic boolean isUsingRestCoordinates()
public void setUseRestCoordinates(boolean set)
public void writeItems(java.io.PrintWriter pw,
NumberFormat fmt,
CompositeComponent ancestor)
throws java.io.IOException
pw - writer to which components are writtenfmt - format for floating point numbersancestor - ancestor component which respect to which references are
expressedjava.io.IOException - if an I/O error occurred