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

Public Member Functions

auto convert_to_mr_affine_xf3f () const -> meshlib::AffineXf3f
auto assign_from_another (_other:&meshlib::ContourToDistanceMapParams) -> &mut meshlib::ContourToDistanceMapParams
auto to_world (point:meshlib::Vector2f) const -> meshlib::Vector2f
auto xf () const -> meshlib::AffineXf3f
auto pixel_size () const -> &meshlib::Vector2f
auto pixel_size_mut () -> &mut meshlib::Vector2f
void set_pixel_size (value:meshlib::Vector2f)
auto resolution () const -> &meshlib::Vector2i
auto resolution_mut () -> &mut meshlib::Vector2i
void set_resolution (value:meshlib::Vector2i)
auto org_point () const -> &meshlib::Vector2f
auto org_point_mut () -> &mut meshlib::Vector2f
void set_org_point (value:meshlib::Vector2f)
auto with_sign () const -> &bool
auto with_sign_mut () -> &mut bool
void set_with_sign (value:bool)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::ContourToDistanceMapParams >
static auto construct_from_another (_other:&meshlib::ContourToDistanceMapParams) -> meshlib::Owned< meshlib::ContourToDistanceMapParams >
static auto construct_4_const_mr_vector2i_ref_mr_vector2f (resolution:&meshlib::Vector2i, oriPoint:&meshlib::Vector2f, areaSize:&meshlib::Vector2f, withSign:Option< bool >) -> meshlib::Owned< meshlib::ContourToDistanceMapParams >
static auto construct_3 (resolution:&meshlib::Vector2i, box:&meshlib::Box2f, withSign:Option< bool >) -> meshlib::Owned< meshlib::ContourToDistanceMapParams >
static auto construct_4_const_mr_vector2i_ref_std_vector_std_vector_mr_vector2f (resolution:&meshlib::Vector2i, contours:&meshlib::std_vector_std_vector_MR_Vector2f, offset:f32, withSign:Option< bool >) -> meshlib::Owned< meshlib::ContourToDistanceMapParams >
static auto construct_4_float (pixelSize:f32, contours:&meshlib::std_vector_std_vector_MR_Vector2f, offset:f32, withSign:Option< bool >) -> meshlib::Owned< meshlib::ContourToDistanceMapParams >
static auto construct_1 (toWorld:&meshlib::DistanceMapToWorld) -> meshlib::Owned< meshlib::ContourToDistanceMapParams >
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

Structure with parameters to generate DistanceMap by Contours Generated from class MR::ContourToDistanceMapParams.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_1()

auto meshlib::ContourToDistanceMapParams::construct_1 ( toWorld:&meshlib::DistanceMapToWorld ) -> meshlib::Owned< meshlib::ContourToDistanceMapParams >
static

Generated from constructor MR::ContourToDistanceMapParams::ContourToDistanceMapParams.

Calls MR_ContourToDistanceMapParams_Construct_1(). The reference to the parameter toWorld might be preserved in the constructed object.

◆ construct_3()

auto meshlib::ContourToDistanceMapParams::construct_3 ( resolution:&meshlib::Vector2i ,
box:&meshlib::Box2f ,
withSign:Option< bool >  ) -> meshlib::Owned< meshlib::ContourToDistanceMapParams >
static

Ctor, calculating pixelSize & oriPoint by box parameters Generated from constructor MR::ContourToDistanceMapParams::ContourToDistanceMapParams.

Calls MR_ContourToDistanceMapParams_Construct_3(). The reference to the parameter resolution might be preserved in the constructed object. The reference to the parameter box might be preserved in the constructed object.

◆ construct_4_const_mr_vector2i_ref_mr_vector2f()

auto meshlib::ContourToDistanceMapParams::construct_4_const_mr_vector2i_ref_mr_vector2f ( resolution:&meshlib::Vector2i ,
oriPoint:&meshlib::Vector2f ,
areaSize:&meshlib::Vector2f ,
withSign:Option< bool >  ) -> meshlib::Owned< meshlib::ContourToDistanceMapParams >
static

Ctor, calculating pixelSize by areaSize & dmapSize Generated from constructor MR::ContourToDistanceMapParams::ContourToDistanceMapParams.

Calls MR_ContourToDistanceMapParams_Construct_4_const_MR_Vector2i_ref_MR_Vector2f(). The reference to the parameter resolution might be preserved in the constructed object. The reference to the parameter oriPoint might be preserved in the constructed object. The reference to the parameter areaSize might be preserved in the constructed object.

◆ construct_4_const_mr_vector2i_ref_std_vector_std_vector_mr_vector2f()

auto meshlib::ContourToDistanceMapParams::construct_4_const_mr_vector2i_ref_std_vector_std_vector_mr_vector2f ( resolution:&meshlib::Vector2i ,
contours:&meshlib::std_vector_std_vector_MR_Vector2f ,
offset:f32 ,
withSign:Option< bool >  ) -> meshlib::Owned< meshlib::ContourToDistanceMapParams >
static

