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

Public Member Functions

auto convert_to_mr_affine_xf3f () const -> meshlib::AffineXf3f
auto assign_from_another (_other:&meshlib::DistanceMapToWorld) -> &mut meshlib::DistanceMapToWorld
auto to_world (x:f32, y:f32, depth:f32) const -> meshlib::Vector3f
auto xf () const -> meshlib::AffineXf3f
auto org_point () const -> &meshlib::Vector3f
auto org_point_mut () -> &mut meshlib::Vector3f
void set_org_point (value:meshlib::Vector3f)
auto pixel_x_vec () const -> &meshlib::Vector3f
auto pixel_x_vec_mut () -> &mut meshlib::Vector3f
void set_pixel_x_vec (value:meshlib::Vector3f)
auto pixel_y_vec () const -> &meshlib::Vector3f
auto pixel_y_vec_mut () -> &mut meshlib::Vector3f
void set_pixel_y_vec (value:meshlib::Vector3f)
auto direction () const -> &meshlib::Vector3f
auto direction_mut () -> &mut meshlib::Vector3f
void set_direction (value:meshlib::Vector3f)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::DistanceMapToWorld >
static auto construct_from_another (_other:&meshlib::DistanceMapToWorld) -> meshlib::Owned< meshlib::DistanceMapToWorld >
static auto construct_mr_mesh_to_distance_map_params (params:&meshlib::MeshToDistanceMapParams) -> meshlib::Owned< meshlib::DistanceMapToWorld >
static auto construct_mr_contour_to_distance_map_params (params:&meshlib::ContourToDistanceMapParams) -> meshlib::Owned< meshlib::DistanceMapToWorld >
static auto construct_mr_affine_xf3f (xf:&meshlib::AffineXf3f) -> meshlib::Owned< meshlib::DistanceMapToWorld >
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

This structure store data to transform distance map to world coordinates Generated from class MR::DistanceMapToWorld.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from_another()

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

Generated from constructor MR::DistanceMapToWorld::DistanceMapToWorld.

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

◆ construct_mr_affine_xf3f()

auto meshlib::DistanceMapToWorld::construct_mr_affine_xf3f ( xf:&meshlib::AffineXf3f ) -> meshlib::Owned< meshlib::DistanceMapToWorld >
static

Converts from AffineXf3f Generated from constructor MR::DistanceMapToWorld::DistanceMapToWorld.

Calls MR_DistanceMapToWorld_Construct_MR_AffineXf3f(). The reference to the parameter xf might be preserved in the constructed object.

◆ construct_mr_contour_to_distance_map_params()

auto meshlib::DistanceMapToWorld::construct_mr_contour_to_distance_map_params ( params:&meshlib::ContourToDistanceMapParams ) -> meshlib::Owned< meshlib::DistanceMapToWorld >
static

Init fields by ContourToDistanceMapParams struct Generated from constructor MR::DistanceMapToWorld::DistanceMapToWorld.

Calls MR_DistanceMapToWorld_Construct_MR_ContourToDistanceMapParams(). The reference to the parameter params might be preserved in the constructed object.

◆ construct_mr_mesh_to_distance_map_params()

auto meshlib::DistanceMapToWorld::construct_mr_mesh_to_distance_map_params ( params:&meshlib::MeshToDistanceMapParams ) -> meshlib::Owned< meshlib::DistanceMapToWorld >
static

Init fields by MeshToDistanceMapParams struct Generated from constructor MR::DistanceMapToWorld::DistanceMapToWorld.

Calls MR_DistanceMapToWorld_Construct_MR_MeshToDistanceMapParams(). The reference to the parameter params might be preserved in the constructed object.

◆ convert_to_mr_affine_xf3f()

auto meshlib::DistanceMapToWorld::convert_to_mr_affine_xf3f ( ) const -> meshlib::AffineXf3f

converts in transformation X: X(p) == toWorld( p.x, p.y, p.z ) Generated from conversion operator MR::DistanceMapToWorld::operator MR::AffineXf3f.

Calls MR_DistanceMapToWorld_ConvertTo_MR_AffineXf3f().

◆ direction()

auto meshlib::DistanceMapToWorld::direction ( ) const -> &meshlib::Vector3f

vector of depth direction

Note
typically it should be normalized and orthogonal to pixelXVec pixelYVec plane Returns a pointer to a member variable of class MR::DistanceMapToWorld named direction.

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

◆ direction_mut()

