Package com.openinventor.inventor.fields
Class SoSFArray
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.fields.SoField
com.openinventor.inventor.fields.SoSField
com.openinventor.inventor.fields.SoSFArray
- Direct Known Subclasses:
- SoSFArray2D,- SoSFArray3D
Abstract Field containing an array of values.
 Subclasses of this field can contain a 2D or 3D array of values of a specified type.
 
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic enumSoSFArraymay be manipulating some large amounts of memory.static enumSupported data type enumeration values.Nested classes/interfaces inherited from class com.openinventor.inventor.fields.SoFieldSoField.FieldTypesNested classes/interfaces inherited from class com.openinventor.inventor.InventorInventor.ConstructorCommand
- 
Field SummaryFields inherited from class com.openinventor.inventor.InventorVERBOSE_LEVEL, ZeroHandle
- 
Constructor SummaryConstructorsConstructorDescriptionSoSFArray(SoFieldContainer fieldContainer, String fieldName, SoField.FieldTypes fieldType) Default constructor.
- 
Method SummaryModifier and TypeMethodDescriptionbooleangetData()Returns a read-only pointer to the array's values .Returns the data type of the array.getSize()Returns the dimensions of the array.getValue()Returns a read-only pointer to the array's values and its dimensions and data type.booleanisEmpty()Returns true if the current array is empty.booleanReturns the "neverWrite" flag.voidsetNeverWrite(boolean neverWrite) Sets the "neverWrite" flag.voidsetValue(SbVec3i32 size, SbDataType dataType, ByteBuffer data) Calls setValue(size, dataType, data, SoSFArray.CopyPolicies.valueOf( SoSFArray.CopyPolicies.COPY.getValue() )).voidsetValue(SbVec3i32 size, SbDataType dataType, ByteBuffer data, SoSFArray.CopyPolicies copy) Fill the array with data of the specified dimensions and type using the specified copy policy.Methods inherited from class com.openinventor.inventor.fields.SoFieldappendConnection, appendConnection, connectFrom, connectFrom, disconnect, disconnect, disconnect, enableConnection, get, getConnectedEngine, getConnectedField, getContainer, getNumConnections, getValueSize, isConnected, isConnectedFromEngine, isConnectedFromField, isConnectedFromVRMLInterp, isConnectionEnabled, isDefault, isIgnored, set, setIgnored, touchMethods inherited from class com.openinventor.inventor.Inventordispose, getNativeResourceHandle
- 
Constructor Details- 
SoSFArrayDefault constructor.
 
- 
- 
Method Details- 
setValueCalls setValue(size, dataType, data, SoSFArray.CopyPolicies.valueOf( SoSFArray.CopyPolicies.COPY.getValue() )).
- 
getDataReturns a read-only pointer to the array's values .
- 
getDataTypeReturns the data type of the array.
- 
setValuepublic void setValue(SbVec3i32 size, SbDataType dataType, ByteBuffer data, SoSFArray.CopyPolicies copy) Fill the array with data of the specified dimensions and type using the specified copy policy.
- 
isEmptypublic boolean isEmpty()Returns true if the current array is empty.
- 
setNeverWritepublic void setNeverWrite(boolean neverWrite) Sets the "neverWrite" flag. As this field may have to handle large amounts of data and its representation in an .iv file is not very efficient, it is often a good idea not to allow that data to be written out when required by a write action. By default, the "neverWrite" condition is false.
- 
isNeverWritepublic boolean isNeverWrite()Returns the "neverWrite" flag.
- 
getSizeReturns the dimensions of the array.
- 
equals
- 
getValueReturns a read-only pointer to the array's values and its dimensions and data type.
 
-