MantisBT
Mantis Bug Tracker Workflow

View Revisions: Issue #29894 All Revisions ] Back to Issue ]
Summary 0029894: Visualization - AIS_ColorScale ColorRange returns only min color
Revision 2018-06-26 14:42 by kgv
Description The ColorRangle() function returns only the min color, see the code bellow:
//! Returns color range corresponding to minimum and maximum values, blue to red by default.
void ColorRange (Quantity_Color& theMinColor,
                 Quantity_Color& theMaxColor) const
{
theMinColor.SetValues (hueToValidRange (myColorHlsMin[0]), myColorHlsMin[1], myColorHlsMin[2], Quantity_TOC_HLS);

theMaxColor.SetValues (hueToValidRange (myColorHlsMin[0]), myColorHlsMin[1], myColorHlsMin[2], Quantity_TOC_HLS);

}


It should change the second line code:
theMaxColor.SetValues (hueToValidRange (myColorHlsMax[0]), myColorHlsMax[1], myColorHlsMax[2], Quantity_TOC_HLS);

Revision 2018-06-24 05:52 by eryar
Description The ColorRangle() function returns only the min color, see the code bellow:
//! Returns color range corresponding to minimum and maximum values, blue to red by default.
void ColorRange (Quantity_Color& theMinColor,
                 Quantity_Color& theMaxColor) const
{
theMinColor.SetValues (hueToValidRange (myColorHlsMin[0]), myColorHlsMin[1], myColorHlsMin[2], Quantity_TOC_HLS);
theMaxColor.SetValues (hueToValidRange (myColorHlsMin[0]), myColorHlsMin[1], myColorHlsMin[2], Quantity_TOC_HLS);
}

It should change the second line code:
theMaxColor.SetValues (hueToValidRange (myColorHlsMax[0]), myColorHlsMax[1], myColorHlsMax[2], Quantity_TOC_HLS);


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker