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

Public Member Functions

VoxelBitSet __and__ (self, VoxelBitSet b)
 
bool __getitem__ (self, VoxelId pos)
 
VoxelBitSet __iand__ (self, VoxelBitSet b)
 
None __init__ (self)
 
None __init__ (self, BitSet src)
 
None __init__ (self, BitSet src)
 
VoxelBitSet __ior__ (self, VoxelBitSet b)
 
VoxelBitSet __isub__ (self, VoxelBitSet b)
 
typing.Iterator[VoxelId__iter__ (self)
 
VoxelBitSet __ixor__ (self, VoxelBitSet b)
 
VoxelBitSet __or__ (self, VoxelBitSet b)
 
str __repr__ (self)
 
VoxelBitSet __sub__ (self, VoxelBitSet b)
 
VoxelBitSet __xor__ (self, VoxelBitSet b)
 
None autoResizeSet (self, VoxelId pos, int len, bool val=True)
 
None autoResizeSet (self, VoxelId pos, bool val=True)
 
bool autoResizeTestSet (self, VoxelId pos, bool val=True)
 
VoxelId backId (self)
 
VoxelId endId (self)
 
VoxelId find_first (self)
 
VoxelId find_last (self)
 
VoxelId find_next (self, VoxelId pos)
 
VoxelBitSet flip (self, VoxelId n, int len)
 
VoxelBitSet flip (self, VoxelId n)
 
VoxelBitSet flip (self)
 
VoxelBitSet getMapping (self, Vector_VoxelId_VoxelId map)
 
VoxelBitSet getMapping (self, BMap_VoxelId_VoxelId map)
 
VoxelBitSet getMapping (self, phmap_flat_hash_map_Id_VoxelTag_Id_VoxelTag map)
 
VoxelBitSet getMapping (self, Vector_VoxelId_VoxelId map, int resSize)
 
VoxelBitSet getMapping (self, phmap_flat_hash_map_Id_VoxelTag_Id_VoxelTag map, int resSize)
 
bool intersects (self, VoxelBitSet a)
 
bool is_subset_of (self, VoxelBitSet a)
 
VoxelId nthSetBit (self, int n)
 
VoxelBitSet reset (self, VoxelId n, int len)
 
VoxelBitSet reset (self, VoxelId n)
 
VoxelBitSet reset (self)
 
VoxelBitSet set (self, VoxelId n, int len, bool val)
 
VoxelBitSet set (self, VoxelId n, bool val)
 
VoxelBitSet set (self, VoxelId n)
 
VoxelBitSet set (self)
 
VoxelBitSet subtract (self, VoxelBitSet b, int bShiftInBlocks)
 
bool test (self, VoxelId n)
 
bool test_set (self, VoxelId n, bool val=True)
 
- Public Member Functions inherited from mrmeshpy.BitSet
bool __eq__ (self, BitSet b)
 
None clear (self)
 
int count (self)
 
int heapBytes (self)
 
None pop_back (self)
 
None push_back (self, bool bit)
 
None resize (self, int num_bits, bool value=False)
 
None resizeWithReserve (self, int newSize)
 
int size (self)
 

Static Public Member Functions

None __init__ (*args, **kwargs)
 
VoxelId beginId ()
 
VoxelBitSet operator (*args, **kwargs)
 
VoxelBitSet operator (*args, **kwargs)
 

Detailed Description

Generated from:  MR::VoxelBitSet

Vector<bool, I> like container (random-access, I - index type, bool - value type)
with all bits after size() considered off during testing

Constructor & Destructor Documentation

◆ __init__() [1/4]

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

Reimplemented from mrmeshpy.BitSet.

◆ __init__() [2/4]

None mrmeshpy.VoxelBitSet.__init__ ( self)

Reimplemented from mrmeshpy.BitSet.

◆ __init__() [3/4]

None mrmeshpy.VoxelBitSet.__init__ ( self,
BitSet src )
copies all bits from another BitSet (or a descending class, e.g. TypedBitSet<U>)

Reimplemented from mrmeshpy.BitSet.

◆ __init__() [4/4]

None mrmeshpy.VoxelBitSet.__init__ ( self,
BitSet src )
moves all bits from another BitSet (or a descending class, e.g. TypedBitSet<U>)

Reimplemented from mrmeshpy.BitSet.

Member Function Documentation

◆ __and__()

VoxelBitSet mrmeshpy.VoxelBitSet.__and__ ( self,
VoxelBitSet b )

Reimplemented from mrmeshpy.BitSet.

◆ __getitem__()

bool mrmeshpy.VoxelBitSet.__getitem__ ( self,
VoxelId pos )

◆ __iand__()

VoxelBitSet mrmeshpy.VoxelBitSet.__iand__ ( self,
VoxelBitSet b )

Reimplemented from mrmeshpy.BitSet.

◆ __ior__()

VoxelBitSet mrmeshpy.VoxelBitSet.__ior__ ( self,
VoxelBitSet b )

Reimplemented from mrmeshpy.BitSet.

◆ __isub__()

VoxelBitSet mrmeshpy.VoxelBitSet.__isub__ ( self,
VoxelBitSet b )

Reimplemented from mrmeshpy.BitSet.

◆ __iter__()

typing.Iterator[VoxelId] mrmeshpy.VoxelBitSet.__iter__ ( self)

Reimplemented from mrmeshpy.BitSet.

◆ __ixor__()

VoxelBitSet mrmeshpy.VoxelBitSet.__ixor__ ( self,
VoxelBitSet b )

Reimplemented from mrmeshpy.BitSet.

◆ __or__()

VoxelBitSet mrmeshpy.VoxelBitSet.__or__ ( self,
VoxelBitSet b )

Reimplemented from mrmeshpy.BitSet.

◆ __repr__()

str mrmeshpy.VoxelBitSet.__repr__ ( self)

Reimplemented from mrmeshpy.BitSet.

◆ __sub__()

VoxelBitSet mrmeshpy.VoxelBitSet.__sub__ ( self,
VoxelBitSet b )

Reimplemented from mrmeshpy.BitSet.

◆ __xor__()

VoxelBitSet mrmeshpy.VoxelBitSet.__xor__ ( self,
VoxelBitSet b )

Reimplemented from mrmeshpy.BitSet.

◆ autoResizeSet() [1/2]

None mrmeshpy.VoxelBitSet.autoResizeSet ( self,
VoxelId pos,
bool len = True )
sets elements [pos, pos+len) to given value, adjusting the size of the set to include new elements

Reimplemented from mrmeshpy.BitSet.

◆ autoResizeSet() [2/2]

None mrmeshpy.VoxelBitSet.autoResizeSet ( self,
VoxelId pos,
int len,
bool val = True )
sets elements [pos, pos+len) to given value, adjusting the size of the set to include new elements

Reimplemented from mrmeshpy.BitSet.

◆ autoResizeTestSet()

bool mrmeshpy.VoxelBitSet.autoResizeTestSet ( self,
VoxelId pos,
bool val = True )
same as \\ref autoResizeSet and returns previous value of pos-bit

Reimplemented from mrmeshpy.BitSet.

◆ backId()

VoxelId mrmeshpy.VoxelBitSet.backId ( self)
returns the identifier of the back() element

Reimplemented from mrmeshpy.BitSet.

◆ beginId()

VoxelId mrmeshpy.VoxelBitSet.beginId ( )
static
[beginId(), endId()) is the range of all bits in the set

Reimplemented from mrmeshpy.BitSet.

◆ endId()

VoxelId mrmeshpy.VoxelBitSet.endId ( self)

Reimplemented from mrmeshpy.BitSet.

◆ find_first()

VoxelId mrmeshpy.VoxelBitSet.find_first ( self)

◆ find_last()

VoxelId mrmeshpy.VoxelBitSet.find_last ( self)
return the highest index i such as bit i is set, or npos if *this has no on bits.

Reimplemented from mrmeshpy.BitSet.

◆ find_next()

VoxelId mrmeshpy.VoxelBitSet.find_next ( self,
VoxelId pos )

◆ flip() [1/3]

VoxelBitSet mrmeshpy.VoxelBitSet.flip ( self)

Reimplemented from mrmeshpy.BitSet.

◆ flip() [2/3]

VoxelBitSet mrmeshpy.VoxelBitSet.flip ( self,
VoxelId n )

Reimplemented from mrmeshpy.BitSet.

◆ flip() [3/3]

VoxelBitSet mrmeshpy.VoxelBitSet.flip ( self,
VoxelId n,
int len )

Reimplemented from mrmeshpy.BitSet.

◆ getMapping() [1/5]

VoxelBitSet mrmeshpy.VoxelBitSet.getMapping ( self,
BMap_VoxelId_VoxelId map )

◆ getMapping() [2/5]

VoxelBitSet mrmeshpy.VoxelBitSet.getMapping ( self,
phmap_flat_hash_map_Id_VoxelTag_Id_VoxelTag map )

◆ getMapping() [3/5]

VoxelBitSet mrmeshpy.VoxelBitSet.getMapping ( self,
phmap_flat_hash_map_Id_VoxelTag_Id_VoxelTag map,
int resSize )

◆ getMapping() [4/5]

VoxelBitSet mrmeshpy.VoxelBitSet.getMapping ( self,
Vector_VoxelId_VoxelId map )

◆ getMapping() [5/5]

VoxelBitSet mrmeshpy.VoxelBitSet.getMapping ( self,
Vector_VoxelId_VoxelId map,
int resSize )

◆ intersects()

bool mrmeshpy.VoxelBitSet.intersects ( self,
VoxelBitSet a )
returns true if, there is a bit which is set in this bitset, such that the corresponding bit in bitset a is also set. Otherwise this function returns false.

◆ is_subset_of()

bool mrmeshpy.VoxelBitSet.is_subset_of ( self,
VoxelBitSet a )
returns true if, for every bit that is set in this bitset, the corresponding bit in bitset a is also set. Otherwise this function returns false.

Reimplemented from mrmeshpy.BitSet.

◆ nthSetBit()

VoxelId mrmeshpy.VoxelBitSet.nthSetBit ( self,
int n )
returns the location of nth set bit (where the first bit corresponds to n=0) or IndexType(npos) if there are less bit set

Reimplemented from mrmeshpy.BitSet.

◆ operator() [1/2]

VoxelBitSet mrmeshpy.VoxelBitSet.operator ( * args,
** kwargs )
static

Reimplemented from mrmeshpy.BitSet.

◆ operator() [2/2]

VoxelBitSet mrmeshpy.VoxelBitSet.operator ( * args,
** kwargs )
static

Reimplemented from mrmeshpy.BitSet.

◆ reset() [1/3]

VoxelBitSet mrmeshpy.VoxelBitSet.reset ( self)

Reimplemented from mrmeshpy.BitSet.

◆ reset() [2/3]

VoxelBitSet mrmeshpy.VoxelBitSet.reset ( self,
VoxelId n )

Reimplemented from mrmeshpy.BitSet.

◆ reset() [3/3]

VoxelBitSet mrmeshpy.VoxelBitSet.reset ( self,
VoxelId n,
int len )

Reimplemented from mrmeshpy.BitSet.

◆ set() [1/4]

VoxelBitSet mrmeshpy.VoxelBitSet.set ( self)

Reimplemented from mrmeshpy.BitSet.

◆ set() [2/4]

VoxelBitSet mrmeshpy.VoxelBitSet.set ( self,
VoxelId n )

Reimplemented from mrmeshpy.BitSet.

◆ set() [3/4]

VoxelBitSet mrmeshpy.VoxelBitSet.set ( self,
VoxelId n,
bool val )

Reimplemented from mrmeshpy.BitSet.

◆ set() [4/4]

VoxelBitSet mrmeshpy.VoxelBitSet.set ( self,
VoxelId n,
int len,
bool val )

Reimplemented from mrmeshpy.BitSet.

◆ subtract()

VoxelBitSet mrmeshpy.VoxelBitSet.subtract ( self,
VoxelBitSet b,
int bShiftInBlocks )
subtracts b from this, considering that bits in b are shifted right on bShiftInBlocks*bits_per_block

Reimplemented from mrmeshpy.BitSet.

◆ test()

bool mrmeshpy.VoxelBitSet.test ( self,
VoxelId n )
all bits after size() we silently consider as not-set

Reimplemented from mrmeshpy.BitSet.

◆ test_set()

bool mrmeshpy.VoxelBitSet.test_set ( self,
VoxelId n,
bool val = True )

Reimplemented from mrmeshpy.BitSet.


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