auto meshlib::DistanceMapToWorld::direction_mut ( ) -> &mut meshlib::Vector3f

vector of depth direction

Note
typically it should be normalized and orthogonal to pixelXVec pixelYVec plane Returns a mutable pointer to a member variable of class MR::DistanceMapToWorld named direction.

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

◆ new()

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

Default ctor init all fields with zeros, make sure to fill them manually

Calls MR_DistanceMapToWorld_DefaultConstruct().

◆ org_point()

auto meshlib::DistanceMapToWorld::org_point ( ) const -> &meshlib::Vector3f

world coordinates of distance map origin corner Returns a pointer to a member variable of class MR::DistanceMapToWorld named orgPoint.

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

◆ org_point_mut()

auto meshlib::DistanceMapToWorld::org_point_mut ( ) -> &mut meshlib::Vector3f

world coordinates of distance map origin corner Returns a mutable pointer to a member variable of class MR::DistanceMapToWorld named orgPoint.

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

◆ pixel_x_vec()

auto meshlib::DistanceMapToWorld::pixel_x_vec ( ) const -> &meshlib::Vector3f

vector in world space of pixel x positive direction length is equal to pixel size

Note
typically it should be orthogonal to pixelYVec Returns a pointer to a member variable of class MR::DistanceMapToWorld named pixelXVec.

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

◆ pixel_x_vec_mut()

auto meshlib::DistanceMapToWorld::pixel_x_vec_mut ( ) -> &mut meshlib::Vector3f

vector in world space of pixel x positive direction length is equal to pixel size

Note
typically it should be orthogonal to pixelYVec Returns a mutable pointer to a member variable of class MR::DistanceMapToWorld named pixelXVec.

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

◆ pixel_y_vec()

auto meshlib::DistanceMapToWorld::pixel_y_vec ( ) const -> &meshlib::Vector3f

vector in world space of pixel y positive direction length is equal to pixel size

Note
typically it should be orthogonal to pixelXVec Returns a pointer to a member variable of class MR::DistanceMapToWorld named pixelYVec.

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

◆ pixel_y_vec_mut()

auto meshlib::DistanceMapToWorld::pixel_y_vec_mut ( ) -> &mut meshlib::Vector3f

vector in world space of pixel y positive direction length is equal to pixel size

Note
typically it should be orthogonal to pixelXVec Returns a mutable pointer to a member variable of class MR::DistanceMapToWorld named pixelYVec.

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

◆ set_direction()

void meshlib::DistanceMapToWorld::set_direction ( value:meshlib::Vector3f )

vector of depth direction

Note
typically it should be normalized and orthogonal to pixelXVec pixelYVec plane Modifies a member variable of class MR::DistanceMapToWorld named direction.

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

◆ set_org_point()

void meshlib::DistanceMapToWorld::set_org_point ( value:meshlib::Vector3f )

world coordinates of distance map origin corner Modifies a member variable of class MR::DistanceMapToWorld named orgPoint.

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

◆ set_pixel_x_vec()

void meshlib::DistanceMapToWorld::set_pixel_x_vec ( value:meshlib::Vector3f )

vector in world space of pixel x positive direction length is equal to pixel size

Note
typically it should be orthogonal to pixelYVec Modifies a member variable of class MR::DistanceMapToWorld named pixelXVec.

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

◆ set_pixel_y_vec()

void meshlib::DistanceMapToWorld::set_pixel_y_vec ( value:meshlib::Vector3f )

vector in world space of pixel y positive direction length is equal to pixel size

Note
typically it should be orthogonal to pixelXVec Modifies a member variable of class MR::DistanceMapToWorld named pixelYVec.

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

◆ to_world()

auto meshlib::DistanceMapToWorld::to_world ( x:f32 ,
y:f32 ,
depth:f32  ) const -> meshlib::Vector3f

get world coordinate by depth map info x - float X coordinate of depth map: (0.0f - left corner of pixel 0, 1.0 - right corner of pixel 0 and left corner of pixel 1) y - float Y coordinate of depth map: (0.0f - left corner of pixel 0, 1.0 - right corner of pixel 0 and left corner of pixel 1) float depth value (value in distance map, represent depth in world) Generated from method MR::DistanceMapToWorld::toWorld.

Calls MR_DistanceMapToWorld_toWorld().

◆ xf()

auto meshlib::DistanceMapToWorld::xf ( ) const -> meshlib::AffineXf3f

Generated from method MR::DistanceMapToWorld::xf.

Calls MR_DistanceMapToWorld_xf().


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