public class ParSLConfig
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
flags – one or more of:FLAG_WIREFRAME | FLAG_ANNOTATIONS | FLAG_SPINE_LENGTHS | FLAG_RANDOM_OFFSETS |
FLAG_CURVE_GUIPARSL_FLAG_DES |
u_mode – one of:ParStreamlines.PAR_U_MODE_NORMALIZED_DISTANCE | ParStreamlines.PAR_U_MODE_DISTANCE | ParStreamlines.PAR_U_MODE_SEGMENT_INDEX |
ParStreamlines.PAR_U_MODE_SEGMENT_FRACTION |
struct parsl_config {
float thickness;
uint32_t flags;
int u_mode;
float curves_max_flatness;
float streamlines_seed_spacing;
parsl_viewport streamlines_seed_viewport;
float miter_limit;
}| Modifier and Type | Class and Description |
|---|---|
static class |
ParSLConfig.Buffer
An array of
ParSLConfig structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CURVES_MAX_FLATNESS
The struct member offsets.
|
static int |
FLAGS
The struct member offsets.
|
static int |
MITER_LIMIT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STREAMLINES_SEED_SPACING
The struct member offsets.
|
static int |
STREAMLINES_SEED_VIEWPORT
The struct member offsets.
|
static int |
THICKNESS
The struct member offsets.
|
static int |
U_MODE
The struct member offsets.
|
| Constructor and Description |
|---|
ParSLConfig(java.nio.ByteBuffer container)
Creates a
ParSLConfig instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static ParSLConfig |
calloc()
Returns a new
ParSLConfig instance allocated with memCalloc. |
static ParSLConfig.Buffer |
calloc(int capacity)
Returns a new
ParSLConfig.Buffer instance allocated with memCalloc. |
static ParSLConfig |
callocStack()
Returns a new
ParSLConfig instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
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. |
static ParSLConfig.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ParSLConfig.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static ParSLConfig |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ParSLConfig instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static ParSLConfig |
create()
Returns a new
ParSLConfig instance allocated with BufferUtils. |
static ParSLConfig.Buffer |
create(int capacity)
Returns a new
ParSLConfig.Buffer instance allocated with BufferUtils. |
static ParSLConfig |
create(long address)
Returns a new
ParSLConfig instance for the specified memory address. |
static ParSLConfig.Buffer |
create(long address,
int capacity)
Create a
ParSLConfig.Buffer instance at the specified memory. |
static ParSLConfig |
createSafe(long address)
|
static ParSLConfig.Buffer |
createSafe(long address,
int capacity)
|
float |
curves_max_flatness()
Returns the value of the
curves_max_flatness field. |
ParSLConfig |
curves_max_flatness(float value)
Sets the specified value to the
curves_max_flatness field. |
int |
flags()
Returns the value of the
flags field. |
ParSLConfig |
flags(int value)
Sets the specified value to the
flags field. |
static ParSLConfig |
malloc()
Returns a new
ParSLConfig instance allocated with memAlloc. |
static ParSLConfig.Buffer |
malloc(int capacity)
Returns a new
ParSLConfig.Buffer instance allocated with memAlloc. |
static ParSLConfig |
mallocStack()
Returns a new
ParSLConfig instance allocated on the thread-local MemoryStack. |
static ParSLConfig.Buffer |
mallocStack(int capacity)
Returns a new
ParSLConfig.Buffer instance allocated on the thread-local MemoryStack. |
static ParSLConfig.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ParSLConfig.Buffer instance allocated on the specified MemoryStack. |
static ParSLConfig |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ParSLConfig instance allocated on the specified MemoryStack. |
float |
miter_limit()
Returns the value of the
miter_limit field. |
ParSLConfig |
miter_limit(float value)
Sets the specified value to the
miter_limit field. |
static float |
ncurves_max_flatness(long struct)
Unsafe version of
curves_max_flatness(). |
static void |
ncurves_max_flatness(long struct,
float value)
Unsafe version of
curves_max_flatness. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static float |
nmiter_limit(long struct)
Unsafe version of
miter_limit(). |
static void |
nmiter_limit(long struct,
float value)
Unsafe version of
miter_limit. |
static float |
nstreamlines_seed_spacing(long struct)
Unsafe version of
streamlines_seed_spacing(). |
static void |
nstreamlines_seed_spacing(long struct,
float value)
Unsafe version of
streamlines_seed_spacing. |
static ParSLViewport |
nstreamlines_seed_viewport(long struct)
Unsafe version of
streamlines_seed_viewport(). |
static void |
nstreamlines_seed_viewport(long struct,
ParSLViewport value)
Unsafe version of
streamlines_seed_viewport. |
static float |
nthickness(long struct)
Unsafe version of
thickness(). |
static void |
nthickness(long struct,
float value)
Unsafe version of
thickness. |
static int |
nu_mode(long struct)
Unsafe version of
u_mode(). |
static void |
nu_mode(long struct,
int value)
Unsafe version of
u_mode. |
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.
|
ParSLConfig |
set(ParSLConfig src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
float |
streamlines_seed_spacing()
Returns the value of the
streamlines_seed_spacing field. |
ParSLConfig |
streamlines_seed_spacing(float value)
Sets the specified value to the
streamlines_seed_spacing field. |
ParSLViewport |
streamlines_seed_viewport()
Returns a
ParSLViewport view of the streamlines_seed_viewport field. |
ParSLConfig |
streamlines_seed_viewport(java.util.function.Consumer<ParSLViewport> consumer)
Passes the
streamlines_seed_viewport field to the specified Consumer. |
ParSLConfig |
streamlines_seed_viewport(ParSLViewport value)
Copies the specified
ParSLViewport to the streamlines_seed_viewport field. |
float |
thickness()
Returns the value of the
thickness field. |
ParSLConfig |
thickness(float value)
Sets the specified value to the
thickness field. |
int |
u_mode()
Returns the value of the
u_mode field. |
ParSLConfig |
u_mode(int value)
Sets the specified value to the
u_mode field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int THICKNESS
public static final int FLAGS
public static final int U_MODE
public static final int CURVES_MAX_FLATNESS
public static final int STREAMLINES_SEED_SPACING
public static final int STREAMLINES_SEED_VIEWPORT
public static final int MITER_LIMIT
public ParSLConfig(java.nio.ByteBuffer container)
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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic float thickness()
thickness field.public int flags()
flags field.public int u_mode()
u_mode field.public float curves_max_flatness()
curves_max_flatness field.public float streamlines_seed_spacing()
streamlines_seed_spacing field.public ParSLViewport streamlines_seed_viewport()
ParSLViewport view of the streamlines_seed_viewport field.public float miter_limit()
miter_limit field.public ParSLConfig thickness(float value)
thickness field.public ParSLConfig flags(int value)
flags field.public ParSLConfig u_mode(int value)
u_mode field.public ParSLConfig curves_max_flatness(float value)
curves_max_flatness field.public ParSLConfig streamlines_seed_spacing(float value)
streamlines_seed_spacing field.public ParSLConfig streamlines_seed_viewport(ParSLViewport value)
ParSLViewport to the streamlines_seed_viewport field.public ParSLConfig streamlines_seed_viewport(java.util.function.Consumer<ParSLViewport> consumer)
streamlines_seed_viewport field to the specified Consumer.public ParSLConfig miter_limit(float value)
miter_limit field.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)
public ParSLConfig set(ParSLConfig src)
src - the source structpublic static ParSLConfig malloc()
ParSLConfig instance allocated with memAlloc. The instance must be explicitly freed.public static ParSLConfig calloc()
ParSLConfig instance allocated with memCalloc. The instance must be explicitly freed.public static ParSLConfig create()
ParSLConfig instance allocated with BufferUtils.public static ParSLConfig create(long address)
ParSLConfig instance for the specified memory address.@Nullable public static ParSLConfig createSafe(long address)
public static ParSLConfig.Buffer malloc(int capacity)
ParSLConfig.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ParSLConfig.Buffer calloc(int capacity)
ParSLConfig.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ParSLConfig.Buffer create(int capacity)
ParSLConfig.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static ParSLConfig.Buffer create(long address, int capacity)
ParSLConfig.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static ParSLConfig.Buffer createSafe(long address, int capacity)
public static ParSLConfig mallocStack()
ParSLConfig instance allocated on the thread-local MemoryStack.public static ParSLConfig callocStack()
ParSLConfig instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static ParSLConfig mallocStack(org.lwjgl.system.MemoryStack stack)
ParSLConfig instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static ParSLConfig callocStack(org.lwjgl.system.MemoryStack stack)
ParSLConfig instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static ParSLConfig.Buffer mallocStack(int capacity)
ParSLConfig.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static ParSLConfig.Buffer callocStack(int capacity)
ParSLConfig.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static ParSLConfig.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ParSLConfig.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static ParSLConfig.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ParSLConfig.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static float nthickness(long struct)
thickness().public static int nflags(long struct)
flags().public static int nu_mode(long struct)
u_mode().public static float ncurves_max_flatness(long struct)
curves_max_flatness().public static float nstreamlines_seed_spacing(long struct)
streamlines_seed_spacing().public static ParSLViewport nstreamlines_seed_viewport(long struct)
streamlines_seed_viewport().public static float nmiter_limit(long struct)
miter_limit().public static void nthickness(long struct,
float value)
thickness.public static void nflags(long struct,
int value)
flags.public static void nu_mode(long struct,
int value)
u_mode.public static void ncurves_max_flatness(long struct,
float value)
curves_max_flatness.public static void nstreamlines_seed_spacing(long struct,
float value)
streamlines_seed_spacing.public static void nstreamlines_seed_viewport(long struct,
ParSLViewport value)
streamlines_seed_viewport.public static void nmiter_limit(long struct,
float value)
miter_limit.Copyright LWJGL. All Rights Reserved. License terms.