MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::SimpleVolumeMinMaxU16 Struct Reference
Inheritance diagram for meshlib::SimpleVolumeMinMaxU16:

Public Member Functions

auto assign_from_another (_other:&meshlib::SimpleVolumeMinMaxU16) -> &mut meshlib::SimpleVolumeMinMaxU16
auto heap_bytes () const -> usize
auto valid () const -> bool
auto center () const -> core::ffi::c_ushort
auto corner (c:&bool) const -> core::ffi::c_ushort
auto size () const -> core::ffi::c_ushort
auto diagonal () const -> core::ffi::c_ushort
auto volume () const -> core::ffi::c_ushort
auto get_box_closest_point_to (pt:&core::ffi::c_ushort) const -> core::ffi::c_ushort
auto intersects (b:&meshlib::Box_unsigned_short) const -> bool
auto intersection (b:&meshlib::Box_unsigned_short) const -> meshlib::Owned< meshlib::Box_unsigned_short >
auto intersect (b:&meshlib::Box_unsigned_short) -> &mut meshlib::Box_unsigned_short
auto get_projection (pt:&core::ffi::c_ushort) const -> core::ffi::c_ushort
auto expanded (expansion:&core::ffi::c_ushort) const -> meshlib::Owned< meshlib::Box_unsigned_short >
auto insignificantly_expanded () const -> meshlib::Owned< meshlib::Box_unsigned_short >
auto op_equal_mr_box_unsigned_short (a:&meshlib::Box_unsigned_short) const -> bool
auto op_not_equal_mr_box_unsigned_short (a:&meshlib::Box_unsigned_short) const -> bool
auto data () const -> &meshlib::Vector_unsigned_short_MR_VoxelId
auto data_mut () -> &mut meshlib::Vector_unsigned_short_MR_VoxelId
void set_data (value:&meshlib::Vector_unsigned_short_MR_VoxelId)
auto dims () const -> &meshlib::Vector3i
auto dims_mut () -> &mut meshlib::Vector3i
void set_dims (value:meshlib::Vector3i)
auto voxel_size () const -> &meshlib::Vector3f
auto voxel_size_mut () -> &mut meshlib::Vector3f
void set_voxel_size (value:meshlib::Vector3f)
auto min () const -> &core::ffi::c_ushort
auto min_mut () -> &mut core::ffi::c_ushort
void set_min (value:core::ffi::c_ushort)
auto max () const -> &core::ffi::c_ushort
auto max_mut () -> &mut core::ffi::c_ushort
void set_max (value:core::ffi::c_ushort)
auto upcast_to_simple_volume_u16 () const -> &meshlib::SimpleVolumeU16
auto upcast_to_simple_volume_u16_mut () -> &mut meshlib::SimpleVolumeU16
auto upcast_to_box_unsigned_short () const -> &meshlib::Box_unsigned_short
auto upcast_to_box_unsigned_short_mut () -> &mut meshlib::Box_unsigned_short

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::SimpleVolumeMinMaxU16 >
static auto construct_from_another (_other:&meshlib::SimpleVolumeMinMaxU16) -> meshlib::Owned< meshlib::SimpleVolumeMinMaxU16 >
static auto from_min_and_size (min:&core::ffi::c_ushort, size:&core::ffi::c_ushort) -> meshlib::Owned< meshlib::Box_unsigned_short >
static auto get_min_box_corner (n:&core::ffi::c_ushort) -> bool
static auto get_max_box_corner (n:&core::ffi::c_ushort) -> bool
static auto elements () -> *const core::ffi::c_int
static auto static_downcast_from_simple_volume_u16 (object:&meshlib::SimpleVolumeU16) -> &Self
static auto static_downcast_from_simple_volume_u16_mut (object:&mut meshlib::SimpleVolumeU16) -> &mut Self
static auto static_downcast_from_box_unsigned_short (object:&meshlib::Box_unsigned_short) -> &Self
static auto static_downcast_from_box_unsigned_short_mut (object:&mut meshlib::Box_unsigned_short) -> &mut Self
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)
Static Public Member Functions inherited from meshlib::CppCopy
static auto copy (ptr:*const Self) -> *mut Self

Detailed Description

represents a box in 3D space subdivided on voxels stored in T; and stores minimum and maximum values among all valid voxels Generated from class MR::SimpleVolumeMinMaxU16. Base classes: Direct: (non-virtual) MR::SimpleVolumeU16 MR::Box<unsigned short>

