public class FemDisplayProbe extends CutPlaneProbe
FemModel3d
.Probe.ExportProps, Probe.ImportExportFileInfo
ModelComponent.NavpanelVisibility
Modifier and Type | Field and Description |
---|---|
static PropertyList |
myProps |
useOldSaveMethod, writeStartStopTimeInSeconds
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames
TRANSPARENT, 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, updateBounds
createState, export, 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, isEventTime, isInput, isPrintable, isScalable, isSettable, load, nextEventTime, print, save, scan, setAttachedFileName, setData, setExportFileName, setImportFileName, setInterval, setName, setScalable, setScale, setStartStopTimes, setStartTime, setState, setStopTime, setTrack, setUpdateInterval
dispose, finalize, getModel, isActive, setActive, setModel, setModelFromComponent, write
checkFlag, 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, updateReferences
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
connectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferences
getProperty
getChildren, hasChildren
postscan
isWritable, write
public static PropertyList myProps
public FemDisplayProbe()
public FemDisplayProbe(FemModel3d fem)
public PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
getAllPropertyInfo
in class CutPlaneProbe
public void setFem(FemModel3d model)
public FemModel3d getFem()
public void updateDisplay()
public void setDragger(Dragger3d.DraggerType type)
CutPlaneProbe
setDragger
in class CutPlaneProbe
public void setOrientation(AxisAngle axisAng)
CutPlaneProbe
setOrientation
in class CutPlaneProbe
public void setPosition(Point3d pos)
CutPlaneProbe
setPosition
in class CutPlaneProbe
public void setResolution(Vector2d res)
CutPlaneProbe
setResolution
in class CutPlaneProbe
public void setSize(Vector2d size)
CutPlaneProbe
setSize
in class CutPlaneProbe
public int getRenderHints()
IsRenderable
TRANSPARENT
and
TWO_DIMENSIONAL
.getRenderHints
in interface IsRenderable
getRenderHints
in class CutPlaneProbe
public void render(Renderer renderer, int flags)
IsRenderable
Renderer
.render
in interface IsRenderable
render
in class CutPlaneProbe
renderer
- 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 ModelAgent
initialize
in class CutPlaneProbe
public void apply(double t)
Probe
t
to apply this probeapply
in class CutPlaneProbe
t
- 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