MeshLib Python Docs
Loading...
Searching...
No Matches
Inheritance diagram for mrmeshpy.VoxelScalars:

Public Member Functions

float __getitem__ (self, ConstVoxelId i)
float __getitem__ (ConstVoxelScalars self, ConstVoxelId i)
None __init__ (self)
None __init__ (self, int size)
None __init__ (self, int size, float val)
None __init__ (self, list arg0)
None __init__ (self, ConstVoxelScalars arg0)
None __setitem__ (self, ConstVoxelId arg0, float arg1)
VoxelScalars assign (self, ConstVoxelScalars other)
None assign (self, int count, float val)
float autoResizeAt (self, ConstVoxelId i)
None autoResizeSet (self, ConstVoxelId pos, int len, float val)
None autoResizeSet (self, ConstVoxelId i, float val)
float back (self)
float back (ConstVoxelScalars self)
None clear (self)
float data (self)
float data (ConstVoxelScalars self)
float front (self)
float front (ConstVoxelScalars self)
None pop_back (self)
None push_back (self, float t)
None push_back (self, float t)
None reserve (self, int capacity)
None resize (self, int newSize)
None resize (self, int newSize, float t)
None resizeWithReserve (self, int newSize)
None resizeWithReserve (self, int newSize, float value)
None shrink_to_fit (self)
None swap (self, VoxelScalars b)
std_vector_float_Allocator_float vec (self)
None vec (self, Const_std_vector_float_Allocator_float arg1)
Public Member Functions inherited from mrmeshpy.ConstVoxelScalars
bool __eq__ (self, ConstVoxelScalars b)
float __getitem__ (self, ConstVoxelId i)
 __init__ (self, *args, **kwargs)
typing.Iterator[float] __iter__ (self)
int __len__ (self)
bool __ne__ (self, ConstVoxelScalars b)
VoxelId backId (self)
VoxelId beginId (self)
int capacity (self)
bool empty (self)
VoxelId endId (self)
int heapBytes (self)
int max_size (self)
int size (self)

Static Public Member Functions

None __init__ (*args, **kwargs)

Additional Inherited Members

Static Protected Attributes inherited from mrmeshpy.ConstVoxelScalars
typing _offsetof_vec = 0

Detailed Description

Generated from:  MR::VoxelScalars

Vector<T> is indexed by size_t

Constructor & Destructor Documentation

◆ __init__() [1/6]

None mrmeshpy.VoxelScalars.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/6]

None mrmeshpy.VoxelScalars.__init__ ( self)
creates empty vector

◆ __init__() [3/6]

None mrmeshpy.VoxelScalars.__init__ ( self,
int size )
creates a vector with \\p size elements with default value

◆ __init__() [4/6]

None mrmeshpy.VoxelScalars.__init__ ( self,
int size,
float val )
creates a vector with \\p size elements with the given value

◆ __init__() [5/6]

None mrmeshpy.VoxelScalars.__init__ ( self,
list arg0 )

◆ __init__() [6/6]

None mrmeshpy.VoxelScalars.__init__ ( self,
ConstVoxelScalars arg0 )
Implicit copy constructor.

Member Function Documentation

◆ __getitem__() [1/2]

float mrmeshpy.VoxelScalars.__getitem__ ( ConstVoxelScalars self,
ConstVoxelId i )

◆ __getitem__() [2/2]

float mrmeshpy.VoxelScalars.__getitem__ ( self,
ConstVoxelId i )

◆ __setitem__()

None mrmeshpy.VoxelScalars.__setitem__ ( self,
ConstVoxelId arg0,
float arg1 )

◆ assign() [1/2]

VoxelScalars mrmeshpy.VoxelScalars.assign ( self,
ConstVoxelScalars other )

◆ assign() [2/2]

None mrmeshpy.VoxelScalars.assign ( self,
int count,
float val )
replaces the contents with \\p count copies of \\p val

◆ autoResizeAt()

float mrmeshpy.VoxelScalars.autoResizeAt ( self,
ConstVoxelId i )
this accessor automatically adjusts the size of the vector

◆ autoResizeSet() [1/2]

None mrmeshpy.VoxelScalars.autoResizeSet ( self,
ConstVoxelId i,
float val )
sets the element i to the given value, adjusting the size of the vector to include new element

◆ autoResizeSet() [2/2]

None mrmeshpy.VoxelScalars.autoResizeSet ( self,
ConstVoxelId pos,
int len,
float 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 \\p pos are also set to \\p val (for faster implementation)

◆ back() [1/2]

float mrmeshpy.VoxelScalars.back ( ConstVoxelScalars self)

Reimplemented from mrmeshpy.ConstVoxelScalars.

◆ back() [2/2]

float mrmeshpy.VoxelScalars.back ( self)

Reimplemented from mrmeshpy.ConstVoxelScalars.

◆ clear()

None mrmeshpy.VoxelScalars.clear ( self)

◆ data() [1/2]

float mrmeshpy.VoxelScalars.data ( ConstVoxelScalars self)

Reimplemented from mrmeshpy.ConstVoxelScalars.

◆ data() [2/2]

float mrmeshpy.VoxelScalars.data ( self)

Reimplemented from mrmeshpy.ConstVoxelScalars.

◆ front() [1/2]

float mrmeshpy.VoxelScalars.front ( ConstVoxelScalars self)

Reimplemented from mrmeshpy.ConstVoxelScalars.

◆ front() [2/2]

float mrmeshpy.VoxelScalars.front ( self)

Reimplemented from mrmeshpy.ConstVoxelScalars.

◆ pop_back()

None mrmeshpy.VoxelScalars.pop_back ( self)

◆ push_back() [1/2]

None mrmeshpy.VoxelScalars.push_back ( self,
float t )

◆ push_back() [2/2]

None mrmeshpy.VoxelScalars.push_back ( self,
float t )

◆ reserve()

None mrmeshpy.VoxelScalars.reserve ( self,
int capacity )

◆ resize() [1/2]

None mrmeshpy.VoxelScalars.resize ( self,
int newSize )

◆ resize() [2/2]

None mrmeshpy.VoxelScalars.resize ( self,
int newSize,
float t )

◆ resizeWithReserve() [1/2]

None mrmeshpy.VoxelScalars.resizeWithReserve ( self,
int newSize )
same as resize(newSize), which already grows the capacity geometrically

◆ resizeWithReserve() [2/2]

None mrmeshpy.VoxelScalars.resizeWithReserve ( self,
int newSize,
float value )
same as resize(newSize, value), which already grows the capacity geometrically

◆ shrink_to_fit()

None mrmeshpy.VoxelScalars.shrink_to_fit ( self)

◆ swap()

None mrmeshpy.VoxelScalars.swap ( self,
VoxelScalars b )

◆ vec() [1/2]

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

Reimplemented from mrmeshpy.ConstVoxelScalars.

◆ vec() [2/2]

None mrmeshpy.VoxelScalars.vec ( self,
Const_std_vector_float_Allocator_float arg1 )
The user can directly manipulate the vector, they can't break anything anyway.

Reimplemented from mrmeshpy.ConstVoxelScalars.


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