1 // Java Native Class from Cas.Cade
2 // Copyright (C) 1991,1999 by
4 // MATRA DATAVISION, FRANCE
6 // This software is furnished in accordance with the terms and conditions
7 // of the contract and with the inclusion of the above copyright notice.
8 // This software or any other copy thereof may not be provided or otherwise
9 // be made available to any other person. No title to an ownership of the
10 // software is hereby transferred.
12 // At the termination of the contract, the software and all copies of this
13 // software must be deleted.
20 import jcas.Standard_Integer;
21 import CASCADESamplesJni.Aspect_ColorMapEntry;
22 import CASCADESamplesJni.Quantity_Color;
25 public class Aspect_ColorCubeColorMap extends CASCADESamplesJni.Aspect_ColorMap {
28 System.loadLibrary("SampleHLRJni");
31 public Aspect_ColorCubeColorMap(int base_pixel,int redmax,int redmult,int greenmax,int greenmult,int bluemax,int bluemult) {
32 Aspect_ColorCubeColorMap_Create_0(base_pixel,redmax,redmult,greenmax,greenmult,bluemax,bluemult);
35 private final native void Aspect_ColorCubeColorMap_Create_0(int base_pixel,int redmax,int redmult,int greenmax,int greenmult,int bluemax,int bluemult);
37 native public final void ColorCubeDefinition(Standard_Integer base_pixel,Standard_Integer redmax,Standard_Integer redmult,Standard_Integer greenmax,Standard_Integer greenmult,Standard_Integer bluemax,Standard_Integer bluemult);
38 native public final int FindColorMapIndex(int AColorMapEntryIndex);
39 native public final Aspect_ColorMapEntry FindEntry(int AColorMapEntryIndex);
40 native public final int NearestColorMapIndex(Quantity_Color aColor);
41 native public final Aspect_ColorMapEntry NearestEntry(Quantity_Color aColor);
42 public Aspect_ColorCubeColorMap() {