Public Member Functions | |
| auto | assign_from_another (_other:&meshlib::SimpleVolumeMinMax) -> &mut meshlib::SimpleVolumeMinMax |
| auto | heap_bytes () const -> usize |
| auto | valid () const -> bool |
| auto | center () const -> f32 |
| auto | corner (c:&bool) const -> f32 |
| auto | size () const -> f32 |
| auto | diagonal () const -> f32 |
| auto | volume () const -> f32 |
| auto | get_box_closest_point_to (pt:&f32) const -> f32 |
| auto | intersects (b:&meshlib::Box1f) const -> bool |
| auto | intersection (b:&meshlib::Box1f) const -> meshlib::Box1f |
| auto | intersect (b:&meshlib::Box1f) -> &mut meshlib::Box1f |
| auto | get_projection (pt:&f32) const -> f32 |
| auto | expanded (expansion:&f32) const -> meshlib::Box1f |
| auto | insignificantly_expanded () const -> meshlib::Box1f |
| auto | op_equal_mr_box1f (a:&meshlib::Box1f) const -> bool |
| auto | op_not_equal_mr_box1f (a:&meshlib::Box1f) const -> bool |
| auto | data () const -> &meshlib::VoxelScalars |
| auto | data_mut () -> &mut meshlib::VoxelScalars |
| void | set_data (value:&meshlib::VoxelScalars) |
| 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 -> &f32 |
| auto | min_mut () -> &mut f32 |
| void | set_min (value:f32) |
| auto | max () const -> &f32 |
| auto | max_mut () -> &mut f32 |
| void | set_max (value:f32) |
| auto | upcast_to_simple_volume () const -> &meshlib::SimpleVolume |
| auto | upcast_to_simple_volume_mut () -> &mut meshlib::SimpleVolume |
| auto | upcast_to_box1f () const -> &meshlib::Box1f |
| auto | upcast_to_box1f_mut () -> &mut meshlib::Box1f |
Static Public Member Functions | |
| static auto | new () -> meshlib::Owned< meshlib::SimpleVolumeMinMax > |
| static auto | construct_from_another (_other:&meshlib::SimpleVolumeMinMax) -> meshlib::Owned< meshlib::SimpleVolumeMinMax > |
| static auto | from_min_and_size (min:&f32, size:&f32) -> meshlib::Box1f |
| static auto | get_min_box_corner (n:&f32) -> bool |
| static auto | get_max_box_corner (n:&f32) -> bool |
| static auto | elements () -> *const core::ffi::c_int |
| static auto | static_downcast_from_simple_volume (object:&meshlib::SimpleVolume) -> &Self |
| static auto | static_downcast_from_simple_volume_mut (object:&mut meshlib::SimpleVolume) -> &mut Self |
| static auto | static_downcast_from_box1f (object:&meshlib::Box1f) -> &Self |
| static auto | static_downcast_from_box1f_mut (object:&mut meshlib::Box1f) -> &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 |
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::SimpleVolumeMinMax. Base classes: Direct: (non-virtual) MR::SimpleVolume MR::Box1f
Generated from class MR::SimpleVolumeMinMax. Heap-allocated instances are held in Owned<SimpleVolumeMinMax>.
| auto meshlib::SimpleVolumeMinMax::assign_from_another | ( | _other:&meshlib::SimpleVolumeMinMax | ) | -> &mut meshlib::SimpleVolumeMinMax |
Generated from method MR::SimpleVolumeMinMax::operator=.
Calls MR_SimpleVolumeMinMax_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.
| auto meshlib::SimpleVolumeMinMax::center | ( | ) | const -> f32 |
computes center of the box Generated from method MR::SimpleVolumeMinMax::center.
Calls MR_SimpleVolumeMinMax_center().
|
static |
Generated from constructor MR::SimpleVolumeMinMax::SimpleVolumeMinMax.
Calls MR_SimpleVolumeMinMax_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
| auto meshlib::SimpleVolumeMinMax::corner | ( | c:& bool | ) | const -> f32 |
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::SimpleVolumeMinMax::corner.
Calls MR_SimpleVolumeMinMax_corner().
| auto meshlib::SimpleVolumeMinMax::data | ( | ) | const -> &meshlib::VoxelScalars |
Returns a pointer to a member variable of class MR::SimpleVolumeMinMax named data.
Calls MR_SimpleVolumeMinMax_Get_data(). The reference to this object might be preserved as the return value.
| auto meshlib::SimpleVolumeMinMax::data_mut | ( | ) | -> &mut meshlib::VoxelScalars |
Returns a mutable pointer to a member variable of class MR::SimpleVolumeMinMax named data.
Calls MR_SimpleVolumeMinMax_GetMutable_data(). The reference to this object might be preserved as the return value.
| auto meshlib::SimpleVolumeMinMax::diagonal | ( | ) | const -> f32 |
computes length from min to max Generated from method MR::SimpleVolumeMinMax::diagonal.
Calls MR_SimpleVolumeMinMax_diagonal().
| auto meshlib::SimpleVolumeMinMax::dims | ( | ) | const -> &meshlib::Vector3i |
Returns a pointer to a member variable of class MR::SimpleVolumeMinMax named dims.
Calls MR_SimpleVolumeMinMax_Get_dims(). The reference to this object might be preserved as the return value.
| auto meshlib::SimpleVolumeMinMax::dims_mut | ( | ) | -> &mut meshlib::Vector3i |
Returns a mutable pointer to a member variable of class MR::SimpleVolumeMinMax named dims.
Calls MR_SimpleVolumeMinMax_GetMutable_dims(). The reference to this object might be preserved as the return value.
|
static |
Returns a pointer to a member variable of class MR::SimpleVolumeMinMax named elements.
Calls MR_SimpleVolumeMinMax_Get_elements().
| auto meshlib::SimpleVolumeMinMax::expanded | ( | expansion:& | f32 | ) | const -> meshlib::Box1f |
decreases min and increased max on given value Generated from method MR::SimpleVolumeMinMax::expanded.
Calls MR_SimpleVolumeMinMax_expanded().
|
static |
Generated from method MR::SimpleVolumeMinMax::fromMinAndSize.
Calls MR_SimpleVolumeMinMax_fromMinAndSize().
| auto meshlib::SimpleVolumeMinMax::get_box_closest_point_to | ( | pt:& | f32 | ) | const -> f32 |
returns closest point in the box to given point Generated from method MR::SimpleVolumeMinMax::getBoxClosestPointTo.
Calls MR_SimpleVolumeMinMax_getBoxClosestPointTo().
|
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::SimpleVolumeMinMax::getMaxBoxCorner.
Calls MR_SimpleVolumeMinMax_getMaxBoxCorner().
|
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::SimpleVolumeMinMax::getMinBoxCorner.
Calls MR_SimpleVolumeMinMax_getMinBoxCorner().
| auto meshlib::SimpleVolumeMinMax::get_projection | ( | pt:& | f32 | ) | const -> f32 |
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::SimpleVolumeMinMax::getProjection.
Calls MR_SimpleVolumeMinMax_getProjection().
| auto meshlib::SimpleVolumeMinMax::heap_bytes | ( | ) | const -> usize |
Generated from method MR::SimpleVolumeMinMax::heapBytes.
Calls MR_SimpleVolumeMinMax_heapBytes().
| auto meshlib::SimpleVolumeMinMax::insignificantly_expanded | ( | ) | const -> meshlib::Box1f |
decreases min and increases max to their closest representable value Generated from method MR::SimpleVolumeMinMax::insignificantlyExpanded.
Calls MR_SimpleVolumeMinMax_insignificantlyExpanded().
| auto meshlib::SimpleVolumeMinMax::intersect | ( | b:&meshlib::Box1f | ) | -> &mut meshlib::Box1f |
Generated from method MR::SimpleVolumeMinMax::intersect.
Calls MR_SimpleVolumeMinMax_intersect().
| auto meshlib::SimpleVolumeMinMax::intersection | ( | b:&meshlib::Box1f | ) | const -> meshlib::Box1f |
computes intersection between this and other box Generated from method MR::SimpleVolumeMinMax::intersection.
Calls MR_SimpleVolumeMinMax_intersection().
| auto meshlib::SimpleVolumeMinMax::intersects | ( | b:&meshlib::Box1f | ) | const -> bool |
checks whether this box intersects or touches given box Generated from method MR::SimpleVolumeMinMax::intersects.
Calls MR_SimpleVolumeMinMax_intersects().
| auto meshlib::SimpleVolumeMinMax::max | ( | ) | const -> &f32 |
Returns a pointer to a member variable of class MR::SimpleVolumeMinMax named max.
Calls MR_SimpleVolumeMinMax_Get_max(). The reference to this object might be preserved as the return value.
| auto meshlib::SimpleVolumeMinMax::max_mut | ( | ) | -> &mut f32 |
Returns a mutable pointer to a member variable of class MR::SimpleVolumeMinMax named max.
Calls MR_SimpleVolumeMinMax_GetMutable_max(). The reference to this object might be preserved as the return value.
| auto meshlib::SimpleVolumeMinMax::min | ( | ) | const -> &f32 |
Returns a pointer to a member variable of class MR::SimpleVolumeMinMax named min.
Calls MR_SimpleVolumeMinMax_Get_min(). The reference to this object might be preserved as the return value.
| auto meshlib::SimpleVolumeMinMax::min_mut | ( | ) | -> &mut f32 |
Returns a mutable pointer to a member variable of class MR::SimpleVolumeMinMax named min.
Calls MR_SimpleVolumeMinMax_GetMutable_min(). The reference to this object might be preserved as the return value.
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_SimpleVolumeMinMax_DefaultConstruct().
| auto meshlib::SimpleVolumeMinMax::op_equal_mr_box1f | ( | a:&meshlib::Box1f | ) | const -> bool |
Generated from method MR::SimpleVolumeMinMax::operator==.
Calls MR_equal_MR_SimpleVolumeMinMax_MR_Box1f().
| auto meshlib::SimpleVolumeMinMax::op_not_equal_mr_box1f | ( | a:&meshlib::Box1f | ) | const -> bool |
Generated from method MR::SimpleVolumeMinMax::operator!=.
Calls MR_not_equal_MR_SimpleVolumeMinMax_MR_Box1f().
| void meshlib::SimpleVolumeMinMax::set_data | ( | value:&meshlib::VoxelScalars | ) |
Modifies a member variable of class MR::SimpleVolumeMinMax named data.
Calls MR_SimpleVolumeMinMax_Set_data(). The reference to the parameter value might be preserved in this object in element data.
| void meshlib::SimpleVolumeMinMax::set_dims | ( | value:meshlib::Vector3i | ) |
Modifies a member variable of class MR::SimpleVolumeMinMax named dims.
Calls MR_SimpleVolumeMinMax_Set_dims(). The reference to the parameter value might be preserved in this object in element dims.
| void meshlib::SimpleVolumeMinMax::set_max | ( | value:f32 | ) |
Modifies a member variable of class MR::SimpleVolumeMinMax named max.
Calls MR_SimpleVolumeMinMax_Set_max().
| void meshlib::SimpleVolumeMinMax::set_min | ( | value:f32 | ) |
Modifies a member variable of class MR::SimpleVolumeMinMax named min.
Calls MR_SimpleVolumeMinMax_Set_min().
| void meshlib::SimpleVolumeMinMax::set_voxel_size | ( | value:meshlib::Vector3f | ) |
Modifies a member variable of class MR::SimpleVolumeMinMax named voxelSize.
Calls MR_SimpleVolumeMinMax_Set_voxelSize(). The reference to the parameter value might be preserved in this object in element voxelSize.
| auto meshlib::SimpleVolumeMinMax::size | ( | ) | const -> f32 |
computes size of the box in all dimensions Generated from method MR::SimpleVolumeMinMax::size.
Calls MR_SimpleVolumeMinMax_size().
|
static |
Static downcast from the base class MR::Box1f.
Calls MR_SimpleVolumeMinMax_StaticDowncastFrom_MR_Box1f(). Undefined behavior if the object isn't actually a SimpleVolumeMinMax.
|
static |
Static downcast from the base class MR::Box1f.
Calls MR_SimpleVolumeMinMax_MutableStaticDowncastFrom_MR_Box1f(). Undefined behavior if the object isn't actually a SimpleVolumeMinMax.
|
static |
Static downcast from the base class MR::SimpleVolume.
Calls MR_SimpleVolumeMinMax_StaticDowncastFrom_MR_SimpleVolume(). Undefined behavior if the object isn't actually a SimpleVolumeMinMax.
|
static |
Static downcast from the base class MR::SimpleVolume.
Calls MR_SimpleVolumeMinMax_MutableStaticDowncastFrom_MR_SimpleVolume(). Undefined behavior if the object isn't actually a SimpleVolumeMinMax.
| auto meshlib::SimpleVolumeMinMax::upcast_to_box1f | ( | ) | const -> &meshlib::Box1f |
Upcasts to the base class MR::Box1f.
Calls MR_SimpleVolumeMinMax_UpcastTo_MR_Box1f().
| auto meshlib::SimpleVolumeMinMax::upcast_to_box1f_mut | ( | ) | -> &mut meshlib::Box1f |
Upcasts to the base class MR::Box1f.
Calls MR_SimpleVolumeMinMax_MutableUpcastTo_MR_Box1f().
| auto meshlib::SimpleVolumeMinMax::upcast_to_simple_volume | ( | ) | const -> &meshlib::SimpleVolume |
Upcasts to the base class MR::SimpleVolume.
Calls MR_SimpleVolumeMinMax_UpcastTo_MR_SimpleVolume().
| auto meshlib::SimpleVolumeMinMax::upcast_to_simple_volume_mut | ( | ) | -> &mut meshlib::SimpleVolume |
Upcasts to the base class MR::SimpleVolume.
Calls MR_SimpleVolumeMinMax_MutableUpcastTo_MR_SimpleVolume().
| auto meshlib::SimpleVolumeMinMax::valid | ( | ) | const -> bool |
true if the box contains at least one point Generated from method MR::SimpleVolumeMinMax::valid.
Calls MR_SimpleVolumeMinMax_valid().
| auto meshlib::SimpleVolumeMinMax::volume | ( | ) | const -> f32 |
computes the volume of this box Generated from method MR::SimpleVolumeMinMax::volume.
Calls MR_SimpleVolumeMinMax_volume().
| auto meshlib::SimpleVolumeMinMax::voxel_size | ( | ) | const -> &meshlib::Vector3f |
Returns a pointer to a member variable of class MR::SimpleVolumeMinMax named voxelSize.
Calls MR_SimpleVolumeMinMax_Get_voxelSize(). The reference to this object might be preserved as the return value.
| auto meshlib::SimpleVolumeMinMax::voxel_size_mut | ( | ) | -> &mut meshlib::Vector3f |
Returns a mutable pointer to a member variable of class MR::SimpleVolumeMinMax named voxelSize.
Calls MR_SimpleVolumeMinMax_GetMutable_voxelSize(). The reference to this object might be preserved as the return value.