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

Public Member Functions

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

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::HexPalette >
static auto construct_from_another (_other:&meshlib::HexPalette) -> meshlib::Owned< meshlib::HexPalette >
static auto color_at_step (i:core::ffi::c_int) -> meshlib::Color
static auto corner_colors () -> *const core::ffi::c_int
static auto side_colors () -> *const core::ffi::c_int
static auto n () -> *const core::ffi::c_int
static auto step () -> *const core::ffi::c_int
static auto colors () -> *const meshlib::std_array_MR_Color_30
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

all colors here are on cube's boundary intersected by a skew plane, which makes a hexagon; gives visually distinct categorical colors for things like mesh segments or imported components Generated from class MR::HexPalette.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ color_at_step()

auto meshlib::HexPalette::color_at_step ( i:core::ffi::c_int ) -> meshlib::Color
static

returns the i-th color in stride order, so successive i values give visually distinct colors Generated from method MR::HexPalette::colorAtStep.

Calls MR_HexPalette_colorAtStep().

◆ colors()

auto meshlib::HexPalette::colors ( ) -> *const meshlib::std_array_MR_Color_30
static

the palette colors, populated at compile time Returns a pointer to a member variable of class MR::HexPalette named colors.

Calls MR_HexPalette_Get_colors().

◆ construct_from_another()

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

Generated from constructor MR::HexPalette::HexPalette.

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

◆ corner_colors()

auto meshlib::HexPalette::corner_colors ( ) -> *const core::ffi::c_int
static

Returns a pointer to a member variable of class MR::HexPalette named CORNER_COLORS.

Calls MR_HexPalette_Get_CORNER_COLORS().

◆ n()

auto meshlib::HexPalette::n ( ) -> *const core::ffi::c_int
static

Returns a pointer to a member variable of class MR::HexPalette named N.

Calls MR_HexPalette_Get_N().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_HexPalette_DefaultConstruct().

◆ side_colors()

auto meshlib::HexPalette::side_colors ( ) -> *const core::ffi::c_int
static

num colors between two corner colors + 1 Returns a pointer to a member variable of class MR::HexPalette named SIDE_COLORS.

Calls MR_HexPalette_Get_SIDE_COLORS().

◆ step()

auto meshlib::HexPalette::step ( ) -> *const core::ffi::c_int
static

recommended step from previous color to next color, to have big visual difference, and visit all colors in long run Returns a pointer to a member variable of class MR::HexPalette named STEP.

Calls MR_HexPalette_Get_STEP().


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