Generated from class MR::SimpleVolumeMinMaxU16. Heap-allocated instances are held in Owned<SimpleVolumeMinMaxU16>.

Member Function Documentation

◆ assign_from_another()

auto meshlib::SimpleVolumeMinMaxU16::assign_from_another ( _other:&meshlib::SimpleVolumeMinMaxU16 ) -> &mut meshlib::SimpleVolumeMinMaxU16

Generated from method MR::SimpleVolumeMinMaxU16::operator=.

Calls MR_SimpleVolumeMinMaxU16_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.

◆ center()

auto meshlib::SimpleVolumeMinMaxU16::center ( ) const -> core::ffi::c_ushort

computes center of the box Generated from method MR::SimpleVolumeMinMaxU16::center.

Calls MR_SimpleVolumeMinMaxU16_center().

◆ construct_from_another()

auto meshlib::SimpleVolumeMinMaxU16::construct_from_another ( _other:&meshlib::SimpleVolumeMinMaxU16 ) -> meshlib::Owned< meshlib::SimpleVolumeMinMaxU16 >
static

Generated from constructor MR::SimpleVolumeMinMaxU16::SimpleVolumeMinMaxU16.

Calls MR_SimpleVolumeMinMaxU16_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

◆ corner()

auto meshlib::SimpleVolumeMinMaxU16::corner ( c:& bool ) const -> core::ffi::c_ushort

returns the corner of this box as specified by given bool-vector: 0 element in (c) means take min's coordinate, 1 element in (c) means take max's coordinate Generated from method MR::SimpleVolumeMinMaxU16::corner.

Calls MR_SimpleVolumeMinMaxU16_corner().

◆ data()

auto meshlib::SimpleVolumeMinMaxU16::data ( ) const -> &meshlib::Vector_unsigned_short_MR_VoxelId

Returns a pointer to a member variable of class MR::SimpleVolumeMinMaxU16 named data.

Calls MR_SimpleVolumeMinMaxU16_Get_data(). The reference to this object might be preserved as the return value.

◆ data_mut()

auto meshlib::SimpleVolumeMinMaxU16::data_mut ( ) -> &mut meshlib::Vector_unsigned_short_MR_VoxelId

Returns a mutable pointer to a member variable of class MR::SimpleVolumeMinMaxU16 named data.

Calls MR_SimpleVolumeMinMaxU16_GetMutable_data(). The reference to this object might be preserved as the return value.

◆ diagonal()

auto meshlib::SimpleVolumeMinMaxU16::diagonal ( ) const -> core::ffi::c_ushort

computes length from min to max Generated from method MR::SimpleVolumeMinMaxU16::diagonal.

Calls MR_SimpleVolumeMinMaxU16_diagonal().

◆ dims()

auto meshlib::SimpleVolumeMinMaxU16::dims ( ) const -> &meshlib::Vector3i

Returns a pointer to a member variable of class MR::SimpleVolumeMinMaxU16 named dims.

Calls MR_SimpleVolumeMinMaxU16_Get_dims(). The reference to this object might be preserved as the return value.

◆ dims_mut()

auto meshlib::SimpleVolumeMinMaxU16::dims_mut ( ) -> &mut meshlib::Vector3i

Returns a mutable pointer to a member variable of class MR::SimpleVolumeMinMaxU16 named dims.

Calls MR_SimpleVolumeMinMaxU16_GetMutable_dims(). The reference to this object might be preserved as the return value.

◆ elements()

auto meshlib::SimpleVolumeMinMaxU16::elements ( ) -> *const core::ffi::c_int
static

Returns a pointer to a member variable of class MR::SimpleVolumeMinMaxU16 named elements.

Calls MR_SimpleVolumeMinMaxU16_Get_elements().

◆ expanded()

auto meshlib::SimpleVolumeMinMaxU16::expanded ( expansion:&core::ffi::c_ushort ) const -> meshlib::Owned< meshlib::Box_unsigned_short >

decreases min and increased max on given value Generated from method MR::SimpleVolumeMinMaxU16::expanded.

Calls MR_SimpleVolumeMinMaxU16_expanded().

◆ from_min_and_size()

auto meshlib::SimpleVolumeMinMaxU16::from_min_and_size ( min:&core::ffi::c_ushort ,
size:&core::ffi::c_ushort  ) -> meshlib::Owned< meshlib::Box_unsigned_short >
static

