public abstract class ScalarMeshField extends MeshFieldComp implements RenderableComponent, ScalarFieldComponent
Modifier and Type | Class and Description |
---|---|
static class |
ScalarMeshField.Visualization |
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, useCompactPathNames
TRANSPARENT, 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, updateBounds
checkFlag, 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, write
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSelection, isSelectable, numSelectionQueriesNeeded
getRenderHints, updateBounds
getRenderProps, setRenderProps
getValue
clearCacheIfNecessary
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 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()
HasProperties
getAllPropertyInfo
in interface HasProperties
getAllPropertyInfo
in class ModelComponentBase
public 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 ScalarFieldComponent
fp
- point at which value is requestedpublic abstract double getValue(Point3d pos)
getValue
in interface ScalarFieldComponent
pos
- 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()
HasRenderProps
createRenderProps
in interface HasRenderProps
public static RenderProps createDefaultRenderProps()
public void prerender(RenderList list)
IsRenderable
list.addIfVisible (obj);
for each of the objects in question.prerender
in interface IsRenderable
list
- list of objects to be renderedpublic void render(Renderer renderer, int flags)
IsRenderable
Renderer
.render
in interface IsRenderable
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
.