public class MatrixNdVertexField extends VectorVertexField<MatrixNd>
MatrixNd
, defined over a
triangular polygonal mesh, using values set at the mesh's vertices. Values
at other points are obtained by barycentric interpolation on the faces
nearest to those points. Values at vertices for which no explicit value has
been set are given by the field's default value. The MatrixNd
values must be of a fixed size as specified in the field's
constructor.ModelComponent.NavpanelVisibility
myProps
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames
TRANSPARENT, TWO_DIMENSIONAL
Constructor and Description |
---|
MatrixNdVertexField()
This constructor should not be called by applications, unless
ModelComponentBase.scan(maspack.util.ReaderTokenizer, java.lang.Object) is called immediately after. |
MatrixNdVertexField(int rowSize,
int colSize,
MeshComponent mcomp)
Constructs a field for a given mesh, with a default value of 0.
|
MatrixNdVertexField(int rowSize,
int colSize,
MeshComponent mcomp,
MatrixNd defaultValue)
Constructs a field for a given mesh and default value.
|
MatrixNdVertexField(java.lang.String name,
int rowSize,
int colSize,
MeshComponent mcomp)
Constructs a named field for a given mesh, with a default value of 0.
|
MatrixNdVertexField(java.lang.String name,
int rowSize,
int colSize,
MeshComponent mcomp,
MatrixNd defaultValue)
Constructs a named field for a given mesh 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, getValue, getValue, getValue, getValue, isValueSet, postscan, setValue
createDefaultRenderProps, createRenderProps, getAllPropertyInfo, getDefaultValue, getParameterType, getRenderScale, getValue, prerender, render, setDefaultValue, setRenderScale
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, 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
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
isWritable, write
getSelection, isSelectable, numSelectionQueriesNeeded
getRenderHints, updateBounds
getRenderProps, setRenderProps
public MatrixNdVertexField()
ModelComponentBase.scan(maspack.util.ReaderTokenizer, java.lang.Object)
is called immediately after.public MatrixNdVertexField(int rowSize, int colSize, MeshComponent mcomp)
PolygonalMesh
.rowSize
- row size of the field's MatrixNd
valuescolSize
- column size of the field's MatrixNd
valuesmcomp
- component containing the mesh associated with the fieldpublic MatrixNdVertexField(int rowSize, int colSize, MeshComponent mcomp, MatrixNd defaultValue)
PolygonalMesh
.rowSize
- row size of the field's MatrixNd
valuescolSize
- column size of the field's MatrixNd
valuesmcomp
- component containing the mesh associated with the fielddefaultValue
- default value for vertices which don't have
explicitly set valuespublic MatrixNdVertexField(java.lang.String name, int rowSize, int colSize, MeshComponent mcomp)
PolygonalMesh
.name
- name of the fieldrowSize
- row size of the field's MatrixNd
valuescolSize
- column size of the field's MatrixNd
valuesmcomp
- component containing the mesh associated with the fieldpublic MatrixNdVertexField(java.lang.String name, int rowSize, int colSize, MeshComponent mcomp, MatrixNd defaultValue)
PolygonalMesh
.name
- name of the fieldrowSize
- row size of the field's MatrixNd
valuescolSize
- column size of the field's MatrixNd
valuesmcomp
- component containing the mesh associated with the fielddefaultValue
- default value for vertices which don't have
explicitly set valuespublic MatrixNd createTypeInstance()
createTypeInstance
in class VectorMeshField<MatrixNd>
public boolean hasParameterizedType()
hasParameterizedType
in interface ParameterizedClass
hasParameterizedType
in class VectorMeshField<MatrixNd>
true
if this class utilizes a parameterized type.