Open CASCADE Technology 6.6.0
|
This class defines a GenericColorMap object.
#include <Aspect_GenericColorMap.hxx>
Public Member Functions | |
Aspect_GenericColorMap () | |
Creates a generic ColorMap . | |
void | AddEntry (const Aspect_ColorMapEntry &AnEntry) |
Adds an entry in the color map <me>. Warning: Raises BadAccess if the ColorMapEntry index is alreadry defined. | |
Standard_Integer | AddEntry (const Quantity_Color &aColor) |
Search an identical color entry in the color map <me> and returns the ColorMapEntry Index if exist. Or add a new entry and returns the computed ColorMapEntry index used. | |
void | RemoveEntry (const Standard_Integer AColorMapEntryIndex) |
Remove the ColorMapEntry at position index in the ColorMap Warning: Raises BadAccess if the index is not defined in the ColorMap. | |
Standard_Integer | FindColorMapIndex (const Standard_Integer AColorMapEntryIndex) const |
Returns the index in the ColorMap of the ColorMapEntry.Index() equal to <AnEntryIndex>. Warning: Raises BadAccess if the index is not defined in the ColorMap. | |
const Aspect_ColorMapEntry & | FindEntry (const Standard_Integer AColorMapEntryIndex) const |
Returns the ColorMapEntry with ColorMapEntry.Index() equal to <AnEntryIndex>. Warning: Raises BadAccess if the index is not defined in the ColorMap. | |
Standard_Integer | NearestColorMapIndex (const Quantity_Color &aColor) const |
Returns the index in the ColorMap of the nearest matching ColorMapEntry | |
const Aspect_ColorMapEntry & | NearestEntry (const Quantity_Color &aColor) const |
Returns the nearest ColorMapEntry that match aColor . | |
Protected Attributes | |
TColStd_DataMapOfIntegerInteger | myDataMap |
Aspect_GenericColorMap::Aspect_GenericColorMap | ( | ) |
void Aspect_GenericColorMap::AddEntry | ( | const Aspect_ColorMapEntry & | AnEntry | ) |
Standard_Integer Aspect_GenericColorMap::AddEntry | ( | const Quantity_Color & | aColor | ) | [virtual] |
Implements Aspect_ColorMap.
Standard_Integer Aspect_GenericColorMap::FindColorMapIndex | ( | const Standard_Integer | AColorMapEntryIndex | ) | const [virtual] |
Implements Aspect_ColorMap.
const Aspect_ColorMapEntry& Aspect_GenericColorMap::FindEntry | ( | const Standard_Integer | AColorMapEntryIndex | ) | const [virtual] |
Implements Aspect_ColorMap.
Standard_Integer Aspect_GenericColorMap::NearestColorMapIndex | ( | const Quantity_Color & | aColor | ) | const [virtual] |
Implements Aspect_ColorMap.
const Aspect_ColorMapEntry& Aspect_GenericColorMap::NearestEntry | ( | const Quantity_Color & | aColor | ) | const [virtual] |
Implements Aspect_ColorMap.
void Aspect_GenericColorMap::RemoveEntry | ( | const Standard_Integer | AColorMapEntryIndex | ) |