Generated from method MR::SimpleVolumeMinMaxU16::fromMinAndSize.

Calls MR_SimpleVolumeMinMaxU16_fromMinAndSize().

◆ get_box_closest_point_to()

auto meshlib::SimpleVolumeMinMaxU16::get_box_closest_point_to ( pt:&core::ffi::c_ushort ) const -> core::ffi::c_ushort

returns closest point in the box to given point Generated from method MR::SimpleVolumeMinMaxU16::getBoxClosestPointTo.

Calls MR_SimpleVolumeMinMaxU16_getBoxClosestPointTo().

◆ get_max_box_corner()

auto meshlib::SimpleVolumeMinMaxU16::get_max_box_corner ( n:&core::ffi::c_ushort ) -> bool
static

considering all planes with given normal and arbitrary shift: dot(n,x) = d finds the box's corner for which d is maximal Generated from method MR::SimpleVolumeMinMaxU16::getMaxBoxCorner.

Calls MR_SimpleVolumeMinMaxU16_getMaxBoxCorner().

◆ get_min_box_corner()

auto meshlib::SimpleVolumeMinMaxU16::get_min_box_corner ( n:&core::ffi::c_ushort ) -> bool
static

considering all planes with given normal and arbitrary shift: dot(n,x) = d finds the box's corner for which d is minimal Generated from method MR::SimpleVolumeMinMaxU16::getMinBoxCorner.

Calls MR_SimpleVolumeMinMaxU16_getMinBoxCorner().

◆ get_projection()

auto meshlib::SimpleVolumeMinMaxU16::get_projection ( pt:&core::ffi::c_ushort ) const -> core::ffi::c_ushort

returns the closest point on the box to the given point for points outside the box this is equivalent to getBoxClosestPointTo Generated from method MR::SimpleVolumeMinMaxU16::getProjection.

Calls MR_SimpleVolumeMinMaxU16_getProjection().

◆ heap_bytes()

auto meshlib::SimpleVolumeMinMaxU16::heap_bytes ( ) const -> usize

Generated from method MR::SimpleVolumeMinMaxU16::heapBytes.

Calls MR_SimpleVolumeMinMaxU16_heapBytes().

◆ insignificantly_expanded()

auto meshlib::SimpleVolumeMinMaxU16::insignificantly_expanded ( ) const -> meshlib::Owned< meshlib::Box_unsigned_short >

decreases min and increases max to their closest representable value Generated from method MR::SimpleVolumeMinMaxU16::insignificantlyExpanded.

Calls MR_SimpleVolumeMinMaxU16_insignificantlyExpanded().

◆ intersect()

auto meshlib::SimpleVolumeMinMaxU16::intersect ( b:&meshlib::Box_unsigned_short ) -> &mut meshlib::Box_unsigned_short

Generated from method MR::SimpleVolumeMinMaxU16::intersect.

Calls MR_SimpleVolumeMinMaxU16_intersect().

◆ intersection()

auto meshlib::SimpleVolumeMinMaxU16::intersection ( b:&meshlib::Box_unsigned_short ) const -> meshlib::Owned< meshlib::Box_unsigned_short >

computes intersection between this and other box Generated from method MR::SimpleVolumeMinMaxU16::intersection.

Calls MR_SimpleVolumeMinMaxU16_intersection().

◆ intersects()

auto meshlib::SimpleVolumeMinMaxU16::intersects ( b:&meshlib::Box_unsigned_short ) const -> bool

checks whether this box intersects or touches given box Generated from method MR::SimpleVolumeMinMaxU16::intersects.

Calls MR_SimpleVolumeMinMaxU16_intersects().

◆ max()

auto meshlib::SimpleVolumeMinMaxU16::max ( ) const -> &core::ffi::c_ushort

Returns a pointer to a member variable of class MR::SimpleVolumeMinMaxU16 named max.

Calls MR_SimpleVolumeMinMaxU16_Get_max(). The reference to this object might be preserved as the return value.

◆ max_mut()

auto meshlib::SimpleVolumeMinMaxU16::max_mut ( ) -> &mut core::ffi::c_ushort

Returns a mutable pointer to a member variable of class MR::SimpleVolumeMinMaxU16 named max.

Calls MR_SimpleVolumeMinMaxU16_GetMutable_max(). The reference to this object might be preserved as the return value.

◆ min()

