public abstract class ScalarMeshField extends MeshFieldComp implements RenderableComponent, ScalarFieldComponent
| Modifier and Type | Class and Description |
|---|---|
static class |
ScalarMeshField.Visualization |
ModelComponent.FilePathSaveType, ModelComponent.NavpanelVisibility| Modifier and Type | Field and Description |
|---|---|
static Renderer.ColorInterpolation |
DEFAULT_COLOR_INTERPOLATION |
static ScalarMeshField.Visualization |
DEFAULT_VISUALIZATION |
static PropertyList |
myProps |
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNamesTRANSPARENT, TWO_DIMENSIONAL| Constructor and Description |
|---|
ScalarMeshField() |
ScalarMeshField(MeshComponent mcomp) |
ScalarMeshField(MeshComponent mcomp,
double defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
clearAllValues()
Clear all values defined for the features (e.g., vertices, faces)
associated with this field.
|
static RenderProps |
createDefaultRenderProps() |
RenderProps |
createRenderProps()
Factory method to create render properties appropriate to this object.
|
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
Renderer.ColorInterpolation |
getColorInterpolation() |
ColorMapBase |
getColorMap() |
double |
getDefaultValue()
Returns the default value for this field.
|
ScalarRange |
getRenderRange() |
double |
getValue(FemFieldPoint fp)
Returns the value of the this field at a specified FEM field point.
|
abstract double |
getValue(Point3d pos)
Returns the value of the this field at a specified spatial position.
|
DoubleInterval |
getValueRange()
Returns the range of all values in this field, including
the default value.
|
ScalarMeshField.Visualization |
getVisualization() |
Range |
getVisualizationRange() |
void |
prerender(RenderList list)
Called prior to rendering to allow this object to update the internal
state required for rendering (such as by caching rendering coordinates).
|
void |
render(Renderer renderer,
int flags)
Render this object using the functionality of the supplied
Renderer. |
void |
setColorInterpolation(Renderer.ColorInterpolation interp) |
void |
setColorMap(ColorMapBase map) |
void |
setDefaultValue(double value)
Sets the default value for this field.
|
void |
setRenderRange(ScalarRange range) |
void |
setVisualization(ScalarMeshField.Visualization vis) |
clearCacheIfNecessary, createFieldPoint, getHardReferences, getMesh, getMeshComp, getRenderHints, getRenderProps, getSelection, isSelectable, numSelectionQueriesNeeded, setRenderProps, updateBoundscheckFlag, checkName, checkNameUniqueness, clearFlag, clone, connectToHierarchy, copy, createTempFlag, disconnectFromHierarchy, getChildren, getGrandParent, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, hasChildren, hasState, isFixed, isMarked, isScanning, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, postscan, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, scan, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setScanning, setSelected, setWritable, updateReferences, writeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSelection, isSelectable, numSelectionQueriesNeededgetRenderHints, updateBoundsgetRenderProps, setRenderPropsgetValueclearCacheIfNecessaryconnectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferencesgetPropertygetChildren, hasChildrenpostscanisWritable, writepublic static ScalarMeshField.Visualization DEFAULT_VISUALIZATION
public static final Renderer.ColorInterpolation DEFAULT_COLOR_INTERPOLATION
public static PropertyList myProps
public ScalarMeshField()
public ScalarMeshField(MeshComponent mcomp)
public ScalarMeshField(MeshComponent mcomp, double defaultValue)
public PropertyList getAllPropertyInfo()
HasPropertiesgetAllPropertyInfo in interface HasPropertiesgetAllPropertyInfo in class ModelComponentBasepublic ScalarMeshField.Visualization getVisualization()
public void setVisualization(ScalarMeshField.Visualization vis)
public Range getVisualizationRange()
public Renderer.ColorInterpolation getColorInterpolation()
public void setColorInterpolation(Renderer.ColorInterpolation interp)
public ColorMapBase getColorMap()
public void setColorMap(ColorMapBase map)
public void setRenderRange(ScalarRange range)
public ScalarRange getRenderRange()
public double getValue(FemFieldPoint fp)
getValue in interface ScalarFieldComponentfp - point at which value is requestedpublic abstract double getValue(Point3d pos)
getValue in interface ScalarFieldComponentpos - position at which value is requestedpublic DoubleInterval getValueRange()
public abstract void clearAllValues()
defaultValue.public double getDefaultValue()
setDefaultValue(double).public void setDefaultValue(double value)
value - new default value for this fieldpublic RenderProps createRenderProps()
HasRenderPropscreateRenderProps in interface HasRenderPropspublic static RenderProps createDefaultRenderProps()
public void prerender(RenderList list)
IsRenderablelist.addIfVisible (obj);
for each of the objects in question.prerender in interface IsRenderablelist - list of objects to be renderedpublic void render(Renderer renderer, int flags)
IsRenderableRenderer.render in interface IsRenderablerenderer - 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.