de.grogra.imp3d.shading
public abstract class VolumeFunction extends ChannelMapNode
VolumeFunction is a ChannelMap
which assigns a float-value
to each point in 3D-space. The input channels are X, Y, Z; the output
value is placed in all output channels
except w-channels, which are set to 1.Node.AccessorBridge, Node.FieldAttributeAccessor, Node.NType| Modifier and Type | Field and Description |
|---|---|
static Node.NType |
$TYPE |
static Node.NType.Field |
frequency$FIELD |
static Node.NType.Field |
phase$FIELD |
static Node.NType.Field |
waveForm$FIELD |
AMBIENT, COLOR, COLOR_2, DIFFUSE_TRANSPARENCY, DISPLACEMENT, EMISSIVE, FIRST_OP, INPUT, input$FIELD, MIN_UNUSED_SPECIAL_OF_TARGET, SECOND_OP, SHININESS, SPECULAR, TRANSPARENCY, TRANSPARENCY_SHININESSADDITIONAL_FIELDS, bits, DELETED, EXTENT_BIT, EXTENT_MASK, extentIndex$FIELD, extentTail$FIELD, HAS_OBSERVERS, IS_INTERPRETIVE, isInterpretive$FIELD, LAST_EXTENT_INDEX, layer$FIELD, MARK, mark$FIELD, MIME_TYPE, MIN_UNUSED_SPECIAL_OF_SOURCE, name$FIELD, USED_BITSDEFAULT_VALUE, EMPTY_MAP| Constructor and Description |
|---|
VolumeFunction() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ChannelMapNodeVisitor visitor) |
float |
getFloatValue(ChannelData data,
int channel) |
protected abstract float |
getFloatValue(float x,
float y,
float z)
Evaluates the volume function at the given point.
|
float |
getFrequency() |
float |
getPhase() |
FloatToFloat |
getWaveForm() |
void |
setFrequency(float value) |
void |
setPhase(float value) |
accept, getInput, getObjectValue, setInputaddEdgeBitsTo, addReference, appendBranchNode, appendBranchNode, appendReferencesTo, clone, clone, cloneGraph, dump, dumpTree, dup, dupUnmanagedFields, edgeChanged, fieldModified, findAdjacent, findRefinementType, get, getAccessor, getAccessor, getAttributes, getAxisParent, getBoolean, getBranch, getBranchLength, getBranchNode, getBranchTail, getByte, getChar, getCommonAncestor, getCurrentGraphState, getDirectChildCount, getDouble, getEdgeAttributeAccessor, getEdgeAttributes, getEdgeBitsTo, getEdgeTo, getExtentIndex, getFirst, getFirstEdge, getFloat, getGraph, getId, getIndex, getInstantiator, getInt, getLayer, getLong, getManageableType, getName, getNeighbor, getNext, getNType, getNTypeImpl, getObject, getOrCreateEdgeTo, getOrNull, getPersistenceManager, getPredecessor, getProvider, getShort, getSource, getStamp, getSuccessor, getSymbol, getSymbolColor, getTarget, getTransaction, getUserField, getUserFieldCount, getXClass, getXData, hasName, initProvider, initXClass, insertBranchNode, insertBranchNode, instantiateGraph, isAncestorOf, isDirection, isEncoarseOf, isManagingInstance, isMarked, isRoot, isSource, isTarget, manageableReadResolve, manageableWriteReplace, newInstance, paramString, removeAll, removeEdgeBitsTo, removeFromChain, removeFromChain, removeReference, setBranch, setBranch, setExtentIndex, setGraphForDeserialization, setLayer, setMark, setName, setSuccessor, setSuccessor, specialEdgeAdded, specialEdgeRefModified, specialEdgeRemoved, toString, writeReplaceaddEdgeBits, getBitMark, getEdgeBits, getObjectMark, getSpecialEdgeDescriptor, parseEdgeKeys, remove, removeEdgeBits, setBitMark, setEdgeBits, setObjectMark, testEdgeBitsequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetStampgetBitMark, getObjectMark, setBitMark, setObjectMarkpublic static final Node.NType $TYPE
public static final Node.NType.Field frequency$FIELD
public static final Node.NType.Field phase$FIELD
public static final Node.NType.Field waveForm$FIELD
public void accept(ChannelMapNodeVisitor visitor)
accept in class ChannelMapNodepublic float getFloatValue(ChannelData data, int channel)
getFloatValue in interface ChannelMapgetFloatValue in class ChannelMapNodeprotected abstract float getFloatValue(float x,
float y,
float z)
x - x-coordinate of 3D-pointy - y-coordinate of 3D-pointz - z-coordinate of 3D-point(x, y, z)public float getFrequency()
public float getPhase()
public FloatToFloat getWaveForm()
public void setFrequency(float value)
public void setPhase(float value)