@NoOffset @Properties(inherit=Bullet3OpenCL.class) public class b3QuantizedBvh extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Modifier and Type | Field and Description |
|---|---|
static int |
TRAVERSAL_RECURSIVE
enum b3QuantizedBvh::b3TraversalMode
|
static int |
TRAVERSAL_STACKLESS
enum b3QuantizedBvh::b3TraversalMode
|
static int |
TRAVERSAL_STACKLESS_CACHE_FRIENDLY
enum b3QuantizedBvh::b3TraversalMode
|
| Constructor and Description |
|---|
b3QuantizedBvh() |
b3QuantizedBvh(long size)
Native array allocator.
|
b3QuantizedBvh(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
buildInternal()
buildInternal is expert use only: assumes that setQuantizationValues and LeafNodeArray are initialized
|
int |
calculateSerializeBufferSize() |
int |
calculateSerializeBufferSizeNew() |
void |
deSerializeDouble(b3QuantizedBvhDoubleData quantizedBvhDoubleData) |
void |
deSerializeFloat(b3QuantizedBvhFloatData quantizedBvhFloatData) |
static b3QuantizedBvh |
deSerializeInPlace(Pointer i_alignedDataBuffer,
int i_dataBufferSize,
boolean i_swapEndian)
deSerializeInPlace loads and initializes a BVH from a buffer in memory 'in place'
|
static int |
getAlignmentSerializationPadding() |
b3QuantizedBvhNodeArray |
getLeafNodeArray() |
b3QuantizedBvh |
getPointer(long i) |
b3QuantizedBvhNodeArray |
getQuantizedNodeArray() |
b3BvhSubtreeInfoArray |
getSubtreeInfoArray() |
boolean |
isQuantized() |
b3Vector3 |
m_bvhAabbMax() |
b3QuantizedBvh |
m_bvhAabbMax(b3Vector3 setter) |
b3Vector3 |
m_bvhAabbMin() |
b3QuantizedBvh |
m_bvhAabbMin(b3Vector3 setter) |
b3Vector3 |
m_bvhQuantization() |
b3QuantizedBvh |
m_bvhQuantization(b3Vector3 setter) |
b3QuantizedBvh |
position(long position) |
void |
quantize(short[] out,
b3Vector3 point,
int isMax) |
void |
quantize(ShortBuffer out,
b3Vector3 point,
int isMax) |
void |
quantize(ShortPointer out,
b3Vector3 point,
int isMax) |
void |
quantizeWithClamp(short[] out,
b3Vector3 point2,
int isMax) |
void |
quantizeWithClamp(ShortBuffer out,
b3Vector3 point2,
int isMax) |
void |
quantizeWithClamp(ShortPointer out,
b3Vector3 point2,
int isMax) |
void |
reportAabbOverlappingNodex(b3NodeOverlapCallback nodeCallback,
b3Vector3 aabbMin,
b3Vector3 aabbMax) |
void |
reportBoxCastOverlappingNodex(b3NodeOverlapCallback nodeCallback,
b3Vector3 raySource,
b3Vector3 rayTarget,
b3Vector3 aabbMin,
b3Vector3 aabbMax) |
void |
reportRayOverlappingNodex(b3NodeOverlapCallback nodeCallback,
b3Vector3 raySource,
b3Vector3 rayTarget) |
BytePointer |
serialize(Pointer dataBuffer,
b3Serializer serializer)
fills the dataBuffer and returns the struct name (and 0 on failure)
|
boolean |
serialize(Pointer o_alignedDataBuffer,
int i_dataBufferSize,
boolean i_swapEndian)
Data buffer MUST be 16 byte aligned
|
void |
setQuantizationValues(b3Vector3 bvhAabbMin,
b3Vector3 bvhAabbMax) |
void |
setQuantizationValues(b3Vector3 bvhAabbMin,
b3Vector3 bvhAabbMax,
float quantizationMargin) |
void |
setTraversalMode(int traversalMode)
setTraversalMode let's you choose between stackless, recursive or stackless cache friendly tree traversal.
|
b3Vector3 |
unQuantize(short[] vecIn) |
b3Vector3 |
unQuantize(ShortBuffer vecIn) |
b3Vector3 |
unQuantize(ShortPointer vecIn) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic static final int TRAVERSAL_STACKLESS
public static final int TRAVERSAL_STACKLESS_CACHE_FRIENDLY
public static final int TRAVERSAL_RECURSIVE
public b3QuantizedBvh(Pointer p)
Pointer(Pointer).public b3QuantizedBvh(long size)
Pointer.position(long).public b3QuantizedBvh()
public b3QuantizedBvh position(long position)
public b3QuantizedBvh getPointer(long i)
getPointer in class Pointerpublic b3QuantizedBvh m_bvhAabbMin(b3Vector3 setter)
public b3QuantizedBvh m_bvhAabbMax(b3Vector3 setter)
public b3QuantizedBvh m_bvhQuantization(b3Vector3 setter)
public void setQuantizationValues(@Const @ByRef b3Vector3 bvhAabbMin, @Const @ByRef b3Vector3 bvhAabbMax, @Cast(value="b3Scalar") float quantizationMargin)
public void setQuantizationValues(@Const @ByRef b3Vector3 bvhAabbMin, @Const @ByRef b3Vector3 bvhAabbMax)
@Cast(value="QuantizedNodeArray*") @ByRef public b3QuantizedBvhNodeArray getLeafNodeArray()
public void buildInternal()
public void reportAabbOverlappingNodex(b3NodeOverlapCallback nodeCallback, @Const @ByRef b3Vector3 aabbMin, @Const @ByRef b3Vector3 aabbMax)
public void reportRayOverlappingNodex(b3NodeOverlapCallback nodeCallback, @Const @ByRef b3Vector3 raySource, @Const @ByRef b3Vector3 rayTarget)
public void reportBoxCastOverlappingNodex(b3NodeOverlapCallback nodeCallback, @Const @ByRef b3Vector3 raySource, @Const @ByRef b3Vector3 rayTarget, @Const @ByRef b3Vector3 aabbMin, @Const @ByRef b3Vector3 aabbMax)
public void quantize(@Cast(value="unsigned short*") ShortPointer out, @Const @ByRef b3Vector3 point, int isMax)
public void quantize(@Cast(value="unsigned short*") ShortBuffer out, @Const @ByRef b3Vector3 point, int isMax)
public void quantize(@Cast(value="unsigned short*") short[] out, @Const @ByRef b3Vector3 point, int isMax)
public void quantizeWithClamp(@Cast(value="unsigned short*") ShortPointer out, @Const @ByRef b3Vector3 point2, int isMax)
public void quantizeWithClamp(@Cast(value="unsigned short*") ShortBuffer out, @Const @ByRef b3Vector3 point2, int isMax)
public void quantizeWithClamp(@Cast(value="unsigned short*") short[] out, @Const @ByRef b3Vector3 point2, int isMax)
@ByVal public b3Vector3 unQuantize(@Cast(value="const unsigned short*") ShortPointer vecIn)
@ByVal public b3Vector3 unQuantize(@Cast(value="const unsigned short*") ShortBuffer vecIn)
public void setTraversalMode(@Cast(value="b3QuantizedBvh::b3TraversalMode") int traversalMode)
@Cast(value="QuantizedNodeArray*") @ByRef public b3QuantizedBvhNodeArray getQuantizedNodeArray()
@Cast(value="BvhSubtreeInfoArray*") @ByRef public b3BvhSubtreeInfoArray getSubtreeInfoArray()
@Cast(value="bool") public boolean serialize(Pointer o_alignedDataBuffer, @Cast(value="unsigned") int i_dataBufferSize, @Cast(value="bool") boolean i_swapEndian)
public static b3QuantizedBvh deSerializeInPlace(Pointer i_alignedDataBuffer, @Cast(value="unsigned int") int i_dataBufferSize, @Cast(value="bool") boolean i_swapEndian)
@Cast(value="unsigned int") public static int getAlignmentSerializationPadding()
public int calculateSerializeBufferSizeNew()
@Cast(value="const char*") public BytePointer serialize(Pointer dataBuffer, b3Serializer serializer)
public void deSerializeFloat(@ByRef b3QuantizedBvhFloatData quantizedBvhFloatData)
public void deSerializeDouble(@ByRef b3QuantizedBvhDoubleData quantizedBvhDoubleData)
Copyright © 2024. All rights reserved.