MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.ConstFaceColors Class Reference
Inheritance diagram for mrmeshpy.ConstFaceColors:

Public Member Functions

bool __eq__ (self, ConstFaceColors b)
ConstColor __getitem__ (self, ConstFaceId i)
 __init__ (self, *args, **kwargs)
typing.Iterator[ConstColor] __iter__ (self)
int __len__ (self)
bool __ne__ (self, ConstFaceColors b)
ConstColor back (self)
FaceId backId (self)
FaceId beginId (self)
int capacity (self)
ConstColor data (self)
bool empty (self)
FaceId endId (self)
ConstColor front (self)
int heapBytes (self)
int max_size (self)
int size (self)
Const_std_vector_Color_Allocator_Color vec (self)

Static Protected Attributes

typing _offsetof_vec = 0

Detailed Description

Generated from:  MR::FaceColors
Aliases:  ColorMapAggregator_FaceTag_ColorMap

Vector<T> is indexed by size_t

Constructor & Destructor Documentation

◆ __init__()

mrmeshpy.ConstFaceColors.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstFaceColors) -> None

creates empty vector

2. __init__(self: meshlib.mrmeshpy.ConstFaceColors, size: int) -> None

creates a vector with \\p size elements with default value

3. __init__(self: meshlib.mrmeshpy.ConstFaceColors, size: int, val: meshlib.mrmeshpy.ConstColor) -> None

creates a vector with \\p size elements with the given value

4. __init__(self: meshlib.mrmeshpy.ConstFaceColors, arg0: list) -> None

5. __init__(self: meshlib.mrmeshpy.ConstFaceColors, arg0: meshlib.mrmeshpy.ConstFaceColors) -> None

Implicit copy constructor.

6. __init__(self: meshlib.mrmeshpy.ConstFaceColors, : meshlib.mrmeshpy.ConstFaceColors) -> None

Member Function Documentation

◆ __eq__()

bool mrmeshpy.ConstFaceColors.__eq__ ( self,
ConstFaceColors b )

◆ __getitem__()

ConstColor mrmeshpy.ConstFaceColors.__getitem__ ( self,
ConstFaceId i )

◆ __iter__()

typing.Iterator[ConstColor] mrmeshpy.ConstFaceColors.__iter__ ( self)

◆ __len__()

int mrmeshpy.ConstFaceColors.__len__ ( self)

◆ __ne__()

bool mrmeshpy.ConstFaceColors.__ne__ ( self,
ConstFaceColors b )

◆ back()

ConstColor mrmeshpy.ConstFaceColors.back ( self)

Reimplemented in mrmeshpy.FaceColors, and mrmeshpy.FaceColors.

◆ backId()

FaceId mrmeshpy.ConstFaceColors.backId ( self)
returns the identifier of the back() element

◆ beginId()

FaceId mrmeshpy.ConstFaceColors.beginId ( self)
returns the identifier of the first element

◆ capacity()

int mrmeshpy.ConstFaceColors.capacity ( self)

◆ data()

ConstColor mrmeshpy.ConstFaceColors.data ( self)

Reimplemented in mrmeshpy.FaceColors, and mrmeshpy.FaceColors.

◆ empty()

bool mrmeshpy.ConstFaceColors.empty ( self)

◆ endId()

FaceId mrmeshpy.ConstFaceColors.endId ( self)
returns backId() + 1

◆ front()

ConstColor mrmeshpy.ConstFaceColors.front ( self)

Reimplemented in mrmeshpy.FaceColors, and mrmeshpy.FaceColors.

◆ heapBytes()

int mrmeshpy.ConstFaceColors.heapBytes ( self)
returns the amount of memory this object occupies on heap

◆ max_size()

int mrmeshpy.ConstFaceColors.max_size ( self)

◆ size()

int mrmeshpy.ConstFaceColors.size ( self)

◆ vec()

Const_std_vector_Color_Allocator_Color mrmeshpy.ConstFaceColors.vec ( self)
The user can directly manipulate the vector, they can't break anything anyway.

Reimplemented in mrmeshpy.FaceColors, and mrmeshpy.FaceColors.

Member Data Documentation

◆ _offsetof_vec

typing mrmeshpy.ConstFaceColors._offsetof_vec = 0
staticprotected

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