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

Public Member Functions

bool __eq__ (self, ConstVertColors b)
ConstColor __getitem__ (self, ConstVertId i)
 __init__ (self, *args, **kwargs)
typing.Iterator[ConstColor] __iter__ (self)
int __len__ (self)
bool __ne__ (self, ConstVertColors b)
ConstColor back (self)
VertId backId (self)
VertId beginId (self)
int capacity (self)
ConstColor data (self)
bool empty (self)
VertId 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::VertColors
Aliases:  ColorMapAggregator_VertTag_ColorMap

Vector<T> is indexed by size_t

Constructor & Destructor Documentation

◆ __init__()

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

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

creates empty vector

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

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

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

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

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

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

Implicit copy constructor.

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

Member Function Documentation

◆ __eq__()

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

◆ __getitem__()

ConstColor mrmeshpy.ConstVertColors.__getitem__ ( self,
ConstVertId i )

◆ __iter__()

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

◆ __len__()

int mrmeshpy.ConstVertColors.__len__ ( self)

◆ __ne__()

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

◆ back()

ConstColor mrmeshpy.ConstVertColors.back ( self)

Reimplemented in mrmeshpy.VertColors, and mrmeshpy.VertColors.

◆ backId()

VertId mrmeshpy.ConstVertColors.backId ( self)
returns the identifier of the back() element

◆ beginId()

VertId mrmeshpy.ConstVertColors.beginId ( self)
returns the identifier of the first element

◆ capacity()

int mrmeshpy.ConstVertColors.capacity ( self)

◆ data()

ConstColor mrmeshpy.ConstVertColors.data ( self)

Reimplemented in mrmeshpy.VertColors, and mrmeshpy.VertColors.

◆ empty()

bool mrmeshpy.ConstVertColors.empty ( self)

◆ endId()

VertId mrmeshpy.ConstVertColors.endId ( self)
returns backId() + 1

◆ front()

ConstColor mrmeshpy.ConstVertColors.front ( self)

Reimplemented in mrmeshpy.VertColors, and mrmeshpy.VertColors.

◆ heapBytes()

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

◆ max_size()

int mrmeshpy.ConstVertColors.max_size ( self)

◆ size()

int mrmeshpy.ConstVertColors.size ( self)

◆ vec()

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

Reimplemented in mrmeshpy.VertColors, and mrmeshpy.VertColors.

Member Data Documentation

◆ _offsetof_vec

typing mrmeshpy.ConstVertColors._offsetof_vec = 0
staticprotected

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