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_14706,
                               short pattern)
        Calls set(state, name_14706, pattern, (int)1).
      • set

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

        @Deprecated
        public static int getClassStackIndex()
        Deprecated.
        As of Open Inventor 9300. 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_14706,
                               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.