public class SoMFUniformShaderParameter extends SoMField
SoUniformShaderParameter
nodes.
This field maintains a set of SoUniformShaderParameter
instances.
An SoMFUniformShaderParameter
is written to file as one or more SoUniformShaderParameters. When more than one value is present, all of the values are enclosed in square brackets and separated by commas. For example:
[ ShaderParameter1f { name "shininess" value 20 }, ShaderParameter3f { name "eyePosition" value 0 0 0 } ]
Data copying: SoMF fields are a kind of "smart container", automatically expanding as necessary to hold the data provided by the application. This is very convenient, but for large blocks of data it may be desireable to avoid making a copy of the application data. The setValuesBuffer() methods allow Open Inventor to directly use an array of values supplied by the application. The application data is not copied. Please see SoMFVec3f
for more information and example code.
SoField.FieldTypes
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoMFUniformShaderParameter()
Deprecated.
As of Open Inventor 9.3 Use constructor with SoFieldContainer instead.
|
SoMFUniformShaderParameter(SoFieldContainer fieldContainer,
java.lang.String fieldName,
SoField.FieldTypes fieldType)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addShaderParameter(SoUniformShaderParameter shaderParameter)
Adds a uniform shader parameter as last one in group.
|
void |
disableDeleteValues()
Temporary disable value deleting.
|
boolean |
equals(java.lang.Object obj) |
int |
find(SoUniformShaderParameter targetValue)
Calls find(targetValue, false).
|
int |
find(SoUniformShaderParameter targetValue,
boolean addIfNotFound)
Finds the given
targetValue in the array and returns the index of that value.
|
int |
findShaderParameter(SoUniformShaderParameter shaderParameter)
Finds index of given uniform shader parameter within group.
|
SoUniformShaderParameter |
findUniformParameterByName(java.lang.String name)
Find the first parameter with the given name.
|
SoUniformShaderParameter |
get1Value(int i)
Deprecated.
|
int |
getNumShaderParameters()
Returns number of uniform shader parameters.
|
SoUniformShaderParameter |
getShaderParameter(int index)
Returns the n'th uniform shader parameter node.
|
SoUniformShaderParameter |
getValueAt(int i) |
long |
getValueSize()
Get size of the value.
|
void |
insertShaderParameter(SoUniformShaderParameter shaderParameter,
int newUniformShaderParameterIndex)
Adds a uniform shader parameter so that it becomes the one with the given index.
|
void |
removeAllShaderParameters()
Removes all uniform shader parameters from group.
|
void |
removeShaderParameter(int index)
Removes uniform shader parameter with given index from group.
|
void |
removeShaderParameter(SoUniformShaderParameter shaderParameter)
Removes first instance of given uniform shader parameter from group.
|
void |
removeShaderParameter(java.lang.String name)
Removes first instance of given uniform shader parameter with given name from group.
|
void |
replaceShaderParameter(int index,
SoUniformShaderParameter newUniformShaderParameter)
Replaces uniform shader parameter with given index with new uniform shader parameter.
|
void |
replaceShaderParameter(SoUniformShaderParameter oldUniformShaderParameter,
SoUniformShaderParameter newUniformShaderParameter)
Replaces first instance of given uniform shader parameter with new uniform shader parameter.
|
void |
set1Value(int index,
SoUniformShaderParameter newValue)
Sets the
index'th value in the array to
newValue.
|
void |
setValue(SoUniformShaderParameter newValue)
Sets the first value in the array to
newValue, and deletes.
|
void |
setValues(int start,
SoUniformShaderParameter[] newValues)
Sets
num values starting at index
start to the values.
|
deleteValues, deleteValues, get1, getNum, insertSpace, set1, setNum
appendConnection, appendConnection, appendConnection, connectFrom, connectFrom, connectFrom, disconnect, disconnect, disconnect, disconnect, enableConnection, get, getConnectedEngine, getConnectedField, getConnectedVRMLInterp, getContainer, getNumConnections, isConnected, isConnectedFromEngine, isConnectedFromField, isConnectedFromVRMLInterp, isConnectionEnabled, isDefault, isIgnored, set, setIgnored, touch
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public SoMFUniformShaderParameter()
public SoMFUniformShaderParameter(SoFieldContainer fieldContainer, java.lang.String fieldName, SoField.FieldTypes fieldType)
public int find(SoUniformShaderParameter targetValue)
@Deprecated public SoUniformShaderParameter get1Value(int i)
public SoUniformShaderParameter getValueAt(int i)
public int getNumShaderParameters()
public void setValues(int start, SoUniformShaderParameter[] newValues)
public int find(SoUniformShaderParameter targetValue, boolean addIfNotFound)
public void addShaderParameter(SoUniformShaderParameter shaderParameter)
public int findShaderParameter(SoUniformShaderParameter shaderParameter)
public SoUniformShaderParameter getShaderParameter(int index)
public void insertShaderParameter(SoUniformShaderParameter shaderParameter, int newUniformShaderParameterIndex)
public SoUniformShaderParameter findUniformParameterByName(java.lang.String name)
public void set1Value(int index, SoUniformShaderParameter newValue)
public void disableDeleteValues()
public void removeAllShaderParameters()
public void removeShaderParameter(java.lang.String name)
public void replaceShaderParameter(int index, SoUniformShaderParameter newUniformShaderParameter)
public void removeShaderParameter(int index)
public void replaceShaderParameter(SoUniformShaderParameter oldUniformShaderParameter, SoUniformShaderParameter newUniformShaderParameter)
public void setValue(SoUniformShaderParameter newValue)
public long getValueSize()
getValueSize
in class SoMField
public void removeShaderParameter(SoUniformShaderParameter shaderParameter)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com