auto meshlib::SimpleVolumeMinMaxU16::min ( ) const -> &core::ffi::c_ushort

Returns a pointer to a member variable of class MR::SimpleVolumeMinMaxU16 named min.

Calls MR_SimpleVolumeMinMaxU16_Get_min(). The reference to this object might be preserved as the return value.

◆ min_mut()

auto meshlib::SimpleVolumeMinMaxU16::min_mut ( ) -> &mut core::ffi::c_ushort

Returns a mutable pointer to a member variable of class MR::SimpleVolumeMinMaxU16 named min.

Calls MR_SimpleVolumeMinMaxU16_GetMutable_min(). The reference to this object might be preserved as the return value.

◆ new()

auto meshlib::SimpleVolumeMinMaxU16::new ( ) -> meshlib::Owned< meshlib::SimpleVolumeMinMaxU16 >
static

Constructs an empty (default-constructed) instance.

Calls MR_SimpleVolumeMinMaxU16_DefaultConstruct().

◆ op_equal_mr_box_unsigned_short()

auto meshlib::SimpleVolumeMinMaxU16::op_equal_mr_box_unsigned_short ( a:&meshlib::Box_unsigned_short ) const -> bool

Generated from method MR::SimpleVolumeMinMaxU16::operator==.

Calls MR_equal_MR_SimpleVolumeMinMaxU16_MR_Box_unsigned_short().

◆ op_not_equal_mr_box_unsigned_short()

auto meshlib::SimpleVolumeMinMaxU16::op_not_equal_mr_box_unsigned_short ( a:&meshlib::Box_unsigned_short ) const -> bool

Generated from method MR::SimpleVolumeMinMaxU16::operator!=.

Calls MR_not_equal_MR_SimpleVolumeMinMaxU16_MR_Box_unsigned_short().

◆ set_data()

void meshlib::SimpleVolumeMinMaxU16::set_data ( value:&meshlib::Vector_unsigned_short_MR_VoxelId )

Modifies a member variable of class MR::SimpleVolumeMinMaxU16 named data.

Calls MR_SimpleVolumeMinMaxU16_Set_data(). The reference to the parameter value might be preserved in this object in element data.

◆ set_dims()

void meshlib::SimpleVolumeMinMaxU16::set_dims ( value:meshlib::Vector3i )

Modifies a member variable of class MR::SimpleVolumeMinMaxU16 named dims.

Calls MR_SimpleVolumeMinMaxU16_Set_dims(). The reference to the parameter value might be preserved in this object in element dims.

◆ set_max()

void meshlib::SimpleVolumeMinMaxU16::set_max ( value:core::ffi::c_ushort )

Modifies a member variable of class MR::SimpleVolumeMinMaxU16 named max.

Calls MR_SimpleVolumeMinMaxU16_Set_max(). The reference to the parameter value might be preserved in this object in element max.

◆ set_min()

void meshlib::SimpleVolumeMinMaxU16::set_min ( value:core::ffi::c_ushort )

Modifies a member variable of class MR::SimpleVolumeMinMaxU16 named min.

Calls MR_SimpleVolumeMinMaxU16_Set_min(). The reference to the parameter value might be preserved in this object in element min.

◆ set_voxel_size()

void meshlib::SimpleVolumeMinMaxU16::set_voxel_size ( value:meshlib::Vector3f )

Modifies a member variable of class MR::SimpleVolumeMinMaxU16 named voxelSize.

Calls MR_SimpleVolumeMinMaxU16_Set_voxelSize(). The reference to the parameter value might be preserved in this object in element voxelSize.

◆ size()

auto meshlib::SimpleVolumeMinMaxU16::size ( ) const -> core::ffi::c_ushort

computes size of the box in all dimensions Generated from method MR::SimpleVolumeMinMaxU16::size.

Calls MR_SimpleVolumeMinMaxU16_size().

◆ static_downcast_from_box_unsigned_short()

auto meshlib::SimpleVolumeMinMaxU16::static_downcast_from_box_unsigned_short ( object:&meshlib::Box_unsigned_short ) -> &Self
static

Static downcast from the base class MR::Box<unsigned short>.

Calls MR_SimpleVolumeMinMaxU16_StaticDowncastFrom_MR_Box_unsigned_short(). Undefined behavior if the object isn't actually a SimpleVolumeMinMaxU16.

Note
This function is unsafe.

◆ static_downcast_from_box_unsigned_short_mut()

