MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.FaceColors Class Reference
Inheritance diagram for meshlib.FaceColors:

Public Member Functions

 FaceColors (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 FaceColors ()
 FaceColors (meshlib.FaceColors _other)
 FaceColors (long size)
 FaceColors (long size, meshlib.Color val)
meshlib.FaceColors assignFromAnother (meshlib.FaceColors _other)
void assign (long count, meshlib.Color val)
boolean opEqual (meshlib.FaceColors b)
boolean opNotEqual (meshlib.FaceColors b)
void clear ()
boolean empty ()
long size ()
long max_size ()
void resize (long newSize)
void resize (long newSize, meshlib.Color t)
void resizeNoInit (long targetSize, meshlib.ReserveMode mode)
long capacity ()
void reserve (long capacity)
void shrink_to_fit ()
meshlib.Color index (meshlib.FaceId i)
meshlib.Color index_mut (meshlib.FaceId i)
void resizeWithReserve (long newSize)
void resizeWithReserve (long newSize, meshlib.Color value)
void autoResizeSet (meshlib.FaceId pos, long len, meshlib.Color val)
void autoResizeSet (meshlib.FaceId i, meshlib.Color val)
meshlib.Color autoResizeAt (meshlib.FaceId i)
void push_back_const_MR_Color_ref (meshlib.Color t)
void push_back_MR_Color_rvalue_ref (meshlib.Color t)
void pop_back ()
meshlib.Color front ()
meshlib.Color front_mut ()
meshlib.Color back ()
meshlib.Color back_mut ()
meshlib.FaceId beginId ()
meshlib.FaceId backId ()
meshlib.FaceId endId ()
meshlib.Color data_mut ()
meshlib.Color data ()
void swap (meshlib.FaceColors b)
long heapBytes ()
meshlib.std_vector_MR_Color_MR_Allocator_MR_Color vec ()
void setVec (meshlib.std_vector_MR_Color_MR_Allocator_MR_Color value)
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 ()

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

Vector<T> is indexed by size_t Generated from class MR::FaceColors.

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

Constructor & Destructor Documentation

◆ FaceColors() [1/5]

meshlib.FaceColors.FaceColors ( 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.

◆ FaceColors() [2/5]

meshlib.FaceColors.FaceColors ( )

creates empty vector

Calls MR_FaceColors_DefaultConstruct().

◆ FaceColors() [3/5]

meshlib.FaceColors.FaceColors ( meshlib.FaceColors _other)

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

Calls MR_FaceColors_ConstructFromAnother().

◆ FaceColors() [4/5]

meshlib.FaceColors.FaceColors ( long size)

creates a vector with size elements with default value Generated from constructor MR::FaceColors::FaceColors. The reference to the parameter size might be preserved in the constructed object.

Calls MR_FaceColors_Construct().

◆ FaceColors() [5/5]

meshlib.FaceColors.FaceColors ( long size,
meshlib.Color val )

creates a vector with size elements with the given value Generated from constructor MR::FaceColors::FaceColors. The reference to the parameter size might be preserved in the constructed object. The reference to the parameter val might be preserved in the constructed object.

Calls MR_FaceColors_Construct_fill().

Member Function Documentation

◆ assign()

void meshlib.FaceColors.assign ( long count,
meshlib.Color val )

replaces the contents with count copies of val Generated from method MR::FaceColors::assign. The reference to things referred to by the parameter val (if any) might be preserved in this object.

Calls MR_FaceColors_assign().

◆ assignFromAnother()

meshlib.FaceColors meshlib.FaceColors.assignFromAnother ( meshlib.FaceColors _other)

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

Calls MR_FaceColors_AssignFromAnother().

◆ autoResizeAt()

meshlib.Color meshlib.FaceColors.autoResizeAt ( meshlib.FaceId i)

this accessor automatically adjusts the size of the vector Generated from method MR::FaceColors::autoResizeAt.

Calls MR_FaceColors_autoResizeAt().

◆ autoResizeSet() [1/2]

void meshlib.FaceColors.autoResizeSet ( meshlib.FaceId i,
meshlib.Color val )

sets the element i to the given value, adjusting the size of the vector to include new element Generated from method MR::FaceColors::autoResizeSet.

Calls MR_FaceColors_autoResizeSet_2().

◆ autoResizeSet() [2/2]

void meshlib.FaceColors.autoResizeSet ( meshlib.FaceId pos,
long len,
meshlib.Color val )

sets elements [pos, pos+len) to the given value, adjusting the size of the vector to include new elements; the elements in between old size and pos are also set to val (for faster implementation) Generated from method MR::FaceColors::autoResizeSet.

Calls MR_FaceColors_autoResizeSet_3().

◆ back()

meshlib.Color meshlib.FaceColors.back ( )

Generated from method MR::FaceColors::back. The reference to this object might be preserved in the return value.

Calls MR_FaceColors_back().

◆ back_mut()

meshlib.Color meshlib.FaceColors.back_mut ( )

Generated from method MR::FaceColors::back. The reference to this object might be preserved in the return value.

Calls MR_FaceColors_back_mut().

◆ backId()

meshlib.FaceId meshlib.FaceColors.backId ( )

returns the identifier of the back() element Generated from method MR::FaceColors::backId.

Calls MR_FaceColors_backId().

◆ beginId()

meshlib.FaceId meshlib.FaceColors.beginId ( )

returns the identifier of the first element Generated from method MR::FaceColors::beginId.

Calls MR_FaceColors_beginId().

◆ capacity()

long meshlib.FaceColors.capacity ( )

Generated from method MR::FaceColors::capacity.

Calls MR_FaceColors_capacity().

◆ clear()

void meshlib.FaceColors.clear ( )

Generated from method MR::FaceColors::clear.

Calls MR_FaceColors_clear().

◆ data()

meshlib.Color meshlib.FaceColors.data ( )

Generated from method MR::FaceColors::data. The reference to this object might be preserved in the return value.

Calls MR_FaceColors_data().

◆ data_mut()

meshlib.Color meshlib.FaceColors.data_mut ( )

Generated from method MR::FaceColors::data. The reference to this object might be preserved in the return value.

Calls MR_FaceColors_data_mut().

◆ empty()

boolean meshlib.FaceColors.empty ( )

Generated from method MR::FaceColors::empty.

Calls MR_FaceColors_empty().

◆ endId()

meshlib.FaceId meshlib.FaceColors.endId ( )

returns backId() + 1 Generated from method MR::FaceColors::endId.

Calls MR_FaceColors_endId().

◆ front()

meshlib.Color meshlib.FaceColors.front ( )

Generated from method MR::FaceColors::front. The reference to this object might be preserved in the return value.

Calls MR_FaceColors_front().

◆ front_mut()

meshlib.Color meshlib.FaceColors.front_mut ( )

Generated from method MR::FaceColors::front. The reference to this object might be preserved in the return value.

Calls MR_FaceColors_front_mut().

◆ heapBytes()

long meshlib.FaceColors.heapBytes ( )

returns the amount of memory this object occupies on heap Generated from method MR::FaceColors::heapBytes.

Calls MR_FaceColors_heapBytes().

◆ index()

meshlib.Color meshlib.FaceColors.index ( meshlib.FaceId i)

Generated from method MR::FaceColors::operator[]. The reference to this object might be preserved in the return value.

Calls MR_FaceColors_index().

◆ index_mut()

meshlib.Color meshlib.FaceColors.index_mut ( meshlib.FaceId i)

Generated from method MR::FaceColors::operator[]. The reference to this object might be preserved in the return value.

Calls MR_FaceColors_index_mut().

◆ max_size()

long meshlib.FaceColors.max_size ( )

Generated from method MR::FaceColors::max_size.

Calls MR_FaceColors_max_size().

◆ opEqual()

boolean meshlib.FaceColors.opEqual ( meshlib.FaceColors b)

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

Calls MR_equal_MR_FaceColors().

◆ opNotEqual()

boolean meshlib.FaceColors.opNotEqual ( meshlib.FaceColors b)

Generated from method MR::FaceColors::operator!=.

Calls MR_not_equal_MR_FaceColors().

◆ pop_back()

void meshlib.FaceColors.pop_back ( )

Generated from method MR::FaceColors::pop_back.

Calls MR_FaceColors_pop_back().

◆ push_back_const_MR_Color_ref()

void meshlib.FaceColors.push_back_const_MR_Color_ref ( meshlib.Color t)

Generated from method MR::FaceColors::push_back. The reference to things referred to by the parameter t (if any) might be preserved in this object.

Calls MR_FaceColors_push_back_const_MR_Color_ref().

◆ push_back_MR_Color_rvalue_ref()

void meshlib.FaceColors.push_back_MR_Color_rvalue_ref ( meshlib.Color t)

Generated from method MR::FaceColors::push_back. The reference to things referred to by the parameter t (if any) might be preserved in this object.

Calls MR_FaceColors_push_back_MR_Color_rvalue_ref().

◆ reserve()

void meshlib.FaceColors.reserve ( long capacity)

Generated from method MR::FaceColors::reserve.

Calls MR_FaceColors_reserve().

◆ resize() [1/2]

void meshlib.FaceColors.resize ( long newSize)

Generated from method MR::FaceColors::resize.

Calls MR_FaceColors_resize_1().

◆ resize() [2/2]

void meshlib.FaceColors.resize ( long newSize,
meshlib.Color t )

Generated from method MR::FaceColors::resize.

Calls MR_FaceColors_resize_2().

◆ resizeNoInit()

void meshlib.FaceColors.resizeNoInit ( long targetSize,
meshlib.ReserveMode mode )

resizes the vector skipping initialization of its elements (more precisely initializing them using ( noInit ) constructor ) Generated from method MR::FaceColors::resizeNoInit.

Calls MR_FaceColors_resizeNoInit().

◆ resizeWithReserve() [1/2]

void meshlib.FaceColors.resizeWithReserve ( long newSize)

same as resize(newSize), which already grows the capacity geometrically Generated from method MR::FaceColors::resizeWithReserve.

Calls MR_FaceColors_resizeWithReserve_1().

◆ resizeWithReserve() [2/2]

void meshlib.FaceColors.resizeWithReserve ( long newSize,
meshlib.Color value )

same as resize(newSize, value), which already grows the capacity geometrically Generated from method MR::FaceColors::resizeWithReserve.

Calls MR_FaceColors_resizeWithReserve_2().

◆ setVec()

void meshlib.FaceColors.setVec ( meshlib.std_vector_MR_Color_MR_Allocator_MR_Color value)

The user can directly manipulate the vector, they can't break anything anyway. Modifies a member variable of class MR::FaceColors named vec. The reference to the parameter value might be preserved in this object in element vec.

Calls MR_FaceColors_Set_vec().

◆ shrink_to_fit()

void meshlib.FaceColors.shrink_to_fit ( )

Generated from method MR::FaceColors::shrink_to_fit.

Calls MR_FaceColors_shrink_to_fit().

◆ size()

long meshlib.FaceColors.size ( )

Generated from method MR::FaceColors::size.

Calls MR_FaceColors_size().

◆ swap()

void meshlib.FaceColors.swap ( meshlib.FaceColors b)

Generated from method MR::FaceColors::swap.

Calls MR_FaceColors_swap().

◆ vec()

The user can directly manipulate the vector, they can't break anything anyway. Returns a pointer to a member variable of class MR::FaceColors named vec. The reference to this object might be preserved as the return value.

Calls MR_FaceColors_Get_vec().


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