Class SoLinePatternElement


  • public class SoLinePatternElement
    extends SoReplacedElement
    Stores the current line stipple pattern. This slement stores the current line stipple pattern.

    See Also:
    SoDrawStyle
    • Method Detail

      • set

        public static void set​(SoState state,
                               SoNode name_14259,
                               short pattern)
        Calls set(state, name_14259, pattern, (int)1).
      • set

        public static void set​(SoState state,
                               short pattern)
        Calls set(state, pattern, (int)1).
      • getClassStackIndex

        @Deprecated(since="9.3.0.0")
        public static int getClassStackIndex()
        Deprecated.
        As of Open Inventor 9.3.0.0. replaced by SoElement.getClassStackIndex(Class)
        Returns the stack id for this element. ] *
      • getDefaultPattern

        public static short getDefaultPattern()
        Returns the default line pattern.
      • set

        public static void set​(SoState state,
                               short pattern,
                               int factor)
        Sets the current line pattern in the state.
      • getDefault

        public static short getDefault()
        Deprecated: Returns the default line pattern.
      • set

        public static void set​(SoState state,
                               SoNode name_14259,
                               short pattern,
                               int factor)
        Sets the current line pattern in the state.
      • getDefaultScaleFactor

        public static int getDefaultScaleFactor()
        Returns the default line pattern scale factor. A multiplier for each bit in the line pattern. If factor is 3, for example, each bit in the pattern will be used three times before the next bit in the pattern is used. The factor parameter is clamped to the range [1, 256] and defaults to 1.