70 std::vector<PartialColorMap> dataSet_;
73 bool needUpdate_{
true };
77 bool checkInputData_(
const PartialColorMap& partitialColorMap );
78 void updateAggregated_(
int newSize );
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
Class for aggregate several color map in one Color maps are aggregated according order.
Definition MRColorMapAggregator.h:17
MRMESH_API void setDefaultColor(const Color &color)
set default (background) color
const PartialColorMap & getPartialColorMap(int i)
get partial color map map by index
Definition MRColorMapAggregator.h:50
size_t getColorMapNumber()
get number of accumulated color maps
Definition MRColorMapAggregator.h:47
MRMESH_API void pushBack(const PartialColorMap &partitialColorMap)
add color map after all (more priority)
MRMESH_API void erase(int i, int n=1)
erase n color map from #i
MRMESH_API void setMode(AggregateMode mode)
set color map aggregating mode
MRMESH_API ColorMap aggregate(const ElementBitSet &elementBitSet)
get aggregated color map for active elements
ColorMapAggregator()=default
AggregateMode
color map aggregating mode
Definition MRColorMapAggregator.h:57
@ Blending
result element color is element color of more priority color map (or default color,...
MRMESH_API void insert(int i, const PartialColorMap &partitialColorMap)
insert color map before element #i (0 - minimum priority)
MRMESH_API void replace(int i, const PartialColorMap &partitialColorMap)
replace color map in #i position
MRMESH_API void reset()
reset all accumulated color map
Definition MRCameraOrientationPlugin.h:8
partial color map
Definition MRColorMapAggregator.h:29
ColorMap colorMap
Definition MRColorMapAggregator.h:30
ElementBitSet elements
Definition MRColorMapAggregator.h:31