MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::ColorMapAggregator< Tag > Class Template Reference

Class for aggregate several color map in one Color maps are aggregated according order. More...

#include <MRMesh/MRColorMapAggregator.h>

Classes

struct  PartialColorMap
 partial color map More...

Public Types

enum class  AggregateMode { AggregateMode::Overlay , AggregateMode::Blending }
 color map aggregating mode More...
using ColorMap = Vector<Color, Id<Tag>>
using ElementBitSet = TaggedBitSet<Tag>

Public Member Functions

 ColorMapAggregator ()=default
void setDefaultColor (const Color &color)
 set default (background) color
void pushBack (const PartialColorMap &partitialColorMap)
 add color map after all (more priority)
void insert (int i, const PartialColorMap &partitialColorMap)
 insert color map before element #i (0 - minimum priority)
void replace (int i, const PartialColorMap &partitialColorMap)
 replace color map in #i position
void reset ()
 reset all accumulated color map
size_t getColorMapNumber ()
 get number of accumulated color maps
const PartialColorMapgetPartialColorMap (int i)
 get partial color map map by index
void erase (int i, int n=1)
 erase n color map from #i
void setMode (AggregateMode mode)
 set color map aggregating mode
ColorMap aggregate (const ElementBitSet &elementBitSet)
 get aggregated color map for active elements

Detailed Description

template<typename Tag>
class MR::ColorMapAggregator< Tag >

Class for aggregate several color map in one Color maps are aggregated according order.


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