auto meshlib::SimpleVolumeMinMaxU16::static_downcast_from_box_unsigned_short_mut ( object:&mut meshlib::Box_unsigned_short ) -> &mut Self
static

Static downcast from the base class MR::Box<unsigned short>.

Calls MR_SimpleVolumeMinMaxU16_MutableStaticDowncastFrom_MR_Box_unsigned_short(). Undefined behavior if the object isn't actually a SimpleVolumeMinMaxU16.

Note
This function is unsafe.

◆ static_downcast_from_simple_volume_u16()

auto meshlib::SimpleVolumeMinMaxU16::static_downcast_from_simple_volume_u16 ( object:&meshlib::SimpleVolumeU16 ) -> &Self
static

Static downcast from the base class MR::SimpleVolumeU16.

Calls MR_SimpleVolumeMinMaxU16_StaticDowncastFrom_MR_SimpleVolumeU16(). Undefined behavior if the object isn't actually a SimpleVolumeMinMaxU16.

Note
This function is unsafe.

◆ static_downcast_from_simple_volume_u16_mut()

auto meshlib::SimpleVolumeMinMaxU16::static_downcast_from_simple_volume_u16_mut ( object:&mut meshlib::SimpleVolumeU16 ) -> &mut Self
static

Static downcast from the base class MR::SimpleVolumeU16.

Calls MR_SimpleVolumeMinMaxU16_MutableStaticDowncastFrom_MR_SimpleVolumeU16(). Undefined behavior if the object isn't actually a SimpleVolumeMinMaxU16.

Note
This function is unsafe.

◆ upcast_to_box_unsigned_short()

auto meshlib::SimpleVolumeMinMaxU16::upcast_to_box_unsigned_short ( ) const -> &meshlib::Box_unsigned_short

Upcasts to the base class MR::Box<unsigned short>.

Calls MR_SimpleVolumeMinMaxU16_UpcastTo_MR_Box_unsigned_short().

◆ upcast_to_box_unsigned_short_mut()

auto meshlib::SimpleVolumeMinMaxU16::upcast_to_box_unsigned_short_mut ( ) -> &mut meshlib::Box_unsigned_short

Upcasts to the base class MR::Box<unsigned short>.

Calls MR_SimpleVolumeMinMaxU16_MutableUpcastTo_MR_Box_unsigned_short().

◆ upcast_to_simple_volume_u16()

auto meshlib::SimpleVolumeMinMaxU16::upcast_to_simple_volume_u16 ( ) const -> &meshlib::SimpleVolumeU16

Upcasts to the base class MR::SimpleVolumeU16.

Calls MR_SimpleVolumeMinMaxU16_UpcastTo_MR_SimpleVolumeU16().

◆ upcast_to_simple_volume_u16_mut()

auto meshlib::SimpleVolumeMinMaxU16::upcast_to_simple_volume_u16_mut ( ) -> &mut meshlib::SimpleVolumeU16

Upcasts to the base class MR::SimpleVolumeU16.

Calls MR_SimpleVolumeMinMaxU16_MutableUpcastTo_MR_SimpleVolumeU16().

◆ valid()

auto meshlib::SimpleVolumeMinMaxU16::valid ( ) const -> bool

true if the box contains at least one point Generated from method MR::SimpleVolumeMinMaxU16::valid.

Calls MR_SimpleVolumeMinMaxU16_valid().

◆ volume()

auto meshlib::SimpleVolumeMinMaxU16::volume ( ) const -> core::ffi::c_ushort

computes the volume of this box Generated from method MR::SimpleVolumeMinMaxU16::volume.

Calls MR_SimpleVolumeMinMaxU16_volume().

◆ voxel_size()

auto meshlib::SimpleVolumeMinMaxU16::voxel_size ( ) const -> &meshlib::Vector3f

Returns a pointer to a member variable of class MR::SimpleVolumeMinMaxU16 named voxelSize.

Calls MR_SimpleVolumeMinMaxU16_Get_voxelSize(). The reference to this object might be preserved as the return value.

◆ voxel_size_mut()

auto meshlib::SimpleVolumeMinMaxU16::voxel_size_mut ( ) -> &mut meshlib::Vector3f

Returns a mutable pointer to a member variable of class MR::SimpleVolumeMinMaxU16 named voxelSize.

Calls MR_SimpleVolumeMinMaxU16_GetMutable_voxelSize(). The reference to this object might be preserved as the return value.


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