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

Public Member Functions

 VoxelLocation (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 VoxelLocation ()
 VoxelLocation (meshlib.VoxelId id, meshlib.Vector3i pos)
 VoxelLocation (meshlib.VoxelLocation _other)
boolean convertTo_bool ()
meshlib.VoxelLocation assignFromAnother (meshlib.VoxelLocation _other)
meshlib.VoxelId id ()
void setId (meshlib.VoxelId value)
meshlib.Vector3i pos ()
void setPos (meshlib.Vector3i value)
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 ()

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

contains both linear Id and 3D coordinates of the same voxel Generated from class MR::VoxelLocation.

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

Constructor & Destructor Documentation

◆ VoxelLocation() [1/4]

meshlib.VoxelLocation.VoxelLocation ( 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.

◆ VoxelLocation() [2/4]

meshlib.VoxelLocation.VoxelLocation ( )

Constructs an empty (default-constructed) instance.

Calls MR_VoxelLocation_DefaultConstruct().

◆ VoxelLocation() [3/4]

meshlib.VoxelLocation.VoxelLocation ( meshlib.VoxelId id,
meshlib.Vector3i pos )

Constructs MR::VoxelLocation elementwise. The reference to the parameter id might be preserved in the constructed object. The reference to the parameter pos might be preserved in the constructed object.

Calls MR_VoxelLocation_ConstructFrom().

◆ VoxelLocation() [4/4]

meshlib.VoxelLocation.VoxelLocation ( meshlib.VoxelLocation _other)

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

Calls MR_VoxelLocation_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.VoxelLocation meshlib.VoxelLocation.assignFromAnother ( meshlib.VoxelLocation _other)

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

Calls MR_VoxelLocation_AssignFromAnother().

◆ convertTo_bool()

boolean meshlib.VoxelLocation.convertTo_bool ( )

check for validity Generated from conversion operator MR::VoxelLocation::operator bool.

Calls MR_VoxelLocation_ConvertTo_bool().

◆ id()

meshlib.VoxelId meshlib.VoxelLocation.id ( )

Returns a pointer to a member variable of class MR::VoxelLocation named id. The reference to this object might be preserved as the return value.

Calls MR_VoxelLocation_Get_id().

◆ pos()

meshlib.Vector3i meshlib.VoxelLocation.pos ( )

Returns a pointer to a member variable of class MR::VoxelLocation named pos. The reference to this object might be preserved as the return value.

Calls MR_VoxelLocation_Get_pos().

◆ setId()

void meshlib.VoxelLocation.setId ( meshlib.VoxelId value)

Modifies a member variable of class MR::VoxelLocation named id. The reference to the parameter value might be preserved in this object in element id.

Calls MR_VoxelLocation_Set_id().

◆ setPos()

void meshlib.VoxelLocation.setPos ( meshlib.Vector3i value)

Modifies a member variable of class MR::VoxelLocation named pos. The reference to the parameter value might be preserved in this object in element pos.

Calls MR_VoxelLocation_Set_pos().


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