MeshLib Rust Docs
Loading...
Searching...
No Matches
Inheritance diagram for meshlib::Raster:

Public Member Functions

auto assign_from_another (_other:&meshlib::Raster) -> &mut meshlib::Raster
auto info () const -> &meshlib::RasterInfo
auto info_mut () -> &mut meshlib::RasterInfo
void set_info (value:&meshlib::RasterInfo)
auto data () const -> &meshlib::std_vector_unsigned_char
auto data_mut () -> &mut meshlib::std_vector_unsigned_char
void set_data (value:&meshlib::std_vector_unsigned_char)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::Raster >
static auto construct_from (info:&meshlib::RasterInfo, data:&meshlib::std_vector_unsigned_char) -> meshlib::Owned< meshlib::Raster >
static auto construct_from_another (_other:&meshlib::Raster) -> meshlib::Owned< meshlib::Raster >
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

regular grid of values of any type: an image if it has one layer, otherwise a volume Generated from class MR::Raster.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from()

auto meshlib::Raster::construct_from ( info:&meshlib::RasterInfo ,
data:&meshlib::std_vector_unsigned_char  ) -> meshlib::Owned< meshlib::Raster >
static

Constructs MR::Raster elementwise.

Calls MR_Raster_ConstructFrom(). The reference to the parameter info might be preserved in the constructed object. The reference to the parameter data might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::Raster::Raster.

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

◆ data()

auto meshlib::Raster::data ( ) const -> &meshlib::std_vector_unsigned_char

values of type info.type: the channels of a pixel go together, x changes first, then y (the rows go from top to bottom, unlike in Image), then z Returns a pointer to a member variable of class MR::Raster named data.

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

◆ data_mut()

auto meshlib::Raster::data_mut ( ) -> &mut meshlib::std_vector_unsigned_char

values of type info.type: the channels of a pixel go together, x changes first, then y (the rows go from top to bottom, unlike in Image), then z Returns a mutable pointer to a member variable of class MR::Raster named data.

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

◆ info()

auto meshlib::Raster::info ( ) const -> &meshlib::RasterInfo

Returns a pointer to a member variable of class MR::Raster named info.

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

◆ info_mut()

auto meshlib::Raster::info_mut ( ) -> &mut meshlib::RasterInfo

Returns a mutable pointer to a member variable of class MR::Raster named info.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_Raster_DefaultConstruct().

◆ set_data()

void meshlib::Raster::set_data ( value:&meshlib::std_vector_unsigned_char )

values of type info.type: the channels of a pixel go together, x changes first, then y (the rows go from top to bottom, unlike in Image), then z Modifies a member variable of class MR::Raster named data.

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

◆ set_info()

void meshlib::Raster::set_info ( value:&meshlib::RasterInfo )

Modifies a member variable of class MR::Raster named info.

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


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