public class MatrixNdElementField extends VectorElementField<MatrixNd>
MatrixNd
, defined over an FEM
model, using values set at the elements. Values at other points are
obtained by finding the elements nearest to those points. Values at element
for which no explicit value has been set are given by the field's default
value. Since values are assumed to be constant over a given element,
this field is not continuous. The MatrixNd
values must be a of a
fixed size as specified in the field's constructor.ModelComponent.NavpanelVisibility
DEFAULT_SHELL_ELEMS_VISIBLE, DEFAULT_VOLUME_ELEMS_VISIBLE, myProps
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames
TRANSPARENT, TWO_DIMENSIONAL
Constructor and Description |
---|
MatrixNdElementField()
This constructor should not be called by applications, unless
ModelComponentBase.scan(maspack.util.ReaderTokenizer, java.lang.Object) is called immediately after. |
MatrixNdElementField(int rowSize,
int colSize,
FemModel3d fem)
Constructs a field for a given FEM model, with a default value of 0.
|
MatrixNdElementField(int rowSize,
int colSize,
FemModel3d fem,
MatrixNd defaultValue)
Constructs a field for a given FEM model and default value.
|
MatrixNdElementField(java.lang.String name,
int rowSize,
int colSize,
FemModel3d fem)
Constructs a named field for a given FEM model, with a default value of 0.
|
MatrixNdElementField(java.lang.String name,
int rowSize,
int colSize,
FemModel3d fem,
MatrixNd defaultValue)
Constructs a named field for a given FEM model and default value.
|
Modifier and Type | Method and Description |
---|---|
MatrixNd |
createTypeInstance()
Create an instance of the VectorObject type associated with this
field.
|
boolean |
hasParameterizedType()
Queries whether this class explicitly utilizes a parameterized type.
|
clearAllValues, clearValue, equals, getElementValue, getShellElementValue, getSoftReferences, getValue, getValue, getValue, isValueSet, postscan, setValue, updateReferences
getAllPropertyInfo, getShellElemsVisible, getVolumeElemsVisible, setShellElemsVisible, setVolumeElemsVisible
createDefaultRenderProps, createRenderProps, equals, getDefaultValue, getParameterType, getRenderScale, getValue, prerender, render, setDefaultValue, setRenderScale
clearCacheIfNecessary, equals, getFemModel, getRenderHints, getRenderProps, getSelection, isSelectable, numSelectionQueriesNeeded, setRenderProps, updateBounds
checkFlag, checkName, checkNameUniqueness, clearFlag, clone, connectToHierarchy, copy, createTempFlag, disconnectFromHierarchy, getChildren, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, hasChildren, hasState, isFixed, isMarked, isScanning, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, scan, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setScanning, setSelected, setWritable, write
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearCacheIfNecessary
connectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable
getProperty
getChildren, hasChildren
isWritable, write
getSelection, isSelectable, numSelectionQueriesNeeded
getRenderHints, updateBounds
getRenderProps, setRenderProps
public MatrixNdElementField()
ModelComponentBase.scan(maspack.util.ReaderTokenizer, java.lang.Object)
is called immediately after.public MatrixNdElementField(int rowSize, int colSize, FemModel3d fem)
rowSize
- row size of the field's MatrixNd
valuescolSize
- column size of the field's MatrixNd
valuesfem
- FEM model over which the field is definedpublic MatrixNdElementField(int rowSize, int colSize, FemModel3d fem, MatrixNd defaultValue)
rowSize
- row size of the field's MatrixNd
valuescolSize
- column size of the field's MatrixNd
valuesfem
- FEM model over which the field is defineddefaultValue
- default value for elements which don't have
explicitly set valuespublic MatrixNdElementField(java.lang.String name, int rowSize, int colSize, FemModel3d fem)
name
- name of the fieldrowSize
- row size of the field's MatrixNd
valuescolSize
- column size of the field's MatrixNd
valuesfem
- FEM model over which the field is definedpublic MatrixNdElementField(java.lang.String name, int rowSize, int colSize, FemModel3d fem, MatrixNd defaultValue)
name
- name of the fieldrowSize
- row size of the field's MatrixNd
valuescolSize
- column size of the field's MatrixNd
valuesfem
- FEM model over which the field is defineddefaultValue
- default value for elements which don't have
explicitly set valuespublic MatrixNd createTypeInstance()
createTypeInstance
in class VectorFemField<MatrixNd>
public boolean hasParameterizedType()
hasParameterizedType
in interface ParameterizedClass
hasParameterizedType
in class VectorFemField<MatrixNd>
true
if this class utilizes a parameterized type.