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 |
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>.
| 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.
|
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().
|
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().
|
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.
|
static |
Returns a pointer to a member variable of class MR::HexPalette named CORNER_COLORS.
Calls MR_HexPalette_Get_CORNER_COLORS().
|
static |
Returns a pointer to a member variable of class MR::HexPalette named N.
Calls MR_HexPalette_Get_N().
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_HexPalette_DefaultConstruct().
|
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().
|
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().