Public Member Functions | |
| auto | assign_from_another (_other:&meshlib::RectIndexer) -> &mut meshlib::RectIndexer |
| void | resize (dims:&meshlib::Vector2i) |
| auto | dims () const -> &meshlib::Vector2i |
| auto | size () const -> usize |
| auto | to_pos_mr_pixel_id (id:meshlib::PixelId) const -> meshlib::Vector2i |
| auto | to_pos_size_t (id:usize) const -> meshlib::Vector2i |
| auto | to_pixel_id (pos:&meshlib::Vector2i) const -> meshlib::PixelId |
| auto | to_index (pos:&meshlib::Vector2i) const -> usize |
| auto | are_neigbors_mr_pixel_id (v0:meshlib::PixelId, v1:meshlib::PixelId) const -> bool |
| auto | are_neigbors_mr_vector2i (pos0:&meshlib::Vector2i, pos1:&meshlib::Vector2i) const -> bool |
| auto | get_neighbor_2 (v:meshlib::PixelId, toNei:meshlib::OutEdge2) const -> meshlib::PixelId |
| auto | get_neighbor_3 (v:meshlib::PixelId, pos:&meshlib::Vector2i, toNei:meshlib::OutEdge2) const -> meshlib::PixelId |
Static Public Member Functions | |
| static auto | new () -> meshlib::Owned< meshlib::RectIndexer > |
| static auto | construct_from_another (_other:&meshlib::RectIndexer) -> meshlib::Owned< meshlib::RectIndexer > |
| static auto | construct (dims:&meshlib::Vector2i) -> meshlib::Owned< meshlib::RectIndexer > |
| 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 |
a class for converting 2D integer coordinates into 1D linear coordinates and backward Generated from class MR::RectIndexer. Derived classes: Direct: (non-virtual) MR::DistanceMap MR::Matrix<float>
Generated from class MR::RectIndexer. Heap-allocated instances are held in Owned<RectIndexer>.
| auto meshlib::RectIndexer::are_neigbors_mr_pixel_id | ( | v0:meshlib::PixelId | , |
| v1:meshlib::PixelId | ) const -> bool |
returns true if v1 is within at most 4 neighbors of v0 Generated from method MR::RectIndexer::areNeigbors.
Calls MR_RectIndexer_areNeigbors_MR_PixelId().
| auto meshlib::RectIndexer::are_neigbors_mr_vector2i | ( | pos0:&meshlib::Vector2i | , |
| pos1:&meshlib::Vector2i | ) const -> bool |
Generated from method MR::RectIndexer::areNeigbors.
Calls MR_RectIndexer_areNeigbors_MR_Vector2i().
| auto meshlib::RectIndexer::assign_from_another | ( | _other:&meshlib::RectIndexer | ) | -> &mut meshlib::RectIndexer |
Generated from method MR::RectIndexer::operator=.
Calls MR_RectIndexer_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.
|
static |
Generated from constructor MR::RectIndexer::RectIndexer.
Calls MR_RectIndexer_Construct(). The reference to the parameter dims might be preserved in the constructed object.
|
static |
Generated from constructor MR::RectIndexer::RectIndexer.
Calls MR_RectIndexer_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
| auto meshlib::RectIndexer::dims | ( | ) | const -> &meshlib::Vector2i |
Generated from method MR::RectIndexer::dims.
Calls MR_RectIndexer_dims().
| auto meshlib::RectIndexer::get_neighbor_2 | ( | v:meshlib::PixelId | , |
| toNei:meshlib::OutEdge2 | ) const -> meshlib::PixelId |
returns id of v's neighbor specified by the edge Generated from method MR::RectIndexer::getNeighbor.
Calls MR_RectIndexer_getNeighbor_2().
| auto meshlib::RectIndexer::get_neighbor_3 | ( | v:meshlib::PixelId | , |
| pos:&meshlib::Vector2i | , | ||
| toNei:meshlib::OutEdge2 | ) const -> meshlib::PixelId |
Generated from method MR::RectIndexer::getNeighbor.
Calls MR_RectIndexer_getNeighbor_3().
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_RectIndexer_DefaultConstruct().
| void meshlib::RectIndexer::resize | ( | dims:&meshlib::Vector2i | ) |
Generated from method MR::RectIndexer::resize.
Calls MR_RectIndexer_resize().
| auto meshlib::RectIndexer::size | ( | ) | const -> usize |
Generated from method MR::RectIndexer::size.
Calls MR_RectIndexer_size().
| auto meshlib::RectIndexer::to_index | ( | pos:&meshlib::Vector2i | ) | const -> usize |
Generated from method MR::RectIndexer::toIndex.
Calls MR_RectIndexer_toIndex().
| auto meshlib::RectIndexer::to_pixel_id | ( | pos:&meshlib::Vector2i | ) | const -> meshlib::PixelId |
Generated from method MR::RectIndexer::toPixelId.
Calls MR_RectIndexer_toPixelId().
| auto meshlib::RectIndexer::to_pos_mr_pixel_id | ( | id:meshlib::PixelId | ) | const -> meshlib::Vector2i |
Generated from method MR::RectIndexer::toPos.
Calls MR_RectIndexer_toPos_MR_PixelId().
| auto meshlib::RectIndexer::to_pos_size_t | ( | id:usize | ) | const -> meshlib::Vector2i |
Generated from method MR::RectIndexer::toPos.
Calls MR_RectIndexer_toPos_size_t().