The vertex data is owned by streamlines context and becomes invalid on any subsequent call to the API. The annotations, spine_lengths,
and random_offsets fields are NULL unless their corresponding flags have been set in ParSLConfig.
struct parsl_mesh {
uint32_t num_vertices;
uint32_t num_triangles;
uint32_t * triangle_indices;
parsl_position * positions;
parsl_annotation * annotations;
float * spine_lengths;
float * random_offsets;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | ParSLMesh.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | ANNOTATIONS
The struct member offsets. |
| public static final int | NUM_TRIANGLES
The struct member offsets. |
| public static final int | NUM_VERTICES
The struct member offsets. |
| public static final int | POSITIONS
The struct member offsets. |
| public static final int | RANDOM_OFFSETS
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | SPINE_LENGTHS
The struct member offsets. |
| public static final int | TRIANGLE_INDICES
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | ParSLMesh(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public ParSLAnnotation. | |
| protected ParSLMesh | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static ParSLMesh | |
| public static ParSLMesh. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static ParSLMesh | |
| public static ParSLMesh. | |
| public static ParSLAnnotation. | |
| public static int | |
| public static int | |
| public static ParSLPosition. | |
| public static FloatBuffer | |
| public static FloatBuffer | |
| public static IntBuffer | |
| public int | |
| public int | |
| public ParSLPosition. | |
| public FloatBuffer | |
| public int | |
| public FloatBuffer | |
| public IntBuffer |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| ANNOTATIONS | back to summary |
|---|---|
| public static final int ANNOTATIONS The struct member offsets. | |
| NUM_TRIANGLES | back to summary |
|---|---|
| public static final int NUM_TRIANGLES The struct member offsets. | |
| NUM_VERTICES | back to summary |
|---|---|
| public static final int NUM_VERTICES The struct member offsets. | |
| POSITIONS | back to summary |
|---|---|
| public static final int POSITIONS The struct member offsets. | |
| RANDOM_OFFSETS | back to summary |
|---|---|
| public static final int RANDOM_OFFSETS The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| SPINE_LENGTHS | back to summary |
|---|---|
| public static final int SPINE_LENGTHS The struct member offsets. | |
| TRIANGLE_INDICES | back to summary |
|---|---|
| public static final int TRIANGLE_INDICES The struct member offsets. | |
| ParSLMesh | back to summary |
|---|---|
| protected ParSLMesh(long address, ByteBuffer container) | |
| ParSLMesh | back to summary |
|---|---|
| public ParSLMesh(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| annotations | back to summary |
|---|---|
public ParSLAnnotation.
| |
| create | back to summary |
|---|---|
| protected ParSLMesh create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static ParSLMesh create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static ParSLMesh. Create a
| |
| createSafe | back to summary |
|---|---|
| public static ParSLMesh createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static ParSLMesh. Like
| |
| nannotations | back to summary |
|---|---|
| public static ParSLAnnotation. Unsafe version of
| |
| nnum_triangles | back to summary |
|---|---|
| public static int nnum_triangles(long struct) Unsafe version of | |
| nnum_vertices | back to summary |
|---|---|
| public static int nnum_vertices(long struct) Unsafe version of | |
| npositions | back to summary |
|---|---|
| public static ParSLPosition. Unsafe version of | |
| nrandom_offsets | back to summary |
|---|---|
| public static FloatBuffer nrandom_offsets(long struct) Unsafe version of
| |
| nspine_lengths | back to summary |
|---|---|
| public static FloatBuffer nspine_lengths(long struct) Unsafe version of
| |
| ntriangle_indices | back to summary |
|---|---|
| public static IntBuffer ntriangle_indices(long struct, int capacity) Unsafe version of | |
| num_triangles | back to summary |
|---|---|
public int num_triangles()
| |
| num_vertices | back to summary |
|---|---|
public int num_vertices()
| |
| positions | back to summary |
|---|---|
public ParSLPosition.
| |
| random_offsets | back to summary |
|---|---|
public FloatBuffer random_offsets()
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| spine_lengths | back to summary |
|---|---|
public FloatBuffer spine_lengths()
| |
| triangle_indices | back to summary |
|---|---|
public IntBuffer triangle_indices(int capacity)
| |
ParSLMesh structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final ParSLMesh |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public ParSLAnnotation. | |
| protected ParSLMesh | |
| public int | |
| public int | |
| public ParSLPosition. | |
| public FloatBuffer | |
| protected ParSLMesh. | |
| public FloatBuffer | |
| public IntBuffer |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final ParSLMesh ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new 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 The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| annotations | back to summary |
|---|---|
public ParSLAnnotation.
| |
| getElementFactory | back to summary |
|---|---|
| protected ParSLMesh getElementFactory() Implements abstract org.
| |
| num_triangles | back to summary |
|---|---|
public int num_triangles()
| |
| num_vertices | back to summary |
|---|---|
public int num_vertices()
| |
| positions | back to summary |
|---|---|
public ParSLPosition.
| |
| random_offsets | back to summary |
|---|---|
public FloatBuffer random_offsets()
| |
| self | back to summary |
|---|---|
| protected ParSLMesh. Implements abstract org.
| |
| spine_lengths | back to summary |
|---|---|
public FloatBuffer spine_lengths()
| |
| triangle_indices | back to summary |
|---|---|
public IntBuffer triangle_indices(int capacity)
| |