Open CASCADE Technology
6.5.4
|
This class defines a ColorMap object.
#include <Aspect_ColorMap.hxx>
Public Member Functions | |
Aspect_TypeOfColorMap | Type () const |
Standard_Integer | Size () const |
Returns the Allocated colormap Size | |
Standard_Integer | Index (const Standard_Integer aColormapIndex) const |
Returns the ColorMapEntry.Index of the ColorMap at rank <aColormapIndex> . | |
void | Dump () const |
const Aspect_ColorMapEntry & | Entry (const Standard_Integer AColorMapIndex) const |
Return the value of the <Index>th element of the ColorMap | |
virtual Standard_Integer | FindColorMapIndex (const Standard_Integer AColorMapEntryIndex) const =0 |
Returns the index in the ColorMap of the ColorMapEntry.Index() equal to <AnEntryIndex>. | |
virtual const Aspect_ColorMapEntry & | FindEntry (const Standard_Integer AColorMapEntryIndex) const =0 |
Returns the ColorMapEntry with ColorMapEntry.Index() equal to <AnEntryIndex>. | |
virtual Standard_Integer | NearestColorMapIndex (const Quantity_Color &aColor) const =0 |
Returns the index in the ColorMap of the nearest matching ColorMapEntry | |
virtual const Aspect_ColorMapEntry & | NearestEntry (const Quantity_Color &aColor) const =0 |
Returns the nearest ColorMapEntry that match aColor . | |
virtual Standard_Integer | AddEntry (const Quantity_Color &aColor)=0 |
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. | |
Protected Member Functions | |
Aspect_ColorMap (const Aspect_TypeOfColorMap type) | |
Protected Attributes | |
Aspect_SequenceOfColorMapEntry | mydata |
Aspect_ColorMap::Aspect_ColorMap | ( | const Aspect_TypeOfColorMap | type | ) | [protected] |
virtual Standard_Integer Aspect_ColorMap::AddEntry | ( | const Quantity_Color & | aColor | ) | [pure virtual] |
Implemented in Aspect_ColorRampColorMap, Aspect_ColorCubeColorMap, and Aspect_GenericColorMap.
void Aspect_ColorMap::Dump | ( | ) | const |
const Aspect_ColorMapEntry& Aspect_ColorMap::Entry | ( | const Standard_Integer | AColorMapIndex | ) | const |
virtual Standard_Integer Aspect_ColorMap::FindColorMapIndex | ( | const Standard_Integer | AColorMapEntryIndex | ) | const [pure virtual] |
Implemented in Aspect_GenericColorMap, Aspect_ColorRampColorMap, and Aspect_ColorCubeColorMap.
virtual const Aspect_ColorMapEntry& Aspect_ColorMap::FindEntry | ( | const Standard_Integer | AColorMapEntryIndex | ) | const [pure virtual] |
Implemented in Aspect_GenericColorMap, Aspect_ColorRampColorMap, and Aspect_ColorCubeColorMap.
Standard_Integer Aspect_ColorMap::Index | ( | const Standard_Integer | aColormapIndex | ) | const |
virtual Standard_Integer Aspect_ColorMap::NearestColorMapIndex | ( | const Quantity_Color & | aColor | ) | const [pure virtual] |
Implemented in Aspect_GenericColorMap, Aspect_ColorRampColorMap, and Aspect_ColorCubeColorMap.
virtual const Aspect_ColorMapEntry& Aspect_ColorMap::NearestEntry | ( | const Quantity_Color & | aColor | ) | const [pure virtual] |
Implemented in Aspect_GenericColorMap, Aspect_ColorRampColorMap, and Aspect_ColorCubeColorMap.
Standard_Integer Aspect_ColorMap::Size | ( | ) | const |
Aspect_TypeOfColorMap Aspect_ColorMap::Type | ( | ) | const |