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

Public Member Functions

 HexPalette (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 HexPalette ()
 HexPalette (meshlib.HexPalette _other)
meshlib.HexPalette assignFromAnother (meshlib.HexPalette _other)
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Static Public Member Functions

static meshlib.Color colorAtStep (int i)
static int CORNER_COLORS ()
static int SIDE_COLORS ()
static int N ()
static int STEP ()
static meshlib.std_array_MR_Color_30 colors ()

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

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.

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ HexPalette() [1/3]

meshlib.HexPalette.HexPalette ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

◆ HexPalette() [2/3]

meshlib.HexPalette.HexPalette ( )

Constructs an empty (default-constructed) instance.

Calls MR_HexPalette_DefaultConstruct().

◆ HexPalette() [3/3]

meshlib.HexPalette.HexPalette ( meshlib.HexPalette _other)

Generated from constructor MR::HexPalette::HexPalette. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

Calls MR_HexPalette_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.HexPalette meshlib.HexPalette.assignFromAnother ( meshlib.HexPalette _other)

Generated from method MR::HexPalette::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.

Calls MR_HexPalette_AssignFromAnother().

◆ colorAtStep()

meshlib.Color meshlib.HexPalette.colorAtStep ( int i)
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()

meshlib.std_array_MR_Color_30 meshlib.HexPalette.colors ( )
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().

◆ CORNER_COLORS()

int meshlib.HexPalette.CORNER_COLORS ( )
static

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

Calls MR_HexPalette_Get_CORNER_COLORS().

◆ N()

int meshlib.HexPalette.N ( )
static

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

Calls MR_HexPalette_Get_N().

◆ SIDE_COLORS()

int meshlib.HexPalette.SIDE_COLORS ( )
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()

int meshlib.HexPalette.STEP ( )
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 class was generated from the following file: