Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Attributes
Aspect_GenericColorMap Class Reference

This class defines a GenericColorMap object.

#include <Aspect_GenericColorMap.hxx>

Inheritance diagram for Aspect_GenericColorMap:
Inheritance graph
[legend]

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_ColorMapEntryFindEntry (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_ColorMapEntryNearestEntry (const Quantity_Color &aColor) const
 Returns the nearest ColorMapEntry that match aColor .

Protected Attributes

TColStd_DataMapOfIntegerInteger myDataMap

Constructor & Destructor Documentation


Member Function Documentation

Implements Aspect_ColorMap.

Implements Aspect_ColorMap.

Implements Aspect_ColorMap.

Implements Aspect_ColorMap.

Implements Aspect_ColorMap.


Field Documentation


The documentation for this class was generated from the following file: