Class ParSLConfig.Buffer

    • Constructor Detail

      • Buffer

        public Buffer​(java.nio.ByteBuffer container)
        Creates a new ParSLConfig.Buffer instance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by ParSLConfig.SIZEOF, and its mark will be undefined.

        The created buffer instance holds a strong reference to the container object.

      • Buffer

        public Buffer​(long address,
                      int cap)
    • Method Detail

      • thickness

        public float thickness()
        Returns the value of the thickness field.
      • flags

        public int flags()
        Returns the value of the flags field.
      • u_mode

        public int u_mode()
        Returns the value of the u_mode field.
      • curves_max_flatness

        public float curves_max_flatness()
        Returns the value of the curves_max_flatness field.
      • streamlines_seed_spacing

        public float streamlines_seed_spacing()
        Returns the value of the streamlines_seed_spacing field.
      • streamlines_seed_viewport

        public ParSLViewport streamlines_seed_viewport()
        Returns a ParSLViewport view of the streamlines_seed_viewport field.
      • miter_limit

        public float miter_limit()
        Returns the value of the miter_limit field.
      • thickness

        public ParSLConfig.Buffer thickness​(float value)
        Sets the specified value to the thickness field.
      • flags

        public ParSLConfig.Buffer flags​(int value)
        Sets the specified value to the flags field.
      • u_mode

        public ParSLConfig.Buffer u_mode​(int value)
        Sets the specified value to the u_mode field.
      • curves_max_flatness

        public ParSLConfig.Buffer curves_max_flatness​(float value)
        Sets the specified value to the curves_max_flatness field.
      • streamlines_seed_spacing

        public ParSLConfig.Buffer streamlines_seed_spacing​(float value)
        Sets the specified value to the streamlines_seed_spacing field.
      • streamlines_seed_viewport

        public ParSLConfig.Buffer streamlines_seed_viewport​(java.util.function.Consumer<ParSLViewport> consumer)
        Passes the streamlines_seed_viewport field to the specified Consumer.
      • miter_limit

        public ParSLConfig.Buffer miter_limit​(float value)
        Sets the specified value to the miter_limit field.