Ctor, calculating pixelSize & oriPoint by contours box + offset Generated from constructor MR::ContourToDistanceMapParams::ContourToDistanceMapParams.

Calls MR_ContourToDistanceMapParams_Construct_4_const_MR_Vector2i_ref_std_vector_std_vector_MR_Vector2f(). The reference to the parameter resolution might be preserved in the constructed object. The reference to the parameter contours might be preserved in the constructed object.

◆ construct_4_float()

auto meshlib::ContourToDistanceMapParams::construct_4_float ( pixelSize:f32 ,
contours:&meshlib::std_vector_std_vector_MR_Vector2f ,
offset:f32 ,
withSign:Option< bool >  ) -> meshlib::Owned< meshlib::ContourToDistanceMapParams >
static

Ctor, calculating resolution & oriPoint by contours box + offset Generated from constructor MR::ContourToDistanceMapParams::ContourToDistanceMapParams.

Calls MR_ContourToDistanceMapParams_Construct_4_float(). The reference to the parameter contours might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::ContourToDistanceMapParams::ContourToDistanceMapParams.

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

◆ convert_to_mr_affine_xf3f()

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

converts in transformation Generated from conversion operator MR::ContourToDistanceMapParams::operator MR::AffineXf3f.

Calls MR_ContourToDistanceMapParams_ConvertTo_MR_AffineXf3f().

◆ new()

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

Default ctor, make sure to fill all fields manually

Calls MR_ContourToDistanceMapParams_DefaultConstruct().

◆ org_point()

auto meshlib::ContourToDistanceMapParams::org_point ( ) const -> &meshlib::Vector2f

< coordinates of origin area corner Returns a pointer to a member variable of class MR::ContourToDistanceMapParams named orgPoint.

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

◆ org_point_mut()

auto meshlib::ContourToDistanceMapParams::org_point_mut ( ) -> &mut meshlib::Vector2f

< coordinates of origin area corner Returns a mutable pointer to a member variable of class MR::ContourToDistanceMapParams named orgPoint.

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

◆ pixel_size()

auto meshlib::ContourToDistanceMapParams::pixel_size ( ) const -> &meshlib::Vector2f

< pixel size Returns a pointer to a member variable of class MR::ContourToDistanceMapParams named pixelSize.

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

◆ pixel_size_mut()

auto meshlib::ContourToDistanceMapParams::pixel_size_mut ( ) -> &mut meshlib::Vector2f

< pixel size Returns a mutable pointer to a member variable of class MR::ContourToDistanceMapParams named pixelSize.

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

◆ resolution()

auto meshlib::ContourToDistanceMapParams::resolution ( ) const -> &meshlib::Vector2i

< distance map size Returns a pointer to a member variable of class MR::ContourToDistanceMapParams named resolution.

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

◆ resolution_mut()

auto meshlib::ContourToDistanceMapParams::resolution_mut ( ) -> &mut meshlib::Vector2i

< distance map size Returns a mutable pointer to a member variable of class MR::ContourToDistanceMapParams named resolution.

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

◆ set_org_point()

void meshlib::ContourToDistanceMapParams::set_org_point ( value:meshlib::Vector2f )

< coordinates of origin area corner Modifies a member variable of class MR::ContourToDistanceMapParams named orgPoint.

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

◆ set_pixel_size()

void meshlib::ContourToDistanceMapParams::set_pixel_size ( value:meshlib::Vector2f )

< pixel size Modifies a member variable of class MR::ContourToDistanceMapParams named pixelSize.

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

◆ set_resolution()

void meshlib::ContourToDistanceMapParams::set_resolution ( value:meshlib::Vector2i )

< distance map size Modifies a member variable of class MR::ContourToDistanceMapParams named resolution.

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

◆ set_with_sign()

void meshlib::ContourToDistanceMapParams::set_with_sign ( value:bool )

< allows calculate negative values of distance (inside closed and correctly oriented (CW) contours) Modifies a member variable of class MR::ContourToDistanceMapParams named withSign.

Calls MR_ContourToDistanceMapParams_Set_withSign().

◆ to_world()

auto meshlib::ContourToDistanceMapParams::to_world ( point:meshlib::Vector2f ) const -> meshlib::Vector2f

get world 2d coordinate (respects origin point and pixel size) point - coordinate on distance map Generated from method MR::ContourToDistanceMapParams::toWorld.

Calls MR_ContourToDistanceMapParams_toWorld().

◆ with_sign()

auto meshlib::ContourToDistanceMapParams::with_sign ( ) const -> &bool

< allows calculate negative values of distance (inside closed and correctly oriented (CW) contours) Returns a pointer to a member variable of class MR::ContourToDistanceMapParams named withSign.

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

◆ with_sign_mut()

auto meshlib::ContourToDistanceMapParams::with_sign_mut ( ) -> &mut bool

< allows calculate negative values of distance (inside closed and correctly oriented (CW) contours) Returns a mutable pointer to a member variable of class MR::ContourToDistanceMapParams named withSign.

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

◆ xf()

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

Generated from method MR::ContourToDistanceMapParams::xf.

Calls MR_ContourToDistanceMapParams_xf().


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