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

Public Member Functions

PixelBitSet __and__ (self, PixelBitSet b)
 
PixelBitSet __iand__ (self, PixelBitSet b)
 
None __init__ (self, BitSet src)
 
None __init__ (self, BitSet src)
 
None __init__ (self)
 
None __init__ (self, PixelBitSet arg0)
 
PixelBitSet __ior__ (self, PixelBitSet b)
 
PixelBitSet __isub__ (self, PixelBitSet b)
 
typing.Iterator __iter__ (self)
 
PixelBitSet __ixor__ (self, PixelBitSet b)
 
PixelBitSet __or__ (self, PixelBitSet b)
 
PixelBitSet __sub__ (self, PixelBitSet b)
 
PixelBitSet __xor__ (self, PixelBitSet b)
 
None autoResizeSet (self, PixelId pos, int len, bool val=True)
 
None autoResizeSet (self, PixelId pos, bool val=True)
 
bool autoResizeTestSet (self, PixelId pos, bool val=True)
 
PixelId backId (self)
 
PixelId endId (self)
 
PixelId find_first (self)
 
PixelId find_last (self)
 
PixelId find_next (self, PixelId pos)
 
PixelBitSet flip (self, PixelId n, int len)
 
PixelBitSet flip (self, PixelId n)
 
PixelBitSet flip (self)
 
PixelBitSet getMapping (self, Vector_PixelId_PixelId map)
 
PixelBitSet getMapping (self, BMap_PixelId_PixelId map)
 
PixelBitSet getMapping (self, phmap_flat_hash_map_Id_PixelTag_Id_PixelTag map)
 
PixelBitSet getMapping (self, Vector_PixelId_PixelId map, int resSize)
 
PixelBitSet getMapping (self, phmap_flat_hash_map_Id_PixelTag_Id_PixelTag map, int resSize)
 
PixelId nthSetBit (self, int n)
 
bool operator (self, PixelId pos)
 
PixelBitSet reset (self, PixelId n, int len)
 
PixelBitSet reset (self, PixelId n)
 
PixelBitSet reset (self)
 
PixelBitSet set (self, PixelId n, int len, bool val)
 
PixelBitSet set (self, PixelId n, bool val=True)
 
PixelBitSet set (self)
 
PixelBitSet subtract (self, PixelBitSet b, int bShiftInBlocks)
 
bool test (self, PixelId n)
 
bool test_set (self, PixelId n, bool val=True)
 
- Public Member Functions inherited from meshlib.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

PixelId beginId ()
 

Detailed Description

Generated from:  MR::PixelBitSet
Aliases:  TaggedBitSet_PixelTag

container of bits representing specific indices (faces, verts or edges)

Constructor & Destructor Documentation

◆ __init__() [1/4]

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

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __init__() [2/4]

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

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __init__() [3/4]

None meshlib.mrmeshpy.PixelBitSet.__init__ ( self)
Implicit default constructor.

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __init__() [4/4]

None meshlib.mrmeshpy.PixelBitSet.__init__ ( self,
PixelBitSet arg0 )
Implicit copy constructor.

Reimplemented from meshlib.mrmeshpy.BitSet.

Member Function Documentation

◆ __and__()

PixelBitSet meshlib.mrmeshpy.PixelBitSet.__and__ ( self,
PixelBitSet b )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __iand__()

PixelBitSet meshlib.mrmeshpy.PixelBitSet.__iand__ ( self,
PixelBitSet b )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __ior__()

PixelBitSet meshlib.mrmeshpy.PixelBitSet.__ior__ ( self,
PixelBitSet b )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __isub__()

PixelBitSet meshlib.mrmeshpy.PixelBitSet.__isub__ ( self,
PixelBitSet b )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __iter__()

typing.Iterator meshlib.mrmeshpy.PixelBitSet.__iter__ ( self)

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __ixor__()

PixelBitSet meshlib.mrmeshpy.PixelBitSet.__ixor__ ( self,
PixelBitSet b )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __or__()

