Class SoMFVec2String
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.fields.SoField
-
- com.openinventor.inventor.fields.SoMField
-
- com.openinventor.inventor.fields.SoMFVec2String
-
- Direct Known Subclasses:
SoMFVec2FilePathString
public class SoMFVec2String extends SoMField
Multiple-value field containing any number of two-dimensional string vectors. A multiple-value field that contains any number of two-dimensional string vectors.SoMFVec2String
are written to file as one or more pairs of String point values separated by whitespace. When more than one value is present, all of the values are enclosed in square brackets and separated by commas. When a string value contains a white space it should be enclosed by double quote for example:[ toto truc, "hello man" test ] 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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.fields.SoField
SoField.FieldTypes
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoMFVec2String(SoFieldContainer fieldContainer, java.lang.String fieldName, SoField.FieldTypes fieldType)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
disableDeleteValues()
Temporary disable value deleting.boolean
equals(java.lang.Object obj)
void
set1Value(int index, java.lang.String s1, java.lang.String s2)
Sets one value from 2 String.void
setValue(java.lang.String s1, java.lang.String s2)
Sets to one value from 2 String.-
Methods inherited from class com.openinventor.inventor.fields.SoMField
deleteValues, deleteValues, get1, getNum, insertSpace, set1, setNum
-
Methods inherited from class com.openinventor.inventor.fields.SoField
appendConnection, appendConnection, connectFrom, connectFrom, disconnect, disconnect, disconnect, enableConnection, get, getConnectedEngine, getConnectedField, getContainer, getNumConnections, getValueSize, isConnected, isConnectedFromEngine, isConnectedFromField, isConnectedFromVRMLInterp, isConnectionEnabled, isDefault, isIgnored, set, setIgnored, touch
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Constructor Detail
-
SoMFVec2String
public SoMFVec2String(SoFieldContainer fieldContainer, java.lang.String fieldName, SoField.FieldTypes fieldType)
Default constructor.
-
-
Method Detail
-
disableDeleteValues
public void disableDeleteValues()
Temporary disable value deleting.
-
setValue
public void setValue(java.lang.String s1, java.lang.String s2)
Sets to one value from 2 String.
-
set1Value
public void set1Value(int index, java.lang.String s1, java.lang.String s2)
Sets one value from 2 String.
-
-