-- -- File: Aspect_ColorCubeColorMap.cdl -- Created: 23/03/93 -- Author: BBL -- ---Copyright: MatraDatavision 1993 -- class ColorCubeColorMap from Aspect inherits ColorMap from Aspect ---Version: 0.0 ---Purpose: This class defines a ColorCube ColorMap object. ---Keywords: ---Warning: ---References: uses Color from Quantity, ColorMapEntry from Aspect raises BadAccess from Aspect, RangeError from Standard is Create( base_pixel, redmax, redmult, greenmax, greenmult, bluemax, bluemult : in Integer from Standard ) returns mutable ColorCubeColorMap from Aspect raises RangeError from Standard ; ---Level: Public ---Purpose : Create a ColorCube ColorMap. ColorCubeDefinition( me : in ; base_pixel, redmax, redmult, greenmax, greenmult, bluemax, bluemult : out Integer from Standard ); FindColorMapIndex ( me ; AColorMapEntryIndex : Integer from Standard ) returns Integer from Standard raises BadAccess from Aspect ; ---Level: Public ---Purpose: Returns the index in the ColorMap of the -- ColorMapEntry.Index() equal to . -- Warning: Raises BadAccess if the index is not defined in the -- ColorMap. FindEntry ( me ; AColorMapEntryIndex : Integer from Standard ) returns ColorMapEntry from Aspect raises BadAccess from Aspect ; ---Level: Public ---Purpose: Returns the ColorMapEntry with ColorMapEntry.Index() -- equal to . -- Warning: Raises BadAccess if the index is not defined in the -- ColorMap. ---C++: return const & NearestColorMapIndex( me ; aColor : Color from Quantity ) returns Integer from Standard ; ---Level: Public ---Purpose: Returns the index in the ColorMap of the nearest -- matching ColorMapEntry NearestEntry( me ; aColor : Color from Quantity ) returns ColorMapEntry from Aspect ; ---Level: Public ---Purpose: Returns the nearest ColorMapEntry that match aColor . ---C++: return const & AddEntry (me : mutable; aColor : Color from Quantity) returns Integer from Standard; ---Level: Public ---Purpose: Search an identical color entry in the color map -- or returns the nearest ColorMapEntry Index. fields mybasepixel : Integer from Standard ; mygreenmax , mygreenmult : Integer from Standard ; myredmax , myredmult : Integer from Standard ; mybluemax , mybluemult : Integer from Standard ; -- ColorCube definition for a ColorCube ColorMap. end ColorCubeColorMap ;