public class VectorGridField<T extends VectorObject<T>> extends GridCompBase implements VectorField<T>, FieldComponent
Modifier and Type | Class and Description |
---|---|
class |
VectorGridField.RestFieldFunction |
class |
VectorGridField.SpatialFieldFunction |
ModelComponent.NavpanelVisibility
Modifier and Type | Field and Description |
---|---|
static PropertyList |
myProps |
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames
TG_ARTICULATED, TG_DRAGGER, TG_PRESERVE_ORIENTATION, TG_SIMULATING
TRANSPARENT, TWO_DIMENSIONAL
Constructor and Description |
---|
VectorGridField() |
VectorGridField(java.lang.String name) |
VectorGridField(java.lang.String name,
VectorGrid<T> grid) |
VectorGridField(VectorGrid<T> grid) |
Modifier and Type | Method and Description |
---|---|
FieldUtils.VectorFieldFunction<T> |
createFieldFunction(boolean useRestPos) |
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
VectorGrid<T> |
getGrid() |
T |
getValue(Point3d pos)
Queries the field value associated with this grid at a specifed position.
|
void |
setGrid(VectorGrid<T> grid)
Sets the grid for this VectorGridField.
|
addTransformableDependencies, clearCacheIfNecessary, createRenderProps, getLocalToWorld, getLocalToWorld, getLocalValuesForField, getRenderGrid, getRenderRanges, getRenderRangesRange, prerender, render, scaleDistance, scaleMass, setGrid, setLocalToWorld, setLocalValuesForField, setRenderGrid, setRenderRanges, transformGeometry, transformGeometry, updateBounds
copy, getRenderHints, getRenderProps, getSelection, isSelectable, isVisible, numSelectionQueriesNeeded, setRenderProps, setVisible, updateRenderProps
checkFlag, checkName, checkNameUniqueness, clearFlag, clone, connectToHierarchy, createTempFlag, disconnectFromHierarchy, getChildren, getGrandParent, getHardReferences, 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, 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, updateReferences
getProperty
getChildren, hasChildren
postscan
isWritable, write
public static PropertyList myProps
public VectorGridField()
public VectorGridField(java.lang.String name)
public VectorGridField(java.lang.String name, VectorGrid<T> grid)
public VectorGridField(VectorGrid<T> grid)
public PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
getAllPropertyInfo
in class GridCompBase
public FieldUtils.VectorFieldFunction<T> createFieldFunction(boolean useRestPos)
createFieldFunction
in interface Field
createFieldFunction
in interface VectorField<T extends VectorObject<T>>
public T getValue(Point3d pos)
GridCompBase.getLocalValuesForField()
returns true
.getValue
in interface VectorField<T extends VectorObject<T>>
pos
- query positionpublic VectorGrid<T> getGrid()
getGrid
in class GridCompBase
public void setGrid(VectorGrid<T> grid)
renderRanges
and localToWorld
transform are updated from the current renderRanges
and gridtoWorld
transform values for this component.grid
- grid to set