PixelBitSet meshlib.mrmeshpy.PixelBitSet.__or__ ( self,
PixelBitSet b )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __sub__()

PixelBitSet meshlib.mrmeshpy.PixelBitSet.__sub__ ( self,
PixelBitSet b )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ __xor__()

PixelBitSet meshlib.mrmeshpy.PixelBitSet.__xor__ ( self,
PixelBitSet b )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ autoResizeSet() [1/2]

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

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ autoResizeSet() [2/2]

None meshlib.mrmeshpy.PixelBitSet.autoResizeSet ( self,
PixelId 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 meshlib.mrmeshpy.BitSet.

◆ autoResizeTestSet()

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

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ backId()

PixelId meshlib.mrmeshpy.PixelBitSet.backId ( self)
returns the identifier of the back() element

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ beginId()

PixelId meshlib.mrmeshpy.PixelBitSet.beginId ( )
static
[beginId(), endId()) is the range of all bits in the set

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ endId()

PixelId meshlib.mrmeshpy.PixelBitSet.endId ( self)

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ find_first()

PixelId meshlib.mrmeshpy.PixelBitSet.find_first ( self)

◆ find_last()

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

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ find_next()

PixelId meshlib.mrmeshpy.PixelBitSet.find_next ( self,
PixelId pos )

◆ flip() [1/3]

PixelBitSet meshlib.mrmeshpy.PixelBitSet.flip ( self)

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ flip() [2/3]

PixelBitSet meshlib.mrmeshpy.PixelBitSet.flip ( self,
PixelId n )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ flip() [3/3]

PixelBitSet meshlib.mrmeshpy.PixelBitSet.flip ( self,
PixelId n,
int len )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ getMapping() [1/5]

PixelBitSet meshlib.mrmeshpy.PixelBitSet.getMapping ( self,
BMap_PixelId_PixelId map )

◆ getMapping() [2/5]

PixelBitSet meshlib.mrmeshpy.PixelBitSet.getMapping ( self,
phmap_flat_hash_map_Id_PixelTag_Id_PixelTag map )

◆ getMapping() [3/5]

PixelBitSet meshlib.mrmeshpy.PixelBitSet.getMapping ( self,
phmap_flat_hash_map_Id_PixelTag_Id_PixelTag map,
int resSize )

◆ getMapping() [4/5]

PixelBitSet meshlib.mrmeshpy.PixelBitSet.getMapping ( self,
Vector_PixelId_PixelId map )

◆ getMapping() [5/5]

PixelBitSet meshlib.mrmeshpy.PixelBitSet.getMapping ( self,
Vector_PixelId_PixelId map,
int resSize )

◆ nthSetBit()

PixelId meshlib.mrmeshpy.PixelBitSet.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 meshlib.mrmeshpy.BitSet.

◆ operator()

bool meshlib.mrmeshpy.PixelBitSet.operator ( self,
PixelId pos )

◆ reset() [1/3]

PixelBitSet meshlib.mrmeshpy.PixelBitSet.reset ( self)

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ reset() [2/3]

PixelBitSet meshlib.mrmeshpy.PixelBitSet.reset ( self,
PixelId n )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ reset() [3/3]

PixelBitSet meshlib.mrmeshpy.PixelBitSet.reset ( self,
PixelId n,
int len )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ set() [1/3]

PixelBitSet meshlib.mrmeshpy.PixelBitSet.set ( self)

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ set() [2/3]

PixelBitSet meshlib.mrmeshpy.PixelBitSet.set ( self,
PixelId n,
bool val = True )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ set() [3/3]

PixelBitSet meshlib.mrmeshpy.PixelBitSet.set ( self,
PixelId n,
int len,
bool val )

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ subtract()

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

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ test()

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

Reimplemented from meshlib.mrmeshpy.BitSet.

◆ test_set()

bool meshlib.mrmeshpy.PixelBitSet.test_set ( self,
PixelId n,
bool val = True )

Reimplemented from meshlib.mrmeshpy.BitSet.


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