Class ParSLConfig

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • THICKNESS, FLAGS, U_MODE, CURVES_MAX_FLATNESS, STREAMLINES_SEED_SPACING, STREAMLINES_SEED_VIEWPORT, MITER_LIMIT

        The struct member offsets.
    • Constructor Detail

      • ParSLConfig

        public ParSLConfig​(java.nio.ByteBuffer container)
        Creates a ParSLConfig instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

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

    • Method Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • 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 thickness​(float value)
        Sets the specified value to the thickness field.
      • flags

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

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

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

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

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

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

        public ParSLConfig set​(float thickness,
                               int flags,
                               int u_mode,
                               float curves_max_flatness,
                               float streamlines_seed_spacing,
                               ParSLViewport streamlines_seed_viewport,
                               float miter_limit)
        Initializes this struct with the specified values.
      • set

        public ParSLConfig set​(ParSLConfig src)
        Copies the specified struct data to this struct.
        Parameters:
        src - the source struct
        Returns:
        this struct
      • malloc

        public static ParSLConfig malloc()
        Returns a new ParSLConfig instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static ParSLConfig calloc()
        Returns a new ParSLConfig instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static ParSLConfig create​(long address)
        Returns a new ParSLConfig instance for the specified memory address.
      • createSafe

        @Nullable
        public static ParSLConfig createSafe​(long address)
        Like create, but returns null if address is NULL.
      • create

        public static ParSLConfig.Buffer create​(long address,
                                                int capacity)
        Create a ParSLConfig.Buffer instance at the specified memory.
        Parameters:
        address - the memory address
        capacity - the buffer capacity
      • createSafe

        @Nullable
        public static ParSLConfig.Buffer createSafe​(long address,
                                                    int capacity)
        Like create, but returns null if address is NULL.
      • mallocStack

        public static ParSLConfig mallocStack()
        Returns a new ParSLConfig instance allocated on the thread-local MemoryStack.
      • callocStack

        public static ParSLConfig callocStack()
        Returns a new ParSLConfig instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static ParSLConfig mallocStack​(MemoryStack stack)
        Returns a new ParSLConfig instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static ParSLConfig callocStack​(MemoryStack stack)
        Returns a new ParSLConfig instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static ParSLConfig.Buffer callocStack​(int capacity)
        Returns a new ParSLConfig.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
        Parameters:
        capacity - the buffer capacity
      • callocStack

        public static ParSLConfig.Buffer callocStack​(int capacity,
                                                     MemoryStack stack)
        Returns a new ParSLConfig.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • nthickness

        public static float nthickness​(long struct)
        Unsafe version of thickness().
      • nflags

        public static int nflags​(long struct)
        Unsafe version of flags().
      • nu_mode

        public static int nu_mode​(long struct)
        Unsafe version of u_mode().
      • ncurves_max_flatness

        public static float ncurves_max_flatness​(long struct)
        Unsafe version of curves_max_flatness().
      • nstreamlines_seed_spacing

        public static float nstreamlines_seed_spacing​(long struct)
        Unsafe version of streamlines_seed_spacing().
      • nmiter_limit

        public static float nmiter_limit​(long struct)
        Unsafe version of miter_limit().
      • nthickness

        public static void nthickness​(long struct,
                                      float value)
        Unsafe version of thickness.
      • nflags

        public static void nflags​(long struct,
                                  int value)
        Unsafe version of flags.
      • nu_mode

        public static void nu_mode​(long struct,
                                   int value)
        Unsafe version of u_mode.
      • ncurves_max_flatness

        public static void ncurves_max_flatness​(long struct,
                                                float value)
        Unsafe version of curves_max_flatness.
      • nstreamlines_seed_spacing

        public static void nstreamlines_seed_spacing​(long struct,
                                                     float value)
        Unsafe version of streamlines_seed_spacing.
      • nmiter_limit

        public static void nmiter_limit​(long struct,
                                        float value)
        Unsafe version of miter_limit.