In CET 15.5, support for CustomerOwnMaterial
s has been added to the DsMaterialLegend
. Filters have been implemented
to also user customization of the legend items. Some fields for COMs are also optionally displayed now.
The following function has been removed. build2D()
from the parent class (DigitalSwatch
) should be utilized.
Removed: public void build2D() {}
The following functions have been added to support filtering of materials in DsMaterialLegendSnapper
s.
DsMaterialLegendSnapper Added: public ObjectLabelSubSet _filterSubSet; Added: public void initFilters() {} Added: extend public ObjectSubSet filterSubSet() {}
The following functions have been added to support length units for COMs in the in DsMaterialLegendItem
s.
DsMaterialLegendItem Added: extend public Graph graphLengthUnit(UserTextStyle style) {} DsMaterialLegendItemBuildEnv Added: public constructor(bool buildName=true, bool buildDescription=true, bool buildID=true, bool buildEnterprise=true|, bool buildLengthUnit=false) {}
To support filtering of DsMaterialLegend
s, ObjFilter
s are utilized to filter materials in the legend. As a result, the optional
bool filtered
parameter was added when retrieving the sorted item list for legends..
DsMaterialLegend Old: public sorted str->MaterialLegendItem sortedList() {} New: public sorted str->MaterialLegendItem sortedList(bool filtered=true) {}