Class 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.

    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class SoField
      • 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.