MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.AABBTreeChildEncoding Class Reference
Inheritance diagram for meshlib.AABBTreeChildEncoding:

Public Member Functions

 AABBTreeChildEncoding (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 AABBTreeChildEncoding ()
 AABBTreeChildEncoding (meshlib.AABBTreeChildEncoding _other)
meshlib.AABBTreeChildEncoding assignFromAnother (meshlib.AABBTreeChildEncoding _other)
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Static Public Member Functions

static boolean isLeaf (meshlib.NodeId child)
static long leafIndex (meshlib.NodeId child)
static meshlib.NodeId leafChild (long leafIndex)

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

Detailed Description

the encoding of the children of AABB-tree nodes Generated from class MR::AABBTreeChildEncoding. Derived classes: Direct: (non-virtual) MR::AABBTreeNode<MR::AABBTreeTraits<MR::UndirectedEdgeTag, MR::Box2f>> MR::AABBTreeNode<MR::AABBTreeTraits<MR::UndirectedEdgeTag, MR::Box3f>> MR::AABBTreeNode<MR::ObjTreeTraits>

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ AABBTreeChildEncoding() [1/3]

meshlib.AABBTreeChildEncoding.AABBTreeChildEncoding ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

◆ AABBTreeChildEncoding() [2/3]

meshlib.AABBTreeChildEncoding.AABBTreeChildEncoding ( )

Constructs an empty (default-constructed) instance.

Calls MR_AABBTreeChildEncoding_DefaultConstruct().

◆ AABBTreeChildEncoding() [3/3]

meshlib.AABBTreeChildEncoding.AABBTreeChildEncoding ( meshlib.AABBTreeChildEncoding _other)

Generated from constructor MR::AABBTreeChildEncoding::AABBTreeChildEncoding. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

Calls MR_AABBTreeChildEncoding_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.AABBTreeChildEncoding meshlib.AABBTreeChildEncoding.assignFromAnother ( meshlib.AABBTreeChildEncoding _other)

Generated from method MR::AABBTreeChildEncoding::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.

Calls MR_AABBTreeChildEncoding_AssignFromAnother().

◆ isLeaf()

boolean meshlib.AABBTreeChildEncoding.isLeaf ( meshlib.NodeId child)
static

returns true if given child of a node is a leaf rather than another node Generated from method MR::AABBTreeChildEncoding::isLeaf.

Calls MR_AABBTreeChildEncoding_isLeaf().

◆ leafChild()

meshlib.NodeId meshlib.AABBTreeChildEncoding.leafChild ( long leafIndex)
static

encodes given index in the vector of leaves as a child of a node Generated from method MR::AABBTreeChildEncoding::leafChild.

Calls MR_AABBTreeChildEncoding_leafChild().

◆ leafIndex()

long meshlib.AABBTreeChildEncoding.leafIndex ( meshlib.NodeId child)
static

returns the index in the vector of leaves of the leaf encoded in given child of a node Generated from method MR::AABBTreeChildEncoding::leafIndex.

Calls MR_AABBTreeChildEncoding_leafIndex().


The documentation for this class was generated from the following file: