public class SoMFTime extends SoMField
SbTime
values.
A multiple-value field that contains any number of SbTime
values.
SoMFTimes are written to file as one or more double-precision floating point values representing the length of time in seconds. Absolute times are measured relative to 00:00:00 GMT, January 1, 1970.
When more than one value is present, all of the values are enclosed in square brackets and separated by commas; for example:
[ 1.0, 1345600.1200055, 99.8 ]
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.
See also:
SoField.FieldTypes
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoMFTime()
Deprecated.
As of Open Inventor 9.3 Use constructor with SoFieldContainer instead.
|
SoMFTime(SoFieldContainer fieldContainer,
java.lang.String fieldName,
SoField.FieldTypes fieldType)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
disableDeleteValues()
Temporary disable value deleting.
|
boolean |
equals(java.lang.Object obj) |
int |
find(SbTime targetValue)
Calls find(targetValue, false).
|
int |
find(SbTime targetValue,
boolean addIfNotFound)
Finds the given
targetValue in the array and returns the index of that value.
|
SbTime |
get1Value(int i)
Deprecated.
|
SbTime |
getValueAt(int i) |
SbTime[] |
getValues(int start)
Returns a pointer into the array of values in the field, starting at index start.
|
long |
getValueSize()
Get size of the value.
|
void |
set1Value(int index,
SbTime newValue)
Sets the
index'th value in the array to
newValue.
|
void |
setValue(SbTime newValue)
Sets the first value in the array to
newValue, and deletes.
|
void |
setValues(int start,
SbTime[] 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 SoMFTime()
public SoMFTime(SoFieldContainer fieldContainer, java.lang.String fieldName, SoField.FieldTypes fieldType)
public int find(SbTime targetValue)
@Deprecated public SbTime get1Value(int i)
public SbTime getValueAt(int i)
public long getValueSize()
getValueSize
in class SoMField
public void setValue(SbTime newValue)
public void disableDeleteValues()
public int find(SbTime targetValue, boolean addIfNotFound)
public SbTime[] getValues(int start)
public void set1Value(int index, SbTime newValue)
public void setValues(int start, SbTime[